/* amber-theme: an unbranded trading-terminal look inspired by the design language of axiom.trade
   (captured 2026-11-16): its metrics, density and font family (Geist, open source) are followed closely.
   Deliberately our own: name, logo, menu labels, accent, colour temperature and PnL colours, the status bar and
   sub-bar arrangement, and the scanner's row details (avatar, risk cell, buy button, chain chips).
   Provenance tags: real = taken from the capture's DOM classes / CSS tokens · original = our own choice ·
   synthesised = built from tokens where the capture had nothing · inferred = from route/JS hints.
   Sections: 1 fonts · 2 theme tokens · 3 reset · 4 semantic aliases · 5 base & type · 6 components */

/* ===== 1. FONTS (served from /fonts; OFL-licensed, see /fonts/LICENSE-*.txt) ===== */
@font-face{font-family:"Geist Variable";font-style:normal;font-display:swap;font-weight:100 900;src:url("/demo/iwx-ruaz-lfe/fonts/geist-latin-wght-normal.woff2") format("woff2-variations")}
@font-face{font-family:"Geist Mono Variable";font-style:normal;font-display:swap;font-weight:100 900;src:url("/demo/iwx-ruaz-lfe/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations")}

/* ===== 2. THEME TOKENS (attribute data-theme on <html>) ===== */
/* Same contrast steps as the reference capture, but our own temperature: neutral, faintly warm blacks
   instead of blue-blacks, and our own green / red. */
:root,[data-theme="amber"]{
  color-scheme:dark;
  --p-bg:#08080a;     /* original (reference step: page bg) */
  --p-bg-2:#111113;   /* original (panels, table rows) */
  --p-bg-3:#19191c;   /* original */
  --p-bg-4:#202024;   /* original raised fill */
  --p-line:#26262b;   /* original hairline */
  --p-line-2:#34343a; /* original strong line */
  --p-text:#f5f5f4;   /* original */
  --p-text-2:#c9c8c4; /* original, faintly warm */
  --p-text-3:#8a8984; /* original, faintly warm */
  --p-accent:#f5a524;--p-accent-hover:#f7b84e;--p-accent-fg:#08080a; /* original accent (amber); fg = bg */
  --p-pos:#3ddc97;    /* original up / buy */
  --p-neg:#f25f5c;    /* original down / sell (coral, not pink) */
  --p-green:#4cc38a;  /* original: ages, Live */
  --p-warn:#e5b93c;   /* original */
  --p-orange:#e8835a; /* original */
  --p-red:#ef5350;    /* original */
  --p-info:#5bb8f0;   /* original */
  --p-violet:#a28bfa; /* original */
  --p-candle-up:#22a06b;--p-candle-down:#e5484d; /* original */
  --p-logo-1:#2b2416;--p-logo-2:#16302a;--p-logo-3:#2a2140;--p-logo-4:#3a1d22; /* synthesised placeholder fields */
  --p-shadow:0 12px 32px -8px #000000b3;
}
/* glacier: same neutrals, ice-blue accent */
[data-theme="glacier"]{
  --p-accent:#7cc8f8;--p-accent-hover:#9bd6fa;--p-accent-fg:#06070b; /* original */
}

/* ===== 3. RESET (minimal, original) ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;border:0 solid}
html{-webkit-text-size-adjust:100%;tab-size:4}
img,svg,video,canvas{display:block;max-width:100%}
button,input,select,textarea{font:inherit;color:inherit;background:none;letter-spacing:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
a{color:inherit;text-decoration:none}
table{border-collapse:collapse;border-spacing:0}
ul,ol{list-style:none}
:focus-visible{outline:2px solid var(--p-accent);outline-offset:-2px}

/* ===== 4-6. SEMANTIC ALIASES, BASE, COMPONENTS ===== */

/* ===== 4. SEMANTIC ALIASES ===== */
:root,[data-theme]{
  /* colour roles (every alias points at a theme var) */
  --bg:var(--p-bg);                 /* page background */
  --surface:var(--p-bg-2);          /* panels, cards (real role: panel = background-secondary) */
  --surface-2:var(--p-bg-3);        /* inputs, table header, nested */
  --surface-3:var(--p-bg-4);        /* hover / raised */
  --line:var(--p-line);             /* hairlines, panel borders (real role: primary-stroke) */
  --line-2:var(--p-line-2);         /* stronger borders (real role: secondary-stroke) */
  --text:var(--p-text);
  --text-2:var(--p-text-2);
  --muted:var(--p-text-3);
  --accent:var(--p-accent);
  --accent-hover:var(--p-accent-hover);
  --accent-fg:var(--p-accent-fg);   /* text on accent (real pattern: bg-coloured text on accent buttons) */
  --accent-soft:color-mix(in srgb,var(--p-accent) 16%,transparent);
  --accent-line:color-mix(in srgb,var(--p-accent) 40%,transparent);
  --pos:var(--p-pos);
  --neg:var(--p-neg);
  --pos-soft:color-mix(in srgb,var(--p-pos) 14%,transparent);
  --neg-soft:color-mix(in srgb,var(--p-neg) 14%,transparent);
  --warn:var(--p-warn);
  --info:var(--p-info);
  --green:var(--p-green);           /* real: ages, "Paid", Live */
  --orange:var(--p-orange);         /* real */
  --red:var(--p-red);               /* real */
  --line-soft:color-mix(in srgb,var(--p-line) 50%,transparent); /* real: row dividers / sub-bar border = primaryStroke/50 */
  --hover:color-mix(in srgb,var(--p-line) 60%,transparent);  /* real pattern: hover bg = stroke/60 */
  --shadow:var(--p-shadow);
  /* charts */
  --chart-1:var(--p-accent);--chart-2:var(--p-info);--chart-3:var(--p-violet);--chart-4:var(--p-pos);--chart-5:var(--p-neg);
  --candle-up:var(--p-candle-up);--candle-down:var(--p-candle-down);
  --grid:color-mix(in srgb,var(--p-line) 70%,transparent);
  /* token-logo placeholder fields */
  --logo-1:var(--p-logo-1);--logo-2:var(--p-logo-2);--logo-3:var(--p-logo-3);--logo-4:var(--p-logo-4);
  /* shape */
  --r-1:4px;        /* real: links, panels, small controls */
  --r-2:8px;        /* real: nested frames */
  --r-3:12px;       /* real: outer frames */
  --r-pill:9999px;  /* real: primary buttons, search, wallet pills */
  --hair:1px;       /* real */
  /* sizes (real unless noted) */
  --h-nav:64px;     /* top nav */
  --h-sub:28px;     /* sub-bar */
  --h-status:36px;  /* bottom status bar */
  --h-ctl:32px;     /* nav links, pills, icon buttons */
  --h-ctl-sm:24px;  /* status-bar items, small buttons */
  --h-ctl-lg:40px;  /* big CTA */
  --h-row:32px;     /* synthesised: dense table row */
  --h-row-2:48px;   /* synthesised: two-line row */
  --h-panel-head:32px; /* synthesised */
  --page-max:1420px;   /* real: content max width */
  --gutter:24px;       /* real: page / nav padding */
  --gap:16px;          /* real */
  /* type */
  --font:"Geist Variable",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; /* real family (Geist, OFL, from Fontsource) */
  --font-mono:"Geist Mono Variable",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; /* real family (Geist Mono, OFL, from Fontsource) */
  --ease:cubic-bezier(.4,0,.2,1);  /* real */
  --dur:150ms;                      /* real */
}

/* ===== 5. BASE & TYPE SCALE (real sizes/weights/tracking from the capture DOM classes) ===== */
html,body{height:100%}
body{
  font-family:var(--font);font-size:14px;line-height:21px;font-weight:400;
  color:var(--text);background:var(--bg);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  font-variant-numeric:tabular-nums; /* real: body is tabular-nums */
}
::selection{background:var(--accent-soft);color:var(--text)}
.t-display{font-size:52px;line-height:68px;font-weight:400;letter-spacing:-.02em}   /* real sm:text-[52px] leading-[68px] */
.t-h1{font-size:32px;line-height:42px;font-weight:400;letter-spacing:-.02em}        /* real sm:text-[32px] */
.t-h2{font-size:20px;line-height:28px;font-weight:500;letter-spacing:-.02em}        /* real page tabs sm:text-[20px] font-medium */
.t-h3{font-size:16px;line-height:21px;font-weight:500;letter-spacing:-.02em}        /* real row symbol sm:text-[16px] font-medium */
.t-body{font-size:14px;line-height:21px;font-weight:400}                            /* real */
.t-small{font-size:12px;line-height:18px;font-weight:400}                           /* real */
.t-label{font-size:12px;line-height:16px;font-weight:500}                           /* real (status bar, table headers) */
.t-micro{font-size:10px;line-height:12px;font-weight:500;letter-spacing:.04em;text-transform:uppercase} /* synthesised */
.t-mono{font-family:var(--font-mono);font-size:12px;line-height:18px}              /* real: body copy blocks use mono */
.tnum{font-variant-numeric:tabular-nums}
.pos{color:var(--pos)}
.neg{color:var(--neg)}
.muted{color:var(--muted)}
.dim{color:var(--text-2)}
.accent{color:var(--accent)}
.i{display:inline-flex;flex-shrink:0;color:currentColor;vertical-align:middle}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.row{display:flex;align-items:center;gap:8px}
.stack{display:flex;flex-direction:column;gap:var(--gap)}
.spacer{flex:1}
/* --- 6.1 shell --- */
/* App shell: nav / sub-bar / scrolling main / status bar pinned to the bottom */
.app{display:grid;grid-template-rows:var(--h-nav) var(--h-sub) minmax(0,1fr) var(--h-status);height:100vh;height:100dvh;background:var(--bg);color:var(--text);overflow:hidden} /* real */
.app-main{min-height:0;overflow-y:auto;overflow-x:hidden} /* real */

/* Top nav: h-64, px-24, gap-16, border-b primaryStroke */
.nav{display:flex;align-items:center;gap:16px;height:var(--h-nav);padding:0 var(--gutter);border-bottom:var(--hair) solid var(--line);background:var(--bg);min-width:0} /* real */
.nav-links{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden} /* real gap-[4px] */
.nav-link{display:inline-flex;align-items:center;height:var(--h-ctl);padding:0 14px;border-radius:var(--r-1);font-size:14px;line-height:20px;font-weight:500;color:var(--text);white-space:nowrap;text-decoration:none;transition:color 135ms ease-in-out} /* real h-32 px-14 rounded-4 14/500 text-primary */
.nav-link:hover{color:var(--accent)} /* real hover:text-accent */
.nav-link.is-active{color:var(--accent)} /* real: active = accent text only */
.nav-link:focus-visible{outline:2px solid var(--accent);outline-offset:-2px} /* real */
.nav-right{display:flex;align-items:center;gap:16px;margin-left:auto;flex-shrink:0} /* real gap-[16px] */

/* Brand (placeholder) */
.brand{display:inline-flex;align-items:center;gap:8px;color:var(--text);text-decoration:none;flex-shrink:0;margin-right:8px} /* real slot: 36px mark + wordmark */
.brand-mark{display:block;width:32px;height:32px;color:var(--muted)} /* placeholder mark, muted so it reads as a stand-in */
.brand-name{font-size:22px;line-height:28px;font-weight:500;letter-spacing:-.02em} /* real wordmark scale */

/* Pills (nav right side) */
.pill-search{display:inline-flex;align-items:center;gap:8px;height:var(--h-ctl);padding:0 6px 0 12px;border:var(--hair) solid var(--line);border-radius:var(--r-pill);background:transparent;color:var(--muted);font-size:12px;line-height:16px;font-weight:500;cursor:text;transition:background var(--dur) var(--ease)} /* real h-32 rounded-full border primaryStroke pl-12 pr-6, 12/500 tertiary */
.pill-search .i:first-child{color:var(--text)} /* real: search icon text-primary */
.pill-search:hover{background:color-mix(in srgb,var(--p-line) 35%,transparent)} /* real hover:bg-primaryStroke/35 */
.pill-search-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left} /* real */
.pill-chain{display:inline-flex;align-items:center;gap:6px;height:var(--h-ctl);padding:0 6px 0 10px;border:var(--hair) solid var(--line-2);border-radius:var(--r-pill);background:transparent;color:var(--text);font-size:14px;font-weight:500;cursor:pointer;transition:filter var(--dur) var(--ease)} /* real h-32 rounded-full pl-10 pr-6 */
.pill-chain:hover,.pill-chain.is-active{filter:brightness(1.25)} /* real hover:brightness-125 */
.pill-chain-dots{display:inline-flex;align-items:center} /* real */
.pill-chain-dot{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--logo-1);color:var(--text);font-size:8px;line-height:1;font-weight:700;box-shadow:0 0 0 1.5px var(--bg)} /* real 15px coin marks, -5px overlap */
.pill-chain-dot + .pill-chain-dot{margin-left:-5px} /* real -ml-[5px] */
.pill-chain-dot:nth-child(4n+2){background:var(--logo-2)} /* synthesised */
.pill-chain-dot:nth-child(4n+3){background:var(--logo-3)} /* synthesised */
.pill-chain-dot:nth-child(4n+4){background:var(--logo-4)} /* synthesised */
.pill-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:var(--h-ctl);padding:0 12px;border:0;border-radius:var(--r-pill);background:var(--accent);color:var(--accent-fg);font-size:14px;line-height:20px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background var(--dur) var(--ease)} /* real h-32 px-12 rounded-full 14/bold text-background */
.pill-primary:hover{background:var(--accent-hover)} /* real */
.pill-primary:disabled{opacity:.5;cursor:not-allowed} /* synthesised */
.pill-wallet{display:inline-flex;align-items:center;gap:8px;height:var(--h-ctl);padding:0 12px;border:0;border-radius:var(--r-pill);background:var(--line);color:var(--text);font-size:14px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer;transition:background var(--dur) var(--ease)} /* real h-32 px-12 gap-8 rounded-full bg-primaryStroke 14/semibold */
.pill-wallet:hover,.pill-wallet.is-active{background:color-mix(in srgb,var(--p-line-2) 80%,transparent)} /* real hover:bg-secondaryStroke/80 */
.pill-wallet-icon{color:var(--text)} /* real: icons text-primary */

/* Keyboard hint */
.kbd{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 7px;border:var(--hair) solid var(--line);border-radius:var(--r-pill);color:var(--text);font-family:var(--font);font-size:12px;line-height:1;font-weight:400} /* real h-20 rounded-full border px-8 text-12 text-primary */

/* Icon buttons */
.iconbtn{display:inline-grid;place-items:center;flex-shrink:0;width:var(--h-ctl);height:var(--h-ctl);padding:0;border:0;border-radius:var(--r-pill);background:var(--line);color:var(--text);cursor:pointer;transition:background var(--dur) var(--ease),color var(--dur) var(--ease)} /* real h-32 w-32 rounded-full bg-primaryStroke, icon text-primary */
.iconbtn:hover{background:color-mix(in srgb,var(--p-line-2) 80%,transparent)} /* real hover:bg-secondaryStroke/80 */
.iconbtn.is-active{color:var(--accent)} /* synthesised */
.iconbtn:disabled{opacity:.4;cursor:not-allowed} /* synthesised */
.iconbtn.is-sm{width:var(--h-ctl-sm);height:var(--h-ctl-sm);border:0;border-radius:var(--r-1);background:transparent;color:var(--muted)} /* real min-h-24 min-w-24 rounded-4 text-tertiary */
.iconbtn.is-sm:hover{color:var(--text-2);background:color-mix(in srgb,var(--p-line) 60%,transparent)} /* real hover:bg-primaryStroke/60 hover:text-secondary */
.iconbtn.is-sm.is-active{color:var(--text-2)} /* real: the starred sub-bar button is text-secondary */

/* Avatar */
.avatar{display:inline-grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:var(--line);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--p-text) 10%,transparent);color:var(--text-2);font-size:11px;line-height:1;font-weight:600;letter-spacing:.02em;text-transform:uppercase;user-select:none} /* real h-28 w-28 rounded-full bg-primaryStroke, 1px white/10 ring */

/* Sub-bar: h-28 px-16 gap-8 border-b primaryStroke/50, 85% opacity until hover */
.sub{display:flex;align-items:center;gap:8px;height:var(--h-sub);padding:0 16px 1px;border-bottom:var(--hair) solid var(--line-soft);background:var(--bg);min-width:0;overflow:hidden;opacity:.85;transition:opacity var(--dur) ease-out} /* real */
.sub:hover{opacity:1} /* real */
.sub .iconbtn.is-sm{width:24px;height:24px} /* real min-h/w-24 */
.sub-sep{flex-shrink:0;width:var(--hair);height:16px;background:var(--line)} /* real h-16 w-1 bg-primaryStroke */
.sub-watch{display:flex;align-items:center;gap:1px;min-width:0;overflow:hidden;padding:1px 8px 0} /* real gap-[1px] px-[8px] */
.sub-chip{display:inline-flex;align-items:center;gap:6px;height:20px;padding:0 6px;border-radius:var(--r-1);font-size:12px;line-height:16px;font-weight:500;color:var(--text-2);white-space:nowrap;cursor:pointer;transition:background var(--dur) var(--ease),color var(--dur) var(--ease)} /* inferred */
.sub-chip:hover{background:var(--hover);color:var(--text)} /* synthesised */
.sub-chip-chg{font-variant-numeric:tabular-nums} /* inferred */
.sub-ticks{display:flex;align-items:center;gap:16px;margin-left:auto;flex-shrink:0} /* original: coin tickers live in the sub-bar */
.sub-tick{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:16px;font-weight:500;color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap} /* original */
.sub-tick-sym{color:var(--muted)} /* original */

/* Status bar: h-36 border-t primaryStroke px-24 gap-16 */
.status{display:flex;align-items:center;gap:16px;height:var(--h-status);padding:0 var(--gutter);border-top:var(--hair) solid var(--line);background:var(--bg);min-width:0;overflow:hidden;white-space:nowrap} /* real */
.status-group{display:flex;align-items:center;gap:8px;min-width:0} /* real gap-[8px] */
.status-items{display:flex;align-items:center;gap:2px;margin:0 -4px} /* real -mx-[4px] gap-[2px] */
.status-mid{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden} /* real flex-1 gap-[8px] */
.status-right{display:flex;align-items:center;gap:8px;flex-shrink:0} /* real */
.status-preset{display:inline-flex;align-items:center;gap:4px;height:var(--h-ctl-sm);padding:0 8px;border-radius:var(--r-1);background:color-mix(in srgb,var(--p-accent) 20%,transparent);color:var(--accent);font-size:12px;line-height:16px;font-weight:600;cursor:pointer;transition:background var(--dur) var(--ease)} /* real h-24 px-8 rounded-4 bg-accent/20 12/semibold */
.status-preset:hover{background:color-mix(in srgb,var(--p-accent) 25%,transparent)} /* real */
.status-wallets{display:inline-flex;align-items:center;gap:6px;height:var(--h-ctl-sm);padding:0 5px 0 8px;border:var(--hair) solid var(--line);border-radius:var(--r-pill);color:var(--text-2);font-size:12px;line-height:16px;font-weight:500;cursor:pointer;transition:background 125ms ease-in-out} /* real h-24 rounded-full border pl-8 pr-5 gap-6 */
.status-wallets .i:first-child{color:var(--muted)} /* real */
.status-wallets:hover{background:color-mix(in srgb,var(--p-line) 60%,transparent)} /* real */
.status-item{display:inline-flex;align-items:center;gap:4px;height:var(--h-ctl-sm);padding:0 4px;border:var(--hair) solid transparent;border-radius:var(--r-1);background:transparent;color:var(--text-2);font-size:12px;line-height:16px;font-weight:500;cursor:pointer;transition:background var(--dur) var(--ease),color var(--dur) var(--ease)} /* real h-24 px-4 gap-4 rounded-4, 12/16 500 text-secondary */
.status-item .i{color:var(--muted);transition:color var(--dur) var(--ease)} /* real icon text-tertiary */
.status-item:hover{background:color-mix(in srgb,var(--p-line) 60%,transparent)} /* real hover:bg-primaryStroke/60 */
.status-item:hover .i{color:var(--text-2)} /* real */
.status-item.is-active,.status-item.is-active .i{color:var(--accent)} /* synthesised */
.status-sep{flex-shrink:0;width:var(--hair);height:20px;background:var(--line)} /* real h-20 w-1 bg-primaryStroke */
.status-tick{display:inline-flex;align-items:center;gap:4px;height:24px;font-size:12px;line-height:16px;font-weight:400;font-variant-numeric:tabular-nums;color:var(--text-2)} /* real h-24 gap-4 12/normal */
.status-tick.is-orange{color:var(--orange)} /* real: tickers coloured by coin */
.status-tick.is-blue{color:var(--info)} /* real */
.status-tick.is-green{color:var(--pos)} /* real */
.status-tick.is-yellow{color:var(--warn)} /* real */
.status-dot{display:inline-grid;place-items:center;width:14px;height:14px;border-radius:50%;background:currentColor;color:inherit;font-size:8px;line-height:1;font-weight:800} /* real 14-16px coin mark */
.status-dot > span{color:var(--bg)} /* synthesised: letter knocked out of the coin colour */
.status-stat{display:inline-flex;align-items:center;gap:4px;height:24px;color:var(--muted);font-size:12px;line-height:16px;font-weight:400;font-variant-numeric:tabular-nums} /* real h-24 gap-4, icon 16 + 12/normal tertiary */
.status-stat-val{color:var(--muted)} /* real */
.status-conn{display:inline-flex;align-items:center;gap:6px;height:var(--h-ctl-sm);padding:0 8px;border-radius:var(--r-1);background:color-mix(in srgb,var(--p-green) 20%,transparent);color:var(--green);font-size:12px;line-height:16px;font-weight:600} /* real: green-tinted connection pill */
.status-conn.is-off{background:var(--neg-soft);color:var(--neg)} /* synthesised */
.status-conn.is-off .live-dot{background:var(--neg)} /* synthesised */
.status-link{display:inline-flex;align-items:center;gap:2px;height:24px;padding:0 8px;border-radius:var(--r-1);color:var(--text-2);font-size:12px;font-weight:400;transition:background var(--dur) var(--ease)} /* real h-24 px-8 gap-2 rounded-4 (Docs) */
.status-link:hover{background:var(--surface-2)} /* real hover:bg-hoverPrimary */

/* Live dot */
.live-dot{position:relative;display:inline-block;flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--green)} /* real */
.live-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:live-dot-pulse 1.6s var(--ease) infinite} /* synthesised */
@keyframes live-dot-pulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(2.6);opacity:0}} /* synthesised */
@media (prefers-reduced-motion:reduce){.live-dot::after{animation:none}} /* synthesised */

/* Page wrapper + header: max-w-1420, px-24, py-24, gap-16 */
.page{display:flex;flex-direction:column;gap:var(--gap);width:100%;max-width:calc(var(--page-max) + 2 * var(--gutter));margin:0 auto;padding:var(--gutter)} /* real */
.page-head{display:flex;align-items:center;gap:24px;flex-wrap:wrap;min-height:var(--h-ctl)} /* real h-32 gap-24 */
.page-actions{display:flex;align-items:center;gap:8px;margin-left:auto} /* real */

/* Big page tabs: 20px/500 -0.02em, tertiary -> primary, gap-24 */
.bigtabs{display:flex;align-items:center;gap:24px;min-width:0} /* real */
.bigtab{display:inline-flex;align-items:center;gap:4px;height:var(--h-ctl);padding:0;border:0;background:transparent;color:var(--muted);font-size:20px;line-height:28px;font-weight:500;letter-spacing:-.02em;text-decoration:none;white-space:nowrap;cursor:pointer;transition:color var(--dur) var(--ease)} /* real sm:text-[20px] font-medium tracking-[-0.02em] */
.bigtab:hover{color:var(--text-2)} /* synthesised */
.bigtab.is-active{color:var(--text)} /* real */
.bigtab:disabled{opacity:.4;cursor:not-allowed} /* synthesised */
.bigtab-count{font-size:12px;line-height:16px;letter-spacing:0;color:var(--muted);font-variant-numeric:tabular-nums} /* synthesised */
.bigtab.is-active .bigtab-count{color:var(--accent)} /* synthesised */

/* --- 6.2 data --- */

/* ----- table (CSS grid, div rows with role=table) ----- */
.tbl{--cols:repeat(4,minmax(0,1fr));--col-gap:12px;display:flex;flex-direction:column;min-width:0;font-size:14px;line-height:20px;color:var(--text)} /* synthesised */
.tbl-head,.tbl-row{display:grid;grid-template-columns:var(--cols);column-gap:var(--col-gap);align-items:center;padding:0 16px} /* synthesised: grid columns from --cols; 16px inset = real panel padding */
.tbl-head{position:sticky;top:0;z-index:1;height:32px;background:var(--surface-2);border-bottom:var(--hair) solid var(--line);font-size:12px;line-height:16px;font-weight:500;color:var(--muted)} /* inferred: 32px header, 12/16 500 muted */
.tbl-th{display:flex;align-items:center;gap:4px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* synthesised */
.tbl-th.is-num{justify-content:flex-end;text-align:right} /* synthesised */
.tbl-th.is-center{justify-content:center} /* synthesised */
.tbl-sort{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer;transition:color var(--dur) var(--ease)} /* synthesised */
.tbl-sort:hover{color:var(--text)} /* synthesised */
.tbl-sort.is-sorted{color:var(--accent)} /* synthesised */
.tbl-sort:focus-visible{outline:var(--hair) solid var(--accent-line);outline-offset:2px;border-radius:var(--r-1)} /* synthesised */
.tbl-sort:disabled{cursor:default;opacity:.5} /* synthesised */
.tbl-body{display:flex;flex-direction:column} /* synthesised */
.tbl-row{height:var(--h-row);border-bottom:var(--hair) solid var(--line);transition:background-color var(--dur) var(--ease)} /* synthesised: dense 32px rows with hairline dividers */
.tbl-row:last-child{border-bottom:0} /* synthesised */
.tbl.is-2line .tbl-row{height:var(--h-row-2)} /* synthesised: two-line rows */
.tbl-row:hover{background:var(--hover)} /* real pattern: hover bg = stroke/60 */
.tbl-row.is-selected{background:var(--accent-soft)} /* synthesised */
.tbl-row.is-link{cursor:pointer;color:inherit;text-decoration:none} /* synthesised: row rendered as <a> */
.tbl-row.is-disabled{opacity:.45;pointer-events:none} /* synthesised */
.tbl-cell{display:flex;align-items:center;min-width:0;gap:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* synthesised */
.tbl-cell.is-num{justify-content:flex-end;text-align:right;font-variant-numeric:tabular-nums} /* synthesised */
.tbl-cell.is-center{justify-content:center} /* synthesised */
.tbl-cell.is-stack{flex-direction:column;align-items:flex-start;justify-content:center;gap:0} /* synthesised: value + sub line */
.tbl-cell.is-num.is-stack{align-items:flex-end} /* synthesised */
.tbl-act{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0} /* synthesised: quick-buy slot */
.tbl-empty{padding:24px 16px;text-align:center;font-size:12px;line-height:18px;color:var(--muted)} /* synthesised */

/* ----- token logo ----- */
.tlogo{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border-radius:var(--r-1);background:var(--logo-1);color:var(--text);font-size:13px;line-height:1;font-weight:600;text-transform:uppercase;user-select:none} /* original: letter placeholder, 32px default */
.tlogo-1{background:var(--logo-1)} /* original */
.tlogo-2{background:var(--logo-2)} /* original */
.tlogo-3{background:var(--logo-3)} /* original */
.tlogo-4{background:var(--logo-4)} /* original */
.tlogo.is-sm{width:20px;height:20px;font-size:10px} /* synthesised */
.tlogo.is-lg{width:48px;height:48px;font-size:18px} /* synthesised */
.tlogo-chain{position:absolute;right:-3px;bottom:-3px;display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:var(--r-pill);background:var(--surface-3);border:var(--hair) solid var(--surface);color:var(--text-2);font-size:7px;line-height:1;font-weight:700} /* original: chain mini-badge */
.tlogo.is-sm .tlogo-chain{width:9px;height:9px;font-size:6px;right:-2px;bottom:-2px} /* synthesised */

/* ----- token cell ----- */
.tok{display:flex;align-items:center;gap:8px;min-width:0;color:inherit;text-decoration:none} /* synthesised */
.tok-text{display:flex;flex-direction:column;min-width:0} /* synthesised */
.tok-line{display:flex;align-items:baseline;gap:6px;min-width:0} /* synthesised */
.tok-sym{font-size:14px;line-height:20px;font-weight:600;color:var(--text);white-space:nowrap;transition:color var(--dur) var(--ease)} /* synthesised */
.tok-name{font-size:12px;line-height:16px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0} /* synthesised */
.tok-meta{display:flex;align-items:center;gap:6px;min-width:0;font-size:11px;line-height:14px;color:var(--muted)} /* synthesised */
a.tok:hover .tok-sym{color:var(--accent)} /* synthesised */
.age{font-size:11px;line-height:14px;font-weight:500;color:var(--pos);font-variant-numeric:tabular-nums;white-space:nowrap} /* synthesised: fresh-token age */
.age.is-old{color:var(--muted)} /* synthesised */
.addr{display:inline-flex;align-items:center;gap:3px;padding:0;border:0;background:none;font-family:var(--font-mono);font-size:11px;line-height:14px;color:var(--muted);cursor:pointer;white-space:nowrap;transition:color var(--dur) var(--ease)} /* synthesised: short mono address + copy */
.addr:hover{color:var(--text)} /* synthesised */
.addr:active{color:var(--accent)} /* synthesised */

/* ----- numbers ----- */
.rank{font-family:var(--font-mono);font-size:12px;line-height:16px;color:var(--muted);font-variant-numeric:tabular-nums} /* synthesised */
.num{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap} /* synthesised */
.pnl{display:inline-flex;flex-direction:column;align-items:flex-end;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text)} /* synthesised */
.pnl.is-pos{color:var(--pos)} /* synthesised */
.pnl.is-neg{color:var(--neg)} /* synthesised */
.pnl.is-left{align-items:flex-start} /* synthesised */
.pnl-val{font-size:14px;line-height:20px;font-weight:500} /* synthesised */
.pnl-pct{font-size:11px;line-height:14px;font-weight:500;opacity:.8} /* synthesised */
.chg{display:inline-flex;align-items:center;gap:2px;font-size:12px;line-height:16px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted)} /* synthesised */
.chg.is-pos{color:var(--pos)} /* synthesised */
.chg.is-neg{color:var(--neg)} /* synthesised */
.chg.is-pill{height:20px;padding:0 6px;border-radius:var(--r-1);background:var(--hover)} /* synthesised */
.chg.is-pill.is-pos{background:var(--pos-soft)} /* synthesised */
.chg.is-pill.is-neg{background:var(--neg-soft)} /* synthesised */

/* ----- badge ----- */
.badge{display:inline-flex;align-items:center;gap:4px;height:18px;padding:0 6px;border-radius:var(--r-1);border:var(--hair) solid transparent;background:var(--surface-3);color:var(--text-2);font-size:11px;line-height:1;font-weight:500;white-space:nowrap;vertical-align:middle} /* synthesised */
.badge-accent{background:var(--accent-soft);color:var(--accent)} /* synthesised */
.badge-pos{background:var(--pos-soft);color:var(--pos)} /* synthesised */
.badge-neg{background:var(--neg-soft);color:var(--neg)} /* synthesised */
.badge-warn{background:color-mix(in srgb,var(--warn) 14%,transparent);color:var(--warn)} /* synthesised */
.badge-info{background:color-mix(in srgb,var(--info) 14%,transparent);color:var(--info)} /* synthesised */
.badge-muted{background:var(--hover);color:var(--muted)} /* synthesised */
.badge.is-outline{background:transparent;border-color:currentColor} /* synthesised */
.badge.is-outline.badge-muted{border-color:var(--line-2)} /* synthesised */

/* ----- stat / kpis ----- */
.stat{display:flex;flex-direction:column;gap:2px;min-width:0} /* synthesised */
.stat-label{display:flex;align-items:center;gap:4px;font-size:12px;line-height:16px;font-weight:500;color:var(--muted)} /* real: 12/16 500 label */
.stat-value{font-size:24px;line-height:36px;font-weight:400;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap} /* real: 24/36 400 -0.48px big number */
.stat-sub{display:flex;align-items:center;gap:6px;font-size:12px;line-height:18px;color:var(--muted)} /* real: 12/18 small */
.kpis{display:flex;align-items:stretch;background:var(--surface);border:var(--hair) solid var(--line);border-radius:var(--r-1);overflow:hidden} /* real: panel = surface + hairline + 4px radius */
.kpis > .kpi{flex:1} /* synthesised */
.kpi{display:flex;flex-direction:column;gap:2px;min-width:0;padding:12px 16px;border-left:var(--hair) solid var(--line)} /* synthesised: hairline-divided cells */
.kpi:first-child{border-left:0} /* synthesised */
.kpi-label{font-size:12px;line-height:16px;font-weight:500;color:var(--muted);white-space:nowrap} /* real */
.kpi-value{font-size:16px;line-height:24px;font-weight:500;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap} /* real: 16/24 500 -0.32px */
.kpi-sub{display:flex;align-items:center;gap:6px;font-size:12px;line-height:16px;color:var(--muted)} /* synthesised */

/* ----- meter ----- */
.meter{position:relative;height:4px;border-radius:var(--r-pill);background:var(--surface-3);overflow:hidden;min-width:24px} /* synthesised: 4px track */
.meter-fill{display:block;height:100%;border-radius:inherit;background:var(--text-2);transition:width var(--dur) var(--ease)} /* synthesised */
.meter.is-pos .meter-fill{background:var(--pos)} /* synthesised */
.meter.is-neg .meter-fill{background:var(--neg)} /* synthesised */
.meter.is-accent .meter-fill{background:var(--accent)} /* synthesised */
.meter-split{display:flex;flex-direction:column;gap:4px;min-width:0} /* synthesised: buy/sell ratio */
.meter-split-bar{display:flex;gap:2px;height:4px} /* synthesised */
.meter-buy{background:var(--pos);border-radius:var(--r-pill) 0 0 var(--r-pill);min-width:2px} /* synthesised */
.meter-sell{background:var(--neg);border-radius:0 var(--r-pill) var(--r-pill) 0;min-width:2px;flex:1} /* synthesised */
.meter-labels{display:flex;justify-content:space-between;gap:8px;font-size:11px;line-height:14px;font-weight:500;font-variant-numeric:tabular-nums} /* synthesised */
.meter-labels .is-buy{color:var(--pos)} /* synthesised */
.meter-labels .is-sell{color:var(--neg)} /* synthesised */
.tbl-cell > .meter,.tbl-cell > .meter-split{flex:1} /* synthesised: bars fill their table cell */
/* --- 6.3 controls --- */

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:var(--h-ctl);padding:0 12px;border:var(--hair) solid transparent;border-radius:var(--r-1);font:inherit;font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;cursor:pointer;user-select:none;text-decoration:none;background:transparent;color:var(--text);transition:color var(--dur) var(--ease),background-color var(--dur) var(--ease),border-color var(--dur) var(--ease),opacity var(--dur) var(--ease)} /* real: 32px, padding 0 12px, radius 4 */
.btn:disabled,.btn.is-disabled{opacity:.45;cursor:not-allowed;pointer-events:none} /* synthesised */
.btn:active{transform:translateY(.5px)} /* synthesised */
.btn-neutral{background:var(--surface-2);border-color:var(--line-2);color:var(--text)} /* synthesised */
.btn-neutral:hover{background:var(--surface-3)} /* synthesised */
.btn-primary{background:var(--accent);color:var(--accent-fg);font-weight:700} /* real: accent bg, bg-coloured text, 700 */
.btn-primary:hover{background:var(--accent-hover)} /* real pattern */
.btn-ghost{background:transparent;color:var(--text-2)} /* synthesised */
.btn-ghost:hover{background:var(--hover);color:var(--text)} /* real pattern: hover = stroke/60 */
.btn-buy{background:var(--pos);color:var(--bg);font-weight:700} /* inferred */
.btn-buy:hover{background:color-mix(in srgb,var(--pos) 86%,var(--text))} /* inferred */
.btn-sell{background:var(--neg);color:var(--bg);font-weight:700} /* inferred */
.btn-sell:hover{background:color-mix(in srgb,var(--neg) 86%,var(--text))} /* inferred */
.btn-buy-soft{background:var(--pos-soft);color:var(--pos)} /* inferred */
.btn-buy-soft:hover{background:color-mix(in srgb,var(--pos) 24%,transparent)} /* inferred */
.btn-sell-soft{background:var(--neg-soft);color:var(--neg)} /* inferred */
.btn-sell-soft:hover{background:color-mix(in srgb,var(--neg) 24%,transparent)} /* inferred */
.btn-sm{height:var(--h-ctl-sm);padding:0 8px;font-size:12px;line-height:16px;gap:4px} /* synthesised */
.btn-lg{height:var(--h-ctl-lg);padding:0 16px;font-size:16px;line-height:24px;gap:8px} /* real: big CTA 40px, 0 16px, 16px */
.btn-pill{border-radius:var(--r-pill)} /* real: primary CTAs are round */
.btn-icon{width:var(--h-ctl);padding:0} /* real: 32x32 icon buttons */
.btn-icon.btn-sm{width:var(--h-ctl-sm)} /* synthesised */
.btn-icon.btn-lg{width:var(--h-ctl-lg)} /* synthesised */
.btn-block{display:flex;width:100%} /* synthesised */

/* Field */
.field{display:flex;align-items:center;gap:8px;height:var(--h-ctl);padding:0 10px;background:var(--surface-2);border:var(--hair) solid var(--line);border-radius:var(--r-1);color:var(--muted);transition:border-color var(--dur) var(--ease),background-color var(--dur) var(--ease)} /* synthesised */
.field:hover{border-color:var(--line-2)} /* synthesised */
.field:focus-within{border-color:var(--accent-line)} /* synthesised */
.field.is-disabled{opacity:.45;pointer-events:none} /* synthesised */
.field.is-sm{height:var(--h-ctl-sm);padding:0 8px;gap:6px} /* synthesised */
.field-icon{display:inline-flex;color:var(--muted);flex-shrink:0} /* synthesised */
.field-input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:13px;line-height:18px} /* synthesised */
.field-input::placeholder{color:var(--muted)} /* synthesised */
.field-input:focus-visible{outline:0} /* synthesised: focus ring lives on .field */
.field-suffix{flex-shrink:0;font-size:12px;line-height:16px;color:var(--muted)} /* synthesised */
.field-label{display:block;margin-bottom:6px;font-size:12px;line-height:16px;font-weight:500;color:var(--text-2)} /* synthesised */

/* Search pill */
.search{display:flex;align-items:center;gap:8px;height:var(--h-ctl);padding:0 6px 0 12px;border:var(--hair) solid var(--line);border-radius:var(--r-pill);background:transparent;color:var(--muted);transition:border-color var(--dur) var(--ease),background-color var(--dur) var(--ease)} /* real: 32px round, hairline */
.search:hover{border-color:var(--line-2)} /* synthesised */
.search:focus-within{border-color:var(--accent-line);background:var(--surface)} /* synthesised */
.search-input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:12px;line-height:16px} /* real: 12px placeholder */
.search-input::placeholder{color:var(--muted)} /* real */
.search-kbd{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:20px;height:20px;padding:0 6px;border:var(--hair) solid var(--line-2);border-radius:var(--r-pill);font-size:12px;line-height:16px;color:var(--muted)} /* real: 20px round bordered chip */

/* Quick buy */
.qbuy{display:inline-flex;align-items:center;gap:6px;height:var(--h-ctl-sm);padding:0 4px 0 6px;background:var(--surface-2);border:var(--hair) solid var(--line);border-radius:var(--r-1);transition:border-color var(--dur) var(--ease)} /* inferred */
.qbuy:focus-within{border-color:var(--accent-line)} /* inferred */
.qbuy-zap{display:inline-flex;color:var(--accent)} /* inferred */
.qbuy-input{width:48px;min-width:0;border:0;outline:0;padding:0;background:transparent;color:var(--text);font-family:var(--font-mono);font-size:12px;line-height:16px} /* inferred */
.qbuy-input::placeholder{color:var(--muted)} /* inferred */
.qbuy-mark{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;border-radius:var(--r-pill);background:var(--logo-1);color:var(--text);font-size:10px;line-height:12px;font-weight:700} /* inferred */
.qbuy-presets{display:inline-flex;gap:4px;margin-left:4px} /* inferred */
.qbuy-preset{height:18px;padding:0 6px;border:var(--hair) solid var(--line);border-radius:var(--r-1);background:transparent;color:var(--text-2);font-family:var(--font-mono);font-size:11px;line-height:14px;cursor:pointer;transition:color var(--dur) var(--ease),background-color var(--dur) var(--ease),border-color var(--dur) var(--ease)} /* inferred */
.qbuy-preset:hover{background:var(--hover);color:var(--text)} /* inferred */
.qbuy-preset.is-active{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)} /* inferred */

/* Underline tabs */
.tabs{display:flex;align-items:stretch;gap:16px;height:var(--h-ctl);border-bottom:var(--hair) solid var(--line)} /* synthesised */
.tab{position:relative;display:inline-flex;align-items:center;gap:6px;padding:0 2px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;line-height:18px;font-weight:500;white-space:nowrap;cursor:pointer;text-decoration:none;transition:color var(--dur) var(--ease)} /* synthesised */
.tab:hover{color:var(--text-2)} /* synthesised */
.tab.is-active{color:var(--text)} /* synthesised */
.tab.is-active::after{content:"";position:absolute;left:0;right:0;bottom:calc(-1 * var(--hair));height:2px;background:var(--accent);border-radius:1px} /* synthesised */
.tab.is-disabled{opacity:.45;pointer-events:none} /* synthesised */
.tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:var(--r-pill);background:var(--surface-3);color:var(--text-2);font-size:10px;line-height:12px;font-weight:600} /* synthesised */
.tab.is-active .tab-count{background:var(--accent-soft);color:var(--accent)} /* synthesised */

/* Segmented */
.seg{display:inline-flex;align-items:center;gap:2px;padding:3px;background:var(--surface-2);border:var(--hair) solid var(--line);border-radius:var(--r-1)} /* synthesised */
.seg-item{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:var(--h-ctl-sm);min-width:32px;padding:0 8px;border:0;border-radius:3px;background:transparent;color:var(--muted);font:inherit;font-size:12px;line-height:16px;font-weight:500;cursor:pointer;text-decoration:none;transition:color var(--dur) var(--ease),background-color var(--dur) var(--ease)} /* synthesised */
.seg-item:hover{color:var(--text)} /* synthesised */
.seg-item.is-active{background:var(--surface-3);color:var(--text)} /* synthesised */

/* Chips */
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px} /* synthesised */
.chip{display:inline-flex;align-items:center;gap:6px;height:var(--h-ctl-sm);padding:0 10px;border:var(--hair) solid var(--line);border-radius:var(--r-pill);background:transparent;color:var(--text-2);font:inherit;font-size:12px;line-height:16px;font-weight:500;white-space:nowrap;cursor:pointer;text-decoration:none;transition:color var(--dur) var(--ease),background-color var(--dur) var(--ease),border-color var(--dur) var(--ease)} /* synthesised */
.chip:hover{background:var(--hover);color:var(--text)} /* real pattern */
.chip.is-active{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)} /* real pattern: accent-soft selection */
.chip.is-disabled{opacity:.45;pointer-events:none} /* synthesised */
.chip-dot{width:8px;height:8px;border-radius:var(--r-pill);background:var(--dot,var(--muted));flex-shrink:0} /* synthesised */
.chip-x{display:inline-flex;margin-right:-4px;color:var(--muted);transition:color var(--dur) var(--ease)} /* synthesised */
.chip-x:hover{color:var(--text)} /* synthesised */

/* Checkbox */
.check{display:inline-flex;align-items:center;gap:8px;color:var(--text-2);font-size:13px;line-height:18px;cursor:pointer;user-select:none} /* synthesised */
.check-box{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;border:var(--hair) solid var(--line-2);border-radius:var(--r-1);background:var(--surface-2);color:transparent;transition:background-color var(--dur) var(--ease),border-color var(--dur) var(--ease),color var(--dur) var(--ease)} /* synthesised */
.check:hover .check-box{border-color:var(--muted)} /* synthesised */
.check.is-on{color:var(--text)} /* synthesised */
.check.is-on .check-box{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)} /* synthesised */
.check.is-disabled{opacity:.45;pointer-events:none} /* synthesised */

/* Toggle */
.toggle{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:transparent;color:var(--text-2);font:inherit;font-size:13px;line-height:18px;cursor:pointer;user-select:none} /* synthesised */
.toggle-track{position:relative;display:inline-block;width:28px;height:16px;flex-shrink:0;border-radius:var(--r-pill);background:var(--surface-3);border:var(--hair) solid var(--line-2);transition:background-color var(--dur) var(--ease),border-color var(--dur) var(--ease)} /* synthesised */
.toggle-knob{position:absolute;top:1px;left:1px;width:12px;height:12px;border-radius:var(--r-pill);background:var(--muted);transition:transform var(--dur) var(--ease),background-color var(--dur) var(--ease)} /* synthesised */
.toggle:hover .toggle-knob{background:var(--text-2)} /* synthesised */
.toggle.is-on{color:var(--text)} /* synthesised */
.toggle.is-on .toggle-track{background:var(--accent);border-color:var(--accent)} /* synthesised */
.toggle.is-on .toggle-knob{transform:translateX(12px);background:var(--accent-fg)} /* synthesised */
.toggle.is-disabled{opacity:.45;pointer-events:none} /* synthesised */

/* Slider */
.slider{display:flex;flex-direction:column;gap:6px;width:100%} /* synthesised */
.slider-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;line-height:16px;color:var(--muted)} /* synthesised */
.slider-value{color:var(--text);font-weight:600} /* synthesised */
.slider-rail{position:relative;height:14px;display:flex;align-items:center} /* synthesised */
.slider-track{position:relative;width:100%;height:4px;border-radius:var(--r-pill);background:var(--surface-3)} /* synthesised */
.slider-fill{position:absolute;left:0;top:0;bottom:0;border-radius:inherit;background:var(--accent)} /* synthesised */
.slider-thumb{position:absolute;top:50%;width:14px;height:14px;border-radius:var(--r-pill);background:var(--accent);box-shadow:0 0 0 3px var(--slider-ring,var(--surface));transform:translate(-50%,-50%);pointer-events:none;transition:background-color var(--dur) var(--ease)} /* synthesised: ring from --slider-ring */
.slider:hover .slider-thumb{background:var(--accent-hover)} /* synthesised */
.slider-ticks{display:flex;justify-content:space-between;font-family:var(--font-mono);font-size:10px;line-height:12px;color:var(--muted)} /* synthesised */
.slider-tick.is-on{color:var(--text-2)} /* synthesised */
.slider-input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;-webkit-appearance:none;appearance:none} /* synthesised: native range overlay */
.slider-input:focus-visible ~ .slider-thumb{box-shadow:0 0 0 3px var(--slider-ring,var(--surface)),0 0 0 5px var(--accent-line)} /* synthesised */
.slider.is-disabled{opacity:.45;pointer-events:none} /* synthesised */

/* Side toggle (Buy/Sell, Long/Short) */
.side{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:3px;background:var(--surface-2);border:var(--hair) solid var(--line);border-radius:var(--r-1)} /* inferred */
.side-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:28px;border:0;border-radius:3px;background:transparent;color:var(--muted);font:inherit;font-size:13px;line-height:18px;font-weight:600;cursor:pointer;transition:color var(--dur) var(--ease),background-color var(--dur) var(--ease)} /* inferred */
.side-btn:hover{color:var(--text)} /* inferred */
.side-btn.is-buy.is-active{background:var(--pos-soft);color:var(--pos)} /* inferred */
.side-btn.is-sell.is-active{background:var(--neg-soft);color:var(--neg)} /* inferred */

/* Leverage */
.lev{display:flex;flex-direction:column;gap:10px} /* inferred */
.lev-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;line-height:16px;font-weight:500;color:var(--text-2)} /* inferred */
.lev-val{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:var(--r-1);background:var(--accent-soft);color:var(--accent);font-family:var(--font-mono);font-size:12px;line-height:16px;font-weight:600} /* inferred */
.lev-presets{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px} /* inferred */
.lev-preset{height:var(--h-ctl-sm);border:var(--hair) solid var(--line);border-radius:var(--r-1);background:transparent;color:var(--text-2);font-family:var(--font-mono);font-size:11px;line-height:14px;cursor:pointer;transition:color var(--dur) var(--ease),background-color var(--dur) var(--ease),border-color var(--dur) var(--ease)} /* inferred */
.lev-preset:hover{background:var(--hover);color:var(--text)} /* inferred */
.lev-preset.is-active{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)} /* inferred */
/* --- 6.4 panels --- */

/* ===== panel ===== */
.panel{position:relative;display:flex;flex-direction:column;min-width:0;background:var(--surface);border:var(--hair) solid var(--line);border-radius:var(--r-1)} /* real: surface + hairline + 4px */
.panel-head{display:flex;align-items:center;gap:8px;height:var(--h-panel-head);padding:0 12px;border-bottom:var(--hair) solid var(--line);flex-shrink:0} /* synthesised: compact 32px header */
.panel-title{font-size:12px;line-height:16px;font-weight:600;color:var(--text);white-space:nowrap} /* synthesised */
.panel-sub{font-size:12px;line-height:16px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* synthesised */
.panel-actions{display:flex;align-items:center;gap:2px;margin-left:auto} /* synthesised */
.panel-act{display:inline-flex;align-items:center;justify-content:center;width:var(--h-ctl-sm);height:var(--h-ctl-sm);border-radius:var(--r-1);color:var(--muted);background:transparent;transition:color var(--dur) var(--ease),background var(--dur) var(--ease)} /* real: 24px status-bar item metrics */
.panel-act:hover{color:var(--text);background:var(--hover)} /* real: hover bg = --hover */
.panel-act.is-active{color:var(--accent);background:var(--accent-soft)} /* real: active = accent text + accent-soft */
.panel-act:disabled{opacity:.4;pointer-events:none} /* synthesised */
.panel-body{padding:16px;min-width:0} /* real: section padding 16px */
.panel-body.is-flush{padding:0} /* synthesised */
.panel-sec{padding:16px;border-top:var(--hair) solid var(--line)} /* real: hairline section dividers */
.panel-sec:first-child{border-top:0} /* synthesised */
.panel-foot{display:flex;align-items:center;gap:8px;padding:8px 12px;border-top:var(--hair) solid var(--line);font-size:12px;line-height:16px;color:var(--muted)} /* synthesised */

/* ===== card ===== */
.card{display:block;position:relative;min-width:0;padding:12px;background:var(--surface);border:var(--hair) solid var(--line);border-radius:var(--r-1);color:inherit;text-decoration:none;transition:border-color var(--dur) var(--ease),background var(--dur) var(--ease)} /* real: panel surface/hairline/radius */
a.card,button.card,.card.is-link{cursor:pointer;text-align:left;width:100%} /* synthesised */
a.card:hover,button.card:hover,.card.is-link:hover{border-color:var(--line-2)} /* synthesised: hover to line-2 */
.card.is-selected{border-color:var(--accent-line);background:color-mix(in srgb,var(--accent) 5%,var(--surface))} /* synthesised */
.card.is-disabled{opacity:.5;pointer-events:none} /* synthesised */

/* ===== token card (discovery / pulse feed) ===== */
.tcard{display:flex;align-items:flex-start;gap:12px;padding:12px;background:var(--surface);border:var(--hair) solid var(--line);border-radius:var(--r-1);color:inherit;text-decoration:none;transition:border-color var(--dur) var(--ease),background var(--dur) var(--ease)} /* inferred */
.tcard:hover{border-color:var(--line-2);background:color-mix(in srgb,var(--surface-2) 50%,var(--surface))} /* inferred */
.tcard-logo{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex-shrink:0;border-radius:var(--r-1);background:var(--logo-1);color:var(--text);font-size:18px;line-height:1;font-weight:600;letter-spacing:-.02em} /* inferred: letter on field colour */
.tcard-logo.is-1{background:var(--logo-1)} /* original */
.tcard-logo.is-2{background:var(--logo-2)} /* original */
.tcard-logo.is-3{background:var(--logo-3)} /* original */
.tcard-logo.is-4{background:var(--logo-4)} /* original */
.tcard-main{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0} /* inferred */
.tcard-top{display:flex;align-items:baseline;gap:6px;min-width:0} /* inferred */
.tcard-sym{font-size:14px;line-height:20px;font-weight:600;color:var(--text);white-space:nowrap} /* inferred */
.tcard-name{font-size:12px;line-height:16px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0} /* inferred */
.tcard-age{margin-left:auto;font-size:12px;line-height:16px;font-weight:500;color:var(--pos);white-space:nowrap} /* inferred */
.tcard-stats{display:flex;align-items:center;gap:12px;font-size:12px;line-height:16px;color:var(--text-2);font-variant-numeric:tabular-nums} /* inferred */
.tcard-stat{display:inline-flex;align-items:center;gap:4px;white-space:nowrap} /* inferred */
.tcard-stat .i{color:var(--muted)} /* inferred */
.tcard-k{color:var(--muted)} /* inferred */
.tcard-bar{position:relative;height:4px;border-radius:var(--r-pill);background:var(--surface-3);overflow:hidden} /* inferred: bonding progress */
.tcard-fill{position:absolute;inset:0 auto 0 0;width:var(--w,0%);border-radius:inherit;background:var(--accent)} /* inferred */
.tcard-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0} /* inferred */
.tcard-pct{font-size:11px;line-height:14px;color:var(--muted);font-variant-numeric:tabular-nums} /* inferred */
.tcard-buy{display:inline-flex;align-items:center;gap:4px;height:var(--h-ctl-sm);padding:0 10px;border-radius:var(--r-pill);background:var(--accent-soft);color:var(--accent);font-size:12px;line-height:16px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums;transition:background var(--dur) var(--ease),color var(--dur) var(--ease)} /* inferred: quick-buy pill */
.tcard-buy:hover{background:var(--accent);color:var(--accent-fg)} /* inferred */
.tcard-buy:active{background:var(--accent-hover);color:var(--accent-fg)} /* inferred */
.tcard-buy:disabled{opacity:.4;pointer-events:none} /* synthesised */

/* ===== prediction market card ===== */
.mkt{display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--surface);border:var(--hair) solid var(--line);border-radius:var(--r-1);transition:border-color var(--dur) var(--ease)} /* inferred */
.mkt:hover{border-color:var(--line-2)} /* inferred */
.mkt-top{display:flex;align-items:flex-start;gap:12px} /* inferred */
.mkt-q{flex:1;min-width:0;font-size:14px;line-height:20px;font-weight:500;color:var(--text)} /* inferred */
.mkt-prob{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0} /* inferred */
.mkt-pct{font-size:20px;line-height:24px;font-weight:500;letter-spacing:-.02em;color:var(--text);font-variant-numeric:tabular-nums} /* inferred */
.mkt-meter{width:48px;height:3px;border-radius:var(--r-pill);background:var(--neg-soft);overflow:hidden} /* inferred */
.mkt-meter-fill{display:block;height:100%;width:var(--w,50%);background:var(--pos);border-radius:inherit} /* inferred */
.mkt-chance{font-size:11px;line-height:14px;color:var(--muted)} /* inferred */
.mkt-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px} /* inferred */
.mkt-yes,.mkt-no{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:var(--h-ctl);border-radius:var(--r-1);font-size:13px;line-height:16px;font-weight:600;font-variant-numeric:tabular-nums;transition:background var(--dur) var(--ease),color var(--dur) var(--ease)} /* inferred: 32px, radius 4 */
.mkt-yes{background:var(--pos-soft);color:var(--pos)} /* inferred */
.mkt-no{background:var(--neg-soft);color:var(--neg)} /* inferred */
.mkt-yes:hover{background:color-mix(in srgb,var(--pos) 24%,transparent)} /* inferred */
.mkt-no:hover{background:color-mix(in srgb,var(--neg) 24%,transparent)} /* inferred */
.mkt-yes.is-selected{background:var(--pos);color:var(--bg)} /* inferred */
.mkt-no.is-selected{background:var(--neg);color:var(--bg)} /* inferred */
.mkt-yes:disabled,.mkt-no:disabled{opacity:.4;pointer-events:none} /* synthesised */
.mkt-meta{display:flex;align-items:center;gap:12px;font-size:12px;line-height:16px;color:var(--muted);font-variant-numeric:tabular-nums} /* inferred */
.mkt-meta-item{display:inline-flex;align-items:center;gap:4px} /* inferred */

/* ===== rewards tier card ===== */
.tier{display:flex;flex-direction:column;gap:16px;padding:16px;background:var(--surface);border:var(--hair) solid var(--line);border-radius:var(--r-1)} /* inferred */
.tier.is-current{border-color:var(--accent-line);box-shadow:inset 0 0 0 var(--hair) var(--accent-line)} /* inferred: accent-line border */
.tier.is-locked{opacity:.6} /* inferred */
.tier-head{display:flex;align-items:center;gap:12px} /* inferred */
.tier-badge{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border-radius:var(--r-pill);background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent-line);color:var(--accent);font-size:16px;line-height:1;font-weight:700} /* inferred: letter emblem in ring */
.tier-name{font-size:16px;line-height:24px;font-weight:500;letter-spacing:-.02em;color:var(--text)} /* real: 16/24 500 -0.02em */
.tier-req{font-size:12px;line-height:16px;color:var(--muted)} /* inferred */
.tier-tag{margin-left:auto;height:20px;padding:0 8px;display:inline-flex;align-items:center;border-radius:var(--r-pill);background:var(--accent-soft);color:var(--accent);font-size:11px;line-height:14px;font-weight:600} /* inferred */
.tier-prog{display:flex;flex-direction:column;gap:6px} /* inferred */
.tier-prog-row{display:flex;justify-content:space-between;font-size:12px;line-height:16px;color:var(--text-2);font-variant-numeric:tabular-nums} /* inferred */
.tier-track{height:6px;border-radius:var(--r-pill);background:var(--surface-3);overflow:hidden} /* inferred */
.tier-fill{display:block;height:100%;width:var(--w,0%);border-radius:inherit;background:var(--accent)} /* inferred */
.tier-perks{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none} /* inferred */
.tier-perk{display:flex;align-items:center;gap:8px;font-size:13px;line-height:18px;color:var(--text-2)} /* inferred */
.tier-perk .i{color:var(--pos)} /* inferred */

/* ===== leaderboard ===== */
.lb{display:flex;flex-direction:column} /* inferred */
.lb-head,.lb-row{display:grid;grid-template-columns:40px minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:12px;padding:0 16px} /* inferred */
.lb-head{height:var(--h-row);font-size:12px;line-height:16px;font-weight:500;color:var(--muted);border-bottom:var(--hair) solid var(--line)} /* inferred */
.lb-row{height:var(--h-row-2);border-bottom:var(--hair) solid var(--line);transition:background var(--dur) var(--ease)} /* inferred */
.lb-row:last-child{border-bottom:0} /* inferred */
.lb-row:hover{background:var(--hover)} /* real: hover bg */
.lb-row.is-me{background:var(--accent-soft)} /* inferred */
.lb-r{text-align:right;font-variant-numeric:tabular-nums} /* inferred */
.lb-rank{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:var(--r-pill);font-size:12px;line-height:1;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums} /* inferred */
.lb-rank.is-1{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 var(--hair) var(--accent-line)} /* inferred: gold-ish = accent */
.lb-rank.is-2{background:color-mix(in srgb,var(--text-2) 14%,transparent);color:var(--text-2);box-shadow:inset 0 0 0 var(--hair) color-mix(in srgb,var(--text-2) 40%,transparent)} /* inferred: silver = text-2 */
.lb-rank.is-3{background:color-mix(in srgb,var(--warn) 14%,transparent);color:var(--warn);box-shadow:inset 0 0 0 var(--hair) color-mix(in srgb,var(--warn) 40%,transparent)} /* inferred: bronze = warn */
.lb-user{display:flex;align-items:center;gap:10px;min-width:0} /* inferred */
.lb-avatar{display:flex;align-items:center;justify-content:center;width:28px;height:28px;flex-shrink:0;border-radius:var(--r-pill);background:var(--surface-3);color:var(--text-2);font-size:11px;line-height:1;font-weight:600} /* inferred */
.lb-name{font-size:13px;line-height:18px;font-weight:500;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* inferred */
.lb-vol{font-size:13px;line-height:18px;color:var(--text-2)} /* inferred */
.lb-pnl{font-size:13px;line-height:18px;font-weight:500} /* inferred */
.lb-pnl.is-pos{color:var(--pos)} /* inferred */
.lb-pnl.is-neg{color:var(--neg)} /* inferred */

/* ===== order book ===== */
.ob{display:flex;flex-direction:column;font-family:var(--font-mono);font-size:11px;line-height:16px;font-variant-numeric:tabular-nums} /* real font-GeistMono 11/16 */
.ob-head,.ob-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:16px;padding:0 16px} /* real px-16 gap-16 */
.ob-head{height:28px;color:var(--muted);font-family:var(--font);font-weight:400} /* real h-28, 11/16 tertiary */
.ob-head > :not(:first-child),.ob-row > :not(:first-child){text-align:right} /* real */
.ob-rows{display:flex;flex-direction:column} /* real */
.ob-rows.is-asks{flex-direction:column-reverse} /* real: best ask nearest spread */
.ob-rows.is-bids{flex-direction:column} /* real: best bid nearest spread */
.ob-row{position:relative;height:22px;color:var(--text);cursor:pointer;transition:background var(--dur) var(--ease)} /* real h-22, values text-primary */
.ob-row:hover{background:var(--hover)} /* real */
.ob-row > span{position:relative} /* real: above depth bar */
.ob-depth{position:absolute;top:1px;left:0;height:20px;width:var(--w,0%);pointer-events:none;opacity:.15} /* real h-20 gradient bar at 15% */
.ob-row.is-ask .ob-depth{background:linear-gradient(to right,transparent,var(--neg))} /* real */
.ob-row.is-bid .ob-depth{background:linear-gradient(to right,transparent,var(--pos))} /* real */
.ob-row.is-ask .ob-price{color:var(--neg)} /* real */
.ob-row.is-bid .ob-price{color:var(--pos)} /* real */
.ob-spread{display:flex;align-items:center;justify-content:center;gap:16px;height:24px;padding:0 16px;background:var(--line-soft);font-family:var(--font);font-size:12px} /* real h-24 bg-primaryStroke/50 centred */
.ob-spread-price{font-family:var(--font-mono);font-size:12px;font-weight:500;color:var(--text)} /* real */
.ob-spread-price.is-pos{color:var(--pos)} /* synthesised */
.ob-spread-price.is-neg{color:var(--neg)} /* synthesised */
.ob-spread-label{color:var(--text)} /* real */

/* ===== trades list ===== */
.trades{display:flex;flex-direction:column;font-size:12px;line-height:16px;font-variant-numeric:tabular-nums} /* inferred */
.trades-head,.trades-row{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:8px;padding:0 12px} /* inferred */
.trades-head{height:var(--h-ctl-sm);color:var(--muted);font-weight:500} /* inferred */
.trades-head > :not(:first-child),.trades-row > :not(:first-child){text-align:right} /* inferred */
.trades-row{height:var(--h-ctl-sm);color:var(--text-2);transition:background var(--dur) var(--ease)} /* inferred: 24px rows */
.trades-row:hover{background:var(--hover)} /* real: hover bg */
.trades-time{font-family:var(--font-mono);font-size:11px;color:var(--muted)} /* inferred */
.trades-row.is-buy .trades-price{color:var(--pos)} /* inferred */
.trades-row.is-sell .trades-price{color:var(--neg)} /* inferred */

/* ===== chart frame & SVG charts ===== */
.chart{display:flex;flex-direction:column;min-width:0;background:var(--surface);border:var(--hair) solid var(--line);border-radius:var(--r-1);overflow:hidden} /* real: panel rules */
.chart-bar{display:flex;align-items:center;gap:2px;height:var(--h-sub);padding:0 8px;border-bottom:var(--hair) solid var(--line)} /* real: 28px sub-bar density */
.chart-title{margin-right:8px;font-size:12px;line-height:16px;font-weight:600;color:var(--text)} /* synthesised */
.chart-int{display:inline-flex;align-items:center;justify-content:center;height:20px;min-width:28px;padding:0 6px;border-radius:var(--r-1);font-size:12px;line-height:16px;font-weight:500;color:var(--muted);transition:color var(--dur) var(--ease),background var(--dur) var(--ease)} /* inferred */
.chart-int:hover{color:var(--text);background:var(--hover)} /* real: hover */
.chart-int.is-active{color:var(--accent);background:var(--accent-soft)} /* real: active = accent text + accent-soft */
.chart-sep{width:var(--hair);height:16px;margin:0 6px;background:var(--line)} /* real: vertical separator */
.chart-tool{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:20px;padding:0 6px;border-radius:var(--r-1);font-size:12px;line-height:16px;color:var(--muted);transition:color var(--dur) var(--ease),background var(--dur) var(--ease)} /* inferred */
.chart-tool:hover{color:var(--text);background:var(--hover)} /* real: hover */
.chart-body{position:relative;flex:1;min-height:0;padding:8px;background-image:linear-gradient(var(--grid) var(--hair),transparent var(--hair)),linear-gradient(90deg,var(--grid) var(--hair),transparent var(--hair));background-size:100% 25%,12.5% 100%;background-position:0 -1px,-1px 0} /* inferred: grid lines */
.chart-body.is-plain{background-image:none} /* synthesised: when the SVG draws its own grid */
.chart-svg{display:block;width:100%;height:auto;overflow:visible} /* synthesised */
.chart-gridline{stroke:var(--grid);stroke-width:1;shape-rendering:crispEdges} /* inferred */
.chart-axis{fill:var(--muted);font-family:var(--font);font-size:11px;font-variant-numeric:tabular-nums} /* inferred: 11px muted labels */
.chart-wick{stroke-width:1;shape-rendering:crispEdges} /* inferred */
.chart-candle.is-up{fill:var(--candle-up);stroke:var(--candle-up)} /* inferred */
.chart-candle.is-down{fill:var(--candle-down);stroke:var(--candle-down)} /* inferred */
.chart-last{stroke-dasharray:2 3;stroke-width:1} /* inferred: last price line */
.chart-last.is-up{stroke:var(--candle-up)} /* inferred */
.chart-last.is-down{stroke:var(--candle-down)} /* inferred */
.chart-tag{font-family:var(--font);font-size:11px;font-weight:600;fill:var(--bg);font-variant-numeric:tabular-nums} /* inferred */
.chart-tagbg.is-up{fill:var(--candle-up)} /* inferred */
.chart-tagbg.is-down{fill:var(--candle-down)} /* inferred */
.chart-fluid{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 64px;flex:1;width:100%;height:100%;min-height:0} /* synthesised: stretching plot + fixed-size axis */
.chart-plot{display:block;width:100%;height:100%;overflow:visible} /* synthesised */
.chart-plot rect{stroke:none} /* synthesised: bodies are fills only, so they stay crisp when stretched */
.chart-yaxis{position:relative;border-left:var(--hair) solid var(--line-soft)} /* synthesised */
.chart-ylabel{position:absolute;left:8px;transform:translateY(-50%);font-size:11px;line-height:14px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap} /* real: 11px axis labels */
.chart-ytag{position:absolute;left:2px;transform:translateY(-50%);padding:1px 5px;border-radius:2px;font-size:11px;line-height:14px;font-weight:600;color:var(--bg);font-variant-numeric:tabular-nums} /* real: last-price tag */
.chart-ytag.is-up{background:var(--candle-up)} /* real */
.chart-ytag.is-down{background:var(--candle-down)} /* real */
.chart-line{fill:none;stroke:var(--accent);stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round} /* inferred */
.chart-fill{fill:color-mix(in srgb,var(--accent) 14%,transparent);stroke:none} /* inferred */
.chart-line.is-pos{stroke:var(--pos)} /* inferred */
.chart-fill.is-pos{fill:color-mix(in srgb,var(--pos) 14%,transparent)} /* inferred */
.chart-line.is-neg{stroke:var(--neg)} /* inferred */
.chart-fill.is-neg{fill:color-mix(in srgb,var(--neg) 14%,transparent)} /* inferred */

/* ===== sparkline ===== */
.spark{display:inline-block;vertical-align:middle;overflow:visible;color:var(--muted)} /* synthesised */
.spark.is-up{color:var(--pos)} /* synthesised: trend colour */
.spark.is-down{color:var(--neg)} /* synthesised */
.spark-line{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke} /* synthesised */
.spark-area{fill:color-mix(in srgb,currentColor 16%,transparent);stroke:none} /* synthesised */

/* ===== donut + legend ===== */
.donut{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0} /* synthesised */
.donut-svg{display:block;transform:rotate(-90deg)} /* synthesised: start at 12 o'clock */
.donut-track{fill:none;stroke:var(--surface-3)} /* synthesised */
.donut-seg{fill:none;stroke:var(--chart-1);transition:opacity var(--dur) var(--ease)} /* synthesised */
.donut-seg.is-1{stroke:var(--chart-1)} /* synthesised */
.donut-seg.is-2{stroke:var(--chart-2)} /* synthesised */
.donut-seg.is-3{stroke:var(--chart-3)} /* synthesised */
.donut-seg.is-4{stroke:var(--chart-4)} /* synthesised */
.donut-seg.is-5{stroke:var(--chart-5)} /* synthesised */
.donut:hover .donut-seg{opacity:.55} /* synthesised */
.donut:hover .donut-seg:hover{opacity:1} /* synthesised */
.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none} /* synthesised */
.donut-value{font-size:16px;line-height:20px;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums} /* synthesised */
.donut-sub{font-size:11px;line-height:14px;color:var(--muted)} /* synthesised */
.legend{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;min-width:0} /* synthesised */
.legend.is-row{flex-direction:row;flex-wrap:wrap;gap:8px 16px} /* synthesised */
.legend-item{display:flex;align-items:center;gap:8px;font-size:12px;line-height:16px;color:var(--text-2)} /* synthesised */
.legend-swatch{width:8px;height:8px;flex-shrink:0;border-radius:2px;background:var(--chart-1)} /* synthesised */
.legend-swatch.is-1{background:var(--chart-1)} /* synthesised */
.legend-swatch.is-2{background:var(--chart-2)} /* synthesised */
.legend-swatch.is-3{background:var(--chart-3)} /* synthesised */
.legend-swatch.is-4{background:var(--chart-4)} /* synthesised */
.legend-swatch.is-5{background:var(--chart-5)} /* synthesised */
.legend-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* synthesised */
.legend-value{color:var(--text);font-weight:500;font-variant-numeric:tabular-nums} /* synthesised */
.legend-pct{min-width:40px;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums} /* synthesised */

/* ===== empty state ===== */
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:40px 16px;text-align:center} /* synthesised */
.empty.is-compact{padding:20px 12px} /* synthesised */
.empty-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin-bottom:8px;border-radius:var(--r-pill);background:var(--surface-2);color:var(--muted)} /* synthesised: 40px round */
.empty-title{font-size:14px;line-height:20px;font-weight:500;color:var(--text)} /* synthesised */
.empty-sub{max-width:320px;font-size:12px;line-height:18px;color:var(--muted)} /* real: small 12/18 */
.empty-action{margin-top:12px} /* synthesised */

/* ===== market stats header ===== */
.mstats{display:flex;align-items:center;gap:16px;min-height:56px;padding:8px 16px;background:var(--surface);border:var(--hair) solid var(--line);border-radius:var(--r-1);overflow-x:auto;scrollbar-width:none} /* inferred */
.mstats::-webkit-scrollbar{display:none} /* inferred */
.mstats-id{display:flex;align-items:center;gap:10px;flex-shrink:0;padding-right:4px} /* inferred */
.mstats-sep{width:var(--hair);height:24px;flex-shrink:0;background:var(--line)} /* real: 1px separator (status bar uses 1x20) */
.mstats-item{display:flex;flex-direction:column;gap:2px;flex-shrink:0} /* inferred */
.mstats-label{font-size:11px;line-height:14px;color:var(--muted);white-space:nowrap} /* inferred */
.mstats-value{font-size:13px;line-height:18px;font-weight:500;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums} /* inferred */
.mstats-value.is-pos{color:var(--pos)} /* inferred */
.mstats-value.is-neg{color:var(--neg)} /* inferred */
.mstats-value.is-big{font-size:18px;line-height:22px;letter-spacing:-.02em} /* inferred: headline price */

/* ===== hero (feature / promo panel, from the yield card) ===== */
.hero{position:relative;display:flex;align-items:center;justify-content:center;padding:24px;overflow:hidden;isolation:isolate} /* real: centred, pad 24 */
.hero-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden} /* real: absolute backdrop */
.hero-wash{position:absolute;inset:0;background-image:linear-gradient(to right bottom,color-mix(in srgb,var(--info) 15%,transparent),transparent,color-mix(in srgb,var(--accent) 12%,transparent))} /* real structure, original colours */
.hero-wash.is-2{background-image:linear-gradient(to left top,color-mix(in srgb,var(--info) 10%,transparent),transparent,color-mix(in srgb,var(--chart-3) 10%,transparent))} /* real structure, original colours */
.hero-glow{position:absolute;border-radius:var(--r-pill);filter:blur(48px)} /* real: big round fills; blur original */
.hero-glow.is-accent{background:var(--accent-soft)} /* original */
.hero-glow.is-info{background:color-mix(in srgb,var(--info) 15%,transparent)} /* original */
.hero-glow.is-violet{background:color-mix(in srgb,var(--chart-3) 12%,transparent)} /* original */
.hero-shape{position:absolute;border:2px solid var(--accent-line);border-radius:30px} /* real: 2px outlined rounded squares */
.hero-shape.is-sm{border-radius:20px;border-color:color-mix(in srgb,var(--chart-3) 25%,transparent)} /* real: r20 square */
.hero-shape.is-ring{border-radius:var(--r-pill);border-color:color-mix(in srgb,var(--info) 25%,transparent)} /* real: outlined circle */
.hero-dot{position:absolute;border-radius:var(--r-pill);background:color-mix(in srgb,var(--accent) 40%,transparent)} /* real: 15-20px dots */
.hero-dot.is-info{background:color-mix(in srgb,var(--info) 40%,transparent)} /* original */
.hero-dot.is-violet{background:color-mix(in srgb,var(--chart-3) 40%,transparent)} /* original */
.hero-ring{position:relative;display:flex;align-items:center;justify-content:center;padding:24px;border-radius:var(--r-1);width:100%} /* real: nested frames pad 24 */
.hero-ring::before{content:"";position:absolute;inset:-3px;border:var(--hair) solid var(--line);border-radius:var(--r-2);pointer-events:none} /* real: concentric hairline frame r8 */
.hero-ring.is-outer{max-width:996px} /* synthesised: frames hug the 900px card (900 + 2x24 + 2x24) */
.hero-ring.is-outer::before{inset:-4px;border-color:color-mix(in srgb,var(--line) 50%,transparent);border-radius:var(--r-3)} /* real: outer frame r12, line/50 */
.hero-ring.is-inner{padding:0} /* real */
.hero-ring.is-inner::before{inset:-2px;border-radius:var(--r-1)} /* real: inner frame r4 */
.hero-card{position:relative;display:flex;flex-direction:column;width:100%;max-width:900px;background:var(--surface);border:var(--hair) solid var(--line);border-radius:var(--r-1)} /* real: surface, hairline, 4px */
.hero-sec{display:flex;flex-direction:column;align-items:flex-start;padding:16px} /* real: pad 16 */
.hero-sec + .hero-sec{border-top:var(--hair) solid var(--line)} /* real: hairline section */
.hero-title{margin:0;color:var(--text-2)} /* real: display headline in lighter text */
.hero-figure{display:inline-flex;align-items:center;gap:8px;font-size:24px;line-height:36px;font-weight:400;letter-spacing:-.02em;background-image:linear-gradient(86deg,var(--pos) 0%,color-mix(in srgb,var(--pos) 50%,var(--info)) 45%,var(--info) 65%,var(--accent) 100%);-webkit-background-clip:text;background-clip:text;color:transparent} /* real: 24/36 gradient text; colours original */
.hero-figure-sub{font-size:14px;line-height:21px;color:var(--muted);-webkit-text-fill-color:var(--muted)} /* real: 14/21 muted */
.hero-copy{margin:0;font-family:var(--font-mono);font-size:12px;line-height:18px;color:var(--muted)} /* real: 12/18 copy */
.hero-link{display:inline-flex;align-items:center;gap:8px;height:24px;margin-top:16px;font-size:12px;line-height:18px;font-weight:500;letter-spacing:-.02em;color:var(--text-2);text-decoration:none;transition:color var(--dur) var(--ease)} /* real: 24px, 12/18 500 */
.hero-link:hover{color:var(--accent)} /* real: hover = accent text */
.hero-foot{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:16px 16px 20px;border-top:var(--hair) solid var(--line)} /* real: pad 16 16 20, CTA bottom-right */

/* --- 6.7 layout (added for the token-dashboard build) --- */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:var(--gap);align-items:start} /* synthesised: main + 360px side rail */
.layout-main,.layout-side{display:flex;flex-direction:column;gap:var(--gap);min-width:0} /* synthesised */
.split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap)} /* synthesised */
.cardgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px} /* synthesised */
.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:var(--h-ctl)} /* synthesised: filter row above a table */
.toolbar > .spacer{flex:1} /* synthesised */
@media (max-width:1100px){.layout{grid-template-columns:minmax(0,1fr)}.split{grid-template-columns:minmax(0,1fr)}} /* synthesised */
/* --- 6.5 gallery --- */
/* Layout helpers for the /gallery verification page only (not for app pages). */
.gal-head{display:flex;align-items:center;gap:var(--gap);padding-bottom:var(--gap);border-bottom:var(--hair) solid var(--line)} /* synthesised */
.gal-brand{display:inline-flex;color:var(--accent)} /* synthesised */
.gal-head-text{display:flex;flex-direction:column;min-width:0} /* synthesised */
.gal-sec{display:flex;flex-direction:column;gap:20px;padding:8px 0 24px;border-bottom:var(--hair) solid var(--line)} /* synthesised */
.gal-sec:last-child{border-bottom:0} /* synthesised */
.gal-title{color:var(--text)} /* synthesised */
.gal-item{display:flex;flex-direction:column;gap:8px;min-width:0} /* synthesised */
.gal-item.is-wide{width:100%} /* synthesised */
.gal-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;min-width:0} /* synthesised */
.gal-row > .gal-item{flex:0 1 auto} /* synthesised */
.gal-stack{display:flex;flex-direction:column;gap:12px;min-width:0} /* synthesised */
.gal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--gap);align-items:start;min-width:0} /* synthesised */
.gal-grid.is-2{grid-template-columns:repeat(2,minmax(0,1fr))} /* synthesised */
.gal-grid.is-3{grid-template-columns:repeat(3,minmax(0,1fr))} /* synthesised */
.gal-grid.is-4{grid-template-columns:repeat(4,minmax(0,1fr))} /* synthesised */
.gal-frame{border:var(--hair) dashed var(--line-2);border-radius:var(--r-1);overflow:hidden} /* synthesised: frame around full-width shell bars */
.gal-frame.gal-stack{gap:0} /* synthesised */
.gal-shell{height:420px;border:var(--hair) dashed var(--line-2);border-radius:var(--r-1);overflow:hidden} /* synthesised: bounded AppShell preview */
.gal-shell .app{height:100%} /* synthesised: shell fills the frame instead of the viewport */
.gal-chart-fill{height:160px} /* synthesised: empty chart body to show the CSS grid */

/* --- 6.8 scanner (pair screener: reference metrics, our own row details) --- */
.bigtabs .bigtab{position:relative} /* synthesised: anchor for .bigtab-new */
.bigtab-new{position:absolute;top:-9px;left:50%;transform:translateX(-50%);padding:0 4px;height:12px;border-radius:var(--r-pill);background:color-mix(in srgb,var(--p-warn) 15%,transparent);color:var(--warn);font-size:8px;line-height:12px;font-weight:700;letter-spacing:.02em} /* real: -top-9 h-12 rounded-full bg-gold/15 flag */
.bigtab-caret{color:var(--text)} /* real ri-arrow-down-s-line text-primary */
.scanbar{display:flex;align-items:center;gap:24px;height:var(--h-ctl);min-width:0} /* real h-32 gap-24 */
.scanbar-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-shrink:0} /* real gap-[8px] */
.scanbar-sep{width:1px;height:20px;background:var(--line);flex-shrink:0} /* real */
.tseg{display:inline-flex;align-items:center;gap:4px} /* real gap-[4px] */
.tseg-item{display:inline-flex;align-items:center;height:var(--h-ctl);padding:0 8px;border-radius:var(--r-1);color:var(--text);font-size:14px;font-weight:500;transition:color var(--dur) var(--ease),background var(--dur) var(--ease)} /* real h-32 px-8 rounded-4 */
.tseg-item:hover{background:color-mix(in srgb,var(--p-line) 60%,transparent)} /* real */
.tseg-item.is-active{color:var(--accent)} /* real: active range in accent */
.scanbar-icon{display:inline-grid;place-items:center;width:var(--h-ctl);height:var(--h-ctl);border-radius:var(--r-pill);background:var(--bg);color:var(--text-2);transition:background var(--dur) var(--ease)} /* real h-8 w-8 rounded-full bg-background text-secondary */
.scanbar-icon:hover{background:var(--line)} /* synthesised */
.scanbar-timer{display:inline-flex;align-items:center;gap:2px;height:var(--h-ctl-sm);padding:0 4px 0 6px;border-radius:var(--r-1);color:var(--muted);transition:background var(--dur) var(--ease)} /* real h-24 pl-6 pr-4 rounded-4, timer 14 tertiary */
.scanbar-timer .i:last-child{color:var(--text-2)} /* real */
.scanbar-timer:hover{background:color-mix(in srgb,var(--p-line) 60%,transparent)} /* synthesised */
.scanbar-pill{display:inline-flex;align-items:center;gap:8px;height:var(--h-ctl);padding:0 12px;border:var(--hair) solid var(--line);border-radius:var(--r-pill);color:var(--text);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;transition:background var(--dur) var(--ease)} /* real h-32 rounded-full border primaryStroke px-12 gap-8 */
.scanbar-pill .i{color:var(--text-2)} /* real wallet/chevron text-secondary */
.scanbar-pill:hover{background:color-mix(in srgb,var(--p-line) 40%,transparent)} /* synthesised */
.scanbar-qb{display:inline-flex;align-items:center;gap:8px;height:var(--h-ctl);min-width:280px;padding-left:12px;border:var(--hair) solid var(--line);border-radius:var(--r-pill);overflow:hidden;white-space:nowrap} /* real h-32 min-w-280 rounded-full border pl-12 */
.scanbar-qb-label{color:var(--muted);font-size:14px;font-weight:500} /* real */
.scanbar-qb-input{flex:1;min-width:0;max-width:60px;border:0;outline:0;background:transparent;color:var(--text);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums} /* real sm:max-w-[60px] */
.scanbar-qb-unit{display:inline-flex;align-items:center;gap:2px;margin-left:auto;padding:0 6px;color:var(--text-2)} /* real coin + chevron */
.scan-head,.scan-row{display:grid;grid-template-columns:var(--scan-cols);align-items:center;padding:0 12px} /* real sm:px-12 */
.scan-head{height:48px;border-bottom:var(--hair) solid var(--line);background:var(--surface);color:var(--muted);font-size:12px;font-weight:500} /* real h-48 border-b primaryStroke bg-backgroundSecondary, 12/500 tertiary */
.scan-th{padding:0 12px;white-space:nowrap} /* real px-12 */
.scan-th.is-act{text-align:right} /* real justify-end */
.scan-body{display:block} /* synthesised */
.scan-row{height:88px;border-bottom:var(--hair) solid var(--line-soft);background:var(--surface);transition:background var(--dur) var(--ease)} /* real h-88 border-b primaryStroke/50 bg-backgroundSecondary */
.scan-row:last-child{border-bottom:0} /* synthesised */
.scan-row:hover{background:color-mix(in srgb,var(--p-line) 40%,var(--p-bg-2))} /* synthesised */
.scan-pair{display:flex;align-items:center;gap:12px;min-width:0;padding:0 12px} /* real gap-12 px-12 */
.scan-id{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;overflow:hidden} /* real flex-col gap-4 */
.scan-name{display:flex;align-items:center;gap:4px;height:21px;min-width:0;white-space:nowrap} /* real h-21 gap-4 */
.scan-sym{flex-shrink:0;font-size:16px;line-height:21px;font-weight:500;letter-spacing:-.02em;color:var(--text)} /* real sm:text-[16px] font-medium tracking-[-0.02em] */
.scan-full{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:21px;font-weight:500;letter-spacing:-.02em;color:var(--muted);transition:color 125ms} /* real text-tertiary 16/500 */
.scan-copy{color:var(--muted);flex-shrink:0;display:inline-flex} /* real ri-file-copy-line 14 */
.scan-copy:hover{color:var(--accent)} /* real hover:text-accent */
.scan-meta{display:flex;align-items:center;gap:8px;height:18px;color:var(--text-2);font-size:12px;line-height:16px;white-space:nowrap;min-width:0;overflow:hidden} /* real h-18 gap-8 */
.scan-age{color:var(--green);font-weight:500} /* real text-primaryGreen */
.scan-soc{display:inline-flex;align-items:center;gap:8px;color:var(--text-2)} /* real 12px icons, gap-8 */
.scan-soc a{color:inherit;display:inline-flex} /* real */
.scan-soc a:hover{color:var(--accent)} /* real */
.scan-mini{display:inline-flex;align-items:center;gap:3px;color:var(--text-2);font-variant-numeric:tabular-nums} /* real */
.scan-num{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:0 12px;font-variant-numeric:tabular-nums;min-width:0} /* real px-12 */
.scan-val{font-size:14px;line-height:18px;font-weight:500;color:var(--text)} /* real h-18 value line */
.scan-sub{font-family:var(--font-mono);font-size:12px;line-height:16px;font-weight:500;color:var(--muted)} /* real h-16 change line */
.scan-sub.is-pos{color:var(--pos)} /* real */
.scan-sub.is-neg{color:var(--neg)} /* real */
.scan-bs{font-family:var(--font-mono);font-size:12px;line-height:16px;font-weight:500;color:var(--muted)} /* real buys / sells */
.scan-bs .pos,.scan-bs .neg{font-weight:500} /* real */
.scan-act{display:flex;justify-content:flex-end;padding:0 12px} /* real px-12 justify-end */
.scan{border:var(--hair) solid var(--line);border-radius:var(--r-1);background:var(--surface);overflow:hidden;--scan-cols:minmax(300px,1.6fr) minmax(96px,1fr) minmax(88px,1fr) minmax(72px,1fr) minmax(104px,1fr) 220px 112px} /* real widths for the shared columns; own risk + action widths */
.scan-av{position:relative;flex-shrink:0;display:grid;place-items:center;width:48px;height:48px;border-radius:10px;background:var(--logo-1);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--p-text) 8%,transparent);color:var(--text);font-size:19px;font-weight:600} /* original: softer 48px tile, no status frame */
.scan-av.is-2{background:var(--logo-2)} /* original */
.scan-av.is-3{background:var(--logo-3)} /* original */
.scan-av.is-4{background:var(--logo-4)} /* original */
.scan-av-chain{position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:16px;height:16px;border-radius:var(--r-pill);background:var(--surface-3);border:2px solid var(--surface);color:var(--text-2);font-size:8px;font-weight:700} /* original: round chain dot */
.scan-risk{display:flex;flex-direction:column;gap:6px;padding:0 12px;min-width:0} /* original: risk cell */
.scan-risk-top{display:flex;align-items:center;gap:6px} /* original */
.scan-risk-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:16px;font-weight:500;color:var(--text-2)} /* original */
.scan-risk-dot{width:8px;height:8px;border-radius:var(--r-pill);background:var(--muted);flex-shrink:0} /* original */
.scan-risk-dot.is-pos{background:var(--pos)} /* original */
.scan-risk-dot.is-warn{background:var(--warn)} /* original */
.scan-risk-dot.is-neg{background:var(--neg)} /* original */
.scan-risk-paid{display:inline-flex;color:var(--green)} /* original: dex-paid shield */
.scan-keys{display:flex;align-items:center;gap:12px;font-family:var(--font-mono);font-size:12px;line-height:16px;color:var(--muted);white-space:nowrap} /* original: two key stats inline */
.scan-key{display:inline-flex;align-items:center;gap:4px;color:var(--text-2)} /* original */
.scan-key.is-neg{color:var(--neg)} /* original */
.scan-buy{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:28px;padding:0 12px;border-radius:var(--r-pill);border:var(--hair) solid var(--accent-line);background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;transition:background var(--dur) var(--ease),color var(--dur) var(--ease)} /* original: compact amount button */
.scan-buy:hover{background:var(--accent);color:var(--accent-fg)} /* original */
@media (max-width:1500px){.scan{--scan-cols:minmax(260px,1.5fr) minmax(88px,1fr) minmax(80px,1fr) minmax(72px,1fr) minmax(96px,1fr) 200px 104px}} /* synthesised */

/* --- 6.9 perps terminal (metrics from the captured perpetuals page; colours, labels and form details our own) --- */
.perp{display:grid;grid-template-columns:minmax(0,1fr) 320px;height:100%;min-height:0;background:var(--bg)} /* real: work area + 320px order form */
.perp-left{display:grid;grid-template-rows:minmax(0,1fr) clamp(220px,33vh,400px);min-width:0;min-height:0;border-right:var(--hair) solid var(--line)} /* real: top area over a positions drawer (~1/3 of the height) */
.perp-top{display:grid;grid-template-columns:minmax(0,1fr) 292px;min-height:0;border-bottom:var(--hair) solid var(--line)} /* real: chart + 292px book column */
.perp-main{display:flex;flex-direction:column;min-width:0;min-height:0} /* real */
.perp-chart{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--surface)} /* real chart well = bg-backgroundSecondary */
.perp-chart .chart{flex:1;border:0;border-radius:0;background:transparent} /* real: no card around the chart */
.perp-chart .chart-body{display:flex;overflow:hidden} /* synthesised: chart fills the well */
.perp-chart .chart-svg{width:100%;height:100%} /* synthesised: scale the SVG to fit (keeps its aspect) */
.perp-book{display:flex;flex-direction:column;min-height:0;overflow:hidden;border-left:var(--hair) solid var(--line)} /* real border-l */
.perp-book .ob{flex:1;min-height:0} /* real: book fills the column */
.perp-book .ob-rows{flex:1;min-height:0;overflow:hidden} /* real: both sides stay anchored at the spread and crop at the outer edge */
.perp-book .ob-row{flex-shrink:0} /* real: rows keep 22px */
.perp-bottom{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:auto} /* real */
.perp-form{display:flex;flex-direction:column;min-height:0;overflow-y:auto} /* real */
.perp-foot{margin-top:auto;padding:8px;text-align:right;font-size:11px;color:var(--muted)} /* real "powered by" corner */

/* market header: h-64 px-16 gap-16 */
.mhead{display:flex;align-items:center;gap:16px;height:64px;min-height:64px;padding:0 16px;border-bottom:var(--hair) solid var(--line)} /* real */
.mhead-sym{display:inline-flex;align-items:center;gap:8px;font-size:18px;line-height:23px;font-weight:500;letter-spacing:-.02em;color:var(--text)} /* real 18/500 */
.mhead-sym .i{color:var(--text-2)} /* real chevron text-secondary */
.mhead-coin{display:grid;place-items:center;width:24px;height:24px;border-radius:var(--r-pill);background:var(--logo-1);color:var(--accent);font-size:12px;font-weight:700} /* original: letter coin */
.mhead-px{display:flex;align-items:baseline;gap:8px;padding-right:8px} /* real items-baseline gap-8 */
.mhead-price{font-size:18px;line-height:23px;font-weight:500;letter-spacing:-.02em;color:var(--text);font-variant-numeric:tabular-nums} /* real */
.mhead-chg{font-size:12px;line-height:16px} /* real 12/16 */
.mhead-chg.is-pos{color:var(--pos)} /* real */
.mhead-chg.is-neg{color:var(--neg)} /* real */
.mhead-stats{display:flex;align-items:center;gap:16px;min-width:0;overflow:hidden} /* real gap-16 */
.mhead-stat{display:flex;flex-direction:column;gap:2px;padding:0 4px;white-space:nowrap} /* real gap-2 px-4 */
.mhead-label{font-size:12px;line-height:16px;color:var(--text-2)} /* real sm:text-[12px] text-secondary */
.mhead-val{font-size:13px;line-height:17px;color:var(--text);font-variant-numeric:tabular-nums} /* real sm:text-[13px] */
.mhead-val.is-pos{color:var(--pos)} /* real funding colour */

/* panel tab bars: h-36 pl-8 pr-16 gap-16, tabs 14/500 with a 2px text-coloured underline */
.ptabs{display:flex;align-items:center;gap:16px;height:36px;min-height:36px;padding:0 16px 0 8px;border-bottom:var(--hair) solid var(--line)} /* real */
.ptabs.is-sm{height:32px;min-height:32px} /* real order-type row */
.ptab{display:inline-flex;align-items:center;gap:4px;height:100%;padding:0 8px;color:var(--text-2);font-size:14px;font-weight:500;white-space:nowrap;transition:color var(--dur) var(--ease)} /* real */
.ptabs.is-sm .ptab{font-size:12px} /* real 12/500 */
.ptab:hover{color:var(--text)} /* real */
.ptab.is-active{color:var(--text);box-shadow:inset 0 -2px 0 var(--text)} /* real border-b-2 text-primary */
.ptab-count{font-size:12px;color:var(--muted)} /* synthesised */
.ptabs-end{margin-left:auto;display:flex;align-items:center;gap:8px} /* real */

/* order form */
.pform{display:flex;flex-direction:column} /* real */
.pform-side{display:flex;align-items:center;height:64px;min-height:64px;padding:12px;border-bottom:var(--hair) solid var(--line)} /* real h-64 p-12 border-b */
.pform-seg{display:flex;flex:1;gap:4px;height:40px;padding:4px;border:var(--hair) solid var(--line-soft);border-radius:var(--r-2)} /* real h-40 p-4 rounded-8 border/50 */
.pform-segbtn{flex:1;height:32px;border-radius:var(--r-1);color:var(--text-2);font-size:12px;line-height:16px;font-weight:500;transition:background var(--dur) var(--ease)} /* real h-32 rounded-4 12px */
.pform-segbtn:hover{background:color-mix(in srgb,var(--p-line) 40%,transparent)} /* real */
.pform-segbtn.is-long.is-active{background:var(--pos);color:var(--bg);font-weight:700} /* real bg-increase, dark bold text */
.pform-segbtn.is-short.is-active{background:var(--neg);color:var(--bg);font-weight:700} /* real */
.pform-lev{display:inline-flex;align-items:center;height:24px;padding:0 6px;border-radius:var(--r-1);border:var(--hair) solid var(--line-soft);background:var(--line-soft);color:var(--text-2);font-size:12px;font-weight:500;transition:background var(--dur) var(--ease)} /* real h-24 rounded-4 bg-primaryStroke/50 */
.pform-lev:hover{background:color-mix(in srgb,var(--p-line-2) 60%,transparent)} /* real */
.pform-body{display:flex;flex-direction:column;gap:12px;padding:16px 16px 24px} /* real p-16 pb-24 */
.pform-amt{display:flex;flex-direction:column;justify-content:space-between;height:64px;padding:8px;border:var(--hair) solid var(--line);border-radius:var(--r-2);background:var(--line-soft);cursor:text;transition:border-color var(--dur) var(--ease),background var(--dur) var(--ease)} /* real h-64 p-8 rounded-8 border bg-primaryStroke/50 */
.pform-amt:focus-within,.pform-amt:hover{border-color:color-mix(in srgb,var(--p-text) 10%,transparent)} /* real */
.pform-amt-top{display:flex;justify-content:space-between;font-size:12px;line-height:16px;color:var(--muted)} /* real 12px tertiary */
.pform-amt-row{display:flex;align-items:center;gap:8px} /* real */
.pform-amt-input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:18px;line-height:23px;font-variant-numeric:tabular-nums} /* real 18/23 */
.pform-amt-unit{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:500;color:var(--text-2)} /* synthesised */
.pform-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;line-height:16px;color:var(--muted)} /* real TP/SL + est. liq row */
.pform-line b{font-weight:400;color:var(--text-2);font-variant-numeric:tabular-nums} /* real */
.pform-cta{padding:0 16px 20px;border-bottom:var(--hair) solid var(--line)} /* real px-16 pb-20 border-b */
.pform-submit{display:flex;align-items:center;justify-content:center;width:100%;height:36px;border-radius:var(--r-pill);color:var(--bg);font-size:14px;line-height:18px;font-weight:700;transition:filter var(--dur) var(--ease)} /* real h-36 rounded-full 14/bold text-background */
.pform-submit.is-long{background:var(--pos)} /* real bg-increase */
.pform-submit.is-short{background:var(--neg)} /* synthesised */
.pform-submit:hover{filter:brightness(.92)} /* real hover:bg-increase/90 */
.pform-acct{display:flex;flex-direction:column;padding:16px 16px 20px} /* real p-16 pb-20 */
.pform-row{display:flex;align-items:center;justify-content:space-between;height:24px;font-size:12px;line-height:16px;color:var(--muted)} /* real h-24 12px tertiary */
.pform-row > :last-child{color:var(--text-2);font-variant-numeric:tabular-nums} /* real text-secondary */
.pform-pill{display:inline-flex;align-items:center;height:24px;padding:0 6px;border-radius:var(--r-1);border:var(--hair) solid var(--line-soft);background:color-mix(in srgb,var(--p-accent) 10%,transparent);color:var(--accent);font-weight:500} /* real accent-tinted margin pill */
.pform-sep{height:1px;margin:4px 0;background:var(--line-soft)} /* real h-1 bg-primaryStroke/50 */

/* positions table */
.ptable{display:flex;flex-direction:column;min-width:900px;flex:1} /* real min-w-1000 table */
.ptable-head,.ptable-row{display:grid;grid-template-columns:var(--cols);align-items:center;gap:8px;padding:0 16px} /* real px-16 */
.ptable-head{height:32px;min-height:32px;font-size:12px;line-height:16px;color:var(--muted)} /* real 12/16 tertiary */
.ptable-th.is-sorted{color:var(--accent)} /* real: sorted column in accent */
.ptable-th.is-end,.ptable-cell.is-end{text-align:right} /* real */
.ptable-row{height:44px;border-top:var(--hair) solid var(--line-soft);font-size:12px;line-height:16px;color:var(--text);font-variant-numeric:tabular-nums;transition:background var(--dur) var(--ease)} /* synthesised row */
.ptable-row:hover{background:var(--hover)} /* synthesised */
.ptable-cell{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* synthesised */
.ptable-sub{display:block;font-size:11px;color:var(--muted)} /* synthesised */
.ptable-close{height:24px;padding:0 8px;border-radius:var(--r-1);border:var(--hair) solid var(--line);color:var(--text-2);font-size:12px;transition:background var(--dur) var(--ease)} /* synthesised */
.ptable-close:hover{background:var(--hover);color:var(--text)} /* synthesised */
.ptable-empty{flex:1;display:grid;place-items:center;font-size:14px;color:var(--text-2)} /* real "No open positions" */
@media (max-width:1280px){.perp{grid-template-columns:minmax(0,1fr) 300px}.perp-top{grid-template-columns:minmax(0,1fr) 260px}} /* synthesised */
