/* SYNAPSE — /token/ Pure Unboxed Minimal Skeleton (GFT Layout Hierarchy + Shadow Brain Obsidian Surface) */

:root {
  --sb-void: #030407;
  --sb-canvas: #040214;
  --sb-hairline: rgba(237, 237, 248, 0.14);
  --sb-hairline-soft: rgba(237, 237, 248, 0.08);
  --sb-white: #ffffff;
  --sb-muted: rgba(244, 244, 250, 0.86);
  --sb-dim: rgba(228, 228, 242, 0.66);
  --mint: #C4B5FD;
  --purple: #e4e4e7;
  --purple-deep: #e4e4e7;
  --red: #ff6b57;
  --font-display: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

html, body {
  width: 100%;
  height: 100vh;
  background-color: var(--sb-void);
  color: var(--sb-white);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.tok-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  background-color: #020010;
  background-image:
    radial-gradient(ellipse 92% 36% at 54% 0%, rgba(124, 77, 255, 0.25) 0%, rgba(78, 42, 168, 0.14) 44%, transparent 76%),
    linear-gradient(180deg, rgba(109, 63, 234, 0.22) 0%, rgba(38, 22, 88, 0.14) 26%, rgba(6, 3, 24, 0.06) 52%, #020010 82%);
  overflow: hidden;
}

.tok-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(196, 181, 253, 0.064) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(196, 181, 253, 0.064) 1px, transparent 1px),
    radial-gradient(ellipse 30% 42% at 22% 18%, rgba(0, 0, 0, 0.16) 0%, transparent 72%),
    radial-gradient(ellipse 28% 38% at 82% 22%, rgba(0, 0, 0, 0.18) 0%, transparent 70%);
  background-size: 58px 58px, 58px 58px, 100% 100%, 100% 100%;
  background-position: center top;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.50) 48%, rgba(0, 0, 0, 0.04) 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.50) 48%, rgba(0, 0, 0, 0.04) 92%);
}

.tok-grid-flares {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle 1.5px at 0 0, rgba(215, 201, 255, 0.34) 0%, rgba(164, 146, 237, 0.12) 40%, transparent 100%);
  background-size: 58px 58px;
  background-position: center top;
  opacity: 0.62;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 80%);
}

.tok-sidebar,
.tok-main {
  position: relative;
  z-index: 2;
}

/* Liquid Premium Grey + Monochrome + Green/Red Text-Only Action Controls */
.tok-btn-primary,
.tok-btn-ghost,
.tok-btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 27px;
  padding: 0 11px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
}

.tok-btn-primary {
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #000000;
}

.tok-btn-primary:hover { opacity: 0.9; }

.tok-btn-ghost,
.tok-btn-mini {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(20, 21, 27, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #E4E4E7;
}

.tok-btn-ghost.is-green { color: var(--mint); }
.tok-btn-ghost.is-red { color: var(--red); }

.tok-btn-ghost:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.tok-btn-mini {
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 500;
  background: #141418;
  border: 1px solid #26262e;
  color: #e4e4e7;
}

.tok-btn-mini:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.tok-btn-mini.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.tok-btn-mini:hover:not(.is-active) {
  background: #1c1c23;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.tok-ico {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.tok-link-ico {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sb-muted);
  text-decoration: none;
  font-size: 10.5px;
}

.tok-link-ico:hover { color: #FFFFFF; }

.is-bright,
.is-white { color: #FFFFFF; }
.is-muted,
.is-grey { color: var(--sb-muted); }
.is-mint,
.is-green,
.ico-green { color: var(--mint); }
.is-red,
.ico-red { color: var(--red); }

.tok-ws-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 11px;
  flex-wrap: wrap;
}

.tok-ws-meta-coin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.tok-ws-exec-status {
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* LEFT SIDEBAR RAIL (Unboxed, Subtle Divider Only) */
.tok-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px 14px 76px;
  border-right: 1px solid rgba(164, 146, 237, 0.13);
  background: linear-gradient(180deg, rgba(12, 8, 30, 0.56) 0%, rgba(6, 4, 20, 0.72) 45%, rgba(3, 5, 7, 0.86) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tok-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tok-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.tok-logo-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(164, 146, 237, 0.25);
  background: #09061A;
}

.tok-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tok-brand-copy { display: flex; flex-direction: column; gap: 1px; }
.tok-slot-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--sb-white); }
.tok-slot-sub { font-size: 9.5px; color: var(--sb-dim); }
.tok-slot-lbl { font-size: 9.5px; color: var(--sb-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }

.tok-search-wrap { position: relative; }

.tok-search-input {
  width: 100%;
  height: 30px;
  border-radius: 8px;
  background: #141418;
  border: 1px solid #26262E;
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 10.5px;
  color: #FFFFFF;
  outline: none;
}

.tok-search-input::placeholder { color: var(--sb-dim); }
.tok-search-input:focus { border-color: rgba(255, 255, 255, 0.28); }

.tok-search-results {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 50;
  background: #0c0c11;
  border: 1px solid #26262E;
  border-radius: 9px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
}

.tok-search-results.is-hidden { display: none; }

.tok-search-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #E4E4E7;
  font-size: 10.5px;
  cursor: pointer;
  text-align: left;
}

.tok-search-item:hover { background: rgba(255, 255, 255, 0.06); color: #FFFFFF; }
.tok-search-item:last-child { border-bottom: 0; }

.tok-nav-group { display: flex; flex-direction: column; gap: 2px; }

.tok-nav-item {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: transparent;
  border: 0;
  color: var(--sb-muted);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.tok-nav-item:hover { color: var(--sb-white); }
.tok-nav-item.is-active { background: rgba(255, 255, 255, 0.055); color: var(--sb-white); }

.tok-watch-slots {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--sb-hairline-soft);
}

.tok-watch-list { display: flex; flex-direction: column; gap: 2px; }

.tok-watch-item {
  width: 100%;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 6px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  font-size: 10.5px;
  color: var(--sb-muted);
  cursor: pointer;
  text-align: left;
}

.tok-watch-item:hover { background: rgba(255, 255, 255, 0.045); color: #FFFFFF; }
.tok-watch-item.is-active { background: #141418; color: #FFFFFF; }

.tok-watch-skeleton {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  font-size: 10.5px;
  color: var(--sb-dim);
}

.tok-watch-skeleton:last-child { border-bottom: 0; }

/* MAIN WORKSPACE CANVAS (Liquid Blur Atmospheric Stage + Crisp Internal Scroll) */
.tok-main {
  position: relative;
  height: 100vh;
  padding: 8px 22px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.tok-main::before {
  content: "";
  position: absolute;
  inset: 58px 8% auto 6%;
  height: 350px;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 45%, rgba(124, 77, 255, 0.14) 0%, transparent 56%),
    radial-gradient(circle at 76% 40%, rgba(164, 146, 237, 0.14) 0%, transparent 54%);
  filter: blur(46px);
  opacity: 0.92;
}

.tok-main > * {
  position: relative;
  z-index: 1;
}

.tok-topbar,
.tok-id-strip,
.tok-hero-grid,
.tok-sec-hdr,
.tok-strip-8 {
  flex-shrink: 0;
}

/* Top Thin Bar */
.tok-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sb-hairline);
}

.tok-top-slots,
.tok-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--sb-muted);
}

.tok-top-actions { gap: 7px; }
.tok-top-nav { display: inline-flex; align-items: center; gap: 5px; }
.tok-sep { color: rgba(255, 255, 255, 0.12); }

/* Sub-Header Quick Pair + DEX Strip (Pure open text, zero boxes) */
.tok-sub-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tok-sub-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.tok-sub-desc { font-size: 10.5px; color: var(--sb-dim); margin-top: 2px; }

.tok-id-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--sb-hairline);
  flex-wrap: wrap;
}

.tok-id-left { display: flex; align-items: center; gap: 11px; }

.tok-ava-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tok-id-title-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.tok-id-sym {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.tok-id-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #E4E4E7;
}

.tok-copy-ca {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  appearance: none;
  background: #141418;
  border: 1px solid #26262e;
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: #E4E4E7;
  cursor: pointer;
  outline: none;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.tok-copy-ca:hover { color: #FFFFFF; border-color: #FFFFFF; }

.tok-id-cto-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  flex-wrap: wrap;
}

#tok-id-cto-line { cursor: pointer; font-weight: 500; }
#tok-id-cto-line:hover { text-decoration: underline; text-underline-offset: 2px; }

.tok-id-kpis { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tok-kpi { display: flex; flex-direction: column; gap: 2px; }
.tok-kpi-l { font-size: 10px; font-weight: 500; color: rgba(228, 228, 242, 0.72); letter-spacing: 0.01em; }
.tok-kpi-v { font-size: 12.5px; font-weight: 600; color: #FFFFFF; }

/* ZONE 1: 2-COL ASYMMETRIC LIQUID-AURORA BENTO — Altera Split + Finotive 2x2 Matrix + Wide Chart + 2-Up Work & Edge */
.tok-hero-stage {
  position: relative;
  padding: 2px 0;
}

.tok-aurora-mesh {
  position: absolute;
  inset: -14px -18px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.tok-aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.72;
}

.tok-aurora-orb.is-violet {
  width: 420px;
  height: 280px;
  left: 4%;
  top: -30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(220, 226, 236, 0.025) 55%, transparent 75%);
}

.tok-aurora-orb.is-mint {
  width: 380px;
  height: 260px;
  right: 8%;
  top: 10px;
  background: radial-gradient(circle, rgba(164, 146, 237, 0.14) 0%, rgba(164, 146, 237, 0.05) 56%, transparent 76%);
}

.tok-aurora-orb.is-cyan {
  width: 340px;
  height: 220px;
  left: 38%;
  bottom: -24px;
  background: radial-gradient(circle, rgba(228, 228, 236, 0.06) 0%, rgba(164, 146, 237, 0.06) 54%, transparent 74%);
}

.tok-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(328px, 0.92fr) minmax(460px, 1.48fr);
  gap: 12px;
  align-items: stretch;
}

.tok-bento-left,
.tok-bento-right {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.tok-hero-grid.is-chart-expanded {
  grid-template-columns: minmax(295px, 0.74fr) minmax(520px, 1.66fr);
}

.tok-hero-grid.is-chart-expanded .tok-chart-glass {
  height: 214px;
  min-height: 214px;
  max-height: 214px;
}

.tok-hero-grid.is-chart-hidden .tok-chart-open {
  display: none;
}

.tok-hero-grid.is-chart-hidden .tok-right-subrow {
  height: 368px;
  min-height: 368px;
}

.tok-hero-grid.is-chart-hidden .tok-hero-feed,
.tok-hero-grid.is-chart-hidden .tok-edge-card {
  height: 368px;
  min-height: 368px;
  max-height: 368px;
}

/* Home-Matched Emerald-Obsidian Liquid Blur Frosted Glass Surface */
.tok-liquid-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 85% 60% at 14% 0%, rgba(124, 77, 255, 0.13) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 94% 12%, rgba(164, 146, 237, 0.10) 0%, transparent 56%),
    linear-gradient(155deg, rgba(18, 12, 42, 0.40) 0%, rgba(7, 4, 22, 0.74) 54%, rgba(4, 6, 9, 0.88) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(164, 146, 237, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(215, 201, 255, 0.14),
    0 14px 36px rgba(0, 0, 0, 0.58);
}

.tok-flip-scene {
  perspective: 1200px;
  min-height: 368px;
  height: 368px;
  display: flex;
}

.tok-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.54s cubic-bezier(0.22, 1, 0.36, 1);
}

.tok-flip-card.is-flipped {
  transform: rotateY(180deg);
}

.tok-flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tok-flip-card:not(.is-flipped) .tok-flip-back { pointer-events: none; }
.tok-flip-card.is-flipped .tok-flip-front { pointer-events: none; }

.tok-flip-back {
  transform: rotateY(180deg);
  mask-image: none;
  -webkit-mask-image: none;
  background:
    radial-gradient(ellipse 85% 60% at 14% 0%, rgba(124, 77, 255, 0.13) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 94% 12%, rgba(164, 146, 237, 0.10) 0%, transparent 56%),
    linear-gradient(155deg, rgba(18, 12, 42, 0.46) 0%, rgba(7, 4, 22, 0.80) 54%, rgba(4, 6, 9, 0.92) 100%);
  padding: 13px 18px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.tok-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 2px 0;
  color: var(--mint);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.tok-status-btn:hover { opacity: 0.85; transform: translateY(-0.5px); }
.tok-status-btn.is-grey { color: var(--sb-muted); }
.tok-status-btn.is-grey:hover { color: #FFFFFF; }

.tok-back-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tok-back-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FFFFFF;
}

.tok-back-tk {
  font-size: 11px;
  color: var(--sb-muted);
}

.tok-back-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  padding: 6px 0 4px;
}

.tok-back-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tok-back-lbl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tok-mini-act {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  opacity: 0.9;
  transition: opacity 0.14s ease;
}

.tok-mini-act:hover { opacity: 1; }

.tok-back-foot {
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tok-back-view {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 0;
}

.tok-back-view.is-hidden { display: none; }

.tok-locked-val {
  font-size: 12px;
  font-weight: 500;
  color: #FFFFFF;
  padding: 3px 0 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tok-back-popups {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tok-back-steps {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: nowrap;
}

.tok-proceed-locked {
  opacity: 0.48;
}

.tok-back-status {
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Col 1: Altera-Style Frosted Split Agent Card (Glow Head + Clear Task Tray) */
.tok-profit-fade {
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.tok-flip-front {
  mask-image: none;
  -webkit-mask-image: none;
}

.tok-split-head {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 10px 11px;
  background:
    radial-gradient(ellipse 90% 85% at 15% 10%, rgba(124, 77, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 70% at 92% 95%, rgba(164, 146, 237, 0.12) 0%, transparent 60%),
    linear-gradient(155deg, rgba(11, 28, 25, 0.74) 0%, rgba(5, 8, 10, 0.90) 100%);
  border: 1px solid rgba(164, 146, 237, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tok-split-art {
  position: absolute;
  right: -12px;
  top: -10px;
  width: 148px;
  height: 98px;
  object-fit: cover;
  opacity: 0.28;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 68% 36%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 72% at 68% 36%, #000 10%, transparent 78%);
}

.tok-split-head > *:not(.tok-split-art) {
  position: relative;
  z-index: 1;
}

.tok-agent-plain {
  font-size: 10px;
  line-height: 1.32;
  color: rgba(237, 237, 248, 0.78);
  margin: 0;
}

/* Finotive-Style 2x2 Visual Capability Grid */
.tok-cap-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-height: 0;
}

.tok-cap-tile {
  border-radius: 11px;
  padding: 7px 9px;
  background: rgba(6, 15, 15, 0.72);
  border: 1px solid rgba(164, 146, 237, 0.11);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  min-width: 0;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.tok-cap-tile:hover {
  border-color: rgba(164, 146, 237, 0.28);
  background: rgba(9, 22, 21, 0.82);
}

.tok-cap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tok-cap-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #141418;
  border: 1px solid #26262e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tok-cap-ico.is-mint { color: var(--mint); }
.tok-cap-ico.is-purple { color: var(--purple); }
.tok-cap-ico .tok-ico { width: 11px; height: 11px; }

.tok-cap-val {
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tok-cap-name {
  font-size: 10.5px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.15;
}

.tok-cap-sub {
  font-size: 9px;
  color: var(--sb-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tok-cap-sub em {
  font-style: normal;
  color: var(--mint);
  font-weight: 600;
}

.tok-rail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(237, 237, 248, 0.055);
  min-width: 0;
}

.tok-rail-row:last-child {
  border-bottom: 0;
}

.tok-rail-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tok-rail-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #141418;
  border: 1px solid #26262e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(237, 237, 248, 0.85);
}

.tok-rail-ico .tok-ico { width: 11px; height: 11px; }

.tok-rail-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tok-rail-copy strong {
  font-size: 10.5px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.15;
}

.tok-rail-copy span {
  font-size: 9px;
  color: var(--sb-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tok-rail-copy em {
  font-style: normal;
  color: var(--mint);
  font-weight: 600;
}

.tok-rail-val {
  font-size: 10.5px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Agent Identity Header & Orb */
.tok-agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tok-agent-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.tok-orb-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.tok-orb-img {
  width: 34px;
  height: 34px;
  margin: 1px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #060609;
}

.tok-orb-ring {
  position: absolute;
  inset: -3px;
  width: 42px;
  height: 42px;
  pointer-events: none;
  animation: tok-spin 12s linear infinite;
}

@keyframes tok-spin {
  to { transform: rotate(360deg); }
}

.tok-agent-titles { min-width: 0; }
.tok-hero-num { font-size: 16.5px; font-weight: 600; line-height: 1.12; margin-top: 1px; white-space: nowrap; }

.tok-noncto-stage {
  flex: 1 1 auto;
}

.tok-noncto-stage.tok-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}

.tok-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.tok-amt-chips {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tok-amt-chips .tok-btn-mini {
  padding: 0 6px;
  height: 21px;
  font-size: 9.5px;
}

.tok-act-btns {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Right Subrow: 2-Up Work Dialogue + Autonomy Edge */
.tok-right-subrow {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.82fr);
  gap: 11px;
  height: 195px;
  min-height: 195px;
}

.tok-hero-feed {
  min-height: 195px;
  max-height: 195px;
  height: 195px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 8px 10px;
}

.tok-edge-card {
  position: relative;
  min-height: 195px;
  max-height: 195px;
  height: 195px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.tok-edge-art {
  position: absolute;
  right: -12px;
  bottom: -14px;
  width: 170px;
  height: 92px;
  object-fit: cover;
  opacity: 0.24;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 74% 74% at 72% 68%, #000 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 74% 74% at 72% 68%, #000 10%, transparent 80%);
}

.tok-edge-card > *:not(.tok-edge-art) {
  position: relative;
  z-index: 1;
}

.tok-edge-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tok-edge-state {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--mint);
}

.tok-sniper-card {
  padding: 9px 11px;
  gap: 6px;
}

.tok-sniper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.tok-sniper-sides,
.tok-sniper-presets {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tok-sniper-row .tok-btn-mini {
  height: 20px;
  padding: 0 5px;
  font-size: 9.5px;
}

.tok-sniper-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tok-sniper-input {
  width: 100%;
  height: 28px;
  border-radius: 8px;
  background: #141418;
  border: 1px solid #26262e;
  padding: 0 34px 0 9px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}

.tok-sniper-input::-webkit-outer-spin-button,
.tok-sniper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tok-sniper-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
}

.tok-sniper-unit {
  position: absolute;
  right: 9px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--sb-dim);
  pointer-events: none;
}

.tok-sniper-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 2px 0;
}

.tok-sniper-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tok-sniper-stat span {
  font-size: 8.5px;
  color: var(--sb-dim);
}

.tok-sniper-stat strong {
  font-size: 10.5px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tok-sniper-exec {
  width: 100%;
  height: 27px;
  font-size: 11px;
  font-weight: 600;
}

.tok-sniper-exec:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tok-sniper-pos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 9.5px;
  font-weight: 600;
}

.tok-sniper-connect {
  height: 18px;
  padding: 0 7px;
  font-size: 9px;
}

.tok-sniper-slider-wrap {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border-radius: 8px;
  background: #141418;
  border: 1px solid #26262e;
}

.tok-sniper-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  cursor: pointer;
}

.tok-sniper-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #020010;
  cursor: pointer;
}

.tok-sniper-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #020010;
  cursor: pointer;
}

.tok-sniper-pct-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  min-width: 30px;
  text-align: right;
}

.tok-edge-meters {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tok-edge-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tok-edge-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9.5px;
  color: var(--sb-dim);
}

.tok-edge-row-top strong {
  color: #FFFFFF;
  font-weight: 600;
}

.tok-edge-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(237, 237, 248, 0.09);
  overflow: hidden;
}

.tok-edge-track > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e4e4e7 0%, #a7f3d0 100%);
  transition: width 0.35s ease;
}

.tok-edge-track > i.is-mint {
  background: linear-gradient(90deg, #C4B5FD 0%, #e4e4e7 100%);
}

.tok-wf-banner {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  padding: 8px 9px 7px;
  background:
    radial-gradient(ellipse 85% 90% at 88% 10%, rgba(164, 146, 237, 0.16) 0%, transparent 56%),
    radial-gradient(ellipse 75% 80% at 15% 15%, rgba(255, 255, 255, 0.22) 0%, transparent 62%),
    rgba(8, 9, 13, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.tok-wf-bg-art {
  position: absolute;
  right: -18px;
  top: -16px;
  width: 140px;
  height: 86px;
  object-fit: cover;
  opacity: 0.24;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 74% 74% at 64% 38%, #000 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 74% 74% at 64% 38%, #000 10%, transparent 80%);
}

.tok-wf-banner > *:not(.tok-wf-bg-art) {
  position: relative;
  z-index: 1;
}

.tok-wf-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.tok-wf-step {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 5px 6px;
  border-radius: 8px;
  background: #141418;
  border: 1px solid #26262e;
  color: #E4E4E7;
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tok-wf-step .tok-ico { width: 10px; height: 10px; margin-bottom: 1px; opacity: 0.88; }
.tok-wf-step strong { font-size: 9.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.tok-wf-step span { font-size: 8px; opacity: 0.68; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.tok-wf-step:hover:not(.is-active) {
  border-color: rgba(255, 255, 255, 0.48);
  color: #FFFFFF;
}

.tok-wf-step.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.tok-wf-step.is-active span { opacity: 0.78; }

.tok-wf-explain {
  font-size: 9.5px;
  line-height: 1.25;
  color: rgba(237, 237, 248, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tok-feed-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tok-feed-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tok-feed-dot { font-size: 8px; }
.tok-feed-chest { font-size: 10px; font-weight: 600; color: var(--mint); }

.tok-feed-filters {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tok-feed-filters .tok-btn-mini {
  height: 19px;
  padding: 0 7px;
  font-size: 9.5px;
}

.tok-agent-stream {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 2px 3px 2px 1px;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.tok-agent-stream::-webkit-scrollbar { width: 4px; }
.tok-agent-stream::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 4px; }

.tok-dmsg {
  display: flex;
  width: 100%;
}

.tok-dmsg.is-left { justify-content: flex-start; }
.tok-dmsg.is-right { justify-content: flex-end; }

/* Bubble-less Two-Sided Terminal Code Stream */
.tok-dbubble {
  max-width: 94%;
  padding: 1px 0 1px 7px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: 1.5px solid rgba(164, 146, 237, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tok-dmsg.is-right .tok-dbubble {
  align-items: flex-end;
  text-align: right;
  padding: 1px 7px 1px 0;
  background: transparent;
  border: 0;
  border-right: 1.5px solid rgba(255, 255, 255, 0.52);
}

.tok-term-cmd {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.tok-term-cmd.is-mint { color: var(--mint); }
.tok-term-cmd.is-purple { color: var(--purple); }

.tok-dmeta {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tok-dmsg.is-right .tok-dmeta {
  flex-direction: row-reverse;
}

.tok-dtxt {
  font-size: 9.5px;
  line-height: 1.32;
  color: rgba(235, 237, 248, 0.88);
}

.tok-stream-ava {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.tok-stream-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  flex-shrink: 0;
}

.tok-stream-num {
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tok-chat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tok-chat-input {
  flex: 1 1 0;
  min-width: 0;
  height: 26px;
  border-radius: 7px;
  background: #141418;
  border: 1px solid #26262e;
  padding: 0 9px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 10.5px;
  outline: none;
}

.tok-chat-input::placeholder { color: var(--sb-dim); }
.tok-chat-input:focus { border-color: rgba(255, 255, 255, 0.4); }

.tok-watch-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tok-wf-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.tok-wf-row:last-child { border-bottom: 0; padding-bottom: 0; }
.tok-wf-k { font-size: 9.5px; font-weight: 500; color: var(--sb-dim); letter-spacing: 0.02em; text-transform: uppercase; }
.tok-wf-v { font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-hidden { display: none !important; }

.tok-profit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tok-big-num {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}

.tok-status-line {
  font-size: 10.5px;
  color: var(--mint);
  padding-top: 4px;
}

.tok-profit-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: end;
}

.tok-bars-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tok-bar-col { display: flex; flex-direction: column; gap: 4px; }
.tok-bar-pct { font-size: 11px; font-weight: 500; color: var(--sb-muted); }

/* Tall Vertical Tick Bars Matching GFT Reference */
.tok-bar-ticks {
  height: 76px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 4px;
  background: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 4px);
}

.tok-bar-ticks.is-win {
  background: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.36) 0 1px, transparent 1px 4px);
}

.tok-profit-side {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 14px;
  border-left: 1px solid var(--sb-hairline-soft);
}

.tok-side-kv {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tok-side-kv span { font-size: 9.5px; color: var(--sb-dim); }
.tok-side-kv strong { font-size: 12px; font-weight: 500; color: var(--sb-muted); }

/* Center Panel: Frosted Liquid Glass Chart Card */
.tok-chart-open {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.tok-chart-glass {
  height: 162px;
  min-height: 162px;
  max-height: 162px;
  padding: 8px 12px 7px;
}

.tok-chart-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
  align-items: stretch;
  gap: 5px;
}

.tok-chart-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.tok-chart-big {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: #FFFFFF;
}

.tok-chart-delta { font-size: 10.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-chart-delta.is-green { color: var(--mint); }
.tok-chart-delta.is-red { color: var(--red); }

.tok-tf-group {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.tok-tf-group .tok-btn-mini {
  height: 20px;
  padding: 0 7px;
  font-size: 9.5px;
  border-radius: 6px;
}

.tok-chart-stage {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 76px;
  height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tok-hero-grid.is-chart-expanded .tok-chart-glass,
.tok-hero-grid.is-chart-expanded .tok-flip-scene,
.tok-hero-grid.is-chart-expanded .tok-hero-feed {
  max-height: none;
  height: auto;
}

.tok-hero-grid.is-chart-expanded .tok-chart-stage {
  height: 235px;
}

.tok-svg-detailed {
  width: 100%;
  height: 100%;
  display: block;
}

#tok-chart-dot {
  transition: cx 0.25s ease, cy 0.25s ease;
  filter: drop-shadow(0 0 6px rgba(164, 146, 237, 0.85));
}

.tok-stream-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10px;
  color: var(--sb-muted);
  min-width: 0;
}

.tok-stream-inline span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SECTION 2: Slim Frosted Mint-Violet Objectives Bar */
.tok-sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sb-white);
  padding-top: 1px;
}

.tok-strip-8 {
  border-radius: 12px;
  background:
    radial-gradient(ellipse 65% 120% at 8% 50%, rgba(124, 77, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 65% 120% at 92% 50%, rgba(164, 146, 237, 0.08) 0%, transparent 60%),
    rgba(5, 11, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(164, 146, 237, 0.13);
  box-shadow: inset 0 1px 0 rgba(215, 201, 255, 0.08);
  padding: 8px 13px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.tok-s8-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 10px;
  border-left: 1px solid var(--sb-hairline-soft);
  min-width: 0;
  overflow: hidden;
}

.tok-s8-cell:first-child { padding-left: 0; border-left: 0; }
.tok-s8-l { font-size: 9.5px; font-weight: 500; color: var(--sb-dim); white-space: nowrap; }
.tok-s8-v { font-size: 13px; font-weight: 600; color: var(--sb-white); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-s8-sub { font-size: 9.5px; color: var(--sb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#s2-pulse { transition: opacity 0.4s ease; }

/* ZONE 3: CURVED OPEN-BOTTOM TRADING + CTO + BUY/SELL SECTION */
.tok-bottom-curved {
  flex: 1 1 0;
  min-height: 155px;
  margin-top: 1px;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid rgba(164, 146, 237, 0.15);
  background: linear-gradient(180deg, rgba(12, 8, 30, 0.44) 0%, rgba(4, 10, 11, 0.34) 44%, rgba(3, 5, 7, 0) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 15px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.tok-ws-head,
.tok-ws-meta-strip {
  flex-shrink: 0;
}

.tok-ws-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
  overscroll-behavior: contain;
  padding-bottom: 58px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.tok-ws-body::-webkit-scrollbar { width: 4px; height: 4px; }
.tok-ws-body::-webkit-scrollbar-track { background: transparent; }
.tok-ws-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 999px; }
.tok-ws-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }

.tok-trades-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tok-trades-more-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--sb-muted);
  cursor: pointer;
  outline: none;
  transition: color 0.14s ease;
}

.tok-trades-more-btn:hover { color: #FFFFFF; }

.tok-ws-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sb-hairline-soft);
  flex-wrap: wrap;
}

.tok-ws-tabs { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.tok-ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid transparent;
  padding: 4px 0;
  color: var(--sb-muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.tok-ws-tab:hover { color: var(--sb-white); }
.tok-ws-tab.is-active { color: var(--sb-white); border-bottom-color: var(--sb-white); }

/* Boxless Execution Controls (Matches Spotlight X/Discord Links — Zero Pill Boxes) */
.tok-bottom-exec-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tok-exec-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 3px 1px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  opacity: 0.88;
  transition: opacity 0.14s ease, transform 0.14s ease, color 0.14s ease;
}

.tok-exec-link:hover {
  opacity: 1;
  transform: translateY(-0.5px);
}

.tok-exec-link:disabled {
  opacity: 0.45;
  cursor: wait;
}

.tok-ws-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.tok-ws-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0c0d12;
  text-align: left;
  font-size: 10px;
  font-weight: 400;
  color: var(--sb-dim);
  padding: 7px 6px;
  border-bottom: 1px solid var(--sb-hairline-soft);
}
.tok-ws-table td {
  padding: 9px 6px;
  color: var(--sb-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  vertical-align: middle;
}

.tok-ws-table tr:last-child td { border-bottom: 0; }

.td-ic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.td-ico-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.td-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sb-muted);
  text-decoration: none;
  font-size: 11px;
  transition: color 0.14s ease;
}

.td-link-btn:hover { color: #FFFFFF; }

.td-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #141418;
  border: 1px solid #26262e;
  border-radius: 7px;
  padding: 4px 10px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  opacity: 1;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.td-action-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.td-action-btn.is-white {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.td-action-btn.is-white:hover {
  opacity: 0.92;
  color: #000000;
}

.tok-cto-owner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  flex-wrap: wrap;
}

.tok-id-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tok-cto-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  flex-wrap: wrap;
}

.tok-cto-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 140px;
  min-width: 120px;
}

.tok-cto-lbl {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(237, 237, 248, 0.50);
  text-transform: uppercase;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.tok-cto-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 0 5px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.14s ease;
}

.tok-cto-input::placeholder { color: rgba(237, 237, 248, 0.34); font-weight: 400; }
.tok-cto-input:focus { border-bottom-color: #FFFFFF; }

.tok-cto-sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 10.5px;
  flex-wrap: wrap;
}

.tok-cto-sync-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tok-cto-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 6px;
}

.tok-cto-slot {
  padding: 8px 12px;
  border-left: 1px solid var(--sb-hairline-soft);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tok-cto-slot:first-child { border-left: 0; padding-left: 0; }
.tok-cto-slot h4 { font-size: 11.5px; font-weight: 500; color: var(--sb-white); }
.tok-cto-slot span { font-size: 10.5px; color: var(--sb-dim); line-height: 1.4; }

/* FLOATING BOTTOM APPLE LIQUID DOCK */
.tok-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(16, 17, 24, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.78);
}

.tok-dock-btn {
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--sb-muted);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.tok-dock-btn:hover,
.tok-dock-btn.is-active {
  background: #FFFFFF;
  color: #000000;
}

.tok-dock-sep { width: 1px; height: 12px; background: var(--sb-hairline); margin: 0 2px; }

@media (max-width: 1120px) {
  .tok-hero-grid { grid-template-columns: minmax(310px, 0.9fr) minmax(360px, 1.2fr); }
  .tok-right-subrow { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .tok-hero-feed { height: 180px; min-height: 180px; max-height: 180px; }
  .tok-edge-card { height: auto; min-height: 0; max-height: none; }
}

@media (max-width: 860px) {
  html, body { height: auto; overflow-y: auto; }
  .tok-shell { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .tok-main { height: auto; overflow: visible; padding-bottom: 84px; }
  .tok-bottom-curved { flex: none; overflow: visible; }
  .tok-ws-body { flex: none; max-height: 58vh; }
  .tok-sidebar { display: none; }
  .tok-hero-grid { grid-template-columns: 1fr; }
  .tok-flip-scene { height: auto; min-height: 330px; }
  .tok-hero-feed { height: 220px; min-height: 220px; max-height: 220px; }
  .tok-strip-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; }
  .tok-cto-grid-3 { grid-template-columns: 1fr; }
  .tok-cto-slot { border-left: 0; padding-left: 0; border-top: 1px solid var(--sb-hairline-soft); }
  .tok-cto-slot:first-child { border-top: 0; }
}

/* =====================================================================
   WIMAI.FUN COSMIC GLASS DESIGN SYSTEM (Matches Framer Landing Page)
   ===================================================================== */
.tok-sidebar {
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(124, 77, 255, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(14, 9, 34, 0.84) 0%, rgba(6, 4, 18, 0.94) 55%, rgba(2, 0, 16, 0.98) 100%);
  border-right: 1px solid rgba(164, 146, 237, 0.16);
}

.tok-main {
  padding: 16px 24px;
  gap: 14px;
}

.tok-topbar {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(164, 146, 237, 0.14);
}

.tok-top-nav {
  background: rgba(10, 6, 28, 0.74);
  border: 1px solid rgba(164, 146, 237, 0.16);
  border-radius: 999px;
  padding: 3px 4px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tok-hero-card,
.tok-flip-face,
.tok-hero-feed,
.tok-edge-card,
.tok-bottom-curved {
  border-radius: 22px;
  background:
    radial-gradient(120% 85% at 14% 0%, rgba(124, 77, 255, 0.11) 0%, transparent 56%),
    linear-gradient(180deg, rgba(16, 11, 36, 0.88) 0%, rgba(7, 4, 22, 0.94) 100%);
  border: 1px solid rgba(164, 146, 237, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(215, 201, 255, 0.12),
    0 20px 48px -14px rgba(2, 0, 16, 0.90);
}

.tok-hero-grid {
  gap: 16px;
}

.tok-right-subrow {
  gap: 14px;
}

.tok-ws-input,
.tok-input,
.tok-trade-input {
  border-radius: 12px;
  background: #09061A;
  border: 1px solid rgba(164, 146, 237, 0.18);
}

.tok-ws-input:focus,
.tok-input:focus,
.tok-trade-input:focus {
  border-color: rgba(196, 181, 253, 0.52);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.16);
}
