/* ─────────────────────────────────────────────────────────────
   AgentGO: light mint trading floor, neon GO brand
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #F1F6F2;
  --grid-line: rgba(20, 60, 40, 0.045);
  --surface: #FFFFFF;
  --surface-2: #F5F9F6;
  --surface-3: #EAF2EC;
  --line: #E1EAE3;
  --line-strong: #CBDACF;
  --ink: #102219;
  --ink-2: #43564A;
  --muted: #7B8E82;
  --mint: #01FA86;
  --mint-hi: #62FFB4;
  --mint-deep: #0A8F5A;
  --mint-soft: #E0F7EB;
  --mint-ink: #07301F;
  --btn-edge: #12402C;
  --up: #0B9A5D;
  --up-soft: #E2F5EA;
  --down: #DB3F45;
  --down-soft: #FCEBEC;
  --amber: #A86A0C;
  --amber-soft: #FFF2D2;
  --tape-bg: #000000;
  --tape-ink: #D8EBDF;
  --shadow: 0 1px 0 rgba(16, 34, 25, 0.04), 0 10px 30px -22px rgba(16, 34, 25, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --go-green: #01FA86;
  --go-cyan: #00FBFE;
  --go-pink: #FD06FD;
  --f-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-pix: 'Silkscreen', 'Figtree', ui-monospace, monospace;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B130F;
    --grid-line: rgba(160, 230, 190, 0.035);
    --surface: #111C16;
    --surface-2: #15221B;
    --surface-3: #1B2B22;
    --line: #213229;
    --line-strong: #2E4538;
    --ink: #E5F1E9;
    --ink-2: #A8BEB0;
    --muted: #70877A;
    --mint: #01FA86;
    --mint-hi: #62FFB4;
    --mint-deep: #3CF5A0;
    --mint-soft: #133526;
    --mint-ink: #04241A;
    --btn-edge: #062416;
    --up: #45DE9C;
    --up-soft: #12301F;
    --down: #FF6B70;
    --down-soft: #34181A;
    --amber: #F2B84B;
    --amber-soft: #33270F;
    --tape-bg: #000000;
    --tape-ink: #C9DDD0;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 12px 30px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B130F;
  --grid-line: rgba(160, 230, 190, 0.035);
  --surface: #111C16;
  --surface-2: #15221B;
  --surface-3: #1B2B22;
  --line: #213229;
  --line-strong: #2E4538;
  --ink: #E5F1E9;
  --ink-2: #A8BEB0;
  --muted: #70877A;
  --mint: #01FA86;
  --mint-hi: #62FFB4;
  --mint-deep: #3CF5A0;
  --mint-soft: #133526;
  --mint-ink: #04241A;
  --btn-edge: #062416;
  --up: #45DE9C;
  --up-soft: #12301F;
  --down: #FF6B70;
  --down-soft: #34181A;
  --amber: #F2B84B;
  --amber-soft: #33270F;
  --tape-bg: #000000;
  --tape-ink: #C9DDD0;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 12px 30px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: 0.86em; }
.pix { font-family: var(--f-pix); font-weight: 400; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Top bar ── */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 7px; flex: none; }
.brand-name { font-family: var(--f-pix); font-size: 21px; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
/* the GO logo always sits on its own black tile, exactly like the coin logo */
.go-tile { display: block; background: #000; object-fit: contain; border-radius: 7px; }
.brand-go { width: 62px; height: 34px; padding: 3px 4px; box-shadow: 2px 2px 0 var(--go-pink); transition: transform 0.12s steps(2), box-shadow 0.12s steps(2); }
.brand:hover .brand-go { transform: translate(-1px, -1px); box-shadow: -2px -2px 0 var(--go-cyan), 3px 3px 0 var(--go-pink); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mode-pill {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  white-space: nowrap;
}
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink-2);
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--line-strong);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--line-strong); }
.btn-primary {
  background: var(--mint);
  color: var(--mint-ink);
  border-color: var(--btn-edge);
  box-shadow: 0 3px 0 var(--btn-edge);
}
.btn-primary:hover { background: var(--mint-hi); }
.btn-primary:active { box-shadow: 0 1px 0 var(--btn-edge); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-wallet { font-family: var(--f-body); }
.btn-wallet .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }

/* ── Ticker tape ── */
.tape {
  background: var(--tape-bg);
  color: var(--tape-ink);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 12px;
  height: 32px;
  display: flex;
  align-items: center;
}
.tape-track { display: inline-flex; gap: 28px; padding-left: 28px; animation: tape 70s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; gap: 8px; align-items: baseline; }
.tape-item b { font-weight: 600; color: #FFFFFF; }
.tape-item .up { color: var(--go-green); }
.tape-item .down { color: #FF8A8E; }
.tape-sep { color: #5A2A5E; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }

/* ── Layout ── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 22px 20px 64px; display: grid; gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 16px; text-transform: uppercase; }
.card-head .sub { color: var(--muted); font-size: 13px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 16px 18px; }
.card-foot { display: block; padding: 12px 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--mint-deep); }
.card-foot:hover { background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--f-pix); font-weight: 400; font-size: clamp(26px, 4vw, 34px); }
.page-head p { color: var(--ink-2); max-width: 62ch; margin-top: 6px; }
.page-head .right { margin-left: auto; }

/* segmented control */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line-strong), 0 0 0 1px var(--line); }

/* live dot */
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--up); }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }

/* ── Robots, token icons ── */
.av { display: inline-block; flex: none; border-radius: 10px; overflow: hidden; line-height: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }
.av .bot { width: 100%; height: 100%; display: block; }
.bot-bg { fill: color-mix(in srgb, var(--bot-body) 26%, var(--surface)); }
.av-28 { width: 28px; height: 28px; border-radius: 8px; }
.av-36 { width: 36px; height: 36px; }
.av-42 { width: 42px; height: 42px; border-radius: 11px; }
.av-56 { width: 56px; height: 56px; border-radius: 13px; }
.av-120 { width: 120px; height: 120px; border-radius: 20px; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.tok {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--tc);
  color: #102219;
  font-weight: 800; font-size: 11px;
  box-shadow: inset 0 0 0 1.5px rgba(16, 34, 25, 0.18);
}
.tok-lg { width: 32px; height: 32px; font-size: 14px; }
.tok { position: relative; overflow: hidden; }
.tok img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface); }
.av { position: relative; }
.av img { position: absolute; inset: 0; }
.fi-tx { margin-left: auto; font-size: 12px; }
.pill-live { background: var(--mint-soft); color: var(--mint-deep); }
.mode-pill.live-pill { background: var(--mint-soft); color: var(--mint-deep); }
.p-note { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.p-note:empty, .p-foot:empty { display: none; }
.p-foot { display: grid; gap: 8px; }
.actions .btn-sm { flex: 1; }
.tokname { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  background: var(--surface-3); color: var(--ink-2);
}
.pill-active { background: var(--up-soft); color: var(--up); }
.pill-active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-unfunded { background: var(--amber-soft); color: var(--amber); }
.pill-low { background: var(--down-soft); color: var(--down); }
.pill-paper { background: var(--amber-soft); color: var(--amber); }
.side {
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.side-buy { background: var(--up-soft); color: var(--up); }
.side-sell { background: var(--down-soft); color: var(--down); }
.side-hold { background: var(--surface-3); color: var(--ink-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  white-space: nowrap;
}
.chip-tp { background: var(--up-soft); border-color: transparent; color: var(--up); }
.chip-sl { background: var(--down-soft); border-color: transparent; color: var(--down); }
.agent-tag { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }

/* ── Home: hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.hero-main { padding: 26px 26px 22px; display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--mint-deep); text-transform: uppercase; }
.hero h1 { font-family: var(--f-pix); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--mint-deep); }
.hero p.lede { color: var(--ink-2); max-width: 58ch; font-size: 15.5px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-top { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.hero-title { display: grid; gap: 14px; min-width: 0; }
.hero-logo { flex: none; width: 210px; display: grid; justify-items: center; margin-top: 4px; }
.hero-logo .go-tile { width: 100%; height: auto; aspect-ratio: 560 / 303; padding: 8px 10px; border-radius: 16px; box-shadow: 4px 4px 0 var(--go-pink), -3px -3px 0 var(--go-cyan); }
.hero-bots { display: flex; gap: 6px; margin-top: -12px; position: relative; }
.hero-bots .av { box-shadow: 0 0 0 2px var(--surface); }
.flow { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.flow li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.flow li span.n { font-family: var(--f-mono); font-size: 10px; width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 5px; background: var(--mint-soft); color: var(--mint-deep); }
.flow li + li::before { content: '→'; color: var(--muted); margin-right: 2px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.stat .k { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1.1; }
.stat .v small { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.stat .s { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Home: grid ── */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.side-col { display: grid; gap: 20px; }

/* Active Agent Trades feed */
.feed-card h2 { font-size: 18px; }
.feed-card { display: flex; flex-direction: column; }
.feed { flex: 1 1 0; min-height: 560px; overflow-y: auto; }
.fi {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.fi:last-child { border-bottom: 0; }
.fi.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh {
  0% { background: color-mix(in srgb, var(--mint) 22%, transparent); transform: translateY(-6px); opacity: 0; }
  12% { opacity: 1; transform: none; }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .fi.fresh { animation: none; } }
.fi-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fi-top .agent-tag { color: var(--ink); }
.fi-top .name { font-weight: 700; }
.fi-time { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fi-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.fi-main .tokname { font-size: 15px; }
.fi-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.fi-amt small { color: var(--muted); font-weight: 600; }
.fi-pnl { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.fi-reason { margin-top: 6px; color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-empty { padding: 40px 18px; text-align: center; color: var(--muted); }

/* top agents */
.top-list { list-style: none; margin: 0; padding: 6px 0; }
.top-list li a { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 18px; }
.top-list li a:hover { background: var(--surface-2); }
.rank { font-family: var(--f-mono); font-size: 12px; font-weight: 700; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-3); color: var(--ink-2); }
.rank-1 { background: var(--mint); color: var(--mint-ink); }
.rank-2, .rank-3 { background: var(--mint-soft); color: var(--mint-deep); }
.who { min-width: 0; }
.who .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.who .agent-tag { display: block; }
.score { text-align: right; font-variant-numeric: tabular-nums; }
.score b { display: block; font-size: 15px; font-weight: 800; }
.score span { font-size: 12px; color: var(--muted); }

/* recently launched */
.recent { display: grid; }
.recent a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.recent a:last-child { border-bottom: 0; }
.recent a:hover { background: var(--surface-2); }
.recent .t { font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .t small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.recent .by { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .m { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
.recent .m span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.new-badge { font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--mint-ink); background: var(--mint); padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }

/* agent cards */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding: 16px 18px 18px; }
.acard {
  display: grid; gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s, transform 0.15s;
}
.acard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.acard-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.acard-top .name { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acard-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.acard-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acard-nums .k { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.acard-nums .v { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.acard-nums .v small { font-size: 12px; font-weight: 700; }
.acard .spark { width: 100%; height: 38px; display: block; }
.acard-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; border-top: 1px dashed var(--line); padding-top: 10px; }

.spark { color: var(--muted); overflow: visible; }
.spark.up { color: var(--up); }
.spark.down { color: var(--down); }

/* ── Tables ── */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 10px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--surface-2); }
.tbl .b { font-weight: 700; }
.tbl .spark { width: 96px; height: 28px; display: block; margin-left: auto; }
.cell-agent { display: flex; align-items: center; gap: 10px; }
.cell-agent .name { font-weight: 700; }
.chg { display: inline-block; font-weight: 700; font-size: 12.5px; padding: 2px 7px; border-radius: 6px; }
.chg.up { background: var(--up-soft); }
.chg.down { background: var(--down-soft); }
.chg.flat { background: var(--surface-3); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.toolbar .right { margin-left: auto; }
.search {
  height: 36px; padding: 0 12px; border-radius: 10px; min-width: 0; width: 220px; max-width: 100%;
  border: 1px solid var(--line-strong); background: var(--surface);
}

/* ── Agent page ── */
.agent-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; padding: 22px; align-items: center; }
.agent-hero .av-120 { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 14%, transparent), 0 4px 0 color-mix(in srgb, var(--ink) 12%, transparent); }
.agent-hero h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.01em; }
.agent-hero .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.agent-hero .actions { display: grid; gap: 8px; justify-items: end; }
.fund-note { max-width: 220px; text-align: right; }
.next-think { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.addr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.addr code { font-family: var(--f-mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); padding: 5px 8px; border-radius: 8px; word-break: break-all; }
.copy { border: 0; background: transparent; cursor: pointer; color: var(--mint-deep); font-weight: 700; font-size: 12.5px; padding: 4px 6px; border-radius: 6px; }
.copy:hover { background: var(--mint-soft); }
.ext { color: var(--mint-deep); font-weight: 700; font-size: 12.5px; }
.ext:hover { text-decoration: underline; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.chart-box { position: relative; padding: 6px 12px 12px; min-height: 240px; }
.eq-chart { display: block; width: 100%; height: auto; color: var(--muted); }
.eq-chart.up { color: var(--up); }
.eq-chart.down { color: var(--down); }
.eq-chart .grid { stroke: var(--line); stroke-width: 1; }
.eq-chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--f-mono); }
.eq-chart .base { stroke: var(--ink-2); stroke-dasharray: 4 4; stroke-width: 1; opacity: 0.6; }
.eq-chart .base-label { fill: var(--ink-2); font-size: 11px; font-family: var(--f-mono); }
.eq-chart .eq-end { stroke: var(--surface); stroke-width: 2; }
.eq-chart .cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip {
  position: absolute; pointer-events: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 10px; box-shadow: var(--shadow); font-size: 12.5px; min-width: 140px;
  font-variant-numeric: tabular-nums;
}
.tip-time { color: var(--muted); font-size: 11.5px; }
.tip-val { font-weight: 800; }
.chart-empty { padding: 60px 10px; text-align: center; color: var(--muted); }

.range { position: relative; width: 150px; height: 22px; }
.range .track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--down-soft) 0 33.3%, var(--up-soft) 33.3% 100%); }
.range .zero { position: absolute; top: 5px; width: 2px; height: 12px; background: var(--line-strong); left: 33.3%; }
.range .fill { position: absolute; top: 9px; height: 4px; border-radius: 4px; }
.range .fill.up { background: var(--up); }
.range .fill.down { background: var(--down); }
.range .mk { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--surface); }
.range .mk.up { background: var(--up); }
.range .mk.down { background: var(--down); }
.range-lbl { display: flex; justify-content: space-between; width: 150px; font-family: var(--f-mono); font-size: 9.5px; color: var(--muted); }

.decisions { list-style: none; margin: 0; padding: 0; max-height: 470px; overflow-y: auto; }
.decisions li { padding: 11px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.decisions li:last-child { border-bottom: 0; }
.decisions .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.decisions .when { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.decisions p { font-size: 13.5px; color: var(--ink-2); }
.blocked { font-size: 12.5px; color: var(--down); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.blocked::before { content: 'RISK CHECK'; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em; background: var(--down-soft); padding: 1px 5px; border-radius: 4px; }
.blocked.failed::before { content: 'FAILED'; }
.blocked { align-items: flex-start; }
.approved { font-size: 12px; color: var(--up); font-weight: 600; }

.coin-card { display: grid; gap: 14px; padding: 18px; }
.coin-head { display: flex; gap: 12px; align-items: center; }
.coin-head .t { font-weight: 800; font-size: 18px; }
.coin-head .t small { color: var(--muted); font-size: 13px; font-weight: 700; margin-left: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rule { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rule .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.rule .v { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ── Launch page ── */
.launch { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.form { display: grid; gap: 18px; padding: 22px; }
.fieldset { display: grid; gap: 14px; }
.fieldset-title { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint-deep); display: flex; align-items: center; gap: 10px; }
.fieldset-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 13.5px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input, .textarea {
  width: 100%; min-width: 0;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  border-radius: 10px; padding: 10px 12px; font-size: 14.5px;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--mint-deep); box-shadow: 0 0 0 3px var(--mint-soft); }
.textarea { min-height: 84px; resize: vertical; }
.input-affix { position: relative; }
.input-affix .input { padding-left: 28px; }
.input-affix .pre { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-affix.suf .input { padding-left: 12px; padding-right: 50px; }
.input-affix .suf-t { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; font-size: 13px; }
.upload { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.upload-box {
  width: 88px; height: 88px; border-radius: 16px;
  border: 1.5px dashed var(--line-strong); background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden; cursor: pointer; position: relative;
}
.upload-box:hover { border-color: var(--mint-deep); }
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-box .bot { width: 100%; height: 100%; }
/* robot picker + pixel buttons */
.bot-picker {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--mint-soft); border: 1px solid color-mix(in srgb, var(--mint-deep) 18%, transparent);
}
.bot-stage {
  padding: 10px; line-height: 0; border-radius: 6px;
  background-color: var(--surface);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 8px 8px;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.bot-frame { width: 120px; height: 120px; line-height: 0; }
.bot-frame .bot { width: 100%; height: 100%; display: block; }
.bot-frame.pop { animation: botpop 0.28s steps(3) both; }
@keyframes botpop { 0% { transform: scale(0.8) translateY(6px); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bot-frame.pop { animation: none; } }
.bot-side { display: grid; gap: 12px; min-width: 0; justify-items: start; }
.bot-top { display: flex; align-items: center; gap: 10px; }
.bot-kicker { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mint-deep); }
.bot-count { font-size: 12px; padding: 3px 7px 4px; border-radius: 4px; background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line-strong); }
.bot-side .hint { margin: 0; max-width: 34ch; }
.pix-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 3px 3px 6px; }
/* classic pixel button: notched corners (outline drawn with 4 box-shadows), inset shade, hard drop */
.pix-btn {
  --edge: var(--btn-edge);
  --shade: color-mix(in srgb, var(--mint) 62%, var(--mint-deep));
  --drop: var(--go-pink);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-pix); font-size: 16px; font-weight: 400; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--mint-ink); background: var(--mint);
  border: 0; border-radius: 0; margin: 3px; padding: 12px 18px 14px; cursor: pointer;
  box-shadow:
    -3px 0 0 0 var(--edge), 3px 0 0 0 var(--edge), 0 -3px 0 0 var(--edge), 0 3px 0 0 var(--edge),
    inset -3px -4px 0 0 var(--shade), inset 3px 3px 0 0 rgba(255, 255, 255, 0.35),
    3px 7px 0 0 var(--drop);
  transition: background 0.12s;
}
.pix-btn svg { width: 16px; height: 16px; flex: none; }
.pix-btn:hover { background: var(--mint-hi); }
.pix-btn:active:not([disabled]) {
  transform: translateY(3px);
  box-shadow:
    -3px 0 0 0 var(--edge), 3px 0 0 0 var(--edge), 0 -3px 0 0 var(--edge), 0 3px 0 0 var(--edge),
    inset 3px 4px 0 0 var(--shade);
}
.pix-btn:focus-visible { outline: 2px dashed var(--mint-deep); outline-offset: 7px; }
.pix-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.pix-btn[disabled]:hover { background: var(--surface); }
.pix-alt { background: var(--surface); color: var(--ink); --shade: var(--surface-3); }
.pix-alt:hover { background: var(--surface-2); }
.pix-sq { padding: 12px 13px 14px; }
.logo-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
@media (max-width: 460px) {
  .bot-picker { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .bot-side { justify-items: center; }
}
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 13px; cursor: pointer; }
.presets button.on { border-color: var(--mint-deep); background: var(--mint-soft); color: var(--mint-deep); }
.err { color: var(--down); font-size: 12.5px; font-weight: 600; }
.preview { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 16px; }
.preview-card { padding: 18px; display: grid; gap: 14px; }
.preview-stage {
  border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: center;
  background: linear-gradient(180deg, var(--mint-soft), var(--surface-2));
  border: 1px solid var(--line);
}
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.checklist li::before { content: '✓'; color: var(--mint-deep); font-weight: 800; }
.note { font-size: 12.5px; color: var(--muted); }
.note b { color: var(--ink-2); }

/* ── How it works ── */
.steps { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; counter-reset: s; }
.steps li { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface-2); display: grid; gap: 6px; align-content: start; }
.steps li .n { font-family: var(--f-pix); font-size: 13px; color: var(--mint-deep); }
.steps li b { font-size: 15px; }
.steps li p { font-size: 13px; color: var(--ink-2); }
.pipe { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; padding: 18px; }
.pipe .node { flex: 1 1 140px; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 12px; background: var(--surface); display: grid; gap: 4px; }
.pipe .node.key { border-color: var(--mint-deep); background: var(--mint-soft); }
.pipe .node b { font-size: 14px; }
.pipe .node span { font-size: 12.5px; color: var(--ink-2); }
.pipe .arrow { align-self: center; color: var(--muted); font-weight: 800; }
.prose { padding: 18px; display: grid; gap: 10px; color: var(--ink-2); max-width: 75ch; }
.prose b { color: var(--ink); }

/* ── Modal & toast ── */
.modal-back {
  position: fixed; inset: 0; z-index: 80;
  background: color-mix(in srgb, #06110B 45%, transparent);
  display: grid; place-items: center; padding: 16px;
  animation: fade 0.15s ease-out;
}
.modal { width: min(460px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.modal-head h3 { font-size: 18px; font-weight: 800; }
.modal-head .x { margin-left: auto; border: 0; background: transparent; cursor: pointer; font-size: 22px; color: var(--muted); line-height: 1; padding: 4px 8px; border-radius: 8px; }
.modal-head .x:hover { background: var(--surface-2); }
.modal-body { padding: 10px 20px 20px; display: grid; gap: 14px; }
.modal-body p { color: var(--ink-2); font-size: 14px; }
.wallet-list { display: grid; gap: 8px; margin: 4px 0 2px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.wallet-opt:hover:not([disabled]) { border-color: var(--mint-deep); background: var(--mint-soft); }
.wallet-opt[disabled] { opacity: 0.6; cursor: progress; }
.wallet-opt .wicon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-weight: 800; overflow: hidden; }
.wallet-opt .wicon img { width: 100%; height: 100%; object-fit: contain; }
.wallet-opt .wtext { flex: 1; min-width: 0; }
.wallet-opt.get .wicon { background: var(--surface-3); color: var(--ink-2); }
.wallet-opt.get b { color: var(--ink-2); }
.wallet-opt .wget { font-size: 12px; font-weight: 700; color: var(--mint-deep); }
.btn-wallet .w-ic { width: 18px; height: 18px; border-radius: 5px; margin-right: 6px; vertical-align: -4px; }
.wallet-opt .demo { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; }
.wallet-opt b { display: block; }
.wallet-opt small { color: var(--muted); }
.progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.progress li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.progress li .ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.progress li.doing { color: var(--ink); font-weight: 600; }
.progress li.doing .ic { border-color: var(--mint-deep); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.progress li.done { color: var(--ink-2); }
.progress li.done .ic { background: var(--mint); border-color: var(--btn-edge); color: var(--mint-ink); }
.progress li.fail .ic { background: var(--down); border-color: var(--down); color: #FFFFFF; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: 13.5px; animation: toast 0.25s ease-out; }
.toast b { display: block; }
@keyframes toast { from { transform: translateY(10px); opacity: 0; } }

.foot { max-width: 1320px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.ca-chip { margin-left: -8px; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 13px 0 11px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 700 13px/1 var(--f-mono); letter-spacing: 0.01em; cursor: pointer; white-space: nowrap; flex: none; transition: border-color 0.15s, transform 0.12s steps(2); }
.ca-chip:hover:not(.soon) { border-color: var(--mint-deep); transform: translateY(-1px); }
.ca-chip:active:not(.soon) { transform: translateY(1px); }
.ca-chip:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; }
.ca-img { display: block; height: 22px; width: auto; image-rendering: auto; filter: drop-shadow(0 0 0.6px rgba(6, 36, 22, 0.55)); }
.ca-chip.soon { cursor: default; color: var(--muted); }
.ca-chip.soon .ca-img { filter: grayscale(1) opacity(0.5); }
.ca-copy { width: 15px; height: 15px; color: var(--muted); }
.ca-chip:hover .ca-copy { color: var(--mint-deep); }
.x-link { display: block; width: 36px; height: 36px; flex: none; border-radius: 9px; overflow: hidden; background: #000; box-shadow: 2px 2px 0 var(--go-pink); transition: transform 0.12s steps(2), box-shadow 0.12s steps(2); }
.x-link img { display: block; width: 100%; height: 100%; }
.x-link:hover { transform: translate(-1px, -1px); box-shadow: -2px -2px 0 var(--go-cyan), 3px 3px 0 var(--go-pink); }
.x-link:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; }
.foot-x { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 600; }
.foot-x img { width: 20px; height: 20px; border-radius: 5px; background: #000; }
.foot-x:hover { color: var(--mint-deep); }
@media (prefers-reduced-motion: reduce) { .x-link { transition: none; } }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.foot-brand .go-tile { width: 37px; height: 20px; padding: 2px 3px; border-radius: 4px; }
.feed-empty.boot { display: grid; justify-items: center; gap: 14px; }
.feed-empty.boot .go-tile { width: 120px; height: auto; padding: 6px 8px; border-radius: 12px; animation: gopulse 1.2s steps(2) infinite; }
@keyframes gopulse { 50% { box-shadow: 3px 3px 0 var(--go-pink), -2px -2px 0 var(--go-cyan); } }
@media (prefers-reduced-motion: reduce) { .brand-go, .feed-empty.boot .go-tile { animation: none; transition: none; } }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .mode-pill { display: none; }
  .btn-wallet .long { display: none; }
}
@media (max-width: 1060px) {
  .topbar-in { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .ca-chip { margin-left: 0; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 17px; }
  .brand-go { width: 52px; height: 29px; }
  .top-right { gap: 6px; }
  .x-link, .icon-btn { width: 32px; height: 32px; }
}
@media (max-width: 600px) {
  /* the contract address gets its own row on phones */
  .ca-chip { order: 4; width: 100%; margin-left: 0; justify-content: center; height: 38px; }
}
@media (max-width: 1100px) {
  .hero, .home-grid, .two, .launch { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed { flex: none; max-height: 640px; min-height: 0; }
  .kv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .three { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
}
@media (max-width: 760px) {
  .topbar-in { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .btn-wallet .long { display: none; }
  .fund-note { text-align: left; }
  .kv-grid > :last-child:nth-child(odd), .stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .mode-pill { display: none; }
  .wrap { padding: 16px 16px 48px; gap: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .v { font-size: 20px; }
  .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
  .agent-hero .av-120 { width: 76px; height: 76px; border-radius: 14px; }
  .agent-hero .actions { grid-column: 1 / -1; justify-items: start; }
  .row2, .rules { grid-template-columns: minmax(0, 1fr); }
  .hero-main { padding: 20px 18px; }
  .hero-top { flex-direction: column; gap: 14px; }
  .hero-logo { width: 132px; order: -1; justify-items: start; }
  .hero-logo .go-tile { border-radius: 11px; padding: 5px 7px; box-shadow: 3px 3px 0 var(--go-pink), -2px -2px 0 var(--go-cyan); }
  .hero-bots { display: none; }
  .foot { padding: 0 16px 32px; }
}
