:root {
  --ink: #070a09;
  --ink-2: #0b100e;
  --ink-3: #111a16;
  --ink-4: #18231e;
  --paper: #edf7f1;
  --muted: #7d8c84;
  --dim: #4d5b54;
  --line: rgba(196, 255, 218, .12);
  --line-strong: rgba(196, 255, 218, .22);
  --mint: #22e39a;
  --mint-hi: #85ffcb;
  --mint-faint: rgba(34, 227, 154, .12);
  --mint-glow: rgba(34, 227, 154, .28);
  --red: #ff5c69;
  --yellow: #f4c96b;
  --header-h: 62px;
  --radius: 7px;
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 13px; letter-spacing: -.015em; }
button, input { font: inherit; }
button { border: 0; color: inherit; background: none; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
input { color: inherit; border: 0; outline: 0; background: transparent; }
::selection { background: var(--mint); color: #04271a; }

.page-noise { pointer-events: none; position: fixed; z-index: 30; inset: 0; opacity: .035; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
.cursor-aura { pointer-events: none; position: fixed; z-index: 1; width: 430px; height: 430px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(34, 227, 154, .075) 0, rgba(34, 227, 154, .026) 30%, transparent 68%); opacity: 0; transition: opacity .55s ease; }
body.mouse-active .cursor-aura { opacity: 1; }
#constellation { position: fixed; z-index: 0; inset: 0; pointer-events: none; width: 100%; height: 100%; opacity: .46; }

.app-shell { min-height: 100vh; position: relative; z-index: 2; }
.app-header { height: var(--header-h); display: flex; align-items: center; position: fixed; z-index: 20; top: 0; left: 0; right: 0; padding: 0 28px; border-bottom: 1px solid transparent; transition: background .28s ease, border-color .28s ease, backdrop-filter .28s ease; }
.app-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,9,8,.91), rgba(7,10,9,.68) 53%, rgba(6,9,8,.88)); opacity: .4; }
.app-header.scrolled, body:not([data-screen="landing"]) .app-header { border-color: var(--line); background: rgba(7, 10, 9, .78); backdrop-filter: blur(18px); }
.brand { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 19px 0 0; color: var(--mint); position: relative; }
.brand::after { content: ""; width: 1px; height: 18px; position: absolute; right: 0; background: var(--line); }
.brand-mark { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(34,227,154,.24)); }
.brand-type { color: var(--paper); font-size: 17px; font-weight: 700; letter-spacing: -.075em; }
.route-tabs { display: flex; align-items: center; height: 100%; padding-left: 14px; gap: 2px; }
.route-link { height: 100%; padding: 0 12px; position: relative; color: var(--muted); font-weight: 500; font-size: 12px; transition: color .2s; }
.route-link:hover, .route-link.current { color: var(--paper); }
.route-link.current::after { content: ""; position: absolute; bottom: 0; left: 12px; right: 12px; height: 2px; background: var(--mint); box-shadow: 0 0 8px var(--mint-glow); }
.header-actions { margin-left: auto; height: 100%; display: flex; align-items: center; gap: 8px; }
.direction-menu { height: 100%; position: relative; display: flex; align-items: center; gap: 8px; }
.direction-kicker { color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.direction-trigger { display: flex; align-items: center; gap: 7px; color: #b5c2ba; font-size: 11px; padding: 7px 9px; border: 1px solid transparent; border-radius: 5px; transition: color .18s, border-color .18s, background .18s; }
.direction-trigger:hover, .direction-trigger[aria-expanded="true"] { color: var(--paper); border-color: var(--line); background: rgba(255,255,255,.025); }
.direction-orb { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.chevron { color: var(--muted); font-size: 12px; transform: translateY(-1px); }
.direction-popover { width: 254px; position: absolute; right: 0; top: 54px; padding: 6px; opacity: 0; pointer-events: none; transform: translateY(-5px); background: rgba(12, 17, 15, .98); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 20px 45px rgba(0,0,0,.38); transition: opacity .18s, transform .18s; }
.direction-menu.open .direction-popover { opacity: 1; pointer-events: auto; transform: translateY(0); }
.direction-popover button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; text-align: left; border-radius: 5px; transition: background .17s; }
.direction-popover button:hover { background: var(--mint-faint); }
.direction-popover b { width: 22px; font: 500 10px var(--mono); color: var(--mint); }
.direction-popover span { display: grid; gap: 2px; }
.direction-popover strong { font-size: 12px; font-weight: 600; }
.direction-popover small { color: var(--muted); font: 10px var(--mono); }
.global-search { display: flex; align-items: center; width: 176px; height: 31px; gap: 7px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); text-align: left; font: 11px var(--mono); transition: border-color .2s, background .2s; }
.global-search:hover { color: #afbeb5; border-color: var(--line-strong); background: rgba(255,255,255,.025); }
.global-search kbd { margin-left: auto; color: var(--dim); font: 9px var(--mono); }
.search-glyph { display: inline-block; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-glyph::after { content: ""; width: 5px; height: 1.5px; position: absolute; right: -4px; bottom: -2px; border-radius: 1px; transform: rotate(45deg); background: currentColor; }
.wallet-trigger { height: 31px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(34,227,154,.24); border-radius: 5px; color: #d6f6e6; font: 10px var(--mono); transition: background .2s, box-shadow .2s; }
.wallet-trigger:hover { background: rgba(34,227,154,.1); box-shadow: 0 0 17px rgba(34,227,154,.1); }
.wallet-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.wallet-arrow { color: var(--mint); font-size: 12px; }

.screen { min-height: 100vh; display: none; position: relative; padding-top: var(--header-h); }
.screen.active { display: block; animation: screen-in .35s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* Landing */
.landing-screen { overflow: hidden; min-height: 760px; background: #060908; isolation: isolate; }
.landing-screen::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(ellipse at 52% 56%, rgba(11, 44, 33, .33), transparent 47%), linear-gradient(180deg, #070a09 0, #060a08 78%, #070a09 100%); }
.landing-screen::after { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(7,10,9,.84), rgba(7,10,9,.15) 39%, rgba(7,10,9,.15) 60%, rgba(7,10,9,.71)), linear-gradient(0deg, rgba(7,10,9,.9) 0, transparent 22%, rgba(7,10,9,.12) 90%, rgba(7,10,9,.75)); pointer-events: none; }
.landing-scene { position: absolute; inset: var(--header-h) 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.landing-grid-line { position: absolute; top: var(--header-h); bottom: 42px; width: 1px; background: linear-gradient(transparent, rgba(173,255,213,.1) 16%, rgba(173,255,213,.08) 84%, transparent); z-index: -1; }
.landing-grid-line.left { left: max(28px, calc((100vw - 1312px) / 2)); }
.landing-grid-line.right { right: max(28px, calc((100vw - 1312px) / 2)); }
.hero-copy { width: min(900px, calc(100% - 76px)); min-height: calc(100vh - 181px); margin: 0 auto; padding: clamp(105px, 17vh, 192px) 0 110px; text-align: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font: 500 10px var(--mono); letter-spacing: .145em; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(34,227,154,.12), 0 0 14px var(--mint); animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px rgba(34,227,154,.03), 0 0 16px var(--mint); } }
.hero-copy h1 { max-width: 830px; margin: 22px auto 0; color: #effaf4; font-weight: 650; font-size: clamp(47px, 6.05vw, 86px); line-height: .98; letter-spacing: -.075em; }
.hero-copy h1 span, .hero-copy h1 em { display: block; font-style: normal; }
.hero-copy h1 em { color: transparent; -webkit-text-stroke: 1px rgba(147,255,203,.86); text-shadow: 0 0 28px rgba(34,227,154,.14); }
.hero-subhead { max-width: 470px; margin: 25px auto 0; color: #a3b3aa; font-size: 15px; line-height: 1.55; letter-spacing: -.025em; }
.hero-cta-row { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 34px; }
.cta-primary { min-width: 156px; display: inline-flex; align-items: center; justify-content: space-between; padding: 4px 6px 4px 18px; height: 46px; border-radius: 5px; background: var(--mint); color: #062217; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 1px rgba(156,255,209,.4) inset, 0 8px 25px rgba(34,227,154,.16); transition: transform .18s, box-shadow .18s, background .18s; }
.cta-primary i { display: grid; place-items: center; width: 34px; height: 34px; color: var(--mint); border-radius: 3px; background: #0a3728; font-size: 16px; font-style: normal; transition: transform .2s; }
.cta-primary:hover { transform: translateY(-2px); background: #58f4b6; box-shadow: 0 12px 28px rgba(34,227,154,.25); }
.cta-primary:hover i { transform: translateX(2px); }
.cta-quiet { height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 12px; color: #bbc8c0; font-weight: 500; font-size: 12px; transition: color .18s; }
.cta-quiet:hover { color: var(--paper); }
.play-shape { color: var(--mint); font-size: 9px; }
.hero-proof { display: flex; justify-content: center; gap: 0; margin-top: 40px; color: #718078; font: 10px var(--mono); }
.hero-proof span { padding: 0 13px; border-right: 1px solid rgba(206,255,225,.14); }
.hero-proof span:last-child { border-right: 0; }
.hero-proof i { color: var(--mint); font-style: normal; }
.hero-aside { position: absolute; bottom: 119px; right: max(49px, calc((100vw - 1312px) / 2 + 21px)); width: 173px; display: flex; flex-direction: column; gap: 5px; color: #84938a; font-size: 10px; }
.aside-label { color: #65736b; font: 9px var(--mono); letter-spacing: .08em; }
.hero-aside strong { color: var(--paper); font: 600 23px var(--mono); letter-spacing: -.07em; }
.aside-meter { width: 100%; height: 2px; overflow: hidden; margin: 8px 0 3px; background: rgba(255,255,255,.08); }
.aside-meter i { display: block; width: 71%; height: 100%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.aside-foot { display: flex; justify-content: space-between; font: 9px var(--mono); }
.mint, .positive, .delta.positive { color: var(--mint)!important; }
.negative { color: var(--red)!important; }
.ticker-stage { height: 57px; display: grid; grid-template-columns: minmax(90px, 1fr) minmax(400px, 900px) minmax(90px, 1fr); align-items: center; position: absolute; z-index: 4; left: 0; right: 0; bottom: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7,11,9,.72); backdrop-filter: blur(16px); }
.ticker-label { display: flex; align-items: center; justify-content: center; gap: 7px; height: 100%; border-right: 1px solid var(--line); color: var(--mint); font: 9px var(--mono); letter-spacing: .1em; }
.pulse-icon { width: 13px; height: 6px; position: relative; border-bottom: 1px solid var(--mint); }
.pulse-icon::after { content: ""; width: 4px; height: 4px; position: absolute; left: 4px; bottom: -2px; background: var(--mint); transform: rotate(45deg); box-shadow: 0 0 7px var(--mint); }
.ticker-track { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
.ticker-items { width: max-content; display: flex; align-items: center; animation: ticker 30s linear infinite; }
.ticker-items span { display: inline-flex; align-items: center; gap: 7px; padding: 0 21px; border-right: 1px solid rgba(255,255,255,.08); color: #b6c1bb; font: 10px var(--mono); }
.ticker-items i { color: #e1ede6; font-style: normal; }
.ticker-items em { color: var(--mint); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }
.token-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.token-dot.sol { background: linear-gradient(150deg,#be75ff,#41efce); }.token-dot.eth { background: #788bea; }.token-dot.base { background: #3979fd; }.token-dot.bnb { background: #f2c747; }.token-dot.arb { background: #32a1ee; }
.token-dot.polygon { background: #8247e5; }.token-dot.avalanche { background: #e84142; }.token-dot.optimism { background: #ff0420; }.token-dot.unichain { background: #ff37c7; }.token-dot.monad { background: #836ef9; }.token-dot.celo { background: #fcff52; }.token-dot.megaeth { background: #59616a; }
.ticker-link { justify-self: center; color: #91a098; font: 9px var(--mono); transition: color .2s; }.ticker-link:hover { color: var(--mint); }.ticker-link span { color: var(--mint); }
.landing-footer-mark { height: 42px; position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 11px; color: #4f5d55; font: 9px var(--mono); letter-spacing: .14em; }.landing-footer-mark i { width: 2px; height: 2px; border-radius: 50%; background: var(--mint); }

/* Direction one — Zero Aperture */
.scene-aperture { position: absolute; inset: 0; display: block; opacity: 1; transition: opacity .45s; }
.scene-aperture::before { content: ""; width: min(59vw, 810px); height: min(59vw, 810px); position: absolute; left: 50%; top: 48%; border: 1px solid rgba(118,255,190,.34); border-radius: 49% 51% 48% 52%; transform: translate(-50%,-50%) rotate(-23deg); box-shadow: 0 0 0 32px rgba(35,227,154,.016), 0 0 0 70px rgba(35,227,154,.012), 0 0 120px rgba(34,227,154,.1) inset, 0 0 90px rgba(34,227,154,.07); animation: aperture-pulse 10s ease-in-out infinite; }
.scene-aperture::after { content: ""; width: min(42vw, 558px); height: min(42vw, 558px); position: absolute; left: 50%; top: 48%; border: 1px solid rgba(203,255,224,.2); border-radius: 50%; transform: translate(-50%,-50%) rotate(26deg); box-shadow: 0 0 90px rgba(34,227,154,.09); }
.scene-aperture span { position: absolute; width: 47vw; height: 1px; top: 48%; left: 0; background: linear-gradient(90deg, transparent, rgba(34,227,154,.22)); }.scene-aperture i { position: absolute; width: 47vw; height: 1px; top: 48%; right: 0; background: linear-gradient(90deg, rgba(34,227,154,.22), transparent); }.scene-aperture b { position: absolute; width: 8px; height: 8px; top: calc(48% - 4px); left: calc(50% - 4px); border-radius: 50%; background: var(--mint); box-shadow: 0 0 30px 12px var(--mint); }
@keyframes aperture-pulse { 50% { transform: translate(-50%,-50%) rotate(-17deg) scale(1.024); box-shadow: 0 0 0 39px rgba(35,227,154,.01), 0 0 0 78px rgba(35,227,154,.008), 0 0 150px rgba(34,227,154,.13) inset, 0 0 125px rgba(34,227,154,.11); } }
.scene-tidal, .scene-instrument { opacity: 0; transition: opacity .45s; }

/* Login */
.login-screen { min-height: 100vh; display: none; align-items: center; justify-content: center; overflow: hidden; background: #070a09; }
.login-screen.active { display: flex; }
.login-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 51%, rgba(10,47,33,.2), transparent 42%), linear-gradient(120deg, #070a09, #0a110e 50%, #070a09); }
.login-ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.login-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(34,227,154,.12); border-radius: 50%; transform: translate(-50%,-50%); }.ring-one { width: min(72vw, 930px); height: min(72vw, 930px); box-shadow: 0 0 90px rgba(34,227,154,.065) inset; }.ring-two { width: min(55vw, 706px); height: min(55vw, 706px); border-style: dashed; border-color: rgba(151,255,205,.09); animation: auth-orbit 25s linear infinite reverse; }.login-route { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(34,227,154,.25), transparent); box-shadow: 0 0 14px rgba(34,227,154,.2); }
@keyframes auth-orbit { to { transform: translate(-50%,-50%) rotate(360deg); } }
.auth-stage { width: min(440px, calc(100vw - 48px)); position: relative; z-index: 2; }
.auth-brandline { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 27px; color: var(--mint); font: 9px var(--mono); letter-spacing: .12em; }.auth-brandline svg { width: 23px; height: 23px; }
.auth-track { width: 100%; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.32); background: rgba(10,15,13,.74); backdrop-filter: blur(22px); }
.auth-panel { width: 100%; min-height: 446px; padding: 36px 37px 30px; transition: transform .48s cubic-bezier(.22,.72,.22,1), opacity .45s ease; }.auth-code { position: absolute; inset: 0; transform: translateX(105%); opacity: .2; }.auth-track.code-active .auth-email { transform: translateX(-105%); opacity: .2; }.auth-track.code-active .auth-code { transform: translateX(0); opacity: 1; }
.auth-step { margin: 0 0 20px; color: var(--mint); font: 9px var(--mono); letter-spacing: .12em; }.auth-panel h2 { margin: 0; color: #eaf7f0; font-size: 34px; font-weight: 600; line-height: 1.04; letter-spacing: -.065em; }.auth-panel h2 em { color: transparent; -webkit-text-stroke: .75px rgba(141,255,204,.87); font-style: normal; }.auth-copy { margin: 18px 0 27px; color: #839188; line-height: 1.6; font-size: 12px; }.auth-copy b { color: #c2d1c8; font-family: var(--mono); font-size: 10px; }
.auth-input-shell { display: flex; align-items: center; min-height: 58px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 5px; background: rgba(255,255,255,.018); transition: border-color .18s, background .18s; }.auth-input-shell:focus-within { border-color: var(--mint); background: rgba(34,227,154,.03); }.auth-input-shell span { align-self: flex-start; color: #65736b; font: 9px var(--mono); letter-spacing: .08em; }.auth-input-shell input { width: 100%; align-self: flex-end; min-width: 0; margin: 17px 0 0 -72px; padding-left: 72px; color: #e2eee7; font: 13px var(--mono); }.auth-input-shell input::placeholder { color: #4c5a52; }.auth-input-shell i { color: var(--mint); font-size: 15px; font-style: normal; }
.auth-submit { width: 100%; height: 45px; display: flex; justify-content: space-between; align-items: center; padding: 0 13px 0 16px; margin-top: 11px; border-radius: 5px; color: #062017; background: var(--mint); font-size: 12px; font-weight: 700; box-shadow: 0 8px 18px rgba(34,227,154,.12); transition: transform .18s, background .18s; }.auth-submit:hover { transform: translateY(-1px); background: var(--mint-hi); }.auth-submit i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 3px; color: var(--mint); background: #0b3a2a; font-size: 14px; font-style: normal; }
.auth-security { display: flex; align-items: flex-start; gap: 7px; margin-top: 18px; color: #56645c; font: 9px/1.5 var(--mono); }.lock-glyph { color: var(--mint); font-size: 13px; line-height: 10px; }.auth-wallet-link { margin-top: 20px; color: #91a198; font-size: 10px; text-decoration: underline; text-underline-offset: 4px; }.auth-wallet-link span { color: var(--mint); text-decoration: none; }.back-auth { margin: -8px 0 14px -5px; color: #718078; font: 10px var(--mono); }.back-auth:hover { color: var(--paper); }
.otp-row { display: flex; gap: 7px; margin: 26px 0 8px; }.otp-row input { width: calc((100% - 35px) / 6); height: 49px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(255,255,255,.018); color: var(--mint); text-align: center; font: 600 19px var(--mono); transition: border-color .16s, background .16s; }.otp-row input:focus { border-color: var(--mint); background: rgba(34,227,154,.06); box-shadow: 0 0 0 3px rgba(34,227,154,.07); }.auth-resend { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; color: #65736b; font: 9px var(--mono); }.auth-resend b { color: #9baaa2; }.auth-resend button { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.login-close { position: absolute; top: 21px; right: 25px; z-index: 3; width: 31px; height: 31px; color: #7e8d84; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; line-height: 25px; transition: color .18s, border-color .18s; }.login-close:hover { color: var(--paper); border-color: var(--line-strong); }.login-corner-note { position: absolute; left: 28px; bottom: 23px; display: flex; gap: 14px; color: #48564f; font: 9px var(--mono); letter-spacing: .08em; }.login-corner-note span + span::before { content: ""; display: inline-block; width: 2px; height: 2px; margin: 0 14px 2px 0; border-radius: 50%; background: var(--mint); }

/* Market tape */
.markets-screen { min-height: 100vh; padding: calc(var(--header-h) + 35px) 28px 23px; background: radial-gradient(ellipse at 54% -10%, rgba(19,58,42,.18), transparent 43%), #080b0a; }.markets-screen::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: var(--header-h); height: 270px; background: linear-gradient(180deg, rgba(32,92,64,.07), transparent); border-bottom: 1px solid rgba(174,255,216,.035); }
.market-topline { max-width: 1450px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 0 23px; }.screen-kicker { margin: 0 0 8px; color: var(--mint); font: 9px var(--mono); letter-spacing: .12em; }.market-topline h2 { margin: 0; color: #edf6f0; font-size: 29px; font-weight: 600; line-height: 1; letter-spacing: -.055em; }.blink-cursor { color: var(--mint); font: 500 23px var(--mono); animation: blink 1s steps(2) infinite; } @keyframes blink { 50% { opacity: 0; } }
.market-status { display: flex; align-items: center; gap: 10px; color: #718077; font: 10px var(--mono); }.market-status b { color: #c5d2cb; font-weight: 500; }.market-status button { margin-left: 7px; color: var(--mint); font: 10px var(--mono); }.market-status button i { font-style: normal; }.status-scan { width: 13px; height: 13px; border: 1px solid var(--mint); border-radius: 50%; box-shadow: 0 0 8px rgba(34,227,154,.28); position: relative; }.status-scan::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--mint); animation: breathe 1.9s ease-in-out infinite; }
.market-control-row { max-width: 1450px; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; border-bottom: 1px solid var(--line); }.market-tabs, .time-tabs { display: flex; align-items: center; gap: 20px; }.market-tabs button, .time-tabs button { height: 41px; position: relative; color: #77867d; font-size: 12px; transition: color .16s; }.market-tabs button:hover, .time-tabs button:hover, .market-tabs button.selected, .time-tabs button.selected { color: var(--paper); }.market-tabs button.selected::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: -1px; background: var(--mint); box-shadow: 0 0 9px var(--mint-glow); }.market-tabs b { margin-left: 4px; color: var(--mint); font: 9px var(--mono); }.time-tabs { gap: 4px; }.time-tabs button { height: 25px; padding: 0 9px; border-radius: 3px; color: #74827a; font: 10px var(--mono); }.time-tabs button.selected { background: var(--ink-4); color: #d8e4dd; }
.chain-filter-row { max-width: 1450px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 15px auto 0; }.filter-caption { margin-right: 4px; color: #5c6a62; font: 9px var(--mono); letter-spacing: .09em; }.chain-chip { display: flex; align-items: center; gap: 5px; height: 27px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; color: #77867d; font: 10px var(--mono); transition: color .17s, border-color .17s, background .17s; }.chain-chip:hover { color: #c4d3ca; border-color: var(--line-strong); }.chain-chip.selected { color: #d7f9e7; border-color: rgba(34,227,154,.46); background: rgba(34,227,154,.07); }.chain-mark { width: 14px; height: 14px; display: inline-grid; place-items: center; border-radius: 50%; color: white; font: 700 8px var(--sans); font-style: normal; }.chain-mark.all { color: var(--mint); background: #113d2b; }.chain-mark.base { background: #286ef0; }.chain-mark.bnb { color: #3f2d00; background: #ebbd33; }.chain-mark.eth { background: #6979cf; }.chain-mark.arb { background: #328cdf; }.chain-mark.hood { background: #ca673d; }.chain-mark.sol { color: #191127; background: linear-gradient(160deg,#ad67fa,#59f0cb); }.chain-mark.polygon { background: #8247e5; }.chain-mark.avalanche { background: #e84142; }.chain-mark.optimism { background: #ff0420; font-size: 6px; }.chain-mark.unichain { background: #ff37c7; }.chain-mark.monad { background: #836ef9; }.chain-mark.celo { color: #101410; background: #fcff52; }.chain-mark.megaeth { background: #202428; box-shadow: inset 0 0 0 1px #59616a; }.chain-mark.tiny { width: 11px; height: 11px; font-size: 7px; vertical-align: 1px; }
.market-filters { max-width: 1450px; min-height: 51px; display: flex; align-items: center; gap: 6px; margin: 0 auto; border-bottom: 1px solid var(--line); }.filter-btn { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border: 1px solid transparent; border-radius: 4px; color: #6e7d74; font: 9px var(--mono); }.filter-btn:hover { border-color: var(--line); color: #a8b8ae; }.filter-btn b { color: #b9c8c0; font-weight: 500; }.filter-btn i { color: var(--mint); font-size: 12px; font-style: normal; }.toggle-filter { display: flex; align-items: center; gap: 7px; margin-left: 5px; color: #85938b; font-size: 10px; }.toggle-filter i { width: 18px; height: 10px; padding: 1px; border-radius: 9px; background: #2c3933; transition: background .17s; }.toggle-filter i::after { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: #829087; transition: transform .17s; }.toggle-filter.on i { background: var(--mint); }.toggle-filter.on i::after { transform: translateX(8px); background: #06321e; }.market-spacer { flex: 1; }.dense-toggle { display: flex; align-items: center; gap: 6px; color: #738178; font: 9px var(--mono); }.dense-toggle:hover { color: var(--mint); }.skeleton-icon { width: 13px; height: 9px; display: inline-block; border: 1px dashed currentColor; }
.markets-table-wrap { max-width: 1450px; overflow-x: auto; margin: 0 auto; }.markets-table { width: 100%; min-width: 1210px; border-collapse: collapse; table-layout: fixed; }.markets-table thead { border-bottom: 1px solid var(--line); }.markets-table th { height: 36px; padding: 0 7px; color: #637169; text-align: right; text-transform: uppercase; white-space: nowrap; font: 9px var(--mono); font-weight: 500; letter-spacing: .025em; cursor: pointer; }.markets-table th:not(:last-child):hover { color: #c3d1c9; }.markets-table th.sort-active { color: var(--mint); }.markets-table th.sort-active span { padding-left: 3px; }.markets-table th:first-child, .markets-table th:nth-child(2), .markets-table th:nth-child(12), .markets-table th:nth-child(13) { text-align: left; }.markets-table .star-col { width: 30px; }.markets-table .token-col { width: 228px; }.markets-table th:nth-child(3) { width: 52px; }.markets-table th:nth-child(4) { width: 106px; }.markets-table th:nth-child(5) { width: 72px; }.markets-table th:nth-child(6) { width: 68px; }.markets-table th:nth-child(7) { width: 84px; }.markets-table th:nth-child(8) { width: 86px; }.markets-table th:nth-child(9), .markets-table th:nth-child(10), .markets-table th:nth-child(11) { width: 63px; }.markets-table th:nth-child(12) { width: 125px; }.markets-table .quick-col { width: 77px; }
.markets-table tbody tr { height: 65px; position: relative; border-bottom: 1px solid rgba(202,255,224,.07); transition: background .17s; }.markets-table tbody tr:hover { background: linear-gradient(90deg, rgba(34,227,154,.058), rgba(34,227,154,.015) 46%, transparent); }.markets-table tbody tr:hover::before { content: ""; position: absolute; width: 2px; top: 10px; bottom: 10px; left: 0; background: var(--mint); box-shadow: 0 0 8px var(--mint); }.markets-table td { padding: 0 7px; color: #bbc9c0; text-align: right; vertical-align: middle; font: 10px var(--mono); white-space: nowrap; }.markets-table td:first-child, .markets-table td:nth-child(2), .markets-table td:nth-child(12), .markets-table td:nth-child(13) { text-align: left; }.favorite-star { color: #536158; font-size: 17px; transition: color .16s; }.favorite-star.active, .favorite-star:hover { color: var(--yellow); text-shadow: 0 0 8px rgba(244,201,107,.25); }.market-token { min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left; }.token-avatar { width: 26px; height: 26px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 50%; color: white; font-size: 11px; font-weight: 700; box-shadow: 0 2px 5px rgba(0,0,0,.25); }.token-avatar.nova { background: conic-gradient(from 125deg,#e7fff4,#38c89a 20%,#087151 56%,#28f2a1 80%,#e7fff4); color: #073a29; }.token-avatar.prism { background: linear-gradient(135deg,#8566ff,#e18dff); }.token-avatar.bird { background: linear-gradient(145deg,#ff9a66,#db4037); }.token-avatar.cel { background: linear-gradient(145deg,#ffcc4e,#4560cb); }.token-avatar.loop { background: linear-gradient(145deg,#d4ff57,#42783a); }.token-avatar.meg { background: linear-gradient(145deg,#f156cf,#5729a7); }.token-avatar.orbit { background: linear-gradient(145deg,#4bcbff,#2356c3); }.market-token-info { min-width: 0; display: grid; gap: 3px; }.market-token-name { display: flex; align-items: center; gap: 5px; color: #e1ede6; font-family: var(--sans); font-weight: 650; font-size: 11px; }.market-token-name span { color: #74837a; font-weight: 400; }.market-token-meta { max-width: 195px; display: flex; align-items: center; gap: 5px; color: #536159; overflow: hidden; font: 8px var(--mono); }.market-token-meta .ca { overflow: hidden; text-overflow: ellipsis; }.market-token-meta button { color: #6e7b73; font-size: 10px; }.market-token-meta button:hover { color: var(--mint); }.market-num { color: #b7c5bd; }.market-num strong { color: #deebe3; font-weight: 500; }.pair-value { display: grid; gap: 3px; }.pair-value b { color: #dceae2; font-weight: 500; }.pair-value span { color: #647269; font-size: 8px; }.change-up { color: var(--mint)!important; }.change-down { color: var(--red)!important; }.sparkline { width: 47px; height: 20px; vertical-align: middle; }.audit-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 5px; border: 1px solid rgba(34,227,154,.23); border-radius: 3px; color: #a5f7ce; background: rgba(34,227,154,.055); font: 8px var(--mono); }.audit-pill.warn { color: #ffafb6; border-color: rgba(255,92,105,.2); background: rgba(255,92,105,.06); }.quick-buy { height: 24px; padding: 0 7px; border: 1px solid rgba(34,227,154,.28); border-radius: 3px; color: var(--mint); font: 9px var(--mono); transition: background .17s, color .17s; }.quick-buy:hover { color: #052b1c; background: var(--mint); }.quick-buy.done { color: #052b1c; border-color: var(--mint); background: var(--mint); }.skeleton-row td { height: 65px; }.skeleton-bar { display: block; height: 9px; border-radius: 2px; background: #172a20; }.skeleton-row { animation: nf-skeleton-pulse 1.4s ease-in-out infinite; }.skeleton-bar.short { width: 54%; margin-left: auto; }.skeleton-bar.med { width: 76%; }.skeleton-bar.tiny { width: 35%; }.skeleton-bar.token { width: 190px; } @keyframes shimmer { 50% { opacity: .45; } } @keyframes nf-skeleton-pulse { 50% { opacity: .45; } }
.market-foot { max-width: 1450px; display: flex; align-items: center; gap: 13px; margin: 0 auto; height: 45px; color: #617067; font: 9px var(--mono); }.market-foot b { color: #9baa9f; font-weight: 500; }.online-dot { width: 5px; height: 5px; display: inline-block; margin-right: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 6px var(--mint); }.view-all { margin-left: auto; color: var(--mint); font: 9px var(--mono); }

/* Terminal */
.terminal-screen { min-height: 100vh; padding-top: var(--header-h); background: #080b0a; }.terminal-topbar { height: 64px; display: flex; align-items: center; gap: 19px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(8,11,10,.88); }.back-to-market { padding-right: 18px; border-right: 1px solid var(--line); color: #78867d; font: 10px var(--mono); }.back-to-market:hover { color: var(--mint); }.selected-token-title { display: flex; align-items: center; gap: 8px; }.selected-token-title h2 { margin: 0; color: #edf7f0; font-size: 14px; letter-spacing: -.04em; }.selected-token-title h2 span { color: #718078; font: 10px var(--mono); }.selected-token-title p { display: flex; align-items: center; gap: 4px; margin: 3px 0 0; color: #637169; font: 9px var(--mono); }.copy-ca { color: #718078; font: inherit; }.copy-ca:hover { color: var(--mint); }.copy-ca i { color: var(--mint); font-style: normal; }.token-price-cluster { display: flex; align-items: baseline; gap: 10px; margin-left: 17px; }.price-main { color: #edf7f0; font: 600 17px var(--mono); letter-spacing: -.08em; }.delta { font: 10px var(--mono); }.price-usd { color: #6f7d75; font: 9px var(--mono); }.terminal-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }.icon-button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 4px; color: #7a887f; font-size: 16px; }.icon-button:hover, .icon-button.active { color: var(--mint); border-color: rgba(34,227,154,.34); }.terminal-chain { height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; color: #a3b1a8; font: 9px var(--mono); }.terminal-chain i { color: var(--mint); font-style: normal; }
.terminal-grid { min-height: calc(100vh - 126px); display: grid; grid-template-columns: 209px minmax(490px, 1fr) 322px; }.terminal-left { min-width: 0; border-right: 1px solid var(--line); background: rgba(9,13,11,.55); }.panel-head { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #68766e; font: 9px var(--mono); letter-spacing: .08em; }.panel-add, .hot-filter { color: var(--mint); font: 14px var(--mono); }.hot-filter { color: #839189; font-size: 9px; }.watch-list { padding: 0 6px; }.watch-row { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px 6px; text-align: left; border-left: 1px solid transparent; border-radius: 3px; transition: background .15s, border-color .15s; }.watch-row:hover { background: rgba(255,255,255,.024); }.watch-row.active { border-left-color: var(--mint); background: rgba(34,227,154,.055); }.watch-row span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }.watch-row b { color: #c9d6ce; font-size: 10px; }.watch-row i { color: #65736b; font: 8px var(--mono); }.watch-row em { color: var(--mint); font: 8px var(--mono); font-style: normal; }.left-divider { height: 1px; margin: 13px 12px; background: var(--line); }.hot-list { padding: 0 12px; }.hot-list button { width: 100%; height: 34px; display: flex; align-items: center; gap: 9px; }.hot-list > button > b { color: #55635b; font: 9px var(--mono); }.mini-asset { display: flex; flex: 1; align-items: center; gap: 6px; }.mini-asset .token-avatar { width: 16px; height: 16px; font-size: 7px; }.mini-asset strong { color: #9eaca4; font: 9px var(--mono); }.hot-list em { color: var(--mint); font: 8px var(--mono); font-style: normal; }.left-footnote { display: flex; align-items: center; gap: 6px; position: absolute; bottom: 10px; left: 13px; color: #59665f; font: 8px var(--mono); }.circle-spark { width: 9px; height: 9px; border: 1px solid var(--mint); border-radius: 50%; box-shadow: 0 0 6px rgba(34,227,154,.3); }
.terminal-center { min-width: 0; position: relative; }.chart-toolbar { height: 36px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border-bottom: 1px solid var(--line); }.chart-view-tabs { display: flex; align-items: center; gap: 12px; }.chart-view-tabs button, .range-tabs button, .chart-switch button { color: #6d7c73; font: 9px var(--mono); }.chart-view-tabs button.selected { color: #d4e1d9; }.range-tabs { display: flex; gap: 10px; margin-left: 10px; }.range-tabs button.selected { color: var(--mint); }.chart-switch { display: flex; gap: 1px; padding: 2px; margin-left: auto; border: 1px solid var(--line); border-radius: 3px; }.chart-switch button { padding: 3px 7px; border-radius: 2px; }.chart-switch button.selected { color: #bbccc2; background: #1a2720; }.chart-expand { color: #748279; font-size: 15px; }.chart-meta { height: 21px; display: flex; align-items: center; gap: 13px; padding: 0 13px; color: #66756c; font: 8px var(--mono); }.chart-meta b { color: #d4e1d9; font-weight: 500; }.chart-canvas-wrap { height: 238px; min-height: 200px; position: relative; border-top: 1px solid rgba(212,255,230,.05); border-bottom: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, rgba(13,24,18,.34), rgba(6,9,8,.12)); }.chart-canvas-wrap canvas { display: block; width: 100%; height: 100%; }.chart-watermark { position: absolute; top: 51%; left: 50%; color: rgba(221,255,237,.035); transform: translate(-50%,-50%); font: 600 42px var(--sans); letter-spacing: -.08em; pointer-events: none; }.chart-watermark span { color: rgba(34,227,154,.07); }.chart-tag { position: absolute; right: 0; height: 17px; padding: 3px 7px; color: #7d8a82; font: 8px var(--mono); background: #101a14; }.chart-tag.top { top: 30px; }.chart-tag.current { top: 59%; color: #042d1d; background: var(--mint); }.chart-tag.current i { margin-left: 4px; color: #21684d; font-style: normal; }.chart-crosshair { position: absolute; z-index: 1; width: 1px; height: 100%; left: 64%; top: 0; opacity: .3; pointer-events: none; background: linear-gradient(transparent, rgba(172,255,212,.8) 10%, rgba(172,255,212,.8) 90%, transparent); }.chart-crosshair::after { content: ""; width: 100%; height: 1px; position: absolute; top: 56%; left: -230px; background: rgba(172,255,212,.65); box-shadow: 0 0 7px rgba(34,227,154,.5); }
.token-stat-row { height: 50px; display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }.token-stat-row > div { display: grid; align-content: center; gap: 4px; padding: 0 12px; border-right: 1px solid var(--line); }.token-stat-row > div:last-child { border-right: 0; }.token-stat-row span { color: #637169; font: 8px var(--mono); text-transform: uppercase; }.token-stat-row b { color: #dde9e1; font: 500 11px var(--mono); letter-spacing: -.04em; }.token-stat-row i { color: var(--mint); font: 8px var(--mono); font-style: normal; }.token-stat-row .neutral { color: #839189; }.trade-feed-head { height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--line); }.detail-tabs { display: flex; gap: 16px; height: 100%; }.detail-tabs button { position: relative; color: #6d7a72; font-size: 10px; }.detail-tabs button.selected { color: #dce9e0; }.detail-tabs button.selected::after { content: ""; height: 1px; position: absolute; bottom: 0; left: 0; right: 0; background: var(--mint); }.feed-controls { display: flex; align-items: center; gap: 9px; color: #829087; font: 8px var(--mono); }.feed-controls button { color: #819088; font-size: 11px; }.trades-table-wrap { overflow-x: auto; }.trades-table { width: 100%; border-collapse: collapse; }.trades-table th { height: 23px; padding: 0 12px; color: #647269; text-align: right; font: 8px var(--mono); font-weight: 400; }.trades-table th:first-child, .trades-table th:nth-child(5) { text-align: left; }.trades-table td { height: 23px; padding: 0 12px; color: #aab8b0; text-align: right; font: 9px var(--mono); }.trades-table td:first-child, .trades-table td:nth-child(5) { text-align: left; }.trade-type { display: inline-flex; align-items: center; gap: 5px; }.trade-type i { width: 4px; height: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 5px var(--mint); }.trade-type.sell { color: #f6939e; }.trade-type.sell i { background: var(--red); box-shadow: 0 0 5px var(--red); }.trades-table .wallet-short { color: #7b8a81; }.trades-table .just-now { color: var(--mint); }
.terminal-right { min-width: 0; padding: 10px; border-left: 1px solid var(--line); background: rgba(9,13,11,.68); }.trade-card { padding: 0 12px 13px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(145deg, rgba(23,34,28,.75), rgba(10,15,12,.86)); box-shadow: 0 7px 21px rgba(0,0,0,.14); }.trade-card-head { height: 44px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(213,255,231,.09); }.buy-sell-tabs { height: 100%; display: flex; gap: 18px; }.buy-sell-tabs button { position: relative; color: #738178; font-size: 11px; font-weight: 600; }.buy-sell-tabs button.selected { color: var(--mint); }.buy-sell-tabs button.selected::after { content: ""; height: 2px; bottom: -1px; position: absolute; left: 0; right: 0; background: var(--mint); }.buy-sell-tabs[data-side="sell"] button.selected { color: var(--red); }.settings-button { color: #77857c; font-size: 13px; }.trade-balance { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }.trade-balance > span { color: #647269; font: 8px var(--mono); }.trade-balance button { display: flex; align-items: center; gap: 4px; color: #9eaca4; font: 9px var(--mono); }.trade-balance strong { color: #cbd8d0; font-weight: 500; }.trade-balance em { color: #647269; font-style: normal; }.aggregate-nodes { width: 18px; height: 10px; display: inline-flex; align-items: center; position: relative; }.aggregate-nodes::before, .aggregate-nodes::after { content: ""; width: 6px; height: 1px; position: absolute; left: 6px; background: var(--mint); transform-origin: left; }.aggregate-nodes::before { top: 2px; transform: rotate(26deg); }.aggregate-nodes::after { bottom: 2px; transform: rotate(-26deg); }.aggregate-nodes b { width: 5px; height: 5px; display: block; position: absolute; border-radius: 50%; background: var(--mint); box-shadow: 0 0 4px rgba(34,227,154,.5); }.aggregate-nodes b:nth-child(1) { left: 0; top: 0; }.aggregate-nodes b:nth-child(2) { left: 0; bottom: 0; }.aggregate-nodes b:nth-child(3) { right: 0; top: 2px; }.aggregating .aggregate-nodes { animation: nodes 1s linear infinite; } @keyframes nodes { to { transform: translateX(3px); } }
.trade-input { display: block; position: relative; margin-top: 12px; padding: 9px 10px 6px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(5,9,7,.35); transition: border-color .17s; }.trade-input:focus-within { border-color: rgba(34,227,154,.55); }.trade-input > span { color: #67756c; font: 8px var(--mono); }.trade-input > div { display: flex; align-items: center; gap: 8px; margin-top: 6px; }.trade-input input { width: 100%; min-width: 0; color: #e1eee6; font: 500 18px var(--mono); letter-spacing: -.08em; }.trade-input b { color: #b5c4bb; font: 9px var(--mono); }.trade-input button { padding: 3px 4px; border-radius: 2px; color: var(--mint); background: rgba(34,227,154,.09); font: 8px var(--mono); }.trade-input small { display: block; margin-top: 4px; color: #5f6d65; font: 8px var(--mono); }.preset-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 6px; }.preset-row button { height: 21px; border: 1px solid var(--line); border-radius: 2px; color: #75837a; font: 8px var(--mono); }.preset-row button:hover { color: var(--mint); border-color: rgba(34,227,154,.38); }.trade-swap-icon { width: 20px; height: 20px; position: relative; z-index: 1; display: grid; place-items: center; margin: -2px auto; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--mint); background: #111b16; font: 11px var(--mono); }.receive { margin-top: -2px; }.slippage-row { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: #708077; font: 9px var(--mono); }.slippage-row b { margin-left: auto; margin-right: 7px; color: #a5b5ab; font-weight: 400; }.slippage-row i { color: var(--mint); font-style: normal; }.trade-submit { width: 100%; height: 41px; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 0 12px 0 14px; border-radius: 4px; color: #06271a; background: var(--mint); font-size: 11px; font-weight: 700; box-shadow: 0 5px 17px rgba(34,227,154,.12); transition: background .18s, transform .18s, box-shadow .18s; }.trade-submit:hover { transform: translateY(-1px); background: var(--mint-hi); box-shadow: 0 8px 23px rgba(34,227,154,.23); }.trade-submit i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 3px; color: var(--mint); background: #0b3929; font-style: normal; }.trade-submit.loading span::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border: 1px solid #0a412d; border-top-color: transparent; border-radius: 50%; vertical-align: -1px; animation: spin .75s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }.fee-truth { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 10px; color: #637169; font: 8px var(--mono); }.fee-truth b { color: var(--mint); font-weight: 500; }.fee-truth i { width: 2px; height: 2px; border-radius: 50%; background: #77847b; }
.right-info-panel { margin-top: 11px; border: 1px solid var(--line); border-radius: 6px; background: rgba(12,17,14,.62); }.info-tab-head { height: 35px; display: flex; align-items: center; gap: 15px; padding: 0 11px; border-bottom: 1px solid var(--line); }.info-tab-head button { height: 100%; position: relative; color: #6e7c74; font-size: 9px; }.info-tab-head button.selected { color: #c9d6cf; }.info-tab-head button.selected::after { content: ""; height: 1px; left: 0; right: 0; bottom: 0; position: absolute; background: var(--mint); }.info-content { padding: 5px 11px; }.info-line { height: 25px; display: flex; align-items: center; justify-content: space-between; color: #6c7a72; font: 8px var(--mono); }.info-line > b { color: #b6c5bc; font-weight: 500; }.mono-link { color: #9bacA2; font: 8px var(--mono); }.mono-link i { color: var(--mint); font-style: normal; }.locked-stamp { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; border: 1px solid rgba(34,227,154,.28); border-radius: 2px; color: #a7f7d1!important; background: rgba(34,227,154,.06); }.locked-stamp i { color: var(--mint); font-size: 11px; font-style: normal; }.check-line { color: var(--mint)!important; }.terminal-disclaimer { display: flex; align-items: center; gap: 6px; padding: 10px 3px 0; color: #5e6c64; font: 8px/1.4 var(--mono); }.shield-mini { color: var(--mint); font-size: 12px; }.mobile-trade-dock { display: none; }

/* Overlays, wallet, feedback */
.search-overlay { position: fixed; z-index: 40; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; background: rgba(3,6,4,.72); opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(4px); transition: opacity .2s, visibility .2s; }.search-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }.search-panel { width: min(596px, calc(100vw - 32px)); overflow: hidden; border: 1px solid rgba(180,255,218,.23); border-radius: 8px; background: #0d1310; box-shadow: 0 30px 90px rgba(0,0,0,.58); transform: translateY(-7px) scale(.99); transition: transform .25s cubic-bezier(.2,.8,.2,1); }.search-overlay.open .search-panel { transform: none; }.search-input-line { height: 65px; display: flex; align-items: center; gap: 13px; padding: 0 17px; border-bottom: 1px solid var(--line); color: var(--mint); }.search-input-line input { flex: 1; min-width: 0; color: #e2eee7; font: 13px var(--mono); }.search-input-line input::placeholder { color: #65736a; }.search-input-line kbd { color: #65736a; font: 9px var(--mono); }.search-command-row { display: flex; justify-content: space-between; padding: 11px 15px 5px; color: #65736a; font: 8px var(--mono); letter-spacing: .08em; }.search-results { padding: 0 7px 7px; }.search-group-label { padding: 9px 8px 6px; color: #65736a; font: 8px var(--mono); letter-spacing: .08em; }.search-results button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 4px; text-align: left; transition: background .16s; }.search-results button:hover { background: rgba(34,227,154,.08); }.search-results button > span:nth-child(2) { display: grid; gap: 3px; }.search-results b { color: #e2ede7; font: 600 11px var(--mono); }.search-results small { color: #718077; font: 9px var(--mono); }.search-results em { display: grid; gap: 3px; margin-left: auto; color: #bdcbc3; text-align: right; font: 10px var(--mono); font-style: normal; }.search-results em i { color: var(--mint); font: 9px var(--mono); font-style: normal; }.search-footer { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); color: #637168; font: 8px var(--mono); }.search-footer span:last-child { margin-left: auto; }.search-footer kbd { color: #aab9af; }
.wallet-popover { width: 303px; position: fixed; z-index: 35; top: 55px; right: 28px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 7px; color: #dce8e1; background: rgba(12,18,15,.98); box-shadow: 0 20px 60px rgba(0,0,0,.46); opacity: 0; pointer-events: none; transform: translateY(-7px); transition: opacity .18s, transform .18s; }.wallet-popover.open { opacity: 1; pointer-events: auto; transform: none; }.wallet-popover-head { height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid var(--line); }.wallet-popover-head > div { display: grid; grid-template-columns: 8px 1fr; column-gap: 7px; align-items: center; }.wallet-popover-head .wallet-dot { grid-row: span 2; }.wallet-popover-head b { font-size: 10px; }.wallet-popover-head small { color: #708077; font: 8px var(--mono); }.wallet-popover-head > button { color: #718077; font-size: 18px; }.wallet-total { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-bottom: 1px solid var(--line); }.wallet-total > span { color: #68766e; font: 8px var(--mono); }.wallet-total strong { color: #f0f8f3; font: 600 25px var(--mono); letter-spacing: -.08em; }.wallet-total button { align-self: flex-start; margin-top: 2px; color: var(--mint); font: 9px var(--mono); }.wallet-total i { font-style: normal; }.wallet-address { display: flex; align-items: center; gap: 10px; padding: 13px; border-bottom: 1px solid var(--line); }.wallet-address > div:last-child { display: grid; gap: 4px; }.wallet-address span { color: #69766e; font: 8px var(--mono); }.wallet-address b { color: #c4d2ca; font: 10px var(--mono); }.wallet-address button { justify-self: start; color: var(--mint); font: 8px var(--mono); }.mini-qr { width: 43px; height: 43px; position: relative; overflow: hidden; flex: 0 0 auto; border: 3px solid #bfffe0; background-color: #0f1b15; background-image: repeating-linear-gradient(90deg, transparent 0 4px, #bfffe0 4px 7px, transparent 7px 11px), repeating-linear-gradient(0deg, transparent 0 5px, #bfffe0 5px 8px, transparent 8px 12px); }.mini-qr::before, .mini-qr::after { content:""; width: 10px; height: 10px; position: absolute; border: 2px solid #0f1b15; outline: 2px solid #bfffe0; background: #bfffe0; }.mini-qr::before { top: 4px; left: 4px; }.mini-qr::after { bottom: 4px; right: 4px; }.wallet-balances { display: grid; grid-template-columns: 1fr 1fr; padding: 5px 13px; border-bottom: 1px solid var(--line); }.wallet-balances div { display: flex; justify-content: space-between; padding: 6px 4px; color: #718077; font: 8px var(--mono); }.wallet-balances b { color: #a9b8af; font-weight: 400; }.wallet-empty { display: flex; align-items: center; gap: 9px; margin: 11px 13px; padding: 9px; border: 1px dashed rgba(166,255,210,.15); border-radius: 4px; }.empty-orbit { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--mint); border-radius: 50%; color: var(--mint); font: 15px var(--mono); }.wallet-empty b { color: #c1d1c7; font-size: 9px; }.wallet-empty p { margin: 3px 0 0; color: #6e7c73; font: 8px/1.4 var(--mono); }.wallet-popover-actions { display: flex; gap: 5px; padding: 0 13px 13px; }.wallet-popover-actions button { flex: 1; height: 29px; border: 1px solid var(--line); border-radius: 3px; color: #9dacA3; font: 9px var(--mono); }.wallet-popover-actions button:last-child { color: #062a1b; border-color: var(--mint); background: var(--mint); }.wallet-popover-actions i { color: var(--mint); font-style: normal; }.wallet-popover-actions button:last-child i { color: #0b432e; }
.wallet-addresses { border-bottom: 1px solid var(--line); }
.wallet-addresses .wallet-address { border-bottom-color: rgba(157, 190, 172, .08); }
.wallet-addresses .wallet-address:last-child { border-bottom: 0; }
.wallet-chain-orb { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(166,255,210,.2); border-radius: 50%; color: #c9ffe5; background: radial-gradient(circle at 35% 30%, rgba(112,255,190,.2), rgba(8,15,11,.82) 66%); box-shadow: inset 0 0 18px rgba(40,230,150,.08), 0 0 18px rgba(40,230,150,.06); font: 500 17px var(--mono); }
.wallet-chain-orb.solana { color: #d8d1ff; border-color: rgba(166,142,255,.28); background: radial-gradient(circle at 35% 30%, rgba(155,126,255,.2), rgba(8,15,11,.84) 68%); box-shadow: inset 0 0 18px rgba(128,95,255,.09), 0 0 18px rgba(128,95,255,.07); }
.wallet-address[data-wallet-address="solana"] b { max-width: 202px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-region { position: fixed; z-index: 50; right: 22px; bottom: 22px; display: grid; gap: 8px; width: min(365px, calc(100vw - 32px)); }.toast { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; color: #dceae2; background: rgba(13,20,16,.97); box-shadow: 0 14px 45px rgba(0,0,0,.4); animation: toast-in .35s cubic-bezier(.2,.8,.2,1) both; }.toast::before { content: ""; height: 2px; position: absolute; left: 0; right: 0; top: 0; background: var(--mint); box-shadow: 0 0 10px var(--mint); }.receipt-toast { display: flex; align-items: flex-start; gap: 10px; padding: 14px; }.toast-mark { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #052719; background: var(--mint); box-shadow: 0 0 16px rgba(34,227,154,.35); }.receipt-toast div:nth-child(2) { display: grid; gap: 4px; }.receipt-toast span, .bridge-head span { color: var(--mint); font: 8px var(--mono); letter-spacing: .08em; }.receipt-toast b { font-size: 11px; }.receipt-toast p { margin: 0; color: #97a69d; font: 9px var(--mono); }.toast-close { position: absolute; top: 8px; right: 9px; color: #7b897f; font-size: 16px; }.bridge-toast { padding: 13px; }.bridge-head { display: flex; align-items: center; justify-content: space-between; }.bridge-head > span { display: flex; align-items: center; gap: 6px; }.bridge-toast > strong { display: block; margin-top: 9px; font-size: 11px; }.bridge-route { display: flex; align-items: center; margin: 14px 12px 6px; }.bridge-node { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font: 700 9px var(--sans); }.bridge-node.base { background: #286ef0; }.bridge-node.arb { background: #328cdf; }.bridge-node.bnb { color: #483700; background: #ebbd33; }.route-path { height: 1px; flex: 1; position: relative; background: #33443a; }.route-path b { width: 18%; height: 1px; display: block; background: var(--mint); box-shadow: 0 0 6px var(--mint); animation: route-run 1.4s linear infinite; }.route-path.active b { animation-delay: .6s; } @keyframes route-run { from { transform: translateX(0); } to { transform: translateX(420%); } }.bridge-state { display: flex; justify-content: space-between; margin: 7px 2px 0; color: #75827a; font: 8px var(--mono); }.bridge-state b { color: var(--mint); }.spinner-dot { width: 7px; height: 7px; display: inline-block; border: 1px solid var(--mint); border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: spin .6s linear infinite; } @keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
[data-tooltip] { position: relative; } [data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 60; right: 0; bottom: calc(100% + 7px); width: max-content; max-width: 150px; padding: 5px 6px; opacity: 0; pointer-events: none; border: 1px solid var(--line); border-radius: 3px; color: #c3d1c8; background: #101812; box-shadow: 0 7px 18px rgba(0,0,0,.25); font: 8px var(--mono); transition: opacity .15s; } [data-tooltip]:hover::after { opacity: 1; }

/* Direction two — Tidal Liquidity */
body[data-direction="tidal"] { --line: rgba(162, 255, 221, .145); --mint: #31e8ab; --mint-hi: #9affd9; --mint-faint: rgba(49,232,171,.11); --mint-glow: rgba(49,232,171,.3); }
body[data-direction="tidal"] .scene-aperture { opacity: 0; } body[data-direction="tidal"] .scene-tidal { position: absolute; inset: 0; display: block; opacity: 1; background-image: linear-gradient(90deg, rgba(5,9,8,.94), rgba(5,9,8,.22) 45%, rgba(5,9,8,.17)), linear-gradient(0deg, rgba(5,9,8,.72), transparent 46%), url("assets/nofee-aurora-field.png"); background-size: cover; background-position: center; transform: scale(1.035); animation: tidal-drift 15s ease-in-out infinite alternate; filter: saturate(.94) brightness(.95); } @keyframes tidal-drift { to { transform: scale(1.09) translate(-1.2%, .8%); filter: saturate(1.1) brightness(1.08); } }
body[data-direction="tidal"] .landing-screen::after { background: linear-gradient(90deg, rgba(7,10,9,.63), rgba(7,10,9,.03) 55%, rgba(7,10,9,.38)), linear-gradient(0deg, rgba(7,10,9,.94) 0, transparent 30%, rgba(7,10,9,.18)); } body[data-direction="tidal"] .hero-copy { text-align: left; width: min(1190px, calc(100% - 76px)); margin: 0 auto; padding-left: 4px; } body[data-direction="tidal"] .hero-copy h1 { max-width: 695px; margin-left: 0; } body[data-direction="tidal"] .hero-subhead { margin-left: 0; } body[data-direction="tidal"] .hero-cta-row, body[data-direction="tidal"] .hero-proof { justify-content: flex-start; } body[data-direction="tidal"] .hero-copy h1 em { -webkit-text-stroke: 0; color: var(--mint); text-shadow: 0 0 35px rgba(49,232,171,.25); } body[data-direction="tidal"] .hero-aside { right: max(49px, calc((100vw - 1312px) / 2 + 21px)); bottom: 122px; padding: 14px; border: 1px solid rgba(179,255,222,.16); border-radius: 7px; background: rgba(6,19,15,.33); backdrop-filter: blur(14px); } body[data-direction="tidal"] .ticker-stage { background: rgba(5,17,13,.59); }
body[data-direction="tidal"] .login-screen::before { background: linear-gradient(90deg, rgba(6,10,8,.74), rgba(6,10,8,.18)), url("assets/nofee-aurora-field.png") center / cover; opacity: .96; } body[data-direction="tidal"] .auth-track { background: rgba(5,16,12,.68); } body[data-direction="tidal"] .login-route { left: 34%; width: 42%; height: 1px; top: 52%; bottom: auto; background: linear-gradient(90deg, transparent, rgba(34,227,154,.7), transparent); } body[data-direction="tidal"] .ring-one { border-color: rgba(34,227,154,.23); }
body[data-direction="tidal"] .markets-screen { background: radial-gradient(ellipse at 79% -3%, rgba(15,101,70,.29), transparent 37%), #070b09; } body[data-direction="tidal"] .markets-table tbody tr:hover { background: linear-gradient(90deg, rgba(34,227,154,.09), rgba(34,227,154,.02) 62%, transparent); box-shadow: inset 0 0 20px rgba(34,227,154,.035); } body[data-direction="tidal"] .terminal-screen { background: radial-gradient(ellipse at 60% 0, rgba(11,69,46,.19), transparent 32%), #070b09; } body[data-direction="tidal"] .chart-canvas-wrap { background: radial-gradient(ellipse at 73% 30%, rgba(19,102,70,.14), transparent 50%), linear-gradient(180deg, rgba(13,34,25,.42), rgba(6,9,8,.08)); }

/* Direction three — NoFee Instrument */
body[data-direction="instrument"] { --mint: #80f0a8; --mint-hi: #b8ffd2; --mint-faint: rgba(128,240,168,.095); --mint-glow: rgba(128,240,168,.22); --line: rgba(217,255,226,.14); --radius: 2px; }
body[data-direction="instrument"] .scene-aperture, body[data-direction="instrument"] .scene-tidal { opacity: 0; } body[data-direction="instrument"] .scene-instrument { display: block; position: absolute; inset: 0; opacity: 1; background-image: linear-gradient(rgba(133,255,188,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(133,255,188,.045) 1px, transparent 1px), radial-gradient(ellipse at 57% 48%, rgba(83,224,132,.09), transparent 34%); background-size: 42px 42px, 42px 42px, auto; } body[data-direction="instrument"] .scene-instrument::before { content: "0"; position: absolute; right: 7vw; top: 51%; color: transparent; transform: translateY(-50%); -webkit-text-stroke: 1px rgba(160,255,201,.22); font: 600 min(55vw, 790px)/.75 var(--mono); letter-spacing: -.18em; } body[data-direction="instrument"] .scene-instrument::after { content: "MARKET ACCESS // NO MIDDLEMAN"; position: absolute; bottom: 12%; left: 7%; color: rgba(144,255,192,.3); font: 9px var(--mono); letter-spacing: .16em; } body[data-direction="instrument"] .scan-line { height: 1px; position: absolute; left: 0; right: 0; background: linear-gradient(90deg, transparent, rgba(130,255,183,.32), transparent); animation: scan 7s linear infinite; }.scan-line.a { top: 26%; }.scan-line.b { top: 62%; animation-delay: -3s; }.scan-line.c { top: 78%; animation-delay: -5s; } @keyframes scan { from { transform: translateX(-30%); } to { transform: translateX(30%); } }.instrument-readout { position: absolute; right: 7vw; top: 19%; color: rgba(177,255,207,.42); font: 9px var(--mono); letter-spacing: .12em; }
body[data-direction="instrument"] .landing-screen::after { background: linear-gradient(90deg, rgba(7,10,9,.86), rgba(7,10,9,.1) 48%, rgba(7,10,9,.43)), linear-gradient(0deg, rgba(7,10,9,.88), transparent 32%, rgba(7,10,9,.4)); } body[data-direction="instrument"] .hero-copy { width: min(1200px, calc(100% - 76px)); margin: 0 auto; padding-left: 2px; text-align: left; } body[data-direction="instrument"] .hero-copy h1 { max-width: 800px; margin-left: 0; font-family: var(--mono); font-size: clamp(39px, 5.25vw, 72px); line-height: 1.04; letter-spacing: -.095em; } body[data-direction="instrument"] .hero-copy h1 em { -webkit-text-stroke: 0; color: var(--mint); } body[data-direction="instrument"] .hero-subhead { max-width: 425px; margin-left: 0; font: 12px/1.7 var(--mono); } body[data-direction="instrument"] .hero-cta-row, body[data-direction="instrument"] .hero-proof { justify-content: flex-start; } body[data-direction="instrument"] .cta-primary, body[data-direction="instrument"] .cta-primary i { border-radius: 1px; } body[data-direction="instrument"] .hero-aside { display: none; } body[data-direction="instrument"] .ticker-stage { border-radius: 0; background: rgba(6,9,8,.86); }
body[data-direction="instrument"] .login-screen::before { background-image: linear-gradient(rgba(135,255,188,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(135,255,188,.04) 1px, transparent 1px), radial-gradient(ellipse at 50% 50%, rgba(22,82,48,.2), transparent 38%); background-size: 38px 38px, 38px 38px, auto; } body[data-direction="instrument"] .login-ring { border-radius: 0; transform: translate(-50%,-50%) rotate(45deg); } body[data-direction="instrument"] .auth-track, body[data-direction="instrument"] .auth-input-shell, body[data-direction="instrument"] .auth-submit, body[data-direction="instrument"] .otp-row input { border-radius: 1px; } body[data-direction="instrument"] .auth-panel h2 { font-family: var(--mono); font-size: 28px; } body[data-direction="instrument"] .auth-panel h2 em { color: var(--mint); -webkit-text-stroke: 0; }
body[data-direction="instrument"] .markets-screen { background-image: linear-gradient(rgba(135,255,188,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(135,255,188,.018) 1px, transparent 1px); background-size: 48px 48px; } body[data-direction="instrument"] .market-topline h2 { font-family: var(--mono); font-size: 25px; } body[data-direction="instrument"] .markets-table tbody tr { height: 56px; } body[data-direction="instrument"] .markets-table tbody tr:hover { background: rgba(128,240,168,.045); } body[data-direction="instrument"] .market-token-meta { display: none; } body[data-direction="instrument"] .terminal-screen { background-image: linear-gradient(rgba(135,255,188,.016) 1px, transparent 1px), linear-gradient(90deg, rgba(135,255,188,.016) 1px, transparent 1px); background-size: 40px 40px; } body[data-direction="instrument"] .terminal-grid { grid-template-columns: 188px minmax(490px,1fr) 335px; } body[data-direction="instrument"] .terminal-left, body[data-direction="instrument"] .terminal-right, body[data-direction="instrument"] .trade-card, body[data-direction="instrument"] .right-info-panel { border-radius: 0; } body[data-direction="instrument"] .chart-canvas-wrap { background-image: linear-gradient(rgba(150,255,197,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(150,255,197,.045) 1px, transparent 1px); background-size: 48px 40px; background-color: rgba(3,8,5,.44); } body[data-direction="instrument"] .chart-watermark { font-family: var(--mono); font-size: 27px; letter-spacing: .14em; } body[data-direction="instrument"] .trade-card::before { content: "ORDER TICKET // 01"; display: block; padding-top: 10px; color: var(--mint); font: 8px var(--mono); letter-spacing: .1em; }

@media (max-width: 1100px) { .direction-kicker { display: none; }.global-search { width: 142px; }.hero-aside { display: none; }.terminal-grid { grid-template-columns: 177px minmax(450px,1fr) 300px; }.terminal-left { font-size: 11px; }.chart-canvas-wrap { height: 225px; }.token-stat-row > div { padding: 0 8px; }.token-stat-row b { font-size: 10px; } }
@media (max-width: 850px) { :root { --header-h: 56px; }.app-header { padding: 0 16px; }.brand { padding-right: 14px; }.route-tabs { display: none; }.direction-menu { margin-left: auto; }.global-search { width: 31px; padding: 0; justify-content: center; }.global-search span:not(.search-glyph), .global-search kbd { display: none; }.wallet-trigger { padding: 0 8px; }.wallet-state { display: none; }.landing-grid-line { display: none; }.hero-copy { width: min(100% - 38px, 620px); padding-top: 154px; }.hero-copy h1 { font-size: clamp(45px, 10.7vw, 68px); }.ticker-stage { grid-template-columns: 62px minmax(0,1fr); bottom: 36px; }.ticker-link { display: none; }.landing-footer-mark { height: 36px; }.ticker-items span { padding: 0 14px; }.hero-proof { flex-wrap: wrap; gap: 10px 0; margin-top: 30px; }.hero-proof span { padding: 0 9px; }.markets-screen { padding: calc(var(--header-h) + 26px) 15px 16px; }.market-topline { padding-bottom: 18px; }.market-status > span:not(.status-scan), .market-status button { display: none; }.market-control-row { gap: 15px; }.chain-filter-row { gap: 5px; }.filter-caption { width: 100%; }.market-filters { overflow-x: auto; }.market-filters::-webkit-scrollbar { display: none; }.filter-btn, .toggle-filter { flex: 0 0 auto; }.dense-toggle { display: none; }.terminal-topbar { height: 58px; padding: 0 12px; gap: 10px; }.back-to-market { padding-right: 9px; }.price-usd, .terminal-actions .icon-button { display: none; }.price-main { font-size: 14px; }.token-price-cluster { margin-left: auto; gap: 6px; }.terminal-chain { display: none; }.terminal-grid { display: block; min-height: calc(100vh - 114px); }.terminal-left { display: none; }.terminal-right { display: none; }.terminal-center { border-bottom: 1px solid var(--line); }.chart-canvas-wrap { height: 205px; }.token-stat-row { overflow-x: auto; grid-template-columns: repeat(5, 115px); }.token-stat-row::-webkit-scrollbar { display: none; }.trade-feed-head { overflow-x: auto; }.detail-tabs { min-width: max-content; }.trades-table { min-width: 560px; }.trades-table-wrap { overflow-x: auto; }.right-info-panel { display: none; }.terminal-disclaimer { display: none; }.trade-card { padding-bottom: 13px; }.mobile-trade-dock { height: 57px; display: flex; align-items: center; gap: 7px; position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; padding: 0 11px; border-top: 1px solid var(--line-strong); background: rgba(8,12,10,.94); backdrop-filter: blur(18px); }.mobile-trade-dock > div { display: grid; flex: 1; gap: 3px; }.mobile-trade-dock span { color: #8e9c93; font: 9px var(--mono); }.mobile-trade-dock b { color: #e0ede5; font: 10px var(--mono); }.mobile-trade-dock i { color: var(--mint); font-style: normal; }.mobile-trade-dock button { height: 34px; min-width: 76px; border-radius: 3px; color: #062518; background: var(--mint); font-weight: 700; font-size: 10px; }.mobile-trade-dock .mobile-sell { color: #fbd9dc; background: #4c1f25; }.toast-region { bottom: 69px; }.wallet-popover { top: 50px; right: 12px; }.login-corner-note { display: none; } }
@media (max-width: 540px) { .direction-menu { margin-left: auto; }.direction-trigger { padding: 6px; }.direction-trigger #direction-name, .direction-trigger .chevron { display: none; }.direction-popover { right: -42px; }.hero-copy { min-height: calc(100vh - 151px); padding-top: 130px; }.hero-copy h1 { font-size: 42px; }.hero-subhead { font-size: 13px; }.hero-cta-row { flex-direction: column; gap: 5px; }.cta-primary { width: min(100%, 250px); }.cta-quiet { width: min(100%, 250px); justify-content: center; }.hero-proof { margin: 22px auto 0; max-width: 295px; }.hero-proof span { font-size: 8px; }.ticker-stage { height: 53px; }.auth-stage { width: calc(100vw - 30px); }.auth-panel { min-height: 435px; padding: 30px 22px 24px; }.auth-panel h2 { font-size: 29px; }.market-topline h2 { font-size: 26px; }.market-control-row { flex-direction: column; align-items: flex-start; gap: 0; }.time-tabs { margin: -33px 0 8px auto; }.chain-chip { font-size: 9px; }.market-foot span:first-child { display: none; }.selected-token-title .token-avatar { width: 23px; height: 23px; }.selected-token-title h2 { font-size: 12px; }.selected-token-title p { font-size: 8px; }.token-price-cluster { display: grid; gap: 1px; text-align: right; }.delta { font-size: 8px; }.chart-toolbar { gap: 7px; padding: 0 8px; }.range-tabs { gap: 7px; margin-left: 0; }.range-tabs button:nth-child(4), .range-tabs button:nth-child(5) { display: none; }.chart-meta { gap: 7px; padding: 0 8px; }.chart-meta span:nth-child(5) { display: none; }.chart-canvas-wrap { height: 190px; }.token-stat-row { height: 55px; }.terminal-right { padding-bottom: 66px; }.trade-card { padding: 0 9px 11px; }.search-overlay { padding-top: 72px; }.search-footer { display: none; } body[data-direction="tidal"] .hero-copy, body[data-direction="instrument"] .hero-copy { width: min(100% - 38px, 620px); text-align: center; padding-left: 0; } body[data-direction="tidal"] .hero-copy h1, body[data-direction="instrument"] .hero-copy h1, body[data-direction="tidal"] .hero-subhead, body[data-direction="instrument"] .hero-subhead { margin-left: auto; margin-right: auto; } body[data-direction="tidal"] .hero-cta-row, body[data-direction="tidal"] .hero-proof, body[data-direction="instrument"] .hero-cta-row, body[data-direction="instrument"] .hero-proof { justify-content: center; } }
@media (max-width: 540px) { body[data-direction="instrument"] .instrument-readout { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; scroll-behavior: auto!important; } }

.trade-submit.sell-mode { color: #fff0f1; background: var(--red); box-shadow: 0 5px 17px rgba(255,92,105,.13); }
.trade-submit.sell-mode:hover { background: #ff7180; box-shadow: 0 8px 23px rgba(255,92,105,.22); }
.trade-submit.sell-mode i { color: var(--red); background: #552126; }
.buy-sell-tabs[data-side="sell"] button.selected::after { background: var(--red); }
.search-empty { min-height: 155px; display: grid; place-content: center; justify-items: center; gap: 7px; color: #718077; }
.search-empty span { color: var(--mint); font: 24px var(--mono); }
.search-empty b { color: #bac9c0; font-size: 11px; }
.search-empty small { color: #637168; font: 9px var(--mono); }
.search-chain-row { display: flex; gap: 5px; padding: 9px 12px 2px; overflow-x: auto; scrollbar-width: none; }
.search-chain-row::-webkit-scrollbar { display: none; }
.search-chain-row button { flex: 0 0 auto; height: 25px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: #718077; font: 8px var(--mono); transition: color .16s, border-color .16s, background .16s; }
.search-chain-row button:hover { color: #c8d7ce; border-color: var(--line-strong); }
.search-chain-row button.selected { color: #d9ffeb; border-color: rgba(34,227,154,.45); background: rgba(34,227,154,.08); }
.search-results em i.negative { color: var(--red); }
.chain-logo { width: 14px; height: 14px; display: inline-block; flex: 0 0 auto; vertical-align: -2px; }
.chain-logo.tiny { width: 11px; height: 11px; vertical-align: 1px; }
.otp-error { min-height: 14px; margin: 7px 0 -3px; color: var(--red); font: 9px var(--mono); }
.otp-row.has-error input { border-color: rgba(255,92,105,.7); background: rgba(255,92,105,.035); }
.mobile-sheet-close { display: none; }
@media (max-width: 850px) {
  body.trade-sheet-open { overflow: hidden; }
  body.trade-sheet-open .mobile-trade-dock { opacity: 0; pointer-events: none; }
  .terminal-right.mobile-open { display: block; position: fixed; z-index: 44; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 56px); overflow-y: auto; padding: 8px 10px 14px; border: 1px solid var(--line-strong); background: rgba(8,13,10,.985); box-shadow: 0 -18px 48px rgba(0,0,0,.48); animation: trade-sheet-in .28s cubic-bezier(.22,.8,.22,1) both; }
  .terminal-right.mobile-open .right-info-panel { display: block; }
  .terminal-right.mobile-open .terminal-disclaimer { display: flex; }
  .terminal-right.mobile-open .mobile-sheet-close { width: 100%; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 3px 0 7px; color: #9aa9a0; font: 9px var(--mono); letter-spacing: .08em; }
  .terminal-right.mobile-open .mobile-sheet-close span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #c7d5cc; font: 16px var(--sans); }
}
@keyframes trade-sheet-in { from { transform: translateY(105%); } to { transform: translateY(0); } }
.chart-full-close { display: none; }
body.chart-open { overflow: hidden; }
.chart-canvas-wrap.expanded { position: fixed; z-index: 52; top: 76px; right: 18px; bottom: 18px; left: 18px; height: auto; min-height: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: #0a100d; box-shadow: 0 24px 80px rgba(0,0,0,.62); }
.chart-canvas-wrap.expanded .chart-full-close { width: 28px; height: 28px; display: grid; place-items: center; position: absolute; z-index: 2; top: 10px; right: 10px; border: 1px solid var(--line-strong); border-radius: 50%; color: #c4d4ca; background: rgba(7,11,9,.8); font-size: 18px; }
@media (max-width: 540px) { .chart-canvas-wrap.expanded { top: 65px; right: 8px; bottom: 8px; left: 8px; } }
.trade-submit:disabled { cursor: wait; opacity: .78; filter: saturate(.65); transform: none; }

/* ============================================================= */
/* Self-hosted fonts (CSP font-src 'self') — replaces Google Fonts CDN. */
/* Variable Latin-subset woff2; weight axis covers the design's 400–800. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("assets/fonts/inter-var.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/jetbrainsmono-var.woff2") format("woff2"); }

/* ============================================================= */
/* Real-data wiring additions (kept in the t2 visual language).   */
/* Deterministic avatars: real logo <img> or initials tile.       */
img.token-avatar { object-fit: cover; background: #0c1512; }
.token-avatar.av-f { color: #062017; }

/* Pay-from selector (cross-chain funding source) */
.trade-payfrom { display: none; flex-wrap: wrap; gap: 5px; margin: 2px 0 4px; }
.trade-payfrom.on { display: flex; }
.trade-payfrom .pf-lbl { width: 100%; color: var(--dim); font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pay-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; transition: border-color .16s, background .16s; }
.pay-chip b { color: #cdd9d1; font: 9px var(--sans); font-weight: 600; }
.pay-chip span { color: #6a786f; font: 8px var(--mono); }
.pay-chip.funded { border-color: rgba(34,227,154,.3); }
.pay-chip.funded span { color: var(--mint); }
.pay-chip.on { border-color: var(--mint); background: var(--mint-faint); }

/* Cross-chain banner + status lines */
.cross-banner { display: none; margin: 2px 0 6px; padding: 7px 9px; border: 1px solid rgba(34,227,154,.22); border-radius: 6px; color: #a9f5cf; background: rgba(34,227,154,.05); font: 9px var(--mono); line-height: 1.5; }
.cross-banner.on { display: block; }
.cross-banner b { color: var(--mint-hi); font-weight: 600; }

/* Live quote breakdown (impact / min received / route / agg legs) */
.trade-quote-extra { display: none; flex-direction: column; gap: 5px; margin: 8px 0 2px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(9,13,11,.5); }
.trade-quote-extra.on { display: flex; }
.q-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #85938a; font: 9px var(--mono); }
.q-row b { color: #d6e4dc; font-weight: 500; text-align: right; }
.q-row b.up { color: var(--mint); }
.q-row b.dn { color: var(--red); }
.q-row b.warn { color: var(--yellow); }
.q-row.agg { flex-direction: column; align-items: stretch; gap: 3px; }
.q-row.agg .agg-legs { color: #b7c5bd; font-size: 8px; line-height: 1.6; }
.q-row.agg .agg-legs b { color: var(--mint); }

/* Trade status / progress / errors + funding prompt */
.trade-status { margin-top: 7px; color: #90a097; font: 9px var(--mono); line-height: 1.55; }
.trade-status:empty { margin-top: 0; }
.trade-status a { color: var(--mint); }
.trade-status .st-run { display: inline-flex; align-items: center; gap: 6px; color: #a9f5cf; }
.trade-status .st-ok { color: var(--mint); }
.trade-status .st-ok b { color: var(--mint-hi); }
.trade-status .st-warn { color: #ffb0b7; }
.trade-status .st-info { color: #9fb8ab; }
.trade-status .st-info b { color: #cdd9d1; }
.st-spin { width: 10px; height: 10px; border: 1.5px solid rgba(34,227,154,.3); border-top-color: var(--mint); border-radius: 50%; display: inline-block; animation: st-rot .7s linear infinite; }
@keyframes st-rot { to { transform: rotate(360deg); } }
.fund-box { padding: 8px 9px; border: 1px dashed rgba(34,227,154,.3); border-radius: 6px; background: rgba(34,227,154,.04); }
.fund-box .fund-addr { display: flex; align-items: center; gap: 6px; margin: 5px 0; }
.fund-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #cdd9d1; font: 8px var(--mono); }
.fund-box .fund-copy { padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--mint); font: 8px var(--mono); }
.fund-box.flash, .fund-copy.flash, .copy-ca.flash, .tm-copy.flash { color: var(--mint) !important; }

/* Detail sub-panes (Activity / Holders / Traders / Dev) — dense, matches trades table */
.detail-scroll { max-height: 260px; overflow: auto; }
.detail-tbl { width: 100%; border-collapse: collapse; }
.detail-tbl th { position: sticky; top: 0; padding: 7px 8px; color: #6b7a71; text-align: right; font: 8px var(--mono); letter-spacing: .06em; background: rgba(9,13,11,.9); }
.detail-tbl th:first-child { text-align: left; }
.detail-tbl td { padding: 6px 8px; color: #bbc9c0; text-align: right; font: 9px var(--mono); border-bottom: 1px solid rgba(202,255,224,.05); }
.detail-tbl td:first-child { text-align: left; }
.detail-tbl a { color: #8fa398; }
.detail-tbl .up { color: var(--mint); }
.detail-tbl .dn { color: var(--red); }
.detail-empty { padding: 20px 14px; color: #647269; text-align: center; font: 10px var(--mono); }
.hold-row { display: grid; grid-template-columns: 22px 1fr 90px 52px; align-items: center; gap: 8px; padding: 6px 10px; }
.hold-row .h-rank { color: #55635b; font: 8px var(--mono); }
.hold-row a { color: #8fa398; font: 9px var(--mono); }
.hold-row .h-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.hold-row .h-bar i { display: block; height: 100%; background: var(--mint); }
.hold-row .h-pct { color: #cdd9d1; text-align: right; font: 9px var(--mono); }
.crtag { padding: 0 4px; border: 1px solid rgba(244,201,107,.4); border-radius: 3px; color: var(--yellow); font-size: 7px; }
.kv2 { display: grid; gap: 1px; padding: 4px 0; }
.kv2 .kv2r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(202,255,224,.05); }
.kv2 .kv2r span { color: #6f7d74; font: 9px var(--mono); }
.kv2 .kv2r b { color: #d6e4dc; font: 9px var(--mono); font-weight: 500; }
.kv2 .kv2r a { color: #8fa398; }

/* ── INVISIBLE-AGGREGATION funding disclosure (ported from v2): collapsed "details ▾" under the
   one-total ticket. No per-chain PAY-FROM chip row on the ticket itself — these chips are READ-ONLY
   (the system picks where to spend from). ── */
.funding-details { display: none; margin: 8px 0 2px; border: 1px solid var(--line); border-radius: 6px; background: rgba(9,13,11,.42); }
.funding-details.on { display: block; }
.funding-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 6px 10px; color: #6a786f; font: 9px var(--mono); letter-spacing: .06em; user-select: none; }
.funding-details summary::-webkit-details-marker { display: none; }
.funding-details summary .fd-caret { font-style: normal; color: #647269; transition: transform .18s; }
.funding-details[open] summary .fd-caret { transform: rotate(180deg); }
.funding-details summary:hover { color: var(--mint); }
.funding-details .fd-body { display: flex; flex-direction: column; gap: 7px; padding: 0 10px 9px; }
.funding-summary { color: #a9f5cf; font: 9px var(--mono); line-height: 1.55; }
.funding-summary b { color: var(--mint-hi); font-weight: 600; }
.funding-summary:empty { display: none; }
.funding-details .trade-payfrom { margin: 0; }
.funding-details .pay-chip { pointer-events: none; }  /* read-only: the system picks where to spend from */

/* TradingView lightweight-charts host (Quiver engine) fills the old canvas wrap */
#price-chart { position: absolute; inset: 0; z-index: 1; }
.chart-canvas-wrap .chart-watermark { z-index: 0; pointer-events: none; }
.chart-full-close { z-index: 2; }
/* Curve markets (Pons/Flap) with no indexed swap: name the reason over the empty canvas. */
.chart-curve-note { position: absolute; z-index: 2; left: 50%; top: 50%; max-width: min(88%, 420px); padding: 8px 12px; border: 1px solid rgba(214,180,124,.28); border-radius: 4px; color: #d8b47c; background: rgba(10,16,13,.86); font: 500 11px/15px var(--sans); text-align: center; transform: translate(-50%,-50%); pointer-events: none; }
.trade-status .st-curve { display: block; }
.trade-status .st-curve a { color: #d8b47c; text-decoration: underline; text-decoration-color: rgba(216,180,124,.5); text-underline-offset: 3px; }
.trade-status .st-curve b { color: #e6c890; font-weight: 600; }

/* T2 compact viewport — preserve the v1 terminal concept, but make it read as
   a focused application instead of a long report. The chart and the live tape
   remain independent, bounded work surfaces on desktop. */
@media (min-width: 851px) {
  body[data-screen="token"] .direction-menu { display: none; }

  .terminal-screen {
    height: 100dvh;
    min-height: 640px;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 55% -9%, rgba(28, 112, 77, .11), transparent 37%),
      #090c10;
  }
  .terminal-topbar {
    height: 56px;
    padding: 0 18px;
    border-bottom-color: rgba(235, 243, 238, .08);
    background: rgba(12, 15, 20, .84);
    backdrop-filter: blur(18px) saturate(1.06);
  }
  .terminal-grid {
    height: calc(100dvh - var(--header-h) - 56px);
    min-height: 0;
    grid-template-columns: 196px minmax(0, 1fr) 304px;
    background: rgba(9, 12, 16, .36);
  }
  body[data-direction="instrument"] .terminal-grid { grid-template-columns: 184px minmax(0, 1fr) 304px; }
  body[data-direction="tidal"] .terminal-grid { grid-template-columns: 196px minmax(0, 1fr) 304px; }

  .terminal-left,
  .terminal-center,
  .terminal-right { min-height: 0; }
  .terminal-left,
  .terminal-right {
    overflow-y: auto;
    scrollbar-color: rgba(155, 180, 166, .32) transparent;
    scrollbar-width: thin;
  }
  .terminal-left { background: rgba(12, 16, 20, .64); border-right-color: rgba(235, 243, 238, .075); }
  .terminal-right { padding: 8px; background: rgba(14, 18, 23, .76); border-left-color: rgba(235, 243, 238, .075); }
  .terminal-left::-webkit-scrollbar,
  .terminal-right::-webkit-scrollbar,
  .trades-table-wrap::-webkit-scrollbar { width: 4px; height: 4px; }
  .terminal-left::-webkit-scrollbar-thumb,
  .terminal-right::-webkit-scrollbar-thumb,
  .trades-table-wrap::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(155, 180, 166, .32); }

  .terminal-center {
    display: grid;
    grid-template-rows: 32px 20px clamp(188px, 23vh, 224px) 46px 32px clamp(140px, 18vh, 190px);
    align-content: start;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 21, 25, .48), rgba(8, 11, 15, .2));
  }
  .chart-toolbar { height: 32px; padding: 0 13px; border-bottom-color: rgba(235, 243, 238, .065); }
  .chart-meta { height: 20px; padding: 0 13px; color: #6e777f; }
  .chart-view-tabs button,
  .range-tabs button,
  .chart-switch button {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .01em;
  }
  .chart-canvas-wrap:not(.expanded) {
    height: auto;
    min-height: 0;
    margin: 0 10px;
    border: 1px solid rgba(235, 243, 238, .075);
    border-radius: 8px 8px 0 0;
    background: radial-gradient(ellipse at 70% 12%, rgba(34, 227, 154, .055), transparent 48%), #10151a;
  }
  .chart-watermark { font-size: 28px; color: rgba(226, 241, 232, .025); }
  .chart-watermark span { color: rgba(34, 227, 154, .05); }
  .token-stat-row {
    height: 46px;
    margin: 0 10px;
    border: 1px solid rgba(235, 243, 238, .075);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }
  .token-stat-row > div { gap: 2px; padding: 0 10px; border-right-color: rgba(235, 243, 238, .065); }
  .token-stat-row span { color: #778189; font-size: 7px; }
  .token-stat-row b { color: #e0e7e3; font-size: 10px; }
  .token-stat-row i { font-size: 7px; }
  .trade-feed-head {
    height: 32px;
    margin: 0 10px;
    padding: 0 10px;
    border-bottom-color: rgba(235, 243, 238, .07);
    background: rgba(255, 255, 255, .012);
  }
  .detail-tabs { gap: 14px; }
  .detail-tabs button { font-size: 9px; font-weight: 600; }
  .trades-table-wrap {
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0 10px 8px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(235, 243, 238, .065);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    scrollbar-color: rgba(155, 180, 166, .32) transparent;
    scrollbar-width: thin;
  }
  .trades-table thead th {
    position: sticky;
    z-index: 2;
    top: 0;
    height: 21px;
    padding: 0 10px;
    color: #78838b;
    background: #11161b;
    font-family: var(--sans);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .035em;
  }
  .trades-table td { height: 25px; padding: 0 10px; color: #bbc4bf; font-size: 8px; }
  .detail-scroll { height: 100%; max-height: none; }

  .panel-head { color: #858f96; font-family: var(--sans); font-size: 8px; font-weight: 600; }
  .watch-row { border-radius: 5px; }
  .watch-row:hover { background: rgba(255, 255, 255, .038); }
  .watch-row.active { background: rgba(34, 227, 154, .065); }
  .trade-card {
    padding: 0 11px 11px;
    border-color: rgba(235, 243, 238, .11);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(27, 34, 39, .96), rgba(17, 22, 27, .96));
    box-shadow: none;
  }
  .trade-card-head { height: 40px; }
  .trade-balance { margin-top: 9px; }
  .trade-input { margin-top: 9px; padding: 7px 8px 5px; border-radius: 6px; }
  .trade-input input { font-size: 16px; }
  .trade-submit { height: 38px; margin-top: 9px; border-radius: 6px; }
  .right-info-panel { margin-top: 8px; border-color: rgba(235, 243, 238, .09); border-radius: 8px; background: rgba(20, 25, 30, .75); }
  .terminal-disclaimer { padding-top: 7px; }
}

@media (max-width: 850px) {
  .terminal-screen { height: auto; min-height: 100svh; overflow: visible; }
  .terminal-grid { height: auto; }
  .terminal-center { display: block; overflow: visible; }
  .chart-toolbar { height: 33px; }
  .chart-meta { height: 20px; }
  .chart-canvas-wrap:not(.expanded) { height: clamp(168px, 48vw, 198px); min-height: 0; }
  .token-stat-row { height: 48px; }
  .trade-feed-head { height: 34px; }
  .trades-table-wrap,
  .detail-scroll { max-height: min(25dvh, 170px); overflow: auto; overscroll-behavior: contain; }
  .trades-table thead th { position: sticky; z-index: 2; top: 0; background: #0b100e; }
}

@media (max-width: 540px) {
  .trades-table { min-width: 0; table-layout: fixed; }
  .trades-table th:nth-child(3),
  .trades-table td:nth-child(3),
  .trades-table th:nth-child(4),
  .trades-table td:nth-child(4),
  .trades-table th:nth-child(5),
  .trades-table td:nth-child(5) { display: none; }
  .trades-table th,
  .trades-table td { height: 26px; padding: 0 9px; }
  .trades-table th:nth-child(1),
  .trades-table td:nth-child(1) { width: 34%; }
  .trades-table th:nth-child(2),
  .trades-table td:nth-child(2) { width: 43%; }
  .trades-table th:nth-child(6),
  .trades-table td:nth-child(6) { width: 23%; }
}

/* ── NOFEE SIGNAL GRID ────────────────────────────────────────────────────
   A dense live-discovery workspace. It keeps the original table available,
   but makes the primary state a bounded set of independently scrollable
   streams so discovery never turns into a very long dashboard page. */
.market-control-actions { display: flex; align-items: center; gap: 12px; }
.market-view-switch { display: inline-flex; align-items: center; gap: 1px; padding: 2px; border: 1px solid rgba(235,243,238,.09); border-radius: 5px; background: rgba(255,255,255,.025); }
.market-view-switch button { height: 22px; padding: 0 7px; border-radius: 3px; color: #7d878e; font: 700 8px var(--sans); letter-spacing: .025em; }
.market-view-switch button:hover { color: #dce6e2; }
.market-view-switch button.selected { color: #061d13; background: #b6f5d4; }
.trench-layout { display: none; }
.trenches-screen[data-market-view="trenches"] .markets-table-wrap { display: none; }
.trenches-screen[data-market-view="table"] .trench-layout { display: none; }
.trench-radar,
.trench-board,
.trench-lane,
.trench-lane-scroll { min-width: 0; min-height: 0; }
.trench-radar { background: linear-gradient(180deg, rgba(20,25,31,.88), rgba(11,14,18,.9)); }
.trench-rail-head { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 0 10px; border-bottom: 1px solid rgba(235,243,238,.065); color: #879198; font: 700 8px var(--sans); letter-spacing: .075em; }
.trench-rail-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.trench-rail-head > span:first-child i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 7px rgba(34,227,154,.55); }
.trench-rail-action { color: #657078; font: 700 7px var(--mono); }
.trench-live-count { color: var(--mint); font: 8px var(--mono); }
.trench-watch-list,
.trench-scan-list { padding: 5px; }
.trench-rail-divider { height: 1px; margin: 2px 10px; background: rgba(235,243,238,.07); }
.trench-mini { width: 100%; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 7px; min-height: 38px; padding: 5px; border-radius: 5px; color: inherit; text-align: left; transition: background .16s ease, transform .16s ease; }
.trench-mini:hover { background: rgba(255,255,255,.045); transform: translateX(1px); }
.trench-mini-avatar { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; font-size: 9px; }
.trench-mini > span { min-width: 0; display: grid; gap: 2px; }
.trench-mini b { overflow: hidden; color: #dce5e1; text-overflow: ellipsis; white-space: nowrap; font: 700 9px var(--sans); }
.trench-mini small { overflow: hidden; color: #747f86; text-overflow: ellipsis; white-space: nowrap; font: 8px var(--mono); }
.trench-mini em { color: #b8c2bd; text-align: right; font: 8px var(--mono); font-style: normal; }
.trench-radar-empty { display: grid; gap: 4px; padding: 10px 8px; color: #747f86; }
.trench-radar-empty b { color: #aab5b0; font: 700 9px var(--sans); }
.trench-radar-empty span { max-width: 170px; font: 8px/1.45 var(--mono); }
.trench-rail-note { margin: auto 10px 10px; color: #68737a; font: 8px/1.45 var(--mono); }
.trench-rail-skeleton { height: 37px; margin: 5px; border-radius: 5px; background: rgba(255,255,255,.055); animation: nf-skeleton-pulse 1.2s ease-in-out infinite; }
.trench-lane { display: grid; grid-template-rows: 43px minmax(0,1fr); background: rgba(11,15,19,.77); border-left: 1px solid rgba(235,243,238,.065); }
.trench-lane:first-child { border-left: 0; }
.trench-lane-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid rgba(235,243,238,.075); background: rgba(255,255,255,.018); }
.trench-lane-head > span { min-width: 0; display: grid; gap: 3px; }
.trench-lane-head b { color: #e6efeb; font: 650 11px var(--sans); letter-spacing: -.01em; }
.trench-lane-head small { overflow: hidden; color: #758188; text-overflow: ellipsis; white-space: nowrap; font: 8px var(--mono); }
.trench-lane-head > em { min-width: 20px; height: 18px; display: inline-grid; place-items: center; border: 1px solid rgba(235,243,238,.09); border-radius: 99px; color: #8d989e; font: 8px var(--mono); font-style: normal; }
.trench-lane-scroll { overflow: auto; overscroll-behavior: contain; padding: 7px; scrollbar-color: rgba(155,180,166,.32) transparent; scrollbar-width: thin; }
.trench-lane-scroll::-webkit-scrollbar { width: 4px; height: 4px; }
.trench-lane-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(155,180,166,.32); }
.trench-card { min-height: 116px; margin-bottom: 7px; overflow: hidden; border: 1px solid rgba(235,243,238,.075); border-radius: 8px; background: linear-gradient(140deg, rgba(27,33,38,.86), rgba(15,19,24,.94)); box-shadow: 0 1px 0 rgba(255,255,255,.015) inset; transition: border-color .17s ease, background .17s ease, transform .17s ease; }
.trench-card:hover { z-index: 1; border-color: rgba(173,245,211,.34); background: linear-gradient(140deg, rgba(32,40,44,.98), rgba(16,22,26,.98)); transform: translateY(-1px); }
.trench-card-open { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 9px 9px 6px; color: inherit; text-align: left; }
.trench-card-identity { min-width: 0; display: flex; align-items: center; gap: 7px; }
.trench-avatar { width: 29px; height: 29px; flex: 0 0 29px; border-radius: 8px; font-size: 11px; }
.trench-card-name { min-width: 0; display: grid; gap: 1px; }
.trench-card-name > b { overflow: hidden; color: #eef5f1; text-overflow: ellipsis; white-space: nowrap; font: 700 11px var(--sans); letter-spacing: -.015em; }
.trench-card-name > small { overflow: hidden; max-width: 112px; color: #8a969b; text-overflow: ellipsis; white-space: nowrap; font: 8px var(--sans); }
.trench-card-name > em { display: inline-flex; align-items: center; gap: 4px; color: #707c83; font: 8px var(--mono); font-style: normal; }
.trench-card-name .chain-logo { width: 10px; height: 10px; }
.trench-card-price { flex: 0 0 auto; display: grid; justify-items: end; gap: 3px; }
.trench-card-price > b { color: #dce7e1; font: 700 10px var(--mono); }
.trench-card-price .change-up,
.trench-card-price .change-down { font-size: 8px; }
.trench-card-data { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 3px; padding: 0 9px 7px; }
.trench-card-data > span { min-width: 0; display: grid; gap: 2px; }
.trench-card-data i { overflow: hidden; color: #768189; text-overflow: ellipsis; white-space: nowrap; font: 7px var(--mono); font-style: normal; letter-spacing: .035em; }
.trench-card-data b { overflow: hidden; color: #bec9c4; text-overflow: ellipsis; white-space: nowrap; font: 8px var(--mono); font-weight: 500; }
.trench-card-footer { min-height: 27px; display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-top: 1px solid rgba(235,243,238,.06); background: rgba(0,0,0,.1); }
.trench-trust { max-width: 86px; overflow: hidden; padding: 2px 4px; border: 1px solid rgba(161,176,168,.18); border-radius: 3px; color: #9ba7a1; text-overflow: ellipsis; white-space: nowrap; font: 7px var(--mono); }
.trench-trust.good { border-color: rgba(34,227,154,.3); color: #a6ebc7; background: rgba(34,227,154,.055); }
.trench-ca { min-width: 0; flex: 1; overflow: hidden; color: #6e7a81; text-overflow: ellipsis; white-space: nowrap; font: 7px var(--mono); }
.trench-star { width: 19px; height: 19px; flex: 0 0 19px; border-radius: 3px; color: #718078; font-size: 12px; line-height: 1; }
.trench-star:hover,
.trench-star.active { color: #d8f6e4; background: rgba(34,227,154,.1); }
.trench-inspect { height: 19px; display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; padding: 0 5px; border-radius: 3px; color: #a7efc8; background: rgba(34,227,154,.08); font: 700 7px var(--sans); }
.trench-inspect:hover { color: #062317; background: var(--mint); }
.trench-inspect i { font: 10px var(--sans); font-style: normal; }
.trench-empty { display: grid; min-height: 120px; place-items: center; padding: 12px; color: #78838a; text-align: center; font: 9px var(--mono); }
.trench-card-skeleton { height: 116px; margin-bottom: 7px; padding: 10px; border: 1px solid rgba(235,243,238,.055); border-radius: 8px; background: rgba(255,255,255,.018); animation: nf-skeleton-pulse 1.2s ease-in-out infinite; }
.trench-card-skeleton span,
.trench-card-skeleton i,
.trench-card-skeleton b { display: block; border-radius: 3px; background: rgba(255,255,255,.06); }
.trench-card-skeleton span { width: 72%; height: 27px; }
.trench-card-skeleton i { width: 100%; height: 20px; margin-top: 13px; }
.trench-card-skeleton b { width: 46%; height: 10px; margin-top: 14px; }
@keyframes trench-shimmer { 50% { opacity: .45; } }

@media (min-width: 851px) {
  body[data-screen="markets"] .direction-menu { display: none; }
  .trenches-screen { height: 100dvh; min-height: 640px; overflow: hidden; padding: calc(var(--header-h) + 10px) 14px 10px; background: radial-gradient(ellipse at 67% -6%, rgba(27,98,72,.105), transparent 34%), #0a0d11; }
  .trenches-screen::after { top: var(--header-h); height: 180px; border-bottom-color: rgba(235,243,238,.04); background: linear-gradient(180deg, rgba(38,72,56,.06), transparent); }
  .trenches-screen .market-topline { height: 42px; align-items: flex-start; padding: 0 6px 5px; }
  .trenches-screen .screen-kicker { margin: 0 0 4px; font-size: 8px; }
  .trenches-screen .market-topline h2 { color: #f0f5f2; font-size: 22px; letter-spacing: -.045em; }
  .trenches-screen .blink-cursor { font-size: 17px; }
  .trenches-screen .market-status { gap: 7px; padding-top: 5px; font-size: 8px; }
  .trenches-screen .market-status button { padding: 4px 6px; border: 1px solid rgba(235,243,238,.09); border-radius: 4px; color: #a3afaa; font: 8px var(--sans); }
  .trenches-screen .market-control-row { height: 36px; min-height: 36px; padding: 0 5px; border: 1px solid rgba(235,243,238,.075); border-radius: 7px 7px 0 0; background: rgba(18,23,28,.72); }
  .trenches-screen .market-tabs { height: 100%; gap: 15px; }
  .trenches-screen .market-tabs button { height: 35px; font: 700 10px var(--sans); }
  .trenches-screen .time-tabs button { height: 22px; padding: 0 7px; font-size: 8px; }
  .trenches-screen .chain-filter-row { height: 31px; flex-wrap: nowrap; margin: 6px auto 0; padding: 0 5px; overflow-x: auto; scrollbar-width: none; }
  .trenches-screen .chain-filter-row::-webkit-scrollbar { display: none; }
  .trenches-screen .filter-caption,
  .trenches-screen .chain-chip { flex: 0 0 auto; }
  .trenches-screen .chain-chip { height: 23px; padding: 0 6px; font-size: 8px; }
  .trenches-screen .market-filters { min-height: 36px; height: 36px; padding: 0 5px; border-top: 1px solid rgba(235,243,238,.06); border-bottom: 1px solid rgba(235,243,238,.075); }
  .trenches-screen .filter-btn { padding: 4px 5px; font-size: 8px; }
  .trenches-screen .toggle-filter { font-size: 8px; }
  .trenches-screen[data-market-view="trenches"] .trench-layout { height: calc(100dvh - var(--header-h) - 190px); min-height: 360px; max-width: 1450px; display: grid; grid-template-columns: 226px minmax(0,1fr); margin: 0 auto; overflow: hidden; border: 1px solid rgba(235,243,238,.075); border-top: 0; border-radius: 0 0 9px 9px; background: rgba(11,14,18,.8); }
  .trench-radar { display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid rgba(235,243,238,.07); }
  .trench-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); overflow: hidden; }
  .trenches-screen[data-market-view="trenches"] .market-foot { height: 24px; margin: 0 auto; padding: 0 5px; font-size: 8px; }
  .trenches-screen[data-market-view="trenches"] .market-foot .view-all { display: none; }
  .trenches-screen[data-market-view="table"] { height: auto; min-height: 100vh; overflow: visible; padding-bottom: 23px; }
}

@media (min-width: 851px) and (max-width: 1099px) {
  .trenches-screen[data-market-view="trenches"] .trench-layout { grid-template-columns: minmax(0,1fr); }
  .trenches-screen[data-market-view="trenches"] .trench-radar { display: none; }
}

@media (max-width: 850px) {
  .trenches-screen { padding: calc(var(--header-h) + 12px) 11px 18px; background: radial-gradient(ellipse at 66% -4%, rgba(27,98,72,.1), transparent 36%), #0a0d11; }
  .trenches-screen .market-topline { padding: 0 3px 12px; }
  .trenches-screen .market-topline h2 { font-size: 23px; }
  .trenches-screen .market-control-row { display: flex; min-height: 34px; padding: 0 3px; gap: 7px; border-bottom-color: rgba(235,243,238,.085); }
  .trenches-screen .market-tabs { gap: 12px; }
  .trenches-screen .market-tabs button { height: 33px; font-size: 10px; }
  .trenches-screen .market-control-actions { margin-left: auto; gap: 6px; }
  .trenches-screen .time-tabs { gap: 1px; margin: 0; }
  .trenches-screen .time-tabs button { height: 22px; padding: 0 5px; font-size: 8px; }
  .trenches-screen .market-view-switch button { padding: 0 6px; }
  .trenches-screen .chain-filter-row { flex-wrap: nowrap; margin-top: 8px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
  .trenches-screen .chain-filter-row::-webkit-scrollbar { display: none; }
  .trenches-screen .filter-caption,
  .trenches-screen .chain-chip { flex: 0 0 auto; }
  .trenches-screen .filter-caption { width: auto; }
  .trenches-screen .market-filters { min-height: 38px; height: 38px; margin-top: 2px; padding: 0; border-bottom-color: rgba(235,243,238,.075); }
  .trenches-screen .filter-btn { font-size: 8px; }
  .trenches-screen[data-market-view="trenches"] .trench-layout { height: min(65dvh, 530px); min-height: 390px; display: block; margin-top: 1px; overflow: hidden; border: 1px solid rgba(235,243,238,.075); border-radius: 8px; background: rgba(11,14,18,.85); }
  .trenches-screen[data-market-view="trenches"] .trench-radar { display: none; }
  .trench-board { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .trench-board::-webkit-scrollbar { display: none; }
  .trench-lane { min-width: 100%; flex: 0 0 100%; scroll-snap-align: start; border-left: 0; }
  .trench-lane:not(:last-child) { border-right: 1px solid rgba(235,243,238,.07); }
  .trench-lane-head { padding: 0 11px; }
  .trench-lane-head b { font-size: 12px; }
  .trench-lane-scroll { padding: 8px; }
  .trench-card { min-height: 111px; margin-bottom: 7px; }
  .trench-card-open { padding: 8px 9px 5px; }
  .trench-card-data { padding-bottom: 6px; }
  .trenches-screen[data-market-view="trenches"] .market-foot { height: 26px; padding: 0 2px; font-size: 8px; }
  .trenches-screen[data-market-view="trenches"] .market-foot .view-all { display: none; }
}

@media (max-width: 420px) {
  .trenches-screen .market-control-actions { gap: 3px; }
  .trenches-screen .time-tabs button:nth-child(3),
  .trenches-screen .time-tabs button:nth-child(4) { display: none; }
  .trench-card-data { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .trench-card-data > span:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .trench-card,
  .trench-mini { transition: none; }
  .trench-card:hover,
  .trench-mini:hover { transform: none; }
  .trench-rail-skeleton,
  .trench-card-skeleton span,
  .trench-card-skeleton i,
  .trench-card-skeleton b { animation: none; }
}

/* ── SIGNAL DECK TERMINAL ─────────────────────────────────────────────────
   This replaces the old permanent watchlist / chart / ticket triptych. The
   scanner is now a short horizontal signal band and the trade ticket becomes
   a dedicated execution dock, leaving one quiet market workspace. */
.asset-context-ribbon { display: flex; align-items: center; gap: 0; min-height: 28px; padding: 0 18px; overflow: hidden; border-bottom: 1px solid rgba(235,243,238,.065); color: #778289; white-space: nowrap; background: rgba(14,18,23,.84); }
.asset-context-ribbon > span { display: inline-flex; align-items: center; gap: 5px; height: 14px; padding: 0 11px; border-right: 1px solid rgba(235,243,238,.075); font: 8px var(--mono); letter-spacing: .035em; }
.asset-context-ribbon > span:first-child { padding-left: 0; color: #aab6af; }
.asset-context-ribbon > span:last-child { border-right: 0; }
.asset-context-ribbon b { color: var(--mint); font-weight: 600; }
.terminal-intent-heading { display: none; }
.terminal-tape { min-width: 0; min-height: 0; }

@media (min-width: 851px) {
  .terminal-screen {
    background:
      radial-gradient(ellipse at 74% -15%, rgba(34,227,154,.085), transparent 34%),
      linear-gradient(180deg, #0a0e12, #090c10 62%);
  }
  .terminal-topbar { height: 50px; padding: 0 20px; background: rgba(13,17,22,.9); }
  .selected-token-title { gap: 8px; }
  .selected-token-title .token-avatar { width: 30px; height: 30px; border-radius: 8px; }
  .selected-token-title h2 { font-size: 15px; }
  .price-main { font-size: 17px; }
  .asset-context-ribbon { height: 28px; min-height: 28px; }
  .asset-workspace.terminal-grid {
    height: calc(100dvh - var(--header-h) - 78px);
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 322px;
    grid-template-rows: 82px minmax(0, 1fr);
    grid-template-areas:
      "radar intent"
      "stage intent";
    background: rgba(8,12,16,.4);
  }
  body[data-direction="instrument"] .asset-workspace.terminal-grid,
  body[data-direction="tidal"] .asset-workspace.terminal-grid { grid-template-columns: minmax(0, 1fr) 322px; }
  .asset-workspace .terminal-radar {
    grid-area: radar;
    min-width: 0;
    display: grid;
    grid-template-columns: 78px minmax(0, 1.12fr) 1px 66px minmax(230px,.78fr);
    align-items: stretch;
    overflow: hidden;
    border-right: 1px solid rgba(235,243,238,.075);
    border-bottom: 1px solid rgba(235,243,238,.075);
    background: linear-gradient(90deg, rgba(15,20,25,.96), rgba(12,16,21,.72));
  }
  .asset-workspace .terminal-radar .panel-head { height: auto; padding: 0 10px; border: 0; color: #8a949b; font: 700 8px var(--sans); letter-spacing: .07em; }
  .asset-workspace .terminal-radar .panel-head button { display: none; }
  .asset-workspace .terminal-radar .watch-list { min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(124px, 1fr); grid-template-rows: 1fr; gap: 5px; padding: 8px 6px; overflow-x: auto; scrollbar-width: none; }
  .asset-workspace .terminal-radar .watch-list::-webkit-scrollbar { display: none; }
  .asset-workspace .terminal-radar .watch-row { min-width: 124px; grid-template-columns: 22px minmax(0,1fr) auto; gap: 6px; padding: 6px; border: 1px solid rgba(235,243,238,.065); border-left-color: rgba(235,243,238,.065); border-radius: 6px; background: rgba(255,255,255,.015); }
  .asset-workspace .terminal-radar .watch-row:hover { border-color: rgba(235,243,238,.16); background: rgba(255,255,255,.045); }
  .asset-workspace .terminal-radar .watch-row.active { border-color: rgba(34,227,154,.35); background: rgba(34,227,154,.055); }
  .asset-workspace .terminal-radar .watch-row .token-avatar { width: 22px; height: 22px; font-size: 9px; }
  .asset-workspace .terminal-radar .watch-row b { font-size: 9px; }
  .asset-workspace .terminal-radar .watch-row i,
  .asset-workspace .terminal-radar .watch-row em { font-size: 7px; }
  .asset-workspace .terminal-radar .left-divider { width: 1px; height: auto; margin: 12px 0; background: rgba(235,243,238,.075); }
  .asset-workspace .terminal-radar .hot-list { min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px,1fr); gap: 4px; padding: 8px 6px; overflow-x: auto; scrollbar-width: none; }
  .asset-workspace .terminal-radar .hot-list::-webkit-scrollbar { display: none; }
  .asset-workspace .terminal-radar .hot-list button { min-width: 92px; height: 50px; gap: 5px; padding: 5px; border: 1px solid rgba(235,243,238,.06); border-radius: 6px; background: rgba(255,255,255,.012); }
  .asset-workspace .terminal-radar .hot-list > button > b { font-size: 7px; }
  .asset-workspace .terminal-radar .mini-asset { min-width: 0; gap: 4px; }
  .asset-workspace .terminal-radar .mini-asset strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .asset-workspace .terminal-radar .hot-list em { font-size: 7px; }
  .asset-workspace .terminal-radar .left-footnote { display: none; }

  .asset-workspace .terminal-stage {
    grid-area: stage;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: 30px 20px clamp(182px, 25vh, 214px) 46px minmax(0, 1fr);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17,22,28,.44), rgba(9,12,16,.22));
  }
  .asset-workspace .terminal-stage .chart-toolbar { height: 30px; padding: 0 13px; }
  .asset-workspace .terminal-stage .chart-meta { height: 20px; padding: 0 13px; }
  .asset-workspace .terminal-stage .chart-canvas-wrap:not(.expanded) { height: auto; margin: 0 10px; border-radius: 8px 8px 0 0; }
  .asset-workspace .terminal-stage .token-stat-row { height: 46px; margin: 0 10px; }
  .asset-workspace .terminal-stage .terminal-tape { min-height: 0; display: grid; grid-template-rows: 31px minmax(0,1fr); margin: 8px 10px 10px; overflow: hidden; border: 1px solid rgba(235,243,238,.075); border-radius: 8px; background: rgba(13,17,22,.48); }
  .asset-workspace .terminal-stage .trade-feed-head { height: 31px; min-height: 31px; margin: 0; padding: 0 10px; border-bottom: 1px solid rgba(235,243,238,.07); background: rgba(255,255,255,.012); }
  .asset-workspace .terminal-stage .trades-table-wrap { height: 100%; min-height: 0; margin: 0; border: 0; border-radius: 0; overflow: auto; }
  .asset-workspace .terminal-stage .trades-table thead th { background: #11161b; }

  .asset-workspace .terminal-intent {
    grid-area: intent;
    min-width: 0;
    min-height: 0;
    padding: 8px;
    overflow-y: auto;
    border-left: 1px solid rgba(235,243,238,.075);
    background: linear-gradient(180deg, rgba(20,26,32,.94), rgba(13,17,22,.98));
    scrollbar-color: rgba(155,180,166,.32) transparent;
    scrollbar-width: thin;
  }
  .terminal-intent-heading { height: 24px; display: flex; align-items: center; justify-content: space-between; padding: 0 3px 5px; color: #7c878e; font: 700 8px var(--sans); letter-spacing: .07em; }
  .terminal-intent-heading b { color: #9dacA4; font: 7px var(--mono); font-weight: 500; letter-spacing: .02em; }
  .asset-workspace .terminal-intent .trade-card { border-color: rgba(235,243,238,.11); box-shadow: 0 10px 26px rgba(0,0,0,.13); }
  .asset-workspace .terminal-intent .right-info-panel { background: rgba(255,255,255,.022); }
}

@media (min-width: 851px) and (max-width: 1080px) {
  .asset-workspace.terminal-grid { grid-template-columns: minmax(0,1fr) 282px; }
  body[data-direction="instrument"] .asset-workspace.terminal-grid,
  body[data-direction="tidal"] .asset-workspace.terminal-grid { grid-template-columns: minmax(0,1fr) 282px; }
  .asset-workspace .terminal-radar { grid-template-columns: 66px minmax(0,1fr) 1px 54px minmax(184px,.64fr); }
  .asset-workspace .terminal-radar .watch-list { grid-auto-columns: minmax(112px,1fr); }
  .asset-workspace .terminal-radar .hot-list { grid-auto-columns: minmax(76px,1fr); }
  .asset-workspace .terminal-radar .hot-list button { min-width: 76px; }
}

@media (max-width: 850px) {
  .asset-context-ribbon { height: 30px; min-height: 30px; padding: 0 12px; }
  .asset-context-ribbon > span { padding: 0 8px; font-size: 7px; }
  .asset-context-ribbon > span:nth-child(2),
  .asset-context-ribbon > span:nth-child(4) { display: none; }
  .asset-workspace.terminal-grid { height: auto; min-height: 0; }
  .asset-workspace .terminal-tape { display: block; }
  .asset-workspace .terminal-intent-heading { display: none; }
}

/* ── PRODUCT TYPE RESET ───────────────────────────────────────────────────
   Trading UI should feel calm and readable, not like a concept-board. Inter
   carries language and controls; JetBrains is reserved for values, addresses,
   and timestamps where fixed-width scanning is actually useful. */
body {
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

.direction-menu,
.dense-toggle { display: none !important; }

.page-noise { opacity: .018; }
#constellation { opacity: .28; }
.cursor-aura { background: radial-gradient(circle, rgba(34,227,154,.045) 0, rgba(34,227,154,.014) 32%, transparent 68%); }

.route-link,
.global-search,
.wallet-trigger {
  font-family: var(--sans);
  letter-spacing: 0;
}
.global-search { font-size: 11px; }
.wallet-trigger { font-size: 11px; }
.global-search kbd { font-family: var(--mono); letter-spacing: 0; }

.eyebrow,
.hero-proof,
.aside-label,
.ticker-label,
.ticker-link,
.landing-footer-mark,
.auth-brandline,
.auth-step,
.auth-security,
.auth-input-shell span,
.back-auth,
.screen-kicker,
.market-status,
.market-status button,
.filter-caption,
.market-foot,
.search-command-row,
.search-group-label,
.search-footer {
  font-family: var(--sans);
  letter-spacing: .02em;
}

.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .035em; }
.hero-copy h1 { font-weight: 620; letter-spacing: -.064em; }
.hero-copy h1 em { color: #b8f6d4; -webkit-text-stroke: 0; text-shadow: 0 0 22px rgba(34,227,154,.10); }
.hero-subhead { max-width: 505px; color: #aab8b0; letter-spacing: -.012em; }
.hero-proof { color: #829087; font-size: 10px; }
.hero-proof i { font-family: var(--mono); }
.aside-label { font-size: 9px; font-weight: 650; letter-spacing: .04em; }
.ticker-label,
.ticker-link,
.landing-footer-mark { font-size: 9px; font-weight: 600; letter-spacing: .045em; }
.ticker-items span,
.hero-aside strong,
.aside-foot { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.auth-brandline,
.auth-step { font-size: 10px; font-weight: 650; letter-spacing: .045em; }
.auth-panel h2 { letter-spacing: -.052em; }
.auth-panel h2 em { color: #b8f6d4; -webkit-text-stroke: 0; }
.auth-copy { color: #9baaa1; font-size: 13px; letter-spacing: -.008em; }
.auth-security { font-size: 10px; letter-spacing: 0; }
.auth-input-shell span { font-size: 10px; letter-spacing: .01em; }
.auth-input-shell input { letter-spacing: -.018em; }
.auth-wallet-link { font-size: 11px; }
.login-corner-note { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .02em; }

.screen-kicker { font-size: 10px; font-weight: 650; letter-spacing: .035em; }
.market-topline h2 { letter-spacing: -.045em; }
.market-status { font-size: 11px; letter-spacing: 0; }
.market-status b,
.market-foot b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.market-status button { font-size: 10px; font-weight: 600; }
.market-tabs button,
.market-view-switch button,
.time-tabs button,
.chain-chip,
.filter-btn,
.toggle-filter { font-family: var(--sans); letter-spacing: 0; }

.trench-rail-head,
.trench-rail-note,
.trench-lane-head,
.trench-card-data i,
.trench-trust,
.trench-inspect,
.trench-empty,
.trench-radar-empty {
  font-family: var(--sans);
  letter-spacing: .015em;
}
.trench-rail-head,
.trench-lane-head { font-size: 10px; }
.trench-rail-note,
.trench-radar-empty { font-size: 10px; line-height: 1.45; }
.trench-lane-head > small,
.trench-card-name > small { font-family: var(--sans); font-size: 9px; letter-spacing: 0; }
.trench-card-data i { font-size: 8px; }
.trench-card-data b,
.trench-card-price > b,
.trench-ca { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.015em; }

.asset-context-ribbon {
  color: #9aa7a0;
  background: rgba(14,18,23,.88);
}
.asset-context-ribbon > span {
  font: 600 10px/1 var(--sans);
  letter-spacing: .01em;
  text-transform: none;
}
.asset-context-ribbon b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.terminal-intent-heading {
  color: #d7e2dc;
  font: 650 11px/1 var(--sans);
  letter-spacing: 0;
}
.terminal-intent-heading b {
  color: #84928a;
  font: 500 9px/1 var(--sans);
  letter-spacing: 0;
}

.asset-workspace .terminal-radar .panel-head {
  color: #a7b3ac;
  font: 650 10px/1 var(--sans);
  letter-spacing: .015em;
}
.asset-workspace .terminal-radar .watch-row b {
  font: 650 10px/1 var(--sans);
  letter-spacing: 0;
}
.asset-workspace .terminal-radar .watch-row i,
.asset-workspace .terminal-radar .watch-row em,
.asset-workspace .terminal-radar .hot-list > button > b,
.asset-workspace .terminal-radar .hot-list em {
  font-family: var(--mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.asset-workspace .terminal-radar .mini-asset strong { font: 650 10px/1 var(--sans); letter-spacing: 0; }

.chart-view-tabs button,
.range-tabs button,
.chart-switch button,
.detail-tabs button,
.feed-controls,
.trade-balance > span,
.trade-input > span,
.slippage-row,
.fee-truth,
.info-tab-head button,
.info-line,
.terminal-disclaimer,
.funding-details summary,
.pf-lbl {
  font-family: var(--sans);
  letter-spacing: 0;
}
.chart-view-tabs button,
.range-tabs button,
.chart-switch button,
.detail-tabs button { font-size: 10px; }
.chart-meta { font-family: var(--sans); font-size: 9px; letter-spacing: .01em; }
.chart-meta b,
.price-main,
.price-usd,
.delta,
.token-stat-row b,
.token-stat-row i,
.trades-table td,
.detail-tbl td,
.q-row b,
.trade-balance strong,
.trade-balance em,
.trade-input input,
.trade-input b,
.trade-input small,
.mono-link {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.018em;
}
.chart-meta b { font-size: 10px; }
.token-stat-row span { font-family: var(--sans); font-size: 9px; letter-spacing: 0; text-transform: none; }
.token-stat-row b { font-size: 11px; }
.token-stat-row i { font-size: 9px; }
.feed-controls { font-size: 10px; }
.trades-table thead th,
.detail-tbl th { font-family: var(--sans); font-size: 9px; font-weight: 650; letter-spacing: .025em; }
.trades-table td { font-size: 10px; }

.trade-balance > span,
.trade-input > span { color: #93a198; font-size: 10px; font-weight: 650; }
.trade-balance strong { letter-spacing: -.045em; }
.trade-balance em { font-size: 9px; }
.trade-input input { letter-spacing: -.045em; }
.trade-input b { font-size: 10px; }
.trade-input button,
.preset-row button { font-family: var(--sans); font-size: 9px; letter-spacing: 0; }
.slippage-row { font-size: 10px; }
.slippage-row b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.fee-truth { font-size: 9px; }
.fee-truth b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.q-row { font-family: var(--sans); font-size: 10px; letter-spacing: 0; }
.trade-status,
.funding-summary { font-family: var(--sans); font-size: 10px; letter-spacing: 0; }
.funding-details summary,
.pf-lbl { font-size: 10px; }

.info-tab-head button { font-size: 10px; }
.info-line { font-size: 10px; }
.info-line > b { font-family: var(--sans); }
.mono-link { font-size: 9px; }
.locked-stamp { font-family: var(--sans) !important; font-size: 9px; letter-spacing: 0; }
.terminal-disclaimer { font-size: 10px; letter-spacing: 0; }

@media (min-width: 851px) {
  .asset-workspace .terminal-radar .watch-row i,
  .asset-workspace .terminal-radar .watch-row em { font-size: 9px; }
  .asset-workspace .terminal-radar .hot-list > button > b,
  .asset-workspace .terminal-radar .hot-list em { font-size: 8px; }
  .asset-workspace .terminal-stage .trades-table td { height: 27px; }
}

@media (max-width: 850px) {
  .asset-context-ribbon > span { padding: 0 8px; font-size: 9px; }
  .asset-context-ribbon > span:nth-child(2) { display: inline-flex; }
  .asset-context-ribbon > span:nth-child(3) { display: none; }
  .token-stat-row span { font-size: 9px; }
  .trades-table td { font-size: 9px; }
}

/* ── MODERN PRODUCT SURFACE ───────────────────────────────────────────────
   Keep the signal-deck layout, but give it the calmer hierarchy and material
   quality of a current trading product: one system typeface for the UI, one
   quiet mono face for values, softer graphites, and fewer "terminal" cues. */
:root {
  --ink: #0a0c11;
  --ink-2: #0e1118;
  --ink-3: #151922;
  --ink-4: #1a1f29;
  --paper: #f4f7fb;
  --muted: #929bab;
  --dim: #606a7a;
  --line: rgba(233, 240, 248, .075);
  --line-strong: rgba(233, 240, 248, .14);
  --mint: #49e4a5;
  --mint-hi: #a5ffda;
  --mint-faint: rgba(73, 228, 165, .10);
  --mint-glow: rgba(73, 228, 165, .20);
  --radius: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, "JetBrains Mono", monospace;
}

body {
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-header::before { background: linear-gradient(90deg, rgba(10,12,17,.96), rgba(10,12,17,.83) 53%, rgba(10,12,17,.96)); }
.app-header.scrolled,
body:not([data-screen="landing"]) .app-header { background: rgba(10,12,17,.84); }
.brand-mark { filter: drop-shadow(0 0 7px rgba(73,228,165,.18)); }
.brand-type { letter-spacing: -.055em; }
.route-link { color: #8892a1; font-size: 13px; font-weight: 560; }
.route-link:hover,
.route-link.current { color: #f4f7fb; }
.global-search,
.wallet-trigger { border-color: rgba(233,240,248,.11); background: rgba(255,255,255,.015); }
.global-search:hover,
.wallet-trigger:hover { border-color: rgba(233,240,248,.19); background: rgba(255,255,255,.035); box-shadow: none; }

.trenches-screen { background: radial-gradient(ellipse at 68% -9%, rgba(73,228,165,.065), transparent 35%), #0a0c11; }
.trenches-screen::after { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); }
.trenches-screen .market-topline { height: 52px; padding-bottom: 8px; }
.trenches-screen .market-topline h2 { color: #f5f7fb; font-size: 26px; font-weight: 680; letter-spacing: -.05em; }
.trenches-screen .screen-kicker { color: #8d98a7; font-size: 10px; font-weight: 600; }
.trenches-screen .market-status { color: #9ca6b5; font-size: 11px; }
.trenches-screen .market-status button { color: #c7d2dc; border-color: rgba(233,240,248,.10); background: rgba(255,255,255,.015); }
.trenches-screen .market-control-row,
.trenches-screen[data-market-view="trenches"] .trench-layout { border-color: rgba(233,240,248,.08); background: #10131a; }
.trenches-screen .market-control-row { border-radius: 10px 10px 0 0; background: rgba(19,23,31,.92); }
.trenches-screen .market-tabs button { color: #8a94a3; font-size: 11px; font-weight: 650; }
.trenches-screen .market-tabs button.selected { color: #f2f6f9; }
.trenches-screen .time-tabs button,
.trenches-screen .market-view-switch button { font-size: 9px; }
.trenches-screen .chain-chip { border-color: rgba(233,240,248,.075); color: #a1aaba; }
.trenches-screen .market-filters { border-color: rgba(233,240,248,.07); }
.trench-radar { background: linear-gradient(180deg, #11151c, #0e1117); border-right-color: rgba(233,240,248,.075); }
.trench-rail-head { min-height: 40px; color: #c6ced8; font-size: 11px; font-weight: 650; }
.trench-rail-action,
.trench-live-count { color: #7f8a99; font-size: 9px; }
.trench-rail-note { color: #818c9a; font-size: 10px; }
.trench-board { background: #0f1218; }
.trench-lane { border-left-color: rgba(233,240,248,.075); }
.trench-lane-head { min-height: 43px; padding: 0 12px; background: rgba(255,255,255,.012); }
.trench-lane-head b { color: #eaf0f4; font-size: 12px; font-weight: 650; }
.trench-lane-head small { color: #7e8998; font-size: 9px; }
.trench-lane-head > em { color: #8f9aa7; border-color: rgba(233,240,248,.09); }
.trench-card {
  min-height: 124px;
  margin-bottom: 8px;
  border-color: rgba(233,240,248,.08);
  border-radius: 11px;
  background: linear-gradient(145deg, #171b23, #12161d);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}
.trench-card:hover { border-color: rgba(160,255,214,.34); background: linear-gradient(145deg, #1a2029, #131820); }
.trench-card-open { padding: 11px 11px 7px; }
.trench-avatar { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; }
.trench-card-name > b { font-size: 12px; font-weight: 680; }
.trench-card-name > small { color: #929dac; font-size: 9px; }
.trench-card-name > em,
.trench-card-price > b { font-size: 9px; }
.trench-card-price > b { color: #eef3f6; font-size: 11px; }
.trench-card-data { padding: 0 11px 8px; }
.trench-card-data i { color: #7f8998; font-size: 8px; }
.trench-card-data b { color: #cbd4dd; font-size: 9px; }
.trench-card-footer { min-height: 29px; padding: 4px 8px; border-top-color: rgba(233,240,248,.065); }
.trench-trust { border-radius: 4px; font-size: 8px; }
.trench-inspect { height: 21px; border-radius: 4px; font-size: 8px; }

@media (min-width: 851px) {
  .terminal-screen {
    background: radial-gradient(ellipse at 71% -12%, rgba(73,228,165,.065), transparent 34%), #0a0c11;
  }
  .terminal-topbar {
    height: 54px;
    padding: 0 22px;
    border-bottom-color: rgba(233,240,248,.08);
    background: rgba(13,16,22,.93);
  }
  .selected-token-title h2 { color: #f4f7fb; font-size: 17px; font-weight: 680; letter-spacing: -.035em; }
  .selected-token-title p { color: #8e98a7; font-size: 10px; }
  .price-main { color: #f4f7fb; font-size: 20px; font-weight: 650; letter-spacing: -.045em; }
  .delta { font-size: 10px; font-weight: 650; }
  .terminal-actions .icon-button,
  .terminal-chain { border-color: rgba(233,240,248,.11); border-radius: 8px; }
  .asset-context-ribbon {
    height: 32px;
    min-height: 32px;
    padding: 0 22px;
    border-bottom-color: rgba(233,240,248,.075);
    background: rgba(16,19,26,.88);
  }
  .asset-context-ribbon > span { color: #a8b2bd; font-size: 10px; }
  .asset-workspace.terminal-grid {
    height: calc(100dvh - var(--header-h) - 86px);
    background: #0d1016;
  }
  .asset-workspace .terminal-radar {
    grid-template-columns: 88px minmax(0,1.1fr) 1px 82px minmax(220px,.82fr);
    border-right-color: rgba(233,240,248,.075);
    border-bottom-color: rgba(233,240,248,.075);
    background: linear-gradient(90deg, #11151c, #10131a);
  }
  .asset-workspace .terminal-radar .panel-head { color: #c0c9d3; font-size: 11px; font-weight: 650; }
  .asset-workspace .terminal-radar .watch-list,
  .asset-workspace .terminal-radar .hot-list { padding: 9px 7px; gap: 6px; }
  .asset-workspace .terminal-radar .watch-row,
  .asset-workspace .terminal-radar .hot-list button {
    border-color: rgba(233,240,248,.08);
    border-radius: 9px;
    background: rgba(255,255,255,.02);
  }
  .asset-workspace .terminal-radar .watch-row:hover,
  .asset-workspace .terminal-radar .hot-list button:hover { background: rgba(255,255,255,.045); border-color: rgba(233,240,248,.16); }
  .asset-workspace .terminal-radar .watch-row b,
  .asset-workspace .terminal-radar .mini-asset strong { color: #e3e9ee; font-size: 11px; }
  .asset-workspace .terminal-radar .watch-row i,
  .asset-workspace .terminal-radar .watch-row em { font-size: 9px; }
  .asset-workspace .terminal-stage {
    grid-template-rows: 36px 24px clamp(176px, 24vh, 210px) 52px minmax(0, 1fr);
    background: linear-gradient(180deg, #10141b, #0d1016);
  }
  .asset-workspace .terminal-stage .chart-toolbar { height: 36px; padding: 0 14px; }
  .asset-workspace .terminal-stage .chart-meta { height: 24px; padding: 0 14px; }
  .chart-view-tabs button,
  .range-tabs button,
  .chart-switch button { color: #909baa; font-size: 11px; }
  .chart-view-tabs button.selected,
  .range-tabs button.selected,
  .chart-switch button.selected { color: #f1f5f7; }
  .chart-meta { color: #8994a2; font-size: 10px; }
  .chart-meta b { color: #cbd5dc; font-size: 10px; }
  .asset-workspace .terminal-stage .chart-canvas-wrap:not(.expanded) {
    border-color: rgba(233,240,248,.08);
    border-radius: 11px 11px 0 0;
    background: radial-gradient(ellipse at 70% 0%, rgba(73,228,165,.035), transparent 50%), #10141b;
  }
  .asset-workspace .terminal-stage .token-stat-row {
    height: 52px;
    border-color: rgba(233,240,248,.075);
    border-top: 0;
    border-radius: 0 0 11px 11px;
    background: rgba(255,255,255,.012);
  }
  .token-stat-row > div { padding: 0 12px; }
  .token-stat-row span { color: #8994a2; font-size: 10px; }
  .token-stat-row b { color: #eef3f5; font-size: 12px; }
  .token-stat-row i { font-size: 9px; }
  .asset-workspace .terminal-stage .terminal-tape {
    margin: 9px 10px 10px;
    border-color: rgba(233,240,248,.075);
    border-radius: 11px;
    background: #11151c;
  }
  .asset-workspace .terminal-stage .trade-feed-head { height: 34px; min-height: 34px; padding: 0 12px; background: rgba(255,255,255,.015); }
  .detail-tabs { gap: 18px; }
  .detail-tabs button { color: #8994a2; font-size: 11px; }
  .detail-tabs button.selected { color: #f2f5f7; }
  .feed-controls { color: #9da8b4; font-size: 10px; }
  .asset-workspace .terminal-stage .trades-table thead th { background: #151a22; }
  .trades-table thead th { color: #8792a0; font-size: 10px; }
  .asset-workspace .terminal-stage .trades-table td { height: 29px; color: #c0cad3; font-size: 10px; }
  .trades-table .wallet-short { color: #8c97a5; }
  .asset-workspace .terminal-intent {
    padding: 10px;
    border-left-color: rgba(233,240,248,.075);
    background: linear-gradient(180deg, #151922, #10131a);
  }
  .terminal-intent-heading { height: 28px; padding: 0 3px 7px; color: #eef3f6; font-size: 12px; }
  .terminal-intent-heading b { color: #8f9aa8; font-size: 10px; }
  .asset-workspace .terminal-intent .trade-card {
    border-color: rgba(233,240,248,.09);
    border-radius: 12px;
    background: linear-gradient(145deg, #1a1f28, #141820);
    box-shadow: 0 14px 32px rgba(0,0,0,.16);
  }
  .trade-card-head { height: 44px; }
  .buy-sell-tabs button { font-size: 12px; }
  .trade-balance { margin-top: 11px; }
  .trade-balance > span,
  .trade-input > span { color: #a3aebb; font-size: 11px; }
  .trade-balance strong { color: #f2f5f7; font-size: 14px; }
  .trade-balance em { color: #8f9aa8; font-size: 9px; }
  .trade-input { margin-top: 10px; padding: 9px 10px 7px; border-color: rgba(233,240,248,.11); border-radius: 9px; background: rgba(8,10,14,.32); }
  .trade-input input { color: #f4f7fb; font-size: 19px; }
  .trade-input b { color: #b6c0ca; font-size: 10px; }
  .preset-row { gap: 5px; }
  .preset-row button { height: 24px; border-color: rgba(233,240,248,.10); border-radius: 6px; color: #97a2af; font-size: 9px; }
  .trade-swap-icon { width: 23px; height: 23px; border-color: rgba(233,240,248,.12); background: #1a2028; }
  .slippage-row { color: #a2adba; font-size: 10px; }
  .trade-submit { height: 42px; border-radius: 9px; font-size: 12px; box-shadow: 0 8px 21px rgba(73,228,165,.12); }
  .fee-truth { color: #8c97a4; font-size: 9px; }
  .asset-workspace .terminal-intent .right-info-panel { border-color: rgba(233,240,248,.08); border-radius: 11px; background: rgba(255,255,255,.018); }
  .info-tab-head { height: 38px; }
  .info-tab-head button { font-size: 10px; }
  .info-line { color: #96a1ad; font-size: 10px; }
  .info-line > b { color: #dbe3e8; }
  .terminal-disclaimer { color: #8893a0; font-size: 10px; }
}

@media (min-width: 851px) and (max-width: 1080px) {
  .asset-workspace .terminal-radar { grid-template-columns: 76px minmax(0,1fr) 1px 72px minmax(170px,.64fr); }
}

@media (max-width: 850px) {
  .app-header { background: rgba(10,12,17,.88); }
  .terminal-screen { background: #0a0c11; }
  .terminal-topbar { background: #10131a; }
  .asset-context-ribbon { background: #11151c; }
  .chart-canvas-wrap:not(.expanded),
  .trades-table-wrap { background: #11151c; }
  .mobile-trade-dock { background: rgba(16,19,26,.96); }
}

/* Geist Sans + Mono v1.7.2 are bundled from the official Vercel release so
   every device gets one coherent UI/data type system under the existing CSP.
   These are the full variable webfonts (including Turkish Latin Extended),
   not the smaller Latin-only compatibility files kept below as fallbacks. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-v1.7.2.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-mono-v1.7.2.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-medium.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-bold.woff2") format("woff2");
}

/* ── QUIET, CURRENT TERMINAL FINISH ─────────────────────────────────────── */
:root {
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "Inter", sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", ui-monospace, Menlo, Monaco, "JetBrains Mono", monospace;
}
body {
  font-size: 15px;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: -.004em;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  font-synthesis: none;
}
.page-noise,
.cursor-aura,
.chart-watermark { display: none; }
#constellation { opacity: .10; }

.market-view-switch,
.chart-switch {
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(233,240,248,.09);
  border-radius: 8px;
  background: #171c25;
}
.market-view-switch button,
.chart-switch button {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
}
.market-view-switch button.selected,
.chart-switch button.selected {
  color: #092117;
  background: #aef2d0;
}

@media (min-width: 851px) {
  .asset-context-ribbon { display: none; }
  .asset-workspace.terminal-grid { height: calc(100dvh - var(--header-h) - 54px); }
  .terminal-intent-heading { height: 34px; padding: 0 4px 8px; font-size: 13px; }
  .terminal-intent-heading b { display: none; }

  .asset-workspace .terminal-stage .chart-canvas-wrap:not(.expanded),
  .asset-workspace .terminal-stage .terminal-tape,
  .asset-workspace .terminal-intent .trade-card,
  .asset-workspace .terminal-intent .right-info-panel {
    border: 1px solid rgba(233,240,248,.085);
    background: #151a23;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 16px 34px rgba(0,0,0,.14);
  }
  .asset-workspace .terminal-stage .chart-canvas-wrap:not(.expanded) { background: #11161e; }
  .asset-workspace .terminal-stage .terminal-tape { background: #151a23; }
  .asset-workspace .terminal-intent .trade-card { background: #171c25; }
  .asset-workspace .terminal-intent .right-info-panel { background: #151a23; }
  .asset-workspace .terminal-stage .trades-table td { font-size: 11px; }
}

/* Readability is a feature: increase type and controls without increasing the
   chart or the tape itself. Dense data stays dense, but no longer microscopic. */
@media (min-width: 851px) {
  .brand-type { font-size: 18px; }
  .route-link { font-size: 14px; }
  .global-search,
  .wallet-trigger { height: 34px; font-size: 12px; }

  .trenches-screen .market-topline h2 { font-size: 28px; }
  .trenches-screen .screen-kicker { font-size: 11px; }
  .trenches-screen .market-status { font-size: 12px; }
  .trenches-screen .market-tabs button { font-size: 12px; }
  .trenches-screen .time-tabs button,
  .trenches-screen .market-view-switch button,
  .trenches-screen .chain-chip { font-size: 10px; }
  .trench-rail-head { font-size: 12px; }
  .trench-rail-note { font-size: 11px; }
  .trench-lane-head b { font-size: 13px; }
  .trench-lane-head small { font-size: 10px; }
  .trench-card-name > b { font-size: 14px; }
  .trench-card-name > small { font-size: 10px; }
  .trench-card-price > b { font-size: 12px; }
  .trench-card-data i { font-size: 9px; }
  .trench-card-data b { font-size: 10px; }
  .trench-trust,
  .trench-inspect { font-size: 9px; }

  .selected-token-title h2 { font-size: 19px; }
  .selected-token-title p { font-size: 11px; }
  .price-main { font-size: 22px; }
  .delta { font-size: 11px; }
  .asset-workspace .terminal-radar .panel-head { font-size: 12px; }
  .asset-workspace .terminal-radar .watch-row b,
  .asset-workspace .terminal-radar .mini-asset strong { font-size: 12px; }
  .asset-workspace .terminal-radar .watch-row i,
  .asset-workspace .terminal-radar .watch-row em,
  .asset-workspace .terminal-radar .hot-list > button > b,
  .asset-workspace .terminal-radar .hot-list em { font-size: 10px; }

  .chart-view-tabs button,
  .range-tabs button,
  .chart-switch button { font-size: 12px; }
  .chart-meta { font-size: 11px; }
  .chart-meta b { font-size: 11px; }
  .token-stat-row span { font-size: 11px; }
  .token-stat-row b { font-size: 13px; }
  .token-stat-row i { font-size: 10px; }
  .detail-tabs button { font-size: 12px; }
  .feed-controls { font-size: 11px; }
  .trades-table thead th { font-size: 11px; }
  .asset-workspace .terminal-stage .trades-table td { height: 32px; font-size: 12px; }

  .terminal-intent-heading { font-size: 14px; }
  .buy-sell-tabs button { font-size: 13px; }
  .trade-balance > span,
  .trade-input > span { font-size: 12px; }
  .trade-balance strong { font-size: 16px; }
  .trade-balance em { font-size: 10px; }
  .trade-input input { font-size: 22px; }
  .trade-input b { font-size: 11px; }
  .trade-input button,
  .preset-row button { font-size: 10px; }
  .slippage-row { font-size: 11px; }
  .trade-submit { font-size: 13px; }
  .fee-truth { font-size: 10px; }
  .trade-status,
  .funding-summary { font-size: 11px; }
  .info-tab-head button,
  .info-line,
  .terminal-disclaimer { font-size: 11px; }
  .mono-link { font-size: 10px; }
}

@media (max-width: 850px) {
  body { font-size: 15px; }
  .selected-token-title h2 { font-size: 14px; }
  .chart-view-tabs button,
  .range-tabs button,
  .chart-switch button { font-size: 11px; }
  .token-stat-row span { font-size: 10px; }
  .token-stat-row b { font-size: 12px; }
  .detail-tabs button { font-size: 11px; }
  .trades-table td { font-size: 10px; }
  .trade-input > span,
  .trade-balance > span { font-size: 11px; }
  .trade-input input { font-size: 21px; }
}

/* Markets gets its own readable scan scale. It remains a three-stream board,
   but a person should be able to scan it without treating it like microprint. */
@media (min-width: 851px) {
  .trenches-screen { padding: calc(var(--header-h) + 12px) 16px 8px; }
  .trenches-screen .market-topline { height: 60px; padding: 0 7px 9px; }
  .trenches-screen .market-topline h2 { font-size: 31px; }
  .trenches-screen .screen-kicker { margin-bottom: 5px; font-size: 12px; }
  .trenches-screen .market-status { gap: 9px; padding-top: 8px; font-size: 13px; }
  .trenches-screen .market-status button { min-height: 30px; padding: 0 10px; border-radius: 7px; font-size: 11px; }

  .trenches-screen .market-control-row { height: 44px; min-height: 44px; padding: 0 8px; }
  .trenches-screen .market-tabs { gap: 20px; }
  .trenches-screen .market-tabs button { height: 43px; font-size: 13px; }
  .trenches-screen .time-tabs button { height: 27px; padding: 0 9px; font-size: 11px; }
  .trenches-screen .market-view-switch button { min-height: 27px; font-size: 11px; }
  .trenches-screen .chain-filter-row { height: 40px; margin-top: 6px; padding: 0 7px; }
  .trenches-screen .filter-caption { font-size: 10px; }
  .trenches-screen .chain-chip { height: 29px; padding: 0 9px; border-radius: 7px; font-size: 11px; }
  .trenches-screen .market-filters { min-height: 44px; height: 44px; padding: 0 7px; }
  .trenches-screen .filter-btn { padding: 6px 7px; font-size: 10px; }
  .trenches-screen .toggle-filter { font-size: 10px; }

  .trenches-screen[data-market-view="trenches"] .trench-layout {
    height: calc(100dvh - var(--header-h) - 239px);
    grid-template-columns: 244px minmax(0,1fr);
    border-radius: 0 0 12px 12px;
  }
  .trenches-screen[data-market-view="trenches"] .market-foot { height: 28px; padding: 0 7px; font-size: 10px; }
  .trench-rail-head { min-height: 46px; padding: 0 12px; font-size: 13px; }
  .trench-rail-action,
  .trench-live-count { font-size: 10px; }
  .trench-watch-list,
  .trench-scan-list { padding: 7px; }
  .trench-mini { grid-template-columns: 28px minmax(0,1fr) auto; min-height: 47px; gap: 8px; padding: 6px; border-radius: 7px; }
  .trench-mini-avatar { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; }
  .trench-mini b { font-size: 11px; }
  .trench-mini small,
  .trench-mini em { font-size: 9px; }
  .trench-radar-empty { padding: 13px 10px; }
  .trench-radar-empty b { font-size: 11px; }
  .trench-radar-empty span,
  .trench-rail-note { font-size: 10px; }

  .trench-lane { grid-template-rows: 50px minmax(0,1fr); }
  .trench-lane-head { padding: 0 13px; }
  .trench-lane-head b { font-size: 15px; }
  .trench-lane-head small { font-size: 11px; }
  .trench-lane-head > em { min-width: 24px; height: 21px; font-size: 9px; }
  .trench-lane-scroll { padding: 9px; }
  .trench-card { min-height: 142px; margin-bottom: 9px; border-radius: 12px; }
  .trench-card-open { gap: 10px; padding: 12px 12px 8px; }
  .trench-card-identity { gap: 9px; }
  .trench-avatar { width: 35px; height: 35px; flex-basis: 35px; border-radius: 10px; font-size: 13px; }
  .trench-card-name > b { font-size: 15px; }
  .trench-card-name > small { max-width: 132px; font-size: 11px; }
  .trench-card-name > em { font-size: 10px; }
  .trench-card-price > b { font-size: 13px; }
  .trench-card-price .change-up,
  .trench-card-price .change-down { font-size: 10px; }
  .trench-card-data { gap: 6px; padding: 0 12px 10px; }
  .trench-card-data i { font-size: 10px; }
  .trench-card-data b { font-size: 11px; }
  .trench-card-footer { min-height: 33px; padding: 5px 9px; }
  .trench-trust,
  .trench-ca { font-size: 9px; }
  .trench-star { width: 22px; height: 22px; flex-basis: 22px; font-size: 14px; }
  .trench-inspect { height: 23px; padding: 0 7px; border-radius: 5px; font-size: 9px; }
}

@media (max-width: 850px) {
  .trenches-screen .market-topline h2 { font-size: 28px; }
  .trenches-screen .screen-kicker { font-size: 11px; }
  .trenches-screen .market-tabs button { font-size: 12px; }
  .trenches-screen .time-tabs button,
  .trenches-screen .market-view-switch button { font-size: 10px; }
  .trenches-screen .chain-chip { font-size: 10px; }
  .trenches-screen[data-market-view="trenches"] .trench-layout { min-height: 420px; }
  .trench-lane-head { min-height: 48px; }
  .trench-lane-head b { font-size: 14px; }
  .trench-lane-head small { font-size: 10px; }
  .trench-card { min-height: 136px; margin-bottom: 9px; border-radius: 11px; }
  .trench-card-open { padding: 11px 11px 7px; }
  .trench-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .trench-card-name > b { font-size: 14px; }
  .trench-card-name > small { font-size: 10px; }
  .trench-card-price > b { font-size: 12px; }
  .trench-card-data i { font-size: 9px; }
  .trench-card-data b { font-size: 10px; }
  .trench-card-footer { min-height: 32px; }
}

/* Markets is a working surface, not a centred landing-page panel. */
@media (min-width: 851px) {
  .trenches-screen .market-topline,
  .trenches-screen .market-control-row,
  .trenches-screen .chain-filter-row,
  .trenches-screen .market-filters,
  .trenches-screen .markets-table-wrap,
  .trenches-screen[data-market-view="trenches"] .trench-layout,
  .trenches-screen[data-market-view="trenches"] .market-foot {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* A data-dense interface can be compact without becoming microtype. */
@media (min-width: 851px) {
  .brand-type { font-size: 19px; letter-spacing: -.055em; }
  .route-link { font-size: 14px; font-weight: 600; }
  .global-search,
  .wallet-trigger { font-size: 12px; }

  .trenches-screen .market-topline h2 { font-size: 33px; font-weight: 650; letter-spacing: -.05em; }
  .trenches-screen .market-status { font-size: 14px; }
  .trenches-screen .market-status button { font-size: 12px; font-weight: 600; }
  .trenches-screen .market-tabs button { font-size: 14px; font-weight: 600; }
  .trenches-screen .time-tabs button,
  .trenches-screen .market-view-switch button,
  .trenches-screen .chain-chip { font-size: 12px; font-weight: 500; }
  .trenches-screen .filter-caption,
  .trenches-screen .filter-btn,
  .trenches-screen .toggle-filter,
  .trenches-screen .market-foot { font-size: 11px; }

  .trench-rail-head,
  .trench-lane-head b { font-size: 16px; font-weight: 650; }
  .trench-lane-head small { font-size: 12px; }
  .trench-mini b { font-size: 12px; }
  .trench-mini small,
  .trench-mini em { font-size: 10px; }
  .trench-card-name > b { font-size: 16px; font-weight: 650; }
  .trench-card-name > small { font-size: 12px; }
  .trench-card-name > em { font-size: 11px; }
  .trench-card-price > b { font-size: 14px; }
  .trench-card-data i { font-size: 11px; }
  .trench-card-data b { font-size: 12px; }
  .trench-trust,
  .trench-ca,
  .trench-inspect { font-size: 10px; }

  .selected-token-title h2 { font-size: 20px; }
  .selected-token-title p,
  .terminal-chain { font-size: 12px; }
  .price-main { font-size: 24px; letter-spacing: -.025em; }
  .delta { font-size: 12px; }
  .asset-workspace .terminal-radar .watch-row b,
  .asset-workspace .terminal-radar .mini-asset strong { font-size: 13px; }
  .asset-workspace .terminal-radar .watch-row i,
  .asset-workspace .terminal-radar .watch-row em,
  .asset-workspace .terminal-radar .hot-list em { font-size: 11px; }
  .chart-view-tabs button,
  .range-tabs button,
  .chart-switch button,
  .detail-tabs button { font-size: 12px; }
  .chart-meta,
  .chart-meta b { font-size: 12px; }
  .token-stat-row span { font-size: 11px; }
  .token-stat-row b { font-size: 14px; letter-spacing: -.015em; }
  .token-stat-row i { font-size: 11px; }
  .trades-table thead th { font-size: 11px; }
  .asset-workspace .terminal-stage .trades-table td { font-size: 13px; }
  .trade-balance > span,
  .trade-input > span { font-size: 13px; }
  .trade-balance strong { font-size: 18px; }
  .trade-balance em { font-size: 11px; }
  .trade-input input { font-size: 24px; letter-spacing: -.02em; }
  .trade-input b,
  .trade-input button,
  .preset-row button,
  .fee-truth { font-size: 12px; }
  .trade-submit { font-size: 15px; }
  .info-tab-head button,
  .info-line,
  .terminal-disclaimer { font-size: 12px; }
}

@media (max-width: 850px) {
  .trenches-screen .market-topline h2 { font-size: 30px; }
  .trenches-screen .market-tabs button { font-size: 13px; }
  .trench-card-name > b { font-size: 15px; }
  .trench-card-name > small { font-size: 11px; }
  .trench-card-data i { font-size: 10px; }
  .trench-card-data b { font-size: 11px; }
}

/* NoFee colour roles: iris is product navigation and action; green is market
   meaning. The dark surfaces stay neutral so data—not decoration—does the work. */
:root {
  --ink: #0b0d12;
  --ink-2: #10131a;
  --ink-3: #151a23;
  --ink-4: #1b2130;
  --paper: #f5f7fb;
  --muted: #9aa3b2;
  --dim: #697384;
  --line: rgba(233, 238, 247, .08);
  --line-strong: rgba(233, 238, 247, .15);
  --brand: #8c7cff;
  --brand-hi: #b8b0ff;
  --brand-faint: rgba(140, 124, 255, .13);
  --brand-glow: rgba(140, 124, 255, .24);
  --positive: #39d69a;
  --positive-hi: #94f1c6;
  --positive-faint: rgba(57, 214, 154, .11);
  --mint: var(--positive);
  --mint-hi: var(--positive-hi);
  --mint-faint: var(--positive-faint);
  --mint-glow: rgba(57, 214, 154, .20);
  --red: #ff6b83;
  --yellow: #f4b96c;
}

button:focus-visible,
input:focus-visible { outline-color: var(--brand); }
::selection { color: #faf9ff; background: var(--brand); }

.app-header::before { background: linear-gradient(90deg, rgba(11,13,18,.97), rgba(11,13,18,.88) 53%, rgba(11,13,18,.97)); }
.app-header.scrolled,
body:not([data-screen="landing"]) .app-header { background: rgba(11,13,18,.88); }
.brand { color: var(--brand); }
.brand-mark { filter: drop-shadow(0 0 8px var(--brand-glow)); }
.route-link.current::after,
.market-tabs button.selected::after,
.detail-tabs button.selected::after,
.buy-sell-tabs[data-side="buy"] button.selected::after {
  background: var(--brand);
  box-shadow: 0 0 11px var(--brand-glow);
}
.buy-sell-tabs[data-side="buy"] button.selected { color: var(--brand-hi); }

.trenches-screen,
.terminal-screen {
  background:
    radial-gradient(72rem 30rem at 66% -18%, rgba(140,124,255,.09), transparent 58%),
    linear-gradient(180deg, #0d0f15 0%, #090b10 100%);
}
.trenches-screen::after { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); }
body[data-screen="markets"] #constellation,
body[data-screen="token"] #constellation { opacity: .025; filter: saturate(.7); }

.chain-chip.selected {
  color: #eeeaff;
  border-color: rgba(140,124,255,.46);
  background: var(--brand-faint);
}
.market-view-switch button.selected,
.chart-switch button.selected,
.time-tabs button.selected,
.preset-row button.selected {
  color: #eeeaff;
  background: var(--brand-faint);
  box-shadow: inset 0 0 0 1px rgba(140,124,255,.30);
}

.trench-radar { background: #10141b; }
.trench-board { background: #0d1016; }
.trench-lane-head,
.asset-workspace .terminal-stage .trade-feed-head {
  background: rgba(255,255,255,.018);
  box-shadow: inset 0 -1px 0 rgba(233,238,247,.07);
}
.trench-card {
  border-color: rgba(233,238,247,.085);
  background: #151a23;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 1px 2px rgba(0,0,0,.20);
}
.trench-card:hover {
  border-color: rgba(140,124,255,.43);
  background: #19202a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 22px rgba(0,0,0,.18);
}
.asset-workspace .terminal-stage .chart-canvas-wrap:not(.expanded) {
  background: radial-gradient(ellipse at 70% 0%, rgba(140,124,255,.045), transparent 50%), #10141b;
}
.asset-workspace .terminal-stage .terminal-tape,
.asset-workspace .terminal-intent .trade-card,
.asset-workspace .terminal-intent .right-info-panel {
  background: #151a23;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 1px 2px rgba(0,0,0,.20);
}
.asset-workspace .terminal-radar .watch-row.active {
  border-color: rgba(140,124,255,.45);
  background: rgba(140,124,255,.09);
}

.quick-buy,
.trench-inspect {
  color: #eeeaff;
  border-color: rgba(140,124,255,.35);
  background: var(--brand-faint);
}
.quick-buy:hover,
.trench-inspect:hover {
  color: #faf9ff;
  background: var(--brand);
}
.trade-submit:not(.sell-mode) {
  color: #faf9ff;
  background: linear-gradient(135deg, #9b8fff, #7b6eed);
  box-shadow: 0 8px 22px rgba(140,124,255,.20);
}
.trade-submit:not(.sell-mode):hover { background: linear-gradient(135deg, #b0a6ff, #877af5); }
.trade-submit:not(.sell-mode) i { color: var(--brand); background: rgba(255,255,255,.92); }
.markets-table tbody tr:hover { background: linear-gradient(90deg, rgba(140,124,255,.075), transparent 52%); }
.markets-table tbody tr:hover::before { background: var(--brand); box-shadow: 0 0 9px var(--brand-glow); }

.chain-chip,
.filter-btn,
.time-tabs button,
.market-view-switch button,
.chart-switch button,
.preset-row button,
.icon-button,
.settings-button {
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.chain-chip:hover,
.filter-btn:hover,
.time-tabs button:hover,
.market-view-switch button:hover,
.chart-switch button:hover,
.preset-row button:hover,
.icon-button:hover,
.settings-button:hover {
  color: var(--paper);
  border-color: rgba(233,238,247,.19);
  background: rgba(255,255,255,.035);
}

* { scrollbar-width: thin; scrollbar-color: rgba(154,164,181,.36) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(154,164,181,.36); background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: rgba(184,176,255,.58); }

/* Graphite + frost: no coloured canvas, no violet glow. Colour now signals
   market direction only; the product surface itself stays deliberately quiet. */
:root {
  --ink: #0c0c0d;
  --ink-2: #111113;
  --ink-3: #161619;
  --ink-4: #1d1d20;
  --paper: #f2f2f3;
  --muted: #a0a0a7;
  --dim: #696970;
  --line: rgba(255,255,255,.085);
  --line-strong: rgba(255,255,255,.16);
  --brand: #c7cbd2;
  --brand-hi: #f2f3f5;
  --brand-faint: rgba(199,203,210,.075);
  --brand-glow: transparent;
  --positive: #59b98b;
  --positive-hi: #a9dfc3;
  --positive-faint: rgba(89,185,139,.10);
  --mint: var(--positive);
  --mint-hi: var(--positive-hi);
  --mint-faint: var(--positive-faint);
  --mint-glow: transparent;
  --red: #df7781;
  --yellow: #c6a36f;
}

.trenches-screen,
.terminal-screen { background: var(--ink); }
.trenches-screen::after,
#constellation,
.app-header::before { display: none; }
.app-header.scrolled,
body:not([data-screen="landing"]) .app-header {
  background: rgba(12,12,13,.94);
  border-bottom-color: var(--line);
}
.brand-mark { filter: none; }

.route-link.current::after,
.market-tabs button.selected::after,
.detail-tabs button.selected::after,
.buy-sell-tabs[data-side="buy"] button.selected::after,
.markets-table tbody tr:hover::before {
  background: var(--brand);
  box-shadow: none;
}
.chain-chip.selected,
.market-view-switch button.selected,
.chart-switch button.selected,
.time-tabs button.selected,
.preset-row button.selected,
.asset-workspace .terminal-radar .watch-row.active {
  color: var(--paper);
  border-color: var(--line-strong);
  background: var(--brand-faint);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.trench-radar,
.trench-board,
.asset-workspace .terminal-stage .chart-canvas-wrap:not(.expanded) { background: var(--ink-2); }
.trench-card,
.asset-workspace .terminal-stage .terminal-tape,
.asset-workspace .terminal-intent .trade-card,
.asset-workspace .terminal-intent .right-info-panel {
  background: var(--ink-3);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.trench-card:hover {
  background: var(--ink-4);
  border-color: var(--line-strong);
  box-shadow: none;
}
.trench-lane-head,
.asset-workspace .terminal-stage .trade-feed-head { box-shadow: inset 0 -1px 0 rgba(255,255,255,.06); }

.quick-buy,
.trench-inspect {
  color: var(--paper);
  background: transparent;
  border-color: var(--line-strong);
}
.quick-buy:hover,
.trench-inspect:hover {
  color: var(--paper);
  background: var(--ink-4);
}
.trade-submit:not(.sell-mode) {
  color: #101012;
  background: #ededee;
  box-shadow: none;
}
.trade-submit:not(.sell-mode):hover { background: #fff; }
.trade-submit:not(.sell-mode) i { color: #101012; background: #d7d9dc; }
.markets-table tbody tr:hover { background: rgba(255,255,255,.028); }

.market-tabs b,
.filter-btn i,
.dense-toggle:hover,
.range-tabs button.selected,
.icon-button:hover,
.icon-button.active,
.panel-add,
.trade-input button,
.preset-row button:hover,
.trade-swap-icon,
.slippage-row i,
.fee-truth b,
.info-tab-head button.selected,
.mono-link i,
.locked-stamp i,
.check-line,
.shield-mini { color: var(--brand); }
.toggle-filter.on i { background: var(--brand); }
.toggle-filter.on i::after { background: #111113; }
.asset-workspace .terminal-radar .watch-row.active { border-left-color: var(--brand); }

/* Green and red remain semantic: only price direction, orders and live data. */
.mint,
.positive,
.delta.positive,
.change-up,
.trench-card-price .change-up,
.q-row b.up,
.detail-tbl .up { color: var(--positive) !important; }
.trade-type:not(.sell) i,
.status-scan::after,
.live-dot,
.wallet-dot { background: var(--positive); }
.trade-type:not(.sell) i,
.status-scan,
.live-dot,
.wallet-dot { box-shadow: none; }

*::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,.38); }

/* Market provenance + live card feedback ----------------------------------
   Chain and venue are intentionally rendered as marks, not repeated DEX text.
   A venue mark is a current pool unless the relayer explicitly supplies a
   verified launchpad field. */
.market-source-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  vertical-align: middle;
}
.market-source-icons .chain-logo,
.market-source-icons .venue-logo {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 14px;
  object-fit: contain;
  border-radius: 50%;
}
.market-source-icons .chain-logo { border-radius: 3px; }
.market-venue { display: inline-flex; align-items: center; }
.venue-logo-fallback {
  display: grid !important;
  place-items: center;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.045);
  font: 700 8px/1 var(--sans);
  font-style: normal;
}
.trench-source-icons { margin-left: 6px; }
.trench-source-icons .chain-logo,
.trench-source-icons .venue-logo {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}
.table-source-icons { margin-left: 1px; }
.market-token-name .market-source-icons,
.market-token-name .market-venue { color: inherit; font-weight: inherit; }

.trench-card {
  position: relative;
  isolation: isolate;
  transition: transform .22s cubic-bezier(.22,.72,.24,1), border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.trench-card > :not(.trench-card-spark) { position: relative; z-index: 1; }
.trench-card-spark {
  position: absolute;
  z-index: 0;
  top: 12px;
  right: -10px;
  bottom: 27px;
  left: 27%;
  display: block;
  overflow: hidden;
  pointer-events: none;
  opacity: .24;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 100%);
}
.trench-card-spark .tm-spark {
  width: 100%;
  height: 100%;
  display: block;
  transform: scaleY(.68);
  transform-origin: 50% 100%;
  filter: saturate(.76);
}
.trench-card-spark .tm-spark line { stroke: rgba(255,255,255,.42); stroke-width: 1.15; }
.trench-card-spark.is-momentum { opacity: .28; }
.trench-card:hover,
.trench-card:focus-within {
  z-index: 2;
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 26px rgba(0,0,0,.22);
}
.trench-avatar {
  transform-origin: 50% 55%;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, filter .22s ease;
}
.trench-card:hover .trench-avatar,
.trench-card:focus-within .trench-avatar {
  transform: scale(1.11) rotate(-2deg);
  box-shadow: 0 7px 16px rgba(0,0,0,.32);
  filter: saturate(1.08);
}

.market-live-value,
.trench-card-price > .market-live-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  /* No will-change here: it promoted every live value (~700 inline elements)
     to its own compositor layer, costing ~34 ms of layerization per frame. */
}
.market-live-value.tick-up,
.change-up.tick-up { animation: market-number-up .76s cubic-bezier(.16,.8,.25,1); }
.trades-table tr.trade-live-row { animation: trade-row-live .72s cubic-bezier(.16,.8,.25,1); }
@keyframes trade-row-live {
  0% { opacity: .2; transform: translateY(-5px); }
  55% { opacity: 1; }
  100% { transform: none; }
}
.market-live-value.tick-down,
.change-down.tick-down { animation: market-number-down .76s cubic-bezier(.16,.8,.25,1); }
@keyframes market-number-up {
  0% { opacity: .42; transform: translateY(3px) scale(.96); text-shadow: none; }
  38% { opacity: 1; transform: translateY(-1px) scale(1.045); }
  100% { opacity: 1; transform: translateY(0) scale(1); text-shadow: none; }
}
@keyframes market-number-down {
  0% { opacity: .42; transform: translateY(-3px) scale(.96); text-shadow: none; }
  38% { opacity: 1; transform: translateY(1px) scale(1.045); }
  100% { opacity: 1; transform: translateY(0) scale(1); text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .trench-card:hover,
  .trench-card:focus-within { transform: none; }
  .trench-card:hover .trench-avatar,
  .trench-card:focus-within .trench-avatar { transform: none; }
}

/* ── TOKEN TERMINAL · FINAL RESPONSIVE FINISH ───────────────────────────────
   Keep the compact 1366×768 workstation intact, while allowing the chart to
   become the primary surface on taller desktop displays. These overrides live
   at the end of the cascade intentionally: the terminal accumulated several
   historical breakpoint passes and this is the narrow, QA-tested contract. */

/* These two secondary tabs are presentation-only in the current build. Do not
   advertise controls that have no corresponding pane yet. */
body[data-screen="token"] .chart-view-tabs,
body[data-screen="token"] .info-tab-head button:nth-child(2) { display: none; }
body[data-screen="token"] .chart-toolbar .range-tabs { margin-left: 0; }
body[data-screen="token"] .info-tab-head button:first-child {
  pointer-events: none;
  cursor: default;
}
body[data-screen="token"] .info-tab-head button:first-child::after { display: none; }

/* Neutral framing lets semantic candle green/red carry the market meaning. */
body[data-screen="token"] .asset-workspace .terminal-stage .chart-canvas-wrap:not(.expanded) {
  border-color: rgba(238, 241, 247, .10);
  background:
    radial-gradient(ellipse at 72% -8%, rgba(140, 124, 255, .045), transparent 48%),
    linear-gradient(180deg, #11151d 0%, #0e1219 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.028), 0 10px 28px rgba(0,0,0,.12);
}
body[data-screen="token"] .chart-meta,
body[data-screen="token"] .token-stat-row,
body[data-screen="token"] .trades-table {
  font-variant-numeric: tabular-nums;
}

/* At 1366×768 the existing compact 176–210px chart remains unchanged. Taller
   workstations use a proportional chart/tape split; both retain hard minima. */
@media (min-width: 1000px) and (min-height: 900px) {
  body[data-screen="token"] .asset-workspace .terminal-stage {
    grid-template-rows:
      36px
      24px
      minmax(280px, 1.18fr)
      52px
      minmax(190px, .82fr);
  }
}

/* Transaction rows should feel interactive without turning a busy feed into a
   light show. Buy and sell events receive short, direction-aware highlights. */
body[data-screen="token"] .trades-table tbody tr {
  transition: background-color .14s ease, box-shadow .14s ease;
}
body[data-screen="token"] .trades-table tbody tr:hover,
body[data-screen="token"] .trades-table tbody tr:focus-within {
  background: rgba(255,255,255,.035);
  box-shadow: inset 2px 0 0 rgba(140,124,255,.58);
}
body[data-screen="token"] .trades-table tbody tr:has(.trade-type.sell):hover,
body[data-screen="token"] .trades-table tbody tr:has(.trade-type.sell):focus-within {
  background: rgba(255,107,131,.045);
  box-shadow: inset 2px 0 0 rgba(255,107,131,.68);
}
body[data-screen="token"] .trades-table tr.trade-live-row {
  animation: token-trade-buy .24s ease-out;
}
body[data-screen="token"] .trades-table tr.trade-live-row:has(.trade-type.sell) {
  animation-name: token-trade-sell;
}
@keyframes token-trade-buy {
  0% { opacity: .35; }
  100% { opacity: 1; }
}
@keyframes token-trade-sell {
  0% { opacity: .35; }
  100% { opacity: 1; }
}
body[data-screen="token"] .trades-table .wallet-short a {
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color .14s ease, text-decoration-color .14s ease;
}
body[data-screen="token"] .trades-table .wallet-short a:hover,
body[data-screen="token"] .trades-table .wallet-short a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--brand);
}

@media (max-width: 850px) {
  /* The chart remains genuinely usable on phones/tablets instead of becoming
     a decorative strip. The range control scrolls, so no interval disappears. */
  body[data-screen="token"] .chart-toolbar {
    min-height: 44px;
    height: 44px;
    gap: 6px;
    padding: 0 8px;
    overflow: hidden;
  }
  body[data-screen="token"] .range-tabs {
    min-width: 0;
    flex: 1 1 auto;
    gap: 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  body[data-screen="token"] .range-tabs::-webkit-scrollbar { display: none; }
  body[data-screen="token"] .range-tabs button,
  body[data-screen="token"] .range-tabs button:nth-child(4),
  body[data-screen="token"] .range-tabs button:nth-child(5) {
    min-width: 43px;
    min-height: 36px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 7px;
    scroll-snap-align: start;
    font-size: 12px;
  }
  body[data-screen="token"] .chart-switch {
    min-width: max-content;
    flex: 0 0 auto;
    padding: 2px;
  }
  body[data-screen="token"] .chart-switch button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }
  body[data-screen="token"] .chart-expand {
    width: 36px;
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
  }
  body[data-screen="token"] #chart-canvas-wrap:not(.expanded) {
    height: clamp(220px, 58vw, 300px);
    min-height: 220px;
  }

  /* Five KPIs remain one calm swipe surface with visible card boundaries. */
  body[data-screen="token"] .token-stat-row {
    height: 64px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, clamp(132px, 42vw, 180px));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 10px;
    scrollbar-width: none;
  }
  body[data-screen="token"] .token-stat-row > div {
    min-width: 0;
    padding: 0 12px;
    scroll-snap-align: start;
  }
  body[data-screen="token"] .token-stat-row span { font-size: 10px; }
  body[data-screen="token"] .token-stat-row b { font-size: 13px; }
  body[data-screen="token"] .token-stat-row i { font-size: 10px; }

  /* Four-column mobile tape: Side | USD | Price | Age. Token amount and wallet
     stay available in wider desktop layouts instead of squeezing phone data. */
  body[data-screen="token"] .trade-feed-head {
    min-height: 44px;
    height: 44px;
    padding-inline: 9px;
  }
  body[data-screen="token"] .detail-tabs {
    gap: 4px;
    min-width: max-content;
    scroll-snap-type: x proximity;
  }
  body[data-screen="token"] .detail-tabs button {
    min-height: 42px;
    padding: 0 8px;
    scroll-snap-align: start;
    font-size: 12px;
  }
  body[data-screen="token"] .trades-table-wrap,
  body[data-screen="token"] .detail-scroll {
    max-height: min(32dvh, 260px);
  }
  body[data-screen="token"] .trades-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  body[data-screen="token"] .trades-table th:nth-child(3),
  body[data-screen="token"] .trades-table td:nth-child(3),
  body[data-screen="token"] .trades-table th:nth-child(5),
  body[data-screen="token"] .trades-table td:nth-child(5) { display: none; }
  body[data-screen="token"] .trades-table th:nth-child(4),
  body[data-screen="token"] .trades-table td:nth-child(4) { display: table-cell; }
  body[data-screen="token"] .trades-table th,
  body[data-screen="token"] .trades-table td {
    height: 42px;
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body[data-screen="token"] .trades-table th { font-size: 11px; }
  body[data-screen="token"] .trades-table td { font-size: 12px; }
  body[data-screen="token"] .trades-table th:nth-child(1),
  body[data-screen="token"] .trades-table td:nth-child(1) { width: 24%; }
  body[data-screen="token"] .trades-table th:nth-child(2),
  body[data-screen="token"] .trades-table td:nth-child(2) { width: 27%; }
  body[data-screen="token"] .trades-table th:nth-child(4),
  body[data-screen="token"] .trades-table td:nth-child(4) { width: 31%; }
  body[data-screen="token"] .trades-table th:nth-child(6),
  body[data-screen="token"] .trades-table td:nth-child(6) { width: 18%; }

  /* Fixed execution controls never cover the final rows on notched devices. */
  body[data-screen="token"] .terminal-center {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  body[data-screen="token"] .mobile-trade-dock {
    height: auto;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 8px 11px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  body[data-screen="token"] .mobile-trade-dock span { font-size: 11px; }
  body[data-screen="token"] .mobile-trade-dock b { font-size: 12px; }
  body[data-screen="token"] .mobile-trade-dock button {
    min-width: 84px;
    min-height: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 13px;
  }
  body[data-screen="token"] .chart-canvas-wrap.expanded {
    top: calc(var(--header-h) + 8px + env(safe-area-inset-top, 0px));
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-screen="token"] .trades-table tr.trade-live-row { animation: none; }
}

/* ── Terminal data controls: explicit, dense and touch-safe ─────────────── */
body[data-screen="token"] #trades-pane {
  position: relative;
  height: 100%;
  overflow: auto;
  scrollbar-color: rgba(164,175,190,.20) transparent;
}
.trade-filter-rail {
  position: sticky;
  z-index: 4;
  top: 0;
  min-width: max-content;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(235,240,247,.075);
  background: rgba(18,23,31,.96);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.trade-side-filter {
  height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(235,240,247,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.trade-side-filter button {
  height: 23px;
  padding: 0 9px;
  border-radius: 5px;
  color: #8996a5;
  font: 600 10px/1 var(--sans);
  letter-spacing: .01em;
}
.trade-side-filter button.selected {
  color: #e8fff3;
  background: rgba(32,217,138,.13);
  box-shadow: inset 0 0 0 1px rgba(65,229,157,.25);
}
.trade-range-filter,
.trade-wallet-filter {
  height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(235,240,247,.09);
  border-radius: 8px;
  background: rgba(7,10,15,.38);
}
.trade-range-filter > span {
  color: #aab5c1;
  font: 650 9px/1 var(--sans);
  letter-spacing: .055em;
  text-transform: uppercase;
}
.trade-range-filter > i { color: #596675; font-style: normal; }
.trade-range-filter input {
  width: 61px;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #edf3f7;
  background: transparent;
  font: 500 11px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.trade-wallet-filter { width: 172px; }
.trade-wallet-filter .search-glyph { width: 11px; height: 11px; opacity: .65; }
.trade-wallet-filter input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #edf3f7;
  background: transparent;
  font: 500 11px/1 var(--mono);
}
.trade-range-filter:focus-within,
.trade-wallet-filter:focus-within {
  border-color: rgba(65,229,157,.42);
  box-shadow: 0 0 0 3px rgba(32,217,138,.055);
}
.trade-filter-count {
  min-width: 44px;
  color: #718091;
  text-align: right;
  font: 500 10px/1 var(--mono);
}
.trade-filter-reset {
  height: 29px;
  padding: 0 8px;
  border-radius: 7px;
  color: #9aa7b5;
  font: 600 10px/1 var(--sans);
}
.trade-filter-reset:hover:not(:disabled) { color: #dfffee; background: rgba(32,217,138,.08); }
.trade-filter-reset:disabled { opacity: .32; cursor: default; }
.trade-filter-error {
  position: sticky;
  z-index: 3;
  top: 44px;
  padding: 7px 12px;
  color: #ffc1c8;
  border-bottom: 1px solid rgba(243,93,112,.18);
  background: rgba(68,24,33,.92);
  font: 550 10px/1.35 var(--sans);
}
.trade-filter-error[hidden] { display: none; }

body[data-screen="token"] .chart-meta { gap: 15px; }
body[data-screen="token"] .chart-coverage {
  margin-left: auto;
  padding-left: 12px;
  color: #7f8b99;
  border-left: 1px solid rgba(235,240,247,.09);
  font: 650 9px/1 var(--sans);
  letter-spacing: .07em;
  white-space: nowrap;
}
body[data-screen="token"] .chart-coverage.complete { color: #66eaae; }
body[data-screen="token"] .chart-coverage.stale { color: #f0bd68; }
body[data-screen="token"] #price-chart::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 8%, rgba(32,217,138,.045), transparent 31%),
    linear-gradient(180deg, rgba(255,255,255,.012), transparent 24%);
}

.pane-scope {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(235,240,247,.075);
  color: #8794a3;
  background: rgba(255,255,255,.014);
  font: 550 10px/1.3 var(--sans);
}
.pane-scope > span { display: inline-flex; align-items: center; gap: 7px; }
.pane-scope > b { color: #a8b4c0; font-weight: 550; }
.pane-scope > button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(235,240,247,.10);
  border-radius: 7px;
  color: #b8c4cf;
  font: 600 10px/1 var(--sans);
}
.pane-scope > button:hover { color: #e7fff3; border-color: rgba(65,229,157,.32); background: rgba(32,217,138,.07); }
.pane-loading,
.pane-callout {
  min-height: 150px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}
.pane-loading > i {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(32,217,138,.18);
  border-top-color: #20d98a;
  border-radius: 50%;
  animation: st-rot .75s linear infinite;
}
.pane-loading b,
.pane-callout b { color: #e6edf2; font: 650 13px/1.25 var(--sans); }
.pane-loading span,
.pane-callout span { max-width: 420px; color: #7f8c9a; font: 500 11px/1.45 var(--sans); }
.pane-callout button {
  min-height: 34px;
  margin-top: 5px;
  padding: 0 14px;
  border: 1px solid rgba(65,229,157,.28);
  border-radius: 8px;
  color: #dffff0;
  background: rgba(32,217,138,.085);
  font: 650 11px/1 var(--sans);
}
.pane-callout.error button { border-color: rgba(243,93,112,.28); color: #ffdce1; background: rgba(243,93,112,.07); }
.trader-flow-table { min-width: 720px; }
.trader-flow-table th,
.trader-flow-table td { white-space: nowrap; }
.kv2 code { color: #aeb9c5; font: 500 10px/1 var(--mono); }

@media (max-width: 850px) {
  .trade-filter-rail {
    min-height: 48px;
    padding-inline: 9px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .trade-filter-rail::-webkit-scrollbar { display: none; }
  .trade-side-filter,
  .trade-range-filter,
  .trade-wallet-filter { flex: 0 0 auto; height: 34px; }
  .trade-side-filter button { min-height: 26px; font-size: 11px; }
  .trade-range-filter input,
  .trade-wallet-filter input { font-size: 12px; }
  .trade-wallet-filter { width: 176px; }
  .trade-filter-error { top: 48px; font-size: 11px; }
  body[data-screen="token"] .chart-meta { gap: 10px; overflow-x: auto; scrollbar-width: none; }
  body[data-screen="token"] .chart-coverage { margin-left: 0; font-size: 9px; }
  .pane-scope { min-width: max-content; font-size: 11px; }
  .hold-row { grid-template-columns: 24px minmax(120px,1fr) 72px 54px; min-width: 390px; min-height: 40px; }
}

/* Wallet portfolio — coins you hold; click a row to open its page and sell */
.wallet-holdings { margin-top: 11px; }
.wh-head { padding: 0 3px 6px; color: #647269; font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.wh-list { display: grid; gap: 2px; max-height: 216px; overflow-y: auto; }
.wh-list::-webkit-scrollbar { width: 0; }
.wh-row { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 7px 8px; border-radius: 5px; text-align: left; border: 1px solid transparent; transition: background .14s, border-color .14s; }
.wh-row:hover { background: rgba(34,227,154,.06); border-color: rgba(34,227,154,.16); }
.wh-ico .token-avatar { width: 26px; height: 26px; font-size: 10px; }
.wh-meta { min-width: 0; display: grid; gap: 2px; }
.wh-meta b { color: #dce9e0; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-meta small { color: #647269; font: 8px var(--mono); }
.wh-val { text-align: right; display: grid; gap: 2px; }
.wh-val b { color: #cbd8d0; font: 500 11px var(--mono); }
.wh-val small { color: #647269; font: 8px var(--mono); }

/* Search results must stay reachable above the mobile software keyboard. */
.search-results { max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 540px) {
  .search-results { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
}

/* Portfolio page — holdings across every chain */
.portfolio-screen { padding: calc(var(--header-h) + 30px) 22px 60px; min-height: 100vh; }
.pf-wrap { max-width: 1080px; margin: 0 auto; }
.pf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pf-kicker { color: var(--mint); font: 9px var(--mono); letter-spacing: .14em; }
.pf-head h2 { margin-top: 8px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; }
.pf-total-box { text-align: right; display: grid; gap: 3px; }
.pf-total-box span { color: #647269; font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pf-total-box strong { font: 600 26px var(--mono); letter-spacing: -.03em; color: #e6f2ea; font-variant-numeric: tabular-nums; }
.pf-total-box em { color: #647269; font: 9px var(--mono); font-style: normal; }
.pf-table-wrap { margin-top: 14px; overflow-x: auto; }
.pf-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.pf-table th { height: 34px; padding: 0 14px; color: #647269; text-align: right; font: 8px var(--mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.pf-table th.pf-l { text-align: left; }
.pf-row { cursor: pointer; border-bottom: 1px solid rgba(212,255,230,.045); transition: background .14s; }
.pf-row:hover { background: rgba(34,227,154,.05); }
.pf-row td { height: 56px; padding: 0 14px; color: #aab8b0; text-align: right; font: 11px var(--mono); font-variant-numeric: tabular-nums; }
.pf-row td.pf-l { text-align: left; }
.pf-asset { display: inline-flex; align-items: center; gap: 10px; }
.pf-ico .token-avatar { width: 30px; height: 30px; font-size: 11px; }
.pf-nm { display: grid; gap: 2px; }
.pf-nm b { color: #dfeae4; font-size: 12px; font-weight: 600; }
.pf-nm small { color: #647269; font: 8px var(--mono); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-chain { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: #9fb0a6; font: 8px var(--mono); }
.pf-val { color: #e6f2ea !important; font-weight: 600; }
.pf-supply { color: #7d8a82 !important; }
/* rich portfolio */
.pf-up { color: var(--mint); }
.pf-down { color: var(--red); }
.pf-neutral { color: #7d8a82; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.pf-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.012); display: grid; gap: 4px; }
.pf-stat span { color: #647269; font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pf-stat b { font: 600 19px var(--mono); letter-spacing: -.02em; color: #e6f2ea; font-variant-numeric: tabular-nums; }
.pf-stat b.pf-up { color: var(--mint); } .pf-stat b.pf-down { color: var(--red); } .pf-stat b.pf-neutral { color: #7d8a82; }
.pf-stat i { color: #6c7a72; font: 9px var(--mono); font-style: normal; }
.pf-alloc { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.pf-alloc-head { display: flex; justify-content: space-between; color: #647269; font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.pf-alloc-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.04); }
.pf-alloc-seg { height: 100%; transition: width .3s ease; }
.pf-alloc-seg + .pf-alloc-seg { border-left: 1px solid var(--ink); }
.pf-alloc-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.pf-alloc-tag { display: inline-flex; align-items: center; gap: 6px; color: #9fb0a6; font: 9px var(--mono); }
.pf-alloc-tag i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.pf-alloc-tag b { color: #dfeae4; }
.pf-section { margin-top: 26px; }
.pf-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.pf-section-head h3 { font: 600 13px var(--sans); letter-spacing: .01em; color: #dce9e0; }
.pf-section-head span { color: #7d8a82; font: 9px var(--mono); font-variant-numeric: tabular-nums; }
.pf-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
.pf-act { padding: 5px 9px; white-space: nowrap; border-radius: 6px; font: 600 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; border: 1px solid var(--line); background: transparent; transition: all .14s; }
.pf-act.buy { color: var(--mint); border-color: rgba(34,227,154,.35); }
.pf-act.buy:hover { background: rgba(34,227,154,.12); }
.pf-act.sell { color: #ffb0b7; border-color: rgba(255,92,105,.3); }
.pf-act.sell:hover { background: rgba(255,92,105,.1); }
.pf-cash-row { cursor: default; }
.pf-cash-row:hover { background: transparent; }
.pf-empty-cta { margin-top: 10px; padding: 7px 14px; border-radius: 7px; border: 1px solid rgba(34,227,154,.35); background: transparent; color: var(--mint); font: 600 10px var(--mono); cursor: pointer; }
.pf-empty-cta:hover { background: rgba(34,227,154,.1); }
@media (max-width: 850px) { .pf-stats { grid-template-columns: repeat(2, 1fr); } .pf-hide-sm { display: none; } }

.pf-empty, .pf-login { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 26px; border: 1px dashed var(--line); border-radius: 12px; }
.pf-empty[hidden], .pf-login[hidden] { display: none; }
.pf-login { cursor: pointer; }
.pf-empty .empty-orbit, .pf-login .empty-orbit { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(34,227,154,.3); border-radius: 50%; color: var(--mint); font-size: 18px; }
.pf-empty b, .pf-login b { color: #dce9e0; font-size: 14px; }
.pf-empty p, .pf-login p { margin-top: 4px; color: #6c7a72; font-size: 12px; }
@media (max-width: 850px) { .portfolio-screen { padding: calc(var(--header-h) + 20px) 14px 80px; } .pf-total-box strong { font-size: 21px; } }

/* ===== Deposit sheet (network chooser -> receive address + QR) ============ */
.wallet-deposit-btn { width: calc(100% - 26px); margin: 0 13px 4px; height: 38px; border-radius: 6px; color: #05231a; font: 600 12px var(--sans); letter-spacing: .01em; background: linear-gradient(180deg, var(--mint-hi), var(--mint)); box-shadow: 0 6px 18px rgba(34,227,154,.22); transition: filter .16s, transform .1s; }
.wallet-deposit-btn:hover { filter: brightness(1.06); }
.wallet-deposit-btn:active { transform: translateY(1px); }

.deposit-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4,7,6,.72); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
.deposit-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.deposit-sheet { width: 100%; max-width: 384px; max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(11,17,14,.99); box-shadow: 0 30px 90px rgba(0,0,0,.6); transform: translateY(8px) scale(.99); transition: transform .2s; }
.deposit-overlay.open .deposit-sheet { transform: none; }
.deposit-head { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; border-bottom: 1px solid var(--line); }
.deposit-head b { color: var(--paper); font: 600 15px var(--sans); }
.deposit-back, .deposit-x { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; color: #8a988f; border-radius: 8px; font-size: 22px; line-height: 1; transition: color .16s, background .16s; }
.deposit-back { left: 12px; font-size: 26px; }
.deposit-back[hidden] { display: none !important; }
.deposit-x { right: 12px; }
.deposit-back:hover, .deposit-x:hover { color: var(--paper); background: rgba(255,255,255,.05); }
.deposit-step { padding: 18px 18px 22px; }
.deposit-sub { margin: 0 0 16px; color: var(--muted); text-align: center; font: 13px var(--sans); line-height: 1.5; }
.deposit-net-list { display: flex; flex-direction: column; gap: 10px; }
.deposit-net { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 15px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); transition: border-color .16s, background .16s, transform .1s; }
.deposit-net:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.deposit-net:active:not(:disabled) { transform: scale(.99); }
.deposit-net:disabled { opacity: .45; cursor: not-allowed; }
.deposit-net-orb { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 700 15px var(--sans); font-style: normal; }
.deposit-net-orb.solana { color: #191127; background: linear-gradient(160deg,#ad67fa,#59f0cb); }
.deposit-net-orb.base { background: #286ef0; }
.deposit-net-orb.eth { background: #6979cf; }
.deposit-net-orb.arb { background: #328cdf; }
.deposit-net-orb.bnb { color: #3f2d00; background: #ebbd33; }
.deposit-net-orb.rh { background: #ca673d; }
.deposit-net-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.deposit-net-meta b { color: #e2eee7; font: 500 14px var(--sans); }
.deposit-net-meta small { color: #647269; font: 10px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deposit-net-arrow { flex: none; color: #4d5b54; font-size: 20px; }
.deposit-net-state { flex: none; min-width: 58px; color: #737f78; text-align: right; font: 700 8px/1 var(--mono); letter-spacing: .08em; }
.deposit-net-state[data-state="checking"] { color: #a59a72; }
.deposit-qr { width: 232px; height: 232px; margin: 4px auto 18px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.deposit-qr svg { display: block; width: 100%; height: 100%; }
.deposit-qr.failed::after { content: "QR unavailable — use the address below"; display: grid; place-items: center; height: 100%; padding: 12px; color: #647269; text-align: center; font: 11px var(--mono); }
.deposit-addr-text { margin: 0 auto 14px; max-width: 300px; color: #cddad2; text-align: center; font: 12px var(--mono); line-height: 1.6; word-break: break-all; }
.deposit-copy-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; border-radius: 11px; color: #05231a; font: 600 13px var(--sans); background: linear-gradient(180deg, var(--mint-hi), var(--mint)); box-shadow: 0 6px 18px rgba(34,227,154,.2); transition: filter .16s, transform .1s; }
.deposit-copy-btn i { font-style: normal; font-size: 15px; }
.deposit-copy-btn:hover { filter: brightness(1.06); }
.deposit-copy-btn:active { transform: translateY(1px); }
.deposit-copy-btn.flash { filter: brightness(1.15); box-shadow: 0 0 0 3px var(--mint-glow); }
.deposit-warn { margin: 14px 0 0; color: #647269; text-align: center; font: 10px var(--mono); line-height: 1.5; }
@media (max-width: 520px) {
  .deposit-overlay { align-items: flex-end; padding: 0; }
  .deposit-sheet { max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .deposit-overlay.open .deposit-sheet { transform: none; }
}

/* ===== Portfolio activity journal ======================================== */
.pf-activity-list { display: flex; flex-direction: column; }
.pf-act-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.pf-act-item:last-child { border-bottom: 0; }
.pf-act-ico { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font: 700 13px var(--sans); }
.pf-act-ico.buy { color: var(--mint); background: rgba(34,227,154,.12); }
.pf-act-ico.sell { color: var(--red); background: rgba(255,92,105,.12); }
.pf-act-coin { flex: none; }
.pf-act-coin .token-avatar, .pf-act-coin img { width: 24px; height: 24px; border-radius: 50%; font-size: 9px; }
.pf-act-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-act-line { color: #d5e2db; font: 13px var(--sans); overflow: hidden; text-overflow: ellipsis; }
.pf-act-route { color: #8ad6b4; }
.pf-act-arrow { color: #647269; }
.pf-act-sub { display: flex; align-items: center; gap: 9px; color: #647269; font: 10px var(--mono); }
.pf-act-badge { padding: 1px 6px; border-radius: 4px; font: 9px var(--mono); letter-spacing: .04em; }
.pf-act-badge.buy { color: var(--mint); background: rgba(34,227,154,.1); }
.pf-act-badge.sell { color: var(--red); background: rgba(255,92,105,.1); }
.pf-act-tx { color: #718078; }
.pf-act-tx:hover { color: var(--mint); }
.pf-act-usd { flex: none; color: #e2eee7; font: 600 13px var(--mono); }
@media (max-width: 560px) { .pf-act-line { font-size: 12px; } .pf-act-route { display: block; } }

/* ===== Slippage control (Auto / presets / custom) ======================== */
.slip-wrap { position: relative; }
.slip-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; width: 252px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(12,18,15,.99); box-shadow: 0 16px 44px rgba(0,0,0,.5); }
.slip-presets { display: flex; gap: 6px; }
.slip-presets button { flex: 1; height: 30px; border: 1px solid var(--line); border-radius: 6px; color: #a8b8ae; font: 11px var(--mono); transition: color .15s, border-color .15s, background .15s; }
.slip-presets button:hover { color: #d7e4dc; border-color: var(--line-strong); }
.slip-presets button.sel { color: #06321e; border-color: var(--mint); background: var(--mint); font-weight: 700; }
.slip-custom { display: flex; gap: 6px; margin-top: 8px; }
.slip-custom input { flex: 1; height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); color: #e2eee7; font: 12px var(--mono); }
.slip-custom input:focus { border-color: var(--mint); outline: none; }
.slip-custom button { width: 52px; height: 30px; border: 1px solid rgba(34,227,154,.4); border-radius: 6px; color: var(--mint); font: 600 11px var(--sans); }
.slip-custom button:hover { background: rgba(34,227,154,.1); }
.slip-note { margin: 9px 0 0; color: #647269; font: 10px var(--mono); line-height: 1.5; }
.slip-warn { color: var(--yellow) !important; }

/* Quick trade — floating, draggable one-click panel */
.qt-float { position: fixed; z-index: 260; right: 18px; bottom: 84px; width: 300px; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(12,14,18,.96); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 40px rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.qt-drag { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; cursor: grab; user-select: none; padding: 1px 2px 4px; }
.qt-drag:active { cursor: grabbing; }
.qt-drag-actions button { background: none; border: 0; cursor: pointer; color: inherit; font-size: 14px; opacity: .75; padding: 0 4px; }
.qt-drag-actions button:hover { opacity: 1; }
.qt-status { font-size: 10px; opacity: .6; min-height: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.qt-reopen { position: fixed; z-index: 260; right: 18px; bottom: 84px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(12,14,18,.95); color: #ffd75e; font-size: 17px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.qt-reopen:hover { filter: brightness(1.2); }
.qt-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qt-row button { border: 1px solid transparent; border-radius: 8px; padding: 7px 2px; font-size: 12px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; transition: filter .1s; }
.qt-row button:hover { filter: brightness(1.2); }
.qt-row button:disabled { opacity: .45; cursor: default; filter: none; }
.qt-buy button { background: rgba(38,194,129,.12); border-color: rgba(38,194,129,.35); color: #2ec98a; }
.qt-sell button { background: rgba(255,91,110,.10); border-color: rgba(255,91,110,.32); color: #ff5b6e; }
.qt-row input { width: 100%; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: transparent; color: inherit; padding: 6px 2px; font-size: 12px; text-align: center; }
/* Visually hidden, still announced by screen readers (the market announcer was rendering as visible text). */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Activity: an incomplete cross-chain buy is not a completed purchase. */
.pf-act-badge.partial { color: #e8c46a; border-color: rgba(232,196,106,.4); }
.pf-act-usd-partial { color: #b9a15a; font-size: 10px; }
/* Trade ticket: status copy in the receive field uses a readable size. */
#trade-receive.is-status { font-size: 13px !important; letter-spacing: 0 !important; text-overflow: ellipsis; }
.quick-buy-off { color: #5f6c66; }
