:root {
  --bg: #0a0a0a;
  --canvas: #0a0a0a;
  --panel: rgba(18, 18, 18, 0.96);
  --panel-strong: #151515;
  --panel2: #191919;
  --border: rgba(255, 255, 255, 0.11);
  --border-soft: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --dim: #b7b7b7;
  --faint: #777777;
  --up: #63e1b2;
  --down: #ff718d;
  --accent: #9478ff;
  --accent-2: #b5a2ff;
  --accent-3: #c8bbff;
  --accent-soft: rgba(148, 120, 255, 0.13);
  --accent-soft-strong: #7257da;
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.22);
  --font-brand: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --font-ui: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { scrollbar-gutter: stable; }

body {
  margin: 0;
  color: var(--text);
  font: 450 12.5px/1.45 var(--font-ui);
  letter-spacing: -0.012em;
  font-feature-settings: 'tnum' 1, 'ss01' 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% -18%, rgba(148, 120, 255, 0.09), transparent 28%),
    var(--bg);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.055), transparent 1px);
  background-size: 4px 4px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

::selection { color: #fff; background: var(--accent); }
.app { position: relative; z-index: 1; height: 100vh; display: flex; flex-direction: column; }

/* Header and brand */
.masthead {
  width: 100%; height: 68px; flex: 0 0 68px;
  display: flex; align-items: center; gap: 16px; padding: 8px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(24px);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark {
  width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center;
}
.brand-mark img {
  width: 58px; height: 58px; object-fit: contain;
  filter: drop-shadow(0 8px 11px rgba(0, 0, 0, 0.32));
  animation: mascot-float 5.5s ease-in-out infinite alternate;
}
.wordmark {
  display: flex; flex-direction: column; justify-content: center;
  color: var(--text); font-family: var(--font-brand); font-size: 22px; font-weight: 600;
  line-height: 0.96; letter-spacing: -0.8px;
}
.wordmark small { margin-top: 6px; color: var(--dim); font: 450 8px/1 var(--font-ui); letter-spacing: -0.05px; white-space: nowrap; }

.viewtabs {
  display: flex; gap: 3px; padding: 4px;
  border: 1px solid var(--border-soft); border-radius: 999px;
  background: #151515;
}
.vtab {
  min-width: 0; padding: 7px 13px; border: 1px solid transparent; border-radius: 999px;
  color: var(--dim); font-family: var(--font-display); font-size: 10.5px; font-weight: 500;
  letter-spacing: -0.08px; line-height: 1; cursor: pointer; user-select: none;
  transition: color 0.16s, background 0.16s, box-shadow 0.16s, transform 0.16s;
}
.vtab:hover { color: #fff; background: rgba(255, 255, 255, 0.045); }
.vtab.active {
  color: #0a0a0a; border-color: #fff; background: #fff;
}
.stats { display: flex; align-items: center; gap: 16px; min-width: 0; margin-left: auto; }
.stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.stat .k { color: var(--faint); font-family: var(--font-display); font-size: 8.5px; font-weight: 500; letter-spacing: -0.02px; }
.stat .v { color: var(--text); font-size: 12px; white-space: nowrap; }
.stat .v b { font-weight: 700; }
.stat .v.flash { animation: stat-flash 0.7s ease-out; }
@keyframes stat-flash { 0% { color: var(--up); } 100% { color: var(--text); } }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--dim);
  background: #151515;
  font-family: var(--font-mono); text-decoration: none; white-space: nowrap;
}
.wallet-chip:hover { color: var(--accent); border-color: var(--accent-soft-strong); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); background: #191919;
  font: 500 11px/1 var(--font-ui); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.24); background: #202020; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.primary {
  color: #0a0a0a; border-color: #fff; background: #fff;
}
.btn.primary:hover { color: #0a0a0a; border-color: #dedede; background: #dedede; }
.btn:focus-visible, .vtab:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Main terminal grid */
main {
  flex: 1 1 auto; min-height: 0; width: 100%; display: grid;
  grid-template-columns: 1.22fr 1.16fr 1.02fr; gap: 11px; padding: 11px 16px;
}
.col { display: flex; flex-direction: column; gap: 11px; min-width: 0; min-height: 0; }
.panel {
  position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 21px;
  background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(20px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, background 0.2s;
}
.panel::before {
  content: ''; position: absolute; inset: 0 0 auto; z-index: 0; height: 42%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}
.panel > * { position: relative; z-index: 1; }
.panel:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.18); background: #141414; }
.panel-h {
  min-height: 37px; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft); color: #f1f1f1; background: rgba(255, 255, 255, 0.012);
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: -0.12px;
}
.panel-h::before { display: none; content: none; }
.panel-h .count { margin-left: auto; color: var(--faint); font-family: var(--font-ui); font-size: 9.5px; font-weight: 500; letter-spacing: 0; }
.panel-h .sparkline { margin-left: 8px; }
.panel-b {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; scrollbar-gutter: stable;
  padding: 9px 11px;
}
.panel-b::-webkit-scrollbar { width: 7px; }
.panel-b::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 10px; background: rgba(255, 255, 255, 0.18); background-clip: padding-box; }
.grow { flex: 1 1 0; }
.h32 { flex: 0 0 32%; }
#strategyPanel .panel-b { max-height: none; overflow: visible; padding-block: 8px 7px; }
#strategyPanel .rule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin-top: 7px;
  border-top: 1px solid var(--border-soft);
}
#strategyPanel .rule {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; min-width: 0; padding: 5px 0;
  border: 0; border-bottom: 1px solid var(--border-soft); border-radius: 0; background: transparent;
}
#strategyPanel .rule .k { color: #707070; font-size: 8px; }
#strategyPanel .rule .v {
  min-width: 0; color: #c8bbff; font-size: 9.5px; font-weight: 550; line-height: 1.25;
  overflow: visible; overflow-wrap: anywhere; text-align: left; white-space: normal;
}
#strategyPanel #strategyThesis { font-size: 11.5px; font-weight: 500; line-height: 1.35; }
#strategyPanel .tag-row {
  gap: 0; margin-top: 5px; padding-top: 1px; color: var(--faint); font-size: 8.5px;
}
#strategyPanel .tag-row::before { content: 'Themes'; margin-right: 8px; color: #585858; }
#strategyPanel .tag { padding: 0; border: 0; border-radius: 0; color: var(--faint); background: transparent; font-size: 8.5px; }
#strategyPanel .tag + .tag::before { content: '·'; margin: 0 5px; color: #484848; }
#strategyPanel #strategyMeta { margin-top: 3px; font-size: 8.5px; }
#strategyText { color: var(--text); }
#strategyMeta { margin-top: 6px; color: var(--faint); font-size: 10px; }

/* Data rows */
.row {
  margin-bottom: 6px; padding: 8px 9px; border: 1px solid var(--border-soft); border-radius: 13px;
  background: #171717;
}
.row:last-child { margin-bottom: 0; }
.row.fresh { animation: row-in 0.35s ease-out; }
@keyframes row-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.row .t, .t { color: var(--faint); font-size: 9.5px; }
.type-cursor { display: inline-block; width: 7px; border-radius: 2px; background: var(--accent); animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.trade-line { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.side { font-size: 10px; font-weight: 700; }
.side.buy, .pnl.pos { color: var(--up); }
.side.sell, .pnl.neg { color: var(--down); }
.sym { color: var(--text); font-weight: 700; }
.reason { margin-top: 3px; color: var(--dim); font-size: 10.5px; white-space: normal; }
.chip {
  padding: 2px 7px; border: 1px solid rgba(148, 120, 255, 0.22); border-radius: 999px;
  color: var(--accent-3); background: var(--accent-soft); font-size: 8px; font-weight: 600; letter-spacing: 0.35px;
}
.empty { padding: 17px 0; color: var(--faint); text-align: center; }
.empty::before {
  content: ''; display: block; width: 42px; height: 42px; margin: 0 auto 5px; opacity: 0.42;
  background: url('/brand/groker-logo.png') center / contain no-repeat; filter: drop-shadow(0 4px 5px rgba(75, 51, 143, 0.12));
}
.num { color: var(--accent-3); font-weight: 700; }
.coin-logo { width: 17px; height: 17px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; vertical-align: -3px; background: var(--panel2); }
.wallet-chip, .node-label { font-family: var(--font-mono); }
.sparkline { overflow: visible; }
.trade-row { cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.trade-row:hover { border-color: rgba(255, 255, 255, 0.16); background: #1c1c1c; transform: translateX(2px); }
.trade-row:hover .chev { color: var(--accent); }
.trade-row .chev { color: var(--faint); font-size: 10px; transition: transform 0.15s; }
.trade-row.open .chev { transform: rotate(90deg); }
.trade-detail {
  display: none; margin-top: 7px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 9px;
  color: var(--dim); background: var(--panel2); font-size: 10.5px; animation: row-in 0.2s ease-out;
}
.trade-row.open .trade-detail { display: block; }
.trade-detail .kv { display: flex; gap: 8px; padding: 2px 0; }
.trade-detail .kv b { min-width: 74px; color: var(--faint); font-weight: 400; }
.trade-detail .kv span { color: var(--text); font: 10px/1.45 var(--font-mono); word-break: break-all; }
.trade-detail .links { display: flex; gap: 12px; margin-top: 6px; }
.pos-line { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pos-line .val { margin-left: auto; }
.callout-card {
  margin-bottom: 8px; padding: 10px; border: 1px solid var(--border-soft); border-radius: 14px;
  background: #171717; box-shadow: var(--shadow-soft);
}
.callout-card .head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.callout-card .txt { color: var(--text); }
.mc { color: var(--dim); font-size: 10px; }
.mult { color: var(--up); font-weight: 700; }

/* Original service icons */
.icon { width: 16px; height: 16px; display: inline-block; flex: 0 0 auto; object-fit: contain; vertical-align: -3px; }
.icon-sm { width: 12px; height: 12px; vertical-align: -2px; }
img.icon[src='/svg/x.svg'] { padding: 1.5px; }
a.ext { display: inline-flex; align-items: center; gap: 5px; color: var(--dim); text-decoration: none; }
a.ext:hover { color: var(--accent); }

/* Ownership tabs */
.tabs {
  display: flex; gap: 4px; flex: 0 0 42px; min-height: 42px; padding: 5px;
  border-bottom: 1px solid var(--border-soft); background: #111;
}
.tab {
  flex: 1 1 0; display: grid; place-items: center; min-width: 0; padding: 6px 4px;
  border: 1px solid transparent; border-radius: 999px; color: var(--dim);
  font-family: var(--font-display); font-size: 10px; font-weight: 500; letter-spacing: -0.08px;
  cursor: pointer; user-select: none; transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.tab:hover { color: #fff; background: #191919; }
.tab.active {
  color: #0a0a0a; border-color: #fff; background: #fff;
}
.tabview { display: none; min-height: 0; }
.tabview.active { display: block; animation: row-in 0.25s ease-out; }
.share-line { display: flex; align-items: center; gap: 8px; }
.share-bar { flex: 1 1 auto; height: 5px; overflow: hidden; border-radius: 5px; background: #292929; }
.share-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent-3)); transition: width 0.5s ease; }
.pct { min-width: 52px; color: var(--accent-3); font-weight: 700; text-align: right; }
.addr { color: var(--dim); font: 10.5px/1.45 var(--font-mono); }
.donut-wrap { display: flex; align-items: center; gap: 14px; padding: 6px 0 10px; }
.donut-wrap svg { filter: drop-shadow(0 6px 8px rgba(78, 54, 145, 0.13)); }
.donut-legend { min-width: 0; color: var(--dim); font-size: 10.5px; }
.donut-legend .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 3px; }

/* Influence CTA and holder console */
.influence-cta {
  position: relative; margin-top: 12px; padding: 16px; overflow: hidden;
  border: 1px solid rgba(148, 120, 255, 0.34); border-radius: 18px;
  background: radial-gradient(circle at 100% 0, rgba(148, 120, 255, 0.19), transparent 43%), #151515;
}
.influence-cta::after {
  content: ''; position: absolute; top: -55px; right: -42px; width: 115px; height: 115px; border-radius: 50%;
  border: 1px solid rgba(200, 187, 255, 0.18); box-shadow: 0 0 0 18px rgba(148, 120, 255, 0.035); pointer-events: none;
}
.influence-kicker { color: var(--accent-2); font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.influence-cta h3 { margin: 5px 0 6px; max-width: 300px; color: #fff; font-size: 18px; font-weight: 550; line-height: 1.05; letter-spacing: -0.45px; }
.influence-cta p { max-width: 390px; margin: 0 0 12px; color: var(--dim); font-size: 10px; line-height: 1.45; }
.influence-open {
  position: relative; z-index: 1; width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 13px; border: 0; border-radius: 999px; color: #0a0a0a; background: #fff;
  font: 600 11px/1 var(--font-ui); cursor: pointer; transition: transform 0.18s, background 0.18s;
}
.influence-open:hover { transform: translateY(-1px); background: #dedede; }
.influence-open span:last-child { font-size: 15px; }
.influence-facts { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 9px; color: var(--faint); font-size: 8px; }
.influence-facts span::before { content: '✓'; margin-right: 4px; color: var(--accent-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.field label { display: block; margin-bottom: 4px; color: var(--faint); font-family: var(--font-display); font-size: 8.5px; font-weight: 500; letter-spacing: -0.02px; }
input[type='number'], input[type='text'], input[type='password'], input[type='search'], textarea {
  width: 100%; padding: 8px 9px; border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); background: #0d0d0d;
  font: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
input:hover, textarea:hover { border-color: rgba(115, 87, 246, 0.32); }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(148, 120, 255, 0.1); }
textarea { min-height: 56px; resize: vertical; }
.field-help { display: block; margin-top: 5px; color: #5f5f5f; font-size: 8.5px; }
.actions-row { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 8px; }
.actions-row .btn { flex: 1 1 0; }
.note { margin-top: 6px; color: var(--faint); font-size: 9.5px; }
.ok { color: var(--up); }
.err { color: var(--down); }

/* Risk */
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.risk-cell {
  padding: 9px 5px; border: 1px solid var(--border-soft); border-radius: 13px; text-align: center;
  background: #171717;
}
.risk-cell .k { color: var(--faint); font-family: var(--font-display); font-size: 8px; font-weight: 500; letter-spacing: -0.04px; }
.risk-cell .v { margin-top: 3px; color: var(--accent-3); font-size: 14px; font-weight: 700; }

/* Brain view */
#view-brain { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; padding: 11px 16px; }
.brain-stage {
  position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 20px;
  background: radial-gradient(circle at 50% 45%, rgba(148, 120, 255, 0.15), transparent 27%), #111;
  box-shadow: var(--shadow); cursor: grab;
}
.brain-stage.panning { cursor: grabbing; }
.brain-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.36;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 20px 20px;
  mask-image: radial-gradient(circle at center, #000, transparent 72%);
}
#brainSvg { position: relative; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
.brain-nav {
  position: absolute; top: 12px; left: 12px; z-index: 4; display: flex; align-items: center; gap: 4px; padding: 4px;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(15, 15, 15, 0.78); backdrop-filter: blur(16px);
  cursor: default;
}
.brain-nav-hint { padding: 0 7px; color: var(--faint); font-size: 8.5px; white-space: nowrap; }
.brain-nav button {
  min-width: 28px; height: 26px; padding: 0 8px; border: 1px solid transparent; border-radius: 999px;
  color: var(--dim); background: transparent; font: 500 10px/1 var(--font-ui); cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.brain-nav button:hover { color: #fff; border-color: var(--border); background: #202020; }
.holder-node, .coin-node { cursor: pointer; }
.holder-node circle.body { filter: drop-shadow(0 5px 7px rgba(76, 53, 137, 0.16)); transition: stroke 0.15s; }
.holder-node:hover circle.body { stroke: var(--accent-3); }
.node-label { fill: var(--dim); font-size: 10px; }
.node-pct { fill: var(--accent-3); font-size: 10px; font-weight: 700; }
.edge { stroke: rgba(115, 87, 246, 0.36); stroke-width: 1.2; stroke-dasharray: 4 4; animation: edge-flow 1.2s linear infinite; }
.edge.pick { stroke: rgba(115, 87, 246, 0.22); }
@keyframes edge-flow { to { stroke-dashoffset: -8; } }
.drift { animation: drift 6s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(0, -7px); } }
.brain-core-ring { animation: core-ring 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.brain-core-logo { filter: drop-shadow(0 5px 5px rgba(63, 44, 117, 0.2)); }
@keyframes core-ring { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
.brain-ticker {
  position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: baseline; gap: 10px; padding: 11px 14px;
  border-top: 1px solid var(--border); color: var(--text); background: rgba(10, 10, 10, 0.84);
  backdrop-filter: blur(20px); font-size: 11.5px;
}
.brain-ticker .k { flex: 0 0 auto; color: var(--accent-3); font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: -0.05px; }
.brain-card {
  position: absolute; top: 14px; right: 14px; width: 360px; max-width: calc(100% - 28px); max-height: calc(100% - 28px); overflow-y: auto;
  padding: 13px; border: 1px solid var(--border); border-radius: 15px; color: var(--text);
  background: rgba(18, 18, 18, 0.94); box-shadow: var(--shadow); backdrop-filter: blur(20px);
  scrollbar-width: thin; animation: row-in 0.2s ease-out;
}
.brain-card h4 { margin: 0 0 8px; color: var(--text); font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: -0.08px; }
.brain-card h4:not(:first-of-type) { margin-top: 14px; }
.brain-card .close, .modal-panel .close { cursor: pointer; color: var(--faint); }
.brain-card .close { position: absolute; top: 8px; right: 10px; }
.brain-card .close:hover, .modal-panel .close:hover { color: var(--accent); }
.holder-wallet { margin-bottom: 9px; }
.holder-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 13px; }
.holder-summary > span {
  min-width: 0; padding: 8px 6px; border: 1px solid var(--border-soft); border-radius: 12px;
  text-align: center; background: #191919;
}
.holder-summary small { display: block; overflow: hidden; color: var(--faint); font-size: 7.5px; font-weight: 500; letter-spacing: -0.02px; text-overflow: ellipsis; white-space: nowrap; }
.holder-summary b { display: block; margin-top: 3px; color: var(--accent-3); font-size: 14px; }
.holder-nft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.holder-nft {
  min-width: 0; padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--rc) 35%, var(--border)); border-radius: 13px;
  color: var(--text); background: #181818; box-shadow: 0 6px 15px rgba(0, 0, 0, 0.22);
  font: inherit; text-align: left; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.holder-nft:hover { transform: translateY(-2px); border-color: var(--rc); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.42); }
.holder-nft-art {
  display: grid; place-items: center; aspect-ratio: 1.18; overflow: hidden;
  background: radial-gradient(circle at 32% 22%, color-mix(in srgb, var(--rc) 19%, transparent), transparent 62%), #111;
}
.holder-nft-art img { width: 100%; height: 100%; object-fit: cover; }
.holder-nft-info { display: flex; align-items: center; gap: 6px; padding: 6px 7px 2px; }
.holder-nft-info b { font-size: 10px; }
.holder-nft-info span { margin-left: auto; overflow: hidden; color: var(--rc); font-size: 7.5px; font-weight: 800; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.holder-nft-power { display: block; padding: 0 7px 7px; color: var(--dim); font-size: 8.5px; }
.holder-no-nfts { padding: 13px; border: 1px dashed var(--accent-soft-strong); border-radius: 11px; color: var(--faint); background: rgba(126, 88, 238, 0.08); text-align: center; }

/* Feed */
.feed-row { display: flex; align-items: flex-start; gap: 9px; }
.feed-ava {
  width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; overflow: hidden; margin-top: 1px;
  border: 1px solid var(--border); border-radius: 11px; background: #171717;
}
.feed-ava img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(67, 47, 116, 0.13)); }
.feed-body { flex: 1 1 auto; min-width: 0; }
.metrics { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.metric {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 7px;
  border: 1px solid var(--border-soft); border-radius: 7px; color: var(--dim); background: var(--panel2); font-size: 9.5px;
}
.metric b { color: var(--text); font-weight: 700; }
.metric .arr { font-size: 8px; }
.metric.up .arr { color: var(--up); }
.metric.down .arr { color: var(--down); }
.metric.flat .arr { color: var(--faint); }
.sources { display: flex; gap: 6px; margin-top: 6px; }
.src {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28); transition: transform 0.15s, border-color 0.15s;
}
.src:hover { transform: translateY(-2px); border-color: var(--accent-soft-strong); }
.src img { width: 11px; height: 11px; object-fit: contain; }
.src .glb { color: var(--accent); font-size: 10px; line-height: 1; }

/* Strategy */
#strategyThesis { color: var(--text); font-weight: 600; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.rule {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; padding: 6px 9px;
  border: 1px solid var(--border-soft); border-radius: 11px; background: #171717;
}
.rule .k { flex: 0 0 auto; color: var(--faint); font-family: var(--font-display); font-size: 8.5px; font-weight: 500; letter-spacing: -0.02px; white-space: nowrap; }
.rule .v { min-width: 0; color: var(--accent-3); font-size: 10px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; text-align: right; white-space: normal; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { padding: 2px 8px; border: 1px solid var(--border-soft); border-radius: 999px; color: var(--dim); background: #181818; font-size: 9.5px; }

/* Holders and collection */
.view-wrap { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; padding: 11px 16px; }
.view-panel { flex: 1 1 auto; min-height: 0; }
.holder-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; }
.holder-row .share-bar { max-width: 220px; }
.nft-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px;
  border: 1px solid var(--border-soft); border-radius: 7px; background: rgba(255, 255, 255, 0.035); font-size: 9.5px;
}
.nft-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
#rarityLegend { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 10px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
.fchip {
  padding: 5px 12px; border: 1px solid var(--border-soft); border-radius: 999px;
  color: var(--dim); background: #171717;
  font-family: var(--font-display); font-size: 9.5px; font-weight: 500; letter-spacing: -0.03px; cursor: pointer; user-select: none;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.fchip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.fchip.active { color: #0a0a0a; border-color: #fff; background: #fff; font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.nft-card {
  overflow: hidden; border: 1px solid var(--border-soft); border-radius: 19px;
  background: #151515; box-shadow: var(--shadow-soft); cursor: pointer;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.nft-card:hover { transform: translateY(-3px); border-color: var(--rc, var(--accent)); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.44); }
.nft-art {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 24%, color-mix(in srgb, var(--rc) 18%, transparent), transparent 62%), #111;
}
.brand-placeholder {
  width: 72%; height: 72%; object-fit: contain;
  filter: drop-shadow(0 12px 13px rgba(0, 0, 0, 0.22));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nft-card:hover .brand-placeholder { transform: translateY(-5px) rotate(-1.5deg) scale(1.025); }
.nft-card.ghost .brand-placeholder { opacity: 0.52; filter: grayscale(0.2) drop-shadow(0 10px 12px rgba(65, 45, 118, 0.1)); }
.nft-card.ghost { border-style: dashed; }
.nft-art .status {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); padding: 2px 7px;
  border: 1px solid rgba(76, 58, 112, 0.12); border-radius: 6px; color: var(--dim);
  background: rgba(10, 8, 14, 0.78); backdrop-filter: blur(8px);
  font-size: 8px; font-weight: 700; letter-spacing: 1px; white-space: nowrap;
}
.nft-info { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--border-soft); }
.nft-info .idn { color: var(--text); font-size: 11px; font-weight: 700; }
.nft-info .rar { margin-left: auto; color: var(--rc); font-family: var(--font-display); font-size: 8px; font-weight: 800; letter-spacing: 0.45px; }
.nft-info .mult { color: var(--dim); font-size: 9.5px; }
.nft-market-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 0 8px 8px;
}
.market-link {
  min-width: 0; min-height: 27px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px 7px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: 999px;
  color: #d8d8d8; background: #1a1a1a; font-size: 8.5px; font-weight: 500; line-height: 1;
  text-decoration: none; text-overflow: ellipsis; white-space: nowrap;
  transition: color 0.16s, background 0.16s, border-color 0.16s, transform 0.16s;
}
.market-link img { width: 14px; height: 12px; flex: 0 0 14px; object-fit: contain; }
.market-link img[src='/svg/tensor.svg'] { width: 12px; flex-basis: 12px; }
a.market-link:hover {
  color: #fff; border-color: rgba(200, 187, 255, 0.42); background: rgba(148, 120, 255, 0.12);
  transform: translateY(-1px);
}
.market-link.disabled { opacity: 0.32; cursor: not-allowed; }
.modal-markets { gap: 8px; padding: 2px 0 12px; }
.modal-markets .market-link { min-height: 38px; font-size: 10.5px; }
.modal-markets .market-link img { width: 18px; height: 16px; flex-basis: 18px; }
.modal-markets .market-link img[src='/svg/tensor.svg'] { width: 15px; flex-basis: 15px; }

.influence-back { z-index: 70; padding: 18px; }
.influence-dialog {
  position: relative; width: min(900px, 100%); max-height: min(92vh, 760px); min-height: 520px;
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 26px;
  color: var(--text); background: #111; box-shadow: 0 34px 100px rgba(0, 0, 0, 0.72);
  animation: view-reveal 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.influence-dialog::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 210px; pointer-events: none;
  background: radial-gradient(circle at 84% -15%, rgba(148, 120, 255, 0.2), transparent 50%);
}
.influence-close {
  position: absolute; top: 17px; right: 19px; z-index: 4; width: 30px; height: 30px; border: 1px solid var(--border-soft);
  border-radius: 50%; color: var(--faint); background: #171717; cursor: pointer;
}
.influence-close:hover { color: #fff; border-color: var(--border); }
.influence-head { position: relative; flex: 0 0 auto; padding: 23px 28px 15px; border-bottom: 1px solid var(--border-soft); }
.influence-head h2 { margin: 4px 45px 5px 0; color: #fff; font-size: 27px; font-weight: 500; line-height: 1.02; letter-spacing: -0.8px; }
.influence-head > p { max-width: 650px; margin: 0; color: var(--dim); font-size: 10.5px; }
.influence-steps { display: flex; gap: 6px; margin-top: 15px; }
.influence-steps span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border-soft); border-radius: 999px;
  color: #646464; background: #151515; font-size: 9px; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.influence-steps b { font-size: 8px; font-weight: 500; }
.influence-steps span.active { color: #fff; border-color: rgba(148, 120, 255, 0.5); background: rgba(148, 120, 255, 0.12); }
.influence-steps span.done { color: #bdbdbd; }
.influence-steps span.done b { color: var(--up); }
.influence-step-panel { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 28px 24px; scrollbar-width: thin; }
.connect-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.connect-stage h3 { max-width: 470px; margin: 18px 0 7px; font-size: 21px; font-weight: 500; line-height: 1.1; letter-spacing: -0.4px; }
.connect-stage > p { max-width: 480px; margin: 0 0 17px; color: var(--dim); font-size: 11px; }
.connect-orbit { position: relative; width: 108px; height: 82px; display: grid; place-items: center; }
.connect-orbit > img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.32)); }
.connect-orbit > span {
  position: absolute; right: 1px; bottom: -2px; width: 31px; height: 31px; display: grid; place-items: center;
  border: 3px solid #111; border-radius: 50%; background: #fff;
}
.connect-orbit > span img { width: 18px; height: 18px; object-fit: contain; }
.influence-connect { min-width: 210px; min-height: 42px; }
.connected-wallet {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 9px 12px;
  border: 1px solid rgba(99, 225, 178, 0.18); border-radius: 13px; color: var(--dim); background: rgba(99, 225, 178, 0.045); font-size: 9px;
}
.connected-wallet span { display: inline-flex; align-items: center; gap: 6px; }
.connected-wallet i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 9px rgba(99, 225, 178, 0.7); }
.connected-wallet b { color: #fff; font: 500 10px/1 var(--font-mono); }
.influence-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.influence-tune, .coin-picker { min-width: 0; padding: 15px; border: 1px solid var(--border-soft); border-radius: 18px; background: #151515; }
.influence-tune textarea { min-height: 104px; }
.risk-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; }
.risk-title span { color: #fff; font-size: 10.5px; font-weight: 600; }
.risk-title small { color: var(--faint); font-size: 8px; }
.coin-picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.coin-picker-head > div { display: flex; flex-direction: column; gap: 1px; }
.coin-picker-head b { color: #fff; font-size: 10.5px; }
.coin-picker-head div span { color: var(--faint); font-size: 8.5px; }
.coin-picker-head > span { padding: 4px 8px; border-radius: 999px; color: var(--accent-3); background: var(--accent-soft); font-size: 8.5px; }
.coin-picker input { height: 34px; }
.coin-picker-list {
  max-height: clamp(220px, 32vh, 350px); min-height: 220px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start; gap: 6px; margin-top: 8px; padding-right: 3px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.coin-choice {
  min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px;
  border: 1px solid var(--border-soft); border-radius: 12px; color: var(--dim); background: #191919; text-align: left; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.coin-choice:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.16); }
.coin-choice.selected { border-color: rgba(148, 120, 255, 0.6); background: rgba(148, 120, 255, 0.12); }
.coin-choice > img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #0e0e0e; }
.coin-choice > span { min-width: 0; display: flex; flex-direction: column; }
.coin-choice b { overflow: hidden; color: #fff; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.coin-choice small { overflow: hidden; color: var(--faint); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.coin-choice > em { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: #858585; font-size: 7.5px; font-style: normal; }
.coin-choice .coin-check { display: none; }
.coin-choice.selected .coin-check { display: block; color: var(--accent-2); }
.coin-picker-loading { grid-column: 1 / -1; min-height: 210px; display: grid; place-items: center; color: var(--faint); font-size: 9px; }
.coin-picker-note { margin-top: 7px; color: var(--faint); font-size: 8px; }
.coin-picker-note.err { color: var(--down); }
.influence-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--border-soft); border-radius: 16px; background: #151515;
}
.influence-submit > div { display: flex; flex-direction: column; gap: 2px; }
.influence-submit b { color: #fff; font-size: 10px; }
.influence-submit span { color: var(--faint); font-size: 8.5px; }
.influence-submit .btn { min-width: 205px; }
.influence-success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-mark { position: relative; width: 110px; height: 90px; display: grid; place-items: center; margin-bottom: 8px; }
.success-mark > img { width: 105px; height: 105px; object-fit: contain; }
.success-mark > span { position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 3px solid #111; border-radius: 50%; color: #07120d; background: var(--up); font-weight: 700; }
.influence-success h3 { margin: 5px 0 5px; font-size: 25px; font-weight: 500; letter-spacing: -0.7px; }
.influence-success > p { margin: 0; color: var(--dim); font-size: 10.5px; }
.success-grid { width: min(570px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.success-grid > span { padding: 12px 8px; border: 1px solid var(--border-soft); border-radius: 15px; background: #171717; }
.success-grid small { display: block; color: var(--faint); font-size: 8px; }
.success-grid b { display: block; margin-top: 4px; color: var(--accent-3); font-size: 17px; }
.influence-success .btn { min-width: 230px; min-height: 40px; }

/* NFT modal */
.modal-back {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(3, 2, 6, 0.76); backdrop-filter: blur(10px);
}
.modal-panel {
  position: relative; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; padding: 17px;
  border: 1px solid var(--border); border-radius: 22px;
  background: #151515;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.66);
  scrollbar-width: thin; animation: row-in 0.2s ease-out;
}
.modal-panel .close { position: absolute; top: 12px; right: 15px; z-index: 2; font-size: 15px; }
.modal-art {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 13px; overflow: hidden;
  border: 1px solid var(--border-soft); border-radius: 18px;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 67%), #0e0e0e;
}
.modal-kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 11px; }
.modal-kv:last-of-type { border-bottom: none; }
.modal-kv b { color: var(--faint); font-weight: 400; }
.modal-kv span { color: var(--text); }
.legend-cell { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 10px; border: 1px solid var(--border-soft); border-radius: 9px; color: var(--dim); background: rgba(255, 255, 255, 0.035); font-size: 10px; }
.legend-cell .dot { width: 9px; height: 9px; align-self: center; border-radius: 3px; }
.legend-cell b { color: var(--text); }

/* Footer */
.site-footer {
  width: 100%; height: 42px; flex: 0 0 42px; display: flex; align-items: center; gap: 16px; padding: 0 16px;
  border-top: 1px solid var(--border-soft); color: var(--faint); background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(20px); font-size: 10px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); font-weight: 700; letter-spacing: 0.5px; }
.footer-brand img { width: 25px; height: 25px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(66, 48, 104, 0.12)); }
.site-footer .links { display: flex; align-items: center; gap: 16px; margin-left: auto; }

/* xAI-inspired motion language: arrive softly, then stay calm. */
@keyframes interface-reveal {
  from { opacity: 0; filter: blur(12px); transform: translateY(14px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes view-reveal {
  from { opacity: 0; filter: blur(8px); transform: translateY(10px) scale(0.995); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}
@keyframes mascot-float {
  from { transform: translate3d(0, 1px, 0) rotate(-1deg); }
  to { transform: translate3d(0, -2px, 0) rotate(1deg); }
}
.masthead { animation: interface-reveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) both; }
main:not([hidden]) .col { animation: interface-reveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) both; }
main:not([hidden]) .col:nth-child(1) { animation-delay: 0.06s; }
main:not([hidden]) .col:nth-child(2) { animation-delay: 0.12s; }
main:not([hidden]) .col:nth-child(3) { animation-delay: 0.18s; }
.site-footer { animation: interface-reveal 0.72s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
#view-brain:not([hidden]), .view-wrap:not([hidden]) { animation: view-reveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (max-width: 1420px) {
  .wordmark small { display: none; }
  .stats { gap: 11px; }
  .vtab { padding-inline: 10px; }
}
@media (max-width: 1180px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100vh; }
  .masthead { height: auto; min-height: 68px; flex-wrap: wrap; }
  .stats { flex: 1 1 auto; }
  main { grid-template-columns: 1fr; }
  .panel-b { max-height: 340px; }
  #strategyPanel .panel-b { max-height: none; }
  #view-brain { min-height: 520px; }
  .site-footer { margin-top: auto; }
}
@media (max-width: 820px) {
  .masthead { gap: 10px; padding: 8px 12px 10px; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-mark img { width: 51px; height: 51px; }
  .wordmark { font-size: 22px; }
  .viewtabs { order: 3; width: 100%; }
  .vtab { flex: 1 1 0; padding-inline: 4px; font-size: 10px; }
  .stats { justify-content: flex-end; }
  .stat:nth-child(3), .stat:nth-child(4), .wallet-chip { display: none; }
  main, #view-brain, .view-wrap { padding: 9px 10px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .holder-row { flex-wrap: wrap; }
  .holder-row .share-bar { max-width: none; min-width: 120px; }
  .influence-back { padding: 10px; }
  .influence-dialog { max-height: 95vh; min-height: 0; border-radius: 20px; }
  .influence-head { padding: 19px 20px 13px; }
  .influence-head h2 { font-size: 23px; }
  .influence-step-panel { padding: 15px 20px 20px; }
  .influence-layout { grid-template-columns: 1fr; gap: 10px; }
  .coin-picker-list { max-height: 260px; }
}
@media (max-width: 560px) {
  .stats .stat { display: none; }
  .stats { flex: 0 0 auto; margin-left: auto; }
  .viewtabs { overflow-x: auto; scrollbar-width: none; }
  .viewtabs::-webkit-scrollbar { display: none; }
  .vtab { min-width: 88px; }
  .form-grid, .risk-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { height: auto; min-height: 48px; flex-wrap: wrap; padding-block: 8px; }
  .site-footer .links { width: 100%; margin-left: 0; justify-content: space-between; }
  .brain-card { right: 10px; left: 10px; width: auto; }
  .brain-nav-hint { display: none; }
  .influence-close { top: 13px; right: 13px; }
  .influence-head { padding: 17px 16px 12px; }
  .influence-head h2 { margin-right: 35px; font-size: 20px; }
  .influence-head > p { font-size: 9.5px; }
  .influence-steps span { padding: 5px 8px; font-size: 8px; }
  .influence-step-panel { padding: 13px 14px 17px; }
  .influence-tune, .coin-picker { padding: 12px; border-radius: 15px; }
  .coin-picker-list { grid-template-columns: 1fr; min-height: 200px; max-height: 245px; }
  .influence-submit { align-items: stretch; flex-direction: column; }
  .influence-submit .btn { width: 100%; min-width: 0; }
  .success-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- посты X в стиле твиттера (зеркало @grokeragent) ---------- */
a.xpost { display: flex; text-decoration: none; color: inherit; border-radius: 6px; padding: 8px 6px; margin: 0 -6px; transition: background 0.15s; }
a.xpost:hover { background: rgba(115, 87, 246, 0.07); }
.xhead { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.xname { font-weight: 700; font-size: 12.5px; }
.xhandle { color: var(--faint); font-size: 11.5px; }
.xtext { margin-top: 3px; white-space: pre-wrap; }
.xstats { display: flex; gap: 14px; margin-top: 7px; }
.xstat { color: var(--faint); font-size: 10.5px; font-feature-settings: 'tnum' 1; }

/* ---------- монеты в мысли ---------- */
.thought-coins { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.coin-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 2px 9px 2px 4px; font-size: 10.5px; color: var(--dim);
  text-decoration: none; transition: border-color 0.15s, color 0.15s;
}
.coin-chip:hover { color: var(--text); border-color: var(--accent); }
.coin-chip .coin-logo { width: 15px; height: 15px; }

/* ---------- тосты о сделках ---------- */
#toasts {
  position: fixed; right: 16px; bottom: 58px; z-index: 60;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.toast {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel2, #171b21);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 13px; text-decoration: none; color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.3s ease-out;
  transition: opacity 0.5s, transform 0.5s;
}
.toast.gone { opacity: 0; transform: translateX(20px); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- мета мысли: монеты+метрики+сорсы В ОДНУ СТРОКУ ---------- */
.thought-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 7px; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
}
.thought-meta::-webkit-scrollbar { display: none; }
/* контейнеры распаковываются в общий ряд */
.thought-meta .thought-coins,
.thought-meta .metrics,
.thought-meta .sources { display: contents; }
.thought-meta .metric, .thought-meta .coin-chip, .thought-meta .src { flex: 0 0 auto; }

/* ---------- минт-оверлей ---------- */
.mint-panel { text-align: center; padding: 28px 22px; }
.mint-panel h3 { margin: 14px 0 4px; font-family: var(--font-display); letter-spacing: 1px; font-size: 17px; }
.mint-spin {
  width: 42px; height: 42px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--border-soft); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mint-panel .actions-row { max-width: 160px; margin: 12px auto 0; }
