/* matrix · one stylesheet, four pages */

:root {
  --bg: #06070b;
  --bg2: #0a0c12;
  --panel: #0e1119;
  --line: #1a1e2b;
  --ink: #e9ecf2;
  --dim: #7d8593;
  --dim2: #4a5062;
  --pink: #d8dbe3;
  --pink2: #ffffff;
  --cyan: #c3c7d0;
  --amber: #b9bdc8;
  --violet: #bfc3cc;
  --blue: #aeb3bf;
  --ok: #cfd3db;
  --red: #9aa0ad;
  --display: "Space Grotesk", ui-sans-serif, -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); min-height: 100%; font-family: var(--mono); font-size: 13px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }

/* ─── universal nav ─────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, #0b0d14, var(--bg));
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .5px;
}
.brand-mark { color: var(--pink); font-size: 15px; text-shadow: 0 0 10px var(--pink); display: inline-flex; align-items: center; }
.brand-mark img { height: 26px; width: 26px; display: block; object-fit: contain; filter: drop-shadow(0 0 7px rgba(255,255,255,.55)); }
.hero-logo { width: 132px; height: 132px; display: block; margin: 0 auto 6px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(255,255,255,.28)); animation: heroGlow 4s ease-in-out infinite; }
@keyframes heroGlow { 0%,100% { filter: drop-shadow(0 0 18px rgba(255,255,255,.22)); } 50% { filter: drop-shadow(0 0 30px rgba(255,255,255,.4)); } }
.nav-links { display: flex; gap: 18px; margin-left: 10px; }
.nav-links a {
  color: var(--dim); font-size: 12px; padding: 4px 2px; border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--pink); border-color: var(--pink); }
.counters { margin-left: auto; display: flex; gap: 10px; font-size: 11px; color: var(--dim); }
.ctr { padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
#totalCost { color: var(--ok); }
#totalSteps { color: var(--amber); }
#llmStatus.ok { color: var(--ok); }
#llmStatus.off { color: var(--red); }

/* ═══ landing page ═════════════════════════════════════════════════ */
body.landing { background:
  radial-gradient(ellipse 60% 50% at 50% 10%, rgba(255,255,255, .08), transparent 60%),
  radial-gradient(ellipse 50% 60% at 90% 90%, rgba(255,255,255, .04), transparent 60%),
  var(--bg);
}
.hero {
  max-width: 1100px; margin: 0 auto; padding: 80px 28px 60px; text-align: left;
}
.ascii {
  color: var(--pink); font-family: var(--mono); font-size: 10px; line-height: 1.3;
  opacity: .55; margin-bottom: 28px; letter-spacing: 1px;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(42px, 7vw, 86px);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.02;
  background: linear-gradient(180deg, #fff 0%, #b4b9c6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .sub {
  margin-top: 20px; max-width: 680px; font-size: 15px; line-height: 1.65; color: #c5c9d4;
}
.hero .sub b { color: var(--pink); font-weight: 600; }
.cta { margin-top: 36px; display: flex; gap: 14px; align-items: center; }
.btn-primary, .btn-ghost {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  padding: 11px 20px; border-radius: 50px; border: 1px solid var(--pink);
  cursor: pointer; transition: all .18s;
}
.btn-primary { background: var(--pink); color: #06070b; box-shadow: 0 0 30px rgba(255,255,255, .35); }
.btn-primary:hover { background: var(--pink2); box-shadow: 0 0 40px rgba(255,255,255, .6); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--pink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pink); }
.live {
  margin-top: 42px; display: flex; align-items: center; gap: 10px;
  color: var(--dim); font-size: 11px;
}
.live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.85)} }

.minds, .how, .stack { max-width: 1100px; margin: 60px auto; padding: 0 28px; }
.minds h2, .how h2, .stack h2 {
  font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.5px;
  margin-bottom: 24px;
}
.minds h2::before, .how h2::before, .stack h2::before { content: "◖ "; color: var(--pink); }

.livefeed { max-width: 1100px; margin: 60px auto; padding: 0 28px; }
.live-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.live-head h2 { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
.live-head h2::before { content: "◖ "; color: var(--pink); }
.live-meta { display: flex; gap: 10px; align-items: center; }
.live-tag { padding: 3px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--dim); font-size: 10px; letter-spacing: 1px; }
.live-tag[data-src="cnn"] { color: var(--pink); border-color: var(--pink) }
.live-tag[data-src="x"] { color: var(--blue); border-color: var(--blue) }
.live-tag[data-src="weibo"] { color: var(--amber); border-color: var(--amber) }
.live-sub { color: var(--dim); font-size: 11px; margin-left: 6px; }
.ticker { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 10px 0; margin-bottom: 20px; mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%); }
.ticker-track { display: inline-flex; gap: 28px; white-space: nowrap; animation: tscroll 90s linear infinite; padding-left: 100%; }
.ticker-track span { font-size: 12px; }
.ticker-track .tsrc { color: var(--dim); margin-right: 6px; font-size: 10px; letter-spacing: 1px; }
@keyframes tscroll { from { transform: translateX(0) } to { transform: translateX(-100%) } }
/* ─── orchestration stage: 5 feed windows + central mother + bezier lines ── */
.orch-stage {
  position: relative;
  height: 760px;
  background: radial-gradient(ellipse at center, #0a0d16 0%, #06070b 70%);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  grid-template-rows: 240px 240px 240px;
  grid-template-areas:
    "cnn  mother  x"
    "xhs  mother  dy"
    "wb   mother  drafts";
  gap: 1px;
}
.orch-stage > canvas#orchLines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}
.feed-win {
  background: #0b0e16;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.feed-win .win-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  background: #080b12;
  font-size: 11px;
}
.feed-win .win-head b { font-family: var(--display); font-weight: 700; font-size: 13px; }
.feed-win .win-head .win-sub { color: var(--dim); font-size: 10px; margin-left: auto; }
.feed-win .win-head .win-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--src-color, var(--pink));
  box-shadow: 0 0 8px var(--src-color, var(--pink));
  animation: breathe 1.6s ease-in-out infinite;
}
.feed-win[data-src="cnn"]    { --src-color: #d8dbe3 }
.feed-win[data-src="cnn"] b  { color: #d8dbe3 }
.feed-win[data-src="x"]      { --src-color: #aeb3bf }
.feed-win[data-src="x"] b    { color: #aeb3bf }
.feed-win[data-src="xhs"]    { --src-color: #ffffff }
.feed-win[data-src="xhs"] b  { color: #ffffff }
.feed-win[data-src="douyin"] { --src-color: #bfc3cc }
.feed-win[data-src="douyin"] b { color: #bfc3cc }
.feed-win[data-src="weibo"]  { --src-color: #b9bdc8 }
.feed-win[data-src="weibo"] b { color: #b9bdc8 }
.feed-win .win-body {
  flex: 1; min-height: 0;
  position: relative; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.win-track {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 8px;
  will-change: transform;
  transition: transform 1.6s cubic-bezier(.33,.78,.55,1);
}
.win-track .wtr {
  padding: 7px 10px;
  background: #0e1119;
  border: 1px solid #141a28;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: #c0c5d2;
  position: relative;
}
.win-track .wtr.fresh {
  border-color: var(--src-color);
  box-shadow: 0 0 14px rgba(255,255,255,0.03), 0 0 0 1px var(--src-color);
  animation: wtrFresh 2.4s ease-out both;
}
.win-track .wtr .k {
  color: var(--src-color);
  font-weight: 600;
}
.win-track .wtr .meta {
  color: var(--dim2); font-size: 9px; margin-top: 3px;
}
.win-track .wtr .url {
  color: var(--dim2); font-size: 9px;
}
@keyframes wtrFresh {
  0%   { background: var(--src-color); color: #000 }
  40%  { background: color-mix(in srgb, var(--src-color) 20%, #0e1119) }
  100% { background: #0e1119; color: #c0c5d2 }
}

/* mother orb — center column, spans 3 rows */
.mother-orb {
  grid-area: mother;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  z-index: 1;
}
.mother-orb .orb-core {
  font-size: 60px;
  color: var(--pink);
  text-shadow: 0 0 24px var(--pink), 0 0 48px var(--pink);
  animation: breathe 3s ease-in-out infinite;
  z-index: 3;
}
.mother-orb .orb-ring, .mother-orb .orb-ring.r2 {
  position: absolute;
  left: 50%; top: 50%;
  width: 180px; height: 180px;
  margin: -90px 0 0 -90px;
  border: 1px solid var(--pink);
  border-radius: 50%;
  opacity: 0.25;
  animation: orbPulse 3s ease-out infinite;
  z-index: 1;
}
.mother-orb .orb-ring.r2 {
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  animation-delay: 1.5s;
  opacity: 0.15;
}
@keyframes orbPulse {
  0%   { transform: scale(0.4); opacity: 0.5 }
  100% { transform: scale(1.6); opacity: 0 }
}
.mother-orb .orb-label {
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink);
  z-index: 3;
}
.mother-orb .orb-sub {
  font-size: 10px; color: var(--dim); max-width: 220px; text-align: center;
  z-index: 3;
}

/* drafts rail */
.drafts-rail {
  grid-area: drafts;
  background: #0b0e16;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.drafts-rail .rail-head {
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 13px;
  color: var(--pink);
  background: #080b12;
}
.rail-list {
  flex: 1; overflow: hidden; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.rail-list .rail-empty { color: var(--dim); font-size: 11px; }
.rail-list .rail-item {
  padding: 8px 10px;
  background: #0e1119;
  border: 1px solid var(--pink);
  border-radius: 4px;
  font-size: 11px;
  text-decoration: none; color: var(--ink);
  animation: wtrFresh 2.4s ease-out both;
}
.rail-list .rail-item b { color: var(--pink); display: block; margin-bottom: 2px; font-family: var(--display); }
.rail-list .rail-item .rail-sub { color: var(--dim); font-size: 10px; }

/* floating thought cloud */
.thought-cloud {
  position: absolute;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  max-width: 520px;
  background: rgba(10, 13, 22, 0.9);
  border: 1px solid var(--pink);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 11px;
  color: var(--ink);
  z-index: 4;
  min-height: 20px;
  opacity: 0;
  transition: opacity .4s;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thought-cloud.show { opacity: 1; }
.thought-cloud .tc-by { color: var(--pink); font-weight: 700; margin-right: 8px; }

@media (max-width: 900px) {
  .orch-stage {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(7, minmax(180px, auto));
    grid-template-areas: "cnn" "x" "mother" "xhs" "dy" "wb" "drafts";
  }
}

/* ─── crawlnet-style terminal + screens grid ──────────────────────────── */
/* ─── single live stream window + crawling spider ───────────────────── */
.stream-section { max-width: 1280px; margin: 40px auto 0; padding: 0 20px; }
.stream-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 920px) { .stream-grid { grid-template-columns: 1fr; } }
.stream-win {
  background: #04050a; border: 1px solid #1a1f2e; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 0 120px rgba(255,255,255,.03);
}
/* ─── brain analysis window ─── */
.brain-win {
  background: #04050a; border: 1px solid #1a1f2e; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 0 120px rgba(255,255,255,.04);
  display: flex; flex-direction: column;
}
.brain-head {
  display: flex; align-items: center; gap: 9px; padding: 12px 16px;
  border-bottom: 1px solid #1a1f2e; font-family: var(--mono); font-size: 13px; color: #c3c7d0;
}
.brain-dot { width: 9px; height: 9px; border-radius: 50%; background: #c3c7d0; box-shadow: 0 0 10px #c3c7d0; animation: st-pulse 1.4s infinite; }
.brain-body { position: relative; height: 70vh; min-height: 460px; }
.brain-log { position: absolute; inset: 0; overflow: hidden; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.brain-spider { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.brain-empty { color: #71767b; font-family: var(--mono); font-size: 12px; padding: 40px; text-align: center; }
.ba-card {
  background: #0a0b12; border: 1px solid #1a2733; border-radius: 10px; padding: 11px 13px;
  display: flex; flex-direction: column; gap: 7px; animation: st-in .5s cubic-bezier(.2,.9,.3,1); flex: 0 0 auto;
}
.ba-top { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; }
.ba-topic { color: #000; background: #c3c7d0; font-weight: 800; padding: 2px 9px; border-radius: 5px; font-size: 10px; }
.ba-author { color: #8b98a5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-score { margin-left: auto; font-weight: 800; font-family: var(--mono); }
.ba-score.hot { color: #d8dbe3; } .ba-score.warm { color: #b9bdc8; } .ba-score.cold { color: #c3c7d0; }
.ba-bar { height: 4px; border-radius: 2px; background: #11161f; overflow: hidden; }
.ba-bar > i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg,#c3c7d0,#d8dbe3); width: 0; transition: width .8s ease; }
.ba-verdict { color: #e7e9ea; font-size: 13px; font-weight: 700; }
.ba-reason { color: #aab4bf; font-size: 12px; line-height: 1.5; min-height: 1.2em; }
.ba-reason .caret { color: #c3c7d0; animation: ba-blink 1s steps(1) infinite; }
@keyframes ba-blink { 0%,50% { opacity: 1 } 50.01%,100% { opacity: 0 } }

/* ─── launch portal windows (flap.sh BNB + pump.fun SOL) ─── */
.launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 920px) { .launch-grid { grid-template-columns: 1fr; } }
.minted-win {
  background: #04050a; border: 1px solid #1a1f2e; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 0 140px rgba(255,255,255,.03);
}
.minted-head {
  display: flex; align-items: center; gap: 9px; padding: 14px 18px;
  border-bottom: 1px solid #1a1f2e; font-family: var(--display); font-weight: 700; font-size: 16px; color: #e7e9ea;
}
.minted-dot { width: 9px; height: 9px; border-radius: 50%; background: #cfd3db; box-shadow: 0 0 10px #cfd3db; animation: st-pulse 1.4s infinite; }
.minted-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 18px;
}
@media (max-width: 1100px) { .minted-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .minted-grid { grid-template-columns: repeat(2, 1fr); } }
.minted-empty { grid-column: 1 / -1; color: #71767b; font-family: var(--mono); font-size: 13px; padding: 50px; text-align: center; }
.mt-card {
  background: #0a0b12; border: 1px solid #1a1f2e; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s;
  animation: st-in .5s cubic-bezier(.2,.9,.3,1);
}
.mt-card:hover { transform: translateY(-3px); border-color: #cfd3db; box-shadow: 0 12px 36px rgba(0,0,0,.55); }
.mt-img { position: relative; aspect-ratio: 1 / 1; background: #0e1119 center/cover no-repeat; }
.mt-gen { display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 25%, #1a1d26, transparent 65%), linear-gradient(135deg, #121419, #06070b); }
.mt-glyph { font-family: var(--display); font-weight: 700; font-size: 26px; color: #fff; text-shadow: 0 0 18px rgba(255,255,255,.35); letter-spacing: -.5px; }
.mt-mc { color: #71767b; font-weight: 600; }
.mt-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.mt-badge { font-family: var(--mono); font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 20px; color: #04120a; background: #cfd3db; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.mt-badge.chain { color: #000; }
.mt-badge.chain.bsc { background: #b9bdc8; } .mt-badge.chain.sol { background: #c3c7d0; }
.mt-body { padding: 11px 12px; display: flex; flex-direction: column; gap: 3px; }
.mt-name { color: #e7e9ea; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-sym { color: #cfd3db; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.mt-nar { color: #8b98a5; font-size: 11px; line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 10px; color: #71767b; }
.mt-ca { color: #c3c7d0; }
.mt-tweet { color: #aeb3bf; cursor: pointer; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 1px 7px; transition: color .15s, border-color .15s; }
.mt-tweet:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* ── token radar: one spider window per launched coin (/launched) ── */
.tw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; }
@media (max-width: 820px) { .tw-grid { grid-template-columns: 1fr; } }
.tw-win { border: 1px solid #1a1f2e; background: #0a0b12; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; animation: st-in .5s cubic-bezier(.2,.9,.3,1); transition: opacity .4s, filter .4s; }
.tw-win.dead { opacity: .5; filter: grayscale(1); }
.tw-whead { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-bottom: 1px solid #141825; }
.tw-sym { font-family: var(--mono); font-weight: 800; color: #e7e9ea; font-size: 14px; }
.tw-nm { color: #8b98a5; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-badge { margin-left: auto; font-family: var(--mono); font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.tw-badge.live { background: #16271c; color: #d6f5df; } .tw-badge.dead { background: #241a1a; color: #e6b3b3; }
.tw-stats { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 13px; border-bottom: 1px solid #141825; font-family: var(--mono); font-size: 11px; color: #8b98a5; }
.tw-stats b { color: #e7e9ea; } .tw-stats .up b { color: #d6f5df; } .tw-stats .down b { color: #e6c9c9; }
.tw-body { position: relative; height: 150px; }
.tw-spider { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tw-posts { position: absolute; inset: 0; overflow: hidden; padding: 9px 11px; display: flex; flex-direction: column; gap: 6px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 82%, transparent 100%); }
.tw-post { font-size: 11px; color: #aeb3bf; line-height: 1.42; }
.tw-post .tw-pa { color: #e7e9ea; font-weight: 700; } .tw-post.tw-dim { color: #5c636e; font-family: var(--mono); }
.tw-analysis { padding: 10px 13px; border-top: 1px solid #141825; font-size: 12px; line-height: 1.45; color: #c9ccd3; min-height: 18px; }

/* ── the mother coin's own window: $SSI · spider.si (more prominent than per-token radar) ── */
.mother-win {
  margin: 0 18px 18px; border: 1px solid #2a3350; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 20% 0%, #121631, transparent 60%), linear-gradient(180deg, #0b0e1c, #06070d);
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 0 120px rgba(120,140,255,.05);
  animation: st-in .5s cubic-bezier(.2,.9,.3,1);
}
.mother-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #1a2036; }
.mother-dot { width: 10px; height: 10px; border-radius: 50%; background: #aeb8ff; box-shadow: 0 0 12px #aeb8ff; animation: st-pulse 1.4s infinite; }
.mother-title { font-family: var(--display); font-weight: 700; font-size: 17px; color: #eef0ff; letter-spacing: -.2px; }
.mother-badge { margin-left: auto; font-family: var(--mono); font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 20px; background: #1a2440; color: #c9d4ff; white-space: nowrap; }
.mother-sub { padding: 9px 16px 2px; color: #8b94b5; font-size: 12px; line-height: 1.45; }
.mother-body { position: relative; height: 190px; margin: 10px 16px 0; border: 1px solid #1a2036; border-radius: 10px; overflow: hidden; background: #070a14; }
.mother-spider { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mother-feed { position: absolute; inset: 0; overflow: hidden; padding: 11px 13px; display: flex; flex-direction: column; gap: 7px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 84%, transparent 100%); }
.mother-src { font-family: var(--mono); font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 20px; vertical-align: middle; }
.mother-src.x { background: #1c2030; color: #e7e9ea; }
.mother-src.fomo { background: #1b2a24; color: #b6f0d2; }
.mother-analysis {
  margin: 12px 16px 16px; padding: 12px 14px; border: 1px solid #27304d; border-radius: 10px;
  background: linear-gradient(180deg, rgba(120,140,255,.07), transparent);
  font-size: 14px; line-height: 1.5; color: #e4e7f5; font-weight: 500; min-height: 20px;
}

/* operator statements published via /console — the mother speaking, tagged "Sent to X" */
.mother-say-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; margin-top: 12px; }
.mother-say-list:empty { display: none; }
.mother-say {
  border: 1px solid #3a4677; border-radius: 11px; padding: 12px 14px;
  background: linear-gradient(180deg, rgba(130,150,255,.12), rgba(130,150,255,.03));
  box-shadow: 0 6px 24px rgba(40,60,160,.18); animation: st-in .4s cubic-bezier(.2,.9,.3,1);
}
.mother-say-top { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.mother-say-who { font-family: var(--display); font-weight: 700; font-size: 12px; color: #c9d4ff; letter-spacing: .2px; }
.mother-say-text { font-size: 15px; line-height: 1.5; color: #f1f3ff; font-weight: 500; white-space: pre-wrap; word-break: break-word; }
.mother-say-time { margin-top: 6px; font-family: var(--mono); font-size: 10px; color: #8b94b5; }
.msay-badge {
  font-family: var(--mono); font-size: 9px; font-weight: 800; padding: 2px 9px; border-radius: 20px;
  background: #16271c; color: #b6f0d2; border: 1px solid #27503a; white-space: nowrap;
}

/* per-coin AI analysis line on the launched cards */
.mt-ai {
  display: flex; align-items: baseline; gap: 6px; margin-top: 6px; font-size: 11px; line-height: 1.4; color: #aeb8d6;
}
.mt-ai-tag { font-family: var(--mono); font-size: 8px; font-weight: 800; padding: 1px 6px; border-radius: 20px; background: #1a2440; color: #c9d4ff; flex: 0 0 auto; }
.mt-ai-txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── private mother console (/console) ── */
.console-wrap { max-width: 720px; margin: 48px auto 0; padding: 0 20px 60px; }
.console-card {
  border: 1px solid #2a3350; border-radius: 14px; padding: 22px 22px 20px;
  background: radial-gradient(ellipse at 20% 0%, #121631, transparent 60%), linear-gradient(180deg, #0b0e1c, #06070d);
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 0 120px rgba(120,140,255,.05);
}
.console-head { display: flex; align-items: center; gap: 10px; }
.console-head h1 { font-family: var(--display); font-weight: 700; font-size: 22px; color: #eef0ff; letter-spacing: -.3px; }
.console-tag { font-family: var(--mono); font-size: 10px; font-weight: 700; color: #c9d4ff; background: #1a2440; padding: 3px 9px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }
.console-sub { color: #8b94b5; font-size: 12px; line-height: 1.55; margin: 10px 0 18px; }
.console-sub b { color: #b6f0d2; }
.console-label { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #8b94b5; margin: 14px 0 6px; }
.console-count { color: #5c6687; }
.console-input, .console-textarea {
  width: 100%; background: #070a14; border: 1px solid #1a2036; border-radius: 10px; color: #e9ecf2;
  font-family: var(--mono); font-size: 13px; padding: 11px 13px; outline: none; transition: border-color .15s;
}
.console-input:focus, .console-textarea:focus { border-color: #3a4677; }
.console-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.console-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.console-actions .btn-primary { border-radius: 10px; }
.console-status { font-family: var(--mono); font-size: 12px; color: #8b94b5; }
.console-status.ok { color: #b6f0d2; }
.console-status.err { color: #e6b3b3; }
.console-logwrap { margin-top: 22px; border-top: 1px solid #1a2036; padding-top: 14px; }
.console-logtitle { font-family: var(--mono); font-size: 11px; color: #5c6687; margin-bottom: 10px; }
.console-log { display: flex; flex-direction: column; gap: 9px; }
.console-logempty { color: #4a5062; font-family: var(--mono); font-size: 12px; }
.console-logrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #1a2036; border-radius: 10px; background: #070a14; }
.console-logtext { flex: 1; color: #e4e7f5; font-size: 13px; line-height: 1.45; word-break: break-word; }
.console-logtime { font-family: var(--mono); font-size: 10px; color: #5c6687; white-space: nowrap; }

/* ── live operations dashboard (/app) ── */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cfd3db; box-shadow: 0 0 10px #cfd3db; animation: st-pulse 1.4s infinite; vertical-align: middle; }
.dash-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 24px 0; max-width: 1500px; margin: 0 auto; width: 100%; }
.dh-stat { background: linear-gradient(135deg, #0a0b12, #06070b); border: 1px solid #1a1f2e; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.dh-num { font-family: var(--display); font-weight: 700; font-size: 30px; color: #fff; line-height: 1; text-shadow: 0 0 20px rgba(255,255,255,.2); }
.dh-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #71767b; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 24px 40px; max-width: 1500px; margin: 0 auto; width: 100%; }
@media (max-width: 1100px) { .dash-head { grid-template-columns: repeat(2, 1fr); } .dash-grid { grid-template-columns: 1fr; } }
.panel { background: #04050a; border: 1px solid #1a1f2e; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #1a1f2e; font-family: var(--display); font-weight: 700; font-size: 14px; color: #e7e9ea; }
.pd-dot { width: 8px; height: 8px; border-radius: 50%; background: #cfd3db; box-shadow: 0 0 8px #cfd3db; animation: st-pulse 1.4s infinite; }
.pd-sub { margin-left: auto; font-family: var(--mono); font-weight: 400; font-size: 10px; color: #71767b; text-transform: none; }
.panel-body { flex: 1; overflow-y: auto; max-height: 440px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.panel-body::-webkit-scrollbar { width: 7px; } .panel-body::-webkit-scrollbar-thumb { background: #1a1f2e; border-radius: 4px; }
.panel-empty { color: #71767b; font-family: var(--mono); font-size: 12px; padding: 36px 12px; text-align: center; }
.df-row { border: 1px solid #141825; background: #0a0b12; border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column; gap: 4px; }
.df-in { animation: st-in .4s cubic-bezier(.2,.9,.3,1); }
.df-top { display: flex; align-items: center; gap: 7px; }
.df-tag { font-family: var(--mono); font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 20px; background: #1a222a; color: #c6d6e0; }
.df-tag.warm { background: #2a2420; color: #f0d9c4; }
.df-author { font-family: var(--mono); font-size: 11px; color: #aeb3bf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.df-score { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 800; color: #cfd3db; }
.df-mode { font-family: var(--mono); font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 20px; background: #1a1f2e; color: #9aa0ab; }
.df-mode.live { background: #16271c; color: #d6f5df; }
.df-time { margin-left: auto; font-family: var(--mono); font-size: 10px; color: #71767b; }
.df-text { color: #c9ccd3; font-size: 12px; line-height: 1.45; }
.df-foot { font-family: var(--mono); font-size: 10px; color: #71767b; display: flex; justify-content: space-between; gap: 8px; }
.df-link { color: #aeb3bf; text-decoration: none; border-bottom: 1px dotted #3a3f4b; }
.df-link:hover { color: #fff; }
.df-act { font-family: var(--mono); font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 20px; background: #1a222a; color: #c6d6e0; }
.df-act.sell { background: #2a2420; color: #f0d9c4; } .df-act.hold { background: #1a222a; color: #c6d6e0; } .df-act.closed { background: #20232b; color: #9aa0ab; }
.pos-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #141825; background: #0a0b12; border-radius: 9px; padding: 9px 11px; }
.pos-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pos-sym { font-family: var(--mono); font-weight: 800; font-size: 12px; color: #e7e9ea; }
.pos-model { font-family: var(--mono); font-size: 10px; color: #8b98a5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pos-pnl { font-family: var(--mono); font-size: 12px; font-weight: 800; color: #8b98a5; }
.pos-pnl.up { color: #d6f5df; } .pos-pnl.down { color: #e6c9c9; }
.tr-mini { font-family: var(--mono); font-size: 12px; color: #aeb3bf; padding: 4px 2px 8px; border-bottom: 1px solid #141825; }
.tr-mini-num { color: #fff; font-weight: 800; font-size: 16px; }
.bb-mini { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; padding: 7px 2px; border-bottom: 1px solid #10131c; }
.bb-amt { color: #d6f5df; font-weight: 800; } .bb-src { color: #8b98a5; }
#launchedBody { flex-direction: row; flex-wrap: wrap; }
.lc { width: 72px; display: flex; flex-direction: column; gap: 4px; }
.lc-img { width: 72px; height: 72px; border-radius: 9px; background: radial-gradient(ellipse at 30% 25%, #1a1d26, #06070b) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff; border: 1px solid #1a1f2e; }
.lc-sym { font-family: var(--mono); font-size: 10px; color: #aeb3bf; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── per-token trading mind (on each launched card) ── */
.mt-mind { margin-top: 7px; padding-top: 7px; border-top: 1px solid #171b28; display: flex; flex-direction: column; gap: 4px; }
.mt-mind-top { display: flex; align-items: center; justify-content: space-between; }
.mt-model { font-family: var(--mono); font-size: 10px; color: #aeb3bf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 72%; }
.mt-pnl { font-family: var(--mono); font-size: 11px; font-weight: 800; color: #8b98a5; }
.mt-pnl.up { color: #d6f5df; } .mt-pnl.down { color: #e6c9c9; }
.mt-dec { font-size: 10px; color: #8b98a5; line-height: 1.35; display: flex; gap: 5px; align-items: flex-start; }
.mt-act { font-family: var(--mono); font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 20px; flex-shrink: 0; background: #1a1f2e; color: #cfd3db; }
.mt-act.sell { background: #2a2420; color: #f0d9c4; } .mt-act.hold { background: #1a222a; color: #c6d6e0; } .mt-act.closed { background: #20232b; color: #9aa0ab; }

/* ── $SSI treasury bar + buyback feed ── */
.treasury {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  background: linear-gradient(135deg, #0a0b12, #06070b); border: 1px solid #1a1f2e; border-radius: 12px;
  padding: 18px 22px; margin-bottom: 18px; box-shadow: inset 0 0 120px rgba(255,255,255,.03);
}
.tr-main { display: flex; flex-direction: column; gap: 2px; }
.tr-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #71767b; }
.tr-amount { font-family: var(--display); font-weight: 700; font-size: 34px; color: #fff; line-height: 1.05; text-shadow: 0 0 24px rgba(255,255,255,.25); }
.tr-sub { font-family: var(--mono); font-size: 11px; color: #8b98a5; }
.tr-sup { font-family: var(--mono); font-size: 11px; color: #8b98a5; } .tr-sup b { color: #cfd3db; }
.bb-feed { display: flex; flex-direction: column; }
.bb-row { display: grid; grid-template-columns: 130px 1fr 1.4fr auto; gap: 12px; align-items: center;
  padding: 11px 18px; border-bottom: 1px solid #141825; font-family: var(--mono); font-size: 11px; }
.bb-row:last-child { border-bottom: none; }
.bb-amt { color: #d6f5df; font-weight: 800; }
.bb-src { color: #8b98a5; } .bb-note { color: #aeb3bf; } .bb-time { color: #71767b; text-align: right; }
@media (max-width: 680px) { .bb-row { grid-template-columns: 1fr 1fr; } .bb-note { display: none; } }
.stream-top {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid #1a1f2e; font-family: var(--mono); font-size: 13px;
}
.stream-dot { width: 9px; height: 9px; border-radius: 50%; background: #d8dbe3; box-shadow: 0 0 10px #d8dbe3; animation: st-pulse 1.4s infinite; }
@keyframes st-pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.stream-title { font-weight: 800; color: #fff; }
.stream-sub { color: #71767b; font-size: 11px; }
.stream-clock { margin-left: auto; color: #c3c7d0; font-size: 12px; }
.stream-filters { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #1a1f2e; flex-wrap: wrap; align-items: center; }
.sf-chip {
  cursor: pointer; font-family: var(--mono); font-size: 11px; color: #9aa;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12);
  padding: 4px 12px; border-radius: 999px; transition: .15s;
}
.sf-chip:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.sf-chip.on { color: #000; background: #d8dbe3; border-color: #d8dbe3; font-weight: 700; }
.sf-count { margin-left: auto; color: #71767b; font-family: var(--mono); font-size: 11px; }
.stream-body { position: relative; height: 70vh; min-height: 460px; }
.stream-feed {
  position: absolute; inset: 0; overflow: hidden; padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.stream-spider { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.stream-empty { color: #71767b; font-family: var(--mono); font-size: 12px; padding: 40px; text-align: center; }
.st-card {
  background: #0a0b12; border: 1px solid #1a1f2e; border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  animation: st-in .5s cubic-bezier(.2,.9,.3,1); overflow: hidden; flex: 0 0 auto;
}
@keyframes st-in { from { opacity: 0; transform: translateY(-14px) scale(.98) } to { opacity: 1; transform: none } }
.st-card.st-focus { border-color: #c3c7d0; box-shadow: 0 0 0 1px #c3c7d0, 0 0 22px rgba(255,255,255,.35); transition: box-shadow .25s, border-color .25s; }
.st-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.st-tag { color: #000; background: var(--c, #9aa); font-weight: 800; padding: 2px 9px; border-radius: 5px; font-family: var(--mono); font-size: 10px; }
.st-author { color: #e7e9ea; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-reply { color: #c3c7d0; font-family: var(--mono); font-size: 10px; }
.st-open { color: #1d9bf0; text-decoration: none; margin-left: auto; font-size: 15px; pointer-events: auto; }
.st-text { color: #e7e9ea; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
/* 阅读模式:蜘蛛点进去看全文时,聚焦这张卡片、其余变暗 */
.stream-feed.reading-mode .st-card { opacity: .32; filter: blur(.4px); transition: opacity .3s, filter .3s, transform .3s; }
.stream-feed.reading-mode .st-card.reading { opacity: 1; filter: none; transform: scale(1.015); position: relative; z-index: 3; border-color: #c3c7d0; box-shadow: 0 0 0 1px #c3c7d0, 0 14px 46px rgba(0,0,0,.65); }
.st-card.reading::after { content: "🕷 reading…"; position: absolute; top: 8px; right: 10px; font-family: var(--mono); font-size: 10px; color: #0a0b12; background: #c3c7d0; padding: 2px 8px; border-radius: 10px; letter-spacing: .3px; }
.st-card.reading .st-text { font-size: 15px; }
/* 全文阅读面板:蜘蛛点进去时覆盖在列表上展开文章正文 */
.read-overlay { position: absolute; inset: 0; z-index: 4; background: linear-gradient(180deg, #080a10, #04050a); display: flex; flex-direction: column; animation: ro-in .25s ease; }
@keyframes ro-in { from { opacity: 0; transform: scale(.985) } to { opacity: 1; transform: none } }
.ro-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #1a1f2e; }
.ro-badge { font-family: var(--mono); font-size: 10px; color: #0a0b12; background: #c3c7d0; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.ro-title { font-family: var(--display); font-weight: 700; font-size: 14px; color: #e9ecf2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ro-open { font-family: var(--mono); font-size: 11px; color: #aeb3bf; white-space: nowrap; }
.ro-open:hover { color: #fff; }
.ro-scroll { flex: 1; min-height: 0; overflow: hidden; padding: 16px 18px; mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
.ro-img { width: 100%; max-height: 260px; min-height: 150px; background-size: cover; background-position: center; border-radius: 8px; border: 1px solid #1a1f2e; margin-bottom: 14px; }
.ro-text { color: #d6d9e0; font-size: 14px; line-height: 1.75; }
.ro-text p { margin-bottom: 12px; }
.st-img { width: 100%; max-height: 320px; min-height: 180px; background-size: cover; background-position: center; border-radius: 8px; border: 1px solid #1a1f2e; }
.st-metrics { color: #71767b; font-family: var(--mono); font-size: 11px; }

.cnet-section { max-width: 1600px; margin: 50px auto 0; padding: 0 20px; }
.cnet-xlogin {
  margin-left: 14px; cursor: pointer; font-family: var(--mono); font-size: 11px;
  color: #c3c7d0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35);
  padding: 3px 10px; border-radius: 4px; letter-spacing: .3px; transition: .15s;
}
.cnet-xlogin:hover { background: rgba(255,255,255,.18); }
.cnet-xlogin.on { color: #cfd3db; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); }
.cnet-xlogin:disabled { opacity: .5; cursor: default; }
.cnet-term {
  background: #04050a;
  border: 1px solid #1a1f2e;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 0 100px rgba(255,255,255, .025);
}
.cnet-topline {
  padding: 9px 14px;
  background: linear-gradient(to bottom, #0a0d16, #06070b);
  border-bottom: 1px solid #1a1f2e;
  display: flex; align-items: center; gap: 10px; font-size: 11px;
}
.cnet-prompt { color: var(--pink); font-weight: 700 }
.cnet-cmd { color: var(--ink) }
.cnet-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok);
  animation: breathe 1.6s ease-in-out infinite;
}
.cnet-head { color: var(--amber); font-weight: 700 }
.cnet-right { margin-left: auto; color: var(--dim2); font-size: 10px }

.cnet-tabs {
  padding: 7px 14px;
  background: #06070b;
  border-bottom: 1px solid #1a1f2e;
  display: flex; align-items: center; gap: 14px; font-size: 10px;
  color: var(--dim);
}
.cnet-tab { color: var(--dim); cursor: pointer; }
.cnet-tab.active { color: var(--ink); }
.cnet-sep { color: #2a3042; }
.cnet-filter { color: var(--dim); cursor: pointer; letter-spacing: .3px; }
.cnet-filter.active { color: var(--pink) }
.cnet-filter b { color: var(--ink); margin-left: 3px; font-weight: 700 }
.cnet-ticker {
  margin-left: auto; color: var(--dim2); font-size: 10px;
  max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.cnet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #0f1320;
}
.cnet-cell {
  background: #06080e;
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex; flex-direction: column;
  --cell-color: var(--pink);
}
@media (max-width: 1400px) {
  .cnet-grid { grid-template-columns: repeat(3, 1fr) }
  .cnet-cell { height: 380px }
}
@media (max-width: 1024px) {
  .cnet-grid { grid-template-columns: repeat(2, 1fr) }
  .cnet-cell { height: 320px }
}
.cnet-cell[data-src="x1"]     { --cell-color: #d8dbe3 }
.cnet-cell[data-src="x2"]     { --cell-color: #aeb3bf }
.cnet-cell[data-src="x3"]     { --cell-color: #b9bdc8 }
.cnet-cell[data-src="x4"]     { --cell-color: #bfc3cc }
.cnet-cell[data-src="x5"]     { --cell-color: #c3c7d0 }
.cnet-cell[data-src="mother"] { --cell-color: #d8dbe3 }
.cnet-cell[data-src="draftsol"] { --cell-color: #bfc3cc }
.cnet-cell[data-src="draftbsc"] { --cell-color: #b9bdc8 }
.cnet-cell .ch {
  padding: 6px 10px; font-size: 10px; display: flex; gap: 8px; align-items: center;
  background: linear-gradient(to bottom, rgba(10,13,22,0.95), rgba(10,13,22,0.4));
  color: var(--dim); border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative; z-index: 2;
}
.cnet-cell .ch b { color: var(--cell-color); font-weight: 700 }
.cnet-cell .ch .right { margin-left: auto; color: var(--dim2) }
.cnet-cell .ch .status-ok { color: var(--ok) }
.cnet-cell .ch .status-r { color: var(--pink) }
.cnet-cell .ch .status-i { color: var(--dim2) }
.cnet-cell .body {
  flex: 1; min-height: 0;
  position: relative; overflow: hidden;
  background: #000;
}
.cnet-cell .body img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .5s;
}
.cnet-cell .body img.shown { opacity: 0.88; }
.cnet-cell .body canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}
.cnet-cell .body .wait {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 10px; letter-spacing: 1px;
}
.cnet-cell .body .scanline {
  position: absolute; left: 0; right: 0;
  height: 2px; background: var(--cell-color);
  box-shadow: 0 0 10px var(--cell-color);
  opacity: 0.7; z-index: 2;
  animation: scanline 2s linear infinite;
}
@keyframes scanline {
  0%   { top: 0 }
  100% { top: 100% }
}
.cnet-cell .fb {
  padding: 6px 10px; font-size: 10px; color: var(--dim);
  background: linear-gradient(to top, rgba(6,8,14,0.95), transparent);
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cnet-cell .fb b { color: var(--cell-color); margin-right: 6px }

/* mother cell is special: ASCII orb */
.cnet-cell.mother {
  background: radial-gradient(ellipse at center, rgba(255,255,255,.12), transparent 60%), #04050a;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  text-align: center;
}
.cnet-cell.mother .ascii {
  font-size: 40px; color: var(--pink);
  text-shadow: 0 0 20px var(--pink), 0 0 40px var(--pink);
  animation: breathe 3s ease-in-out infinite;
}
.cnet-cell.mother .lbl { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--ink) }
.cnet-cell.mother .think {
  font-size: 10px; color: var(--dim); max-width: 85%;
  white-space: normal; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* draft tiles */
.cnet-cell.draft { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; text-align: center; padding: 12px; }
.cnet-cell.draft .d-sym { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--cell-color); text-shadow: 0 0 10px var(--cell-color) }
.cnet-cell.draft .d-name { font-size: 12px; color: var(--ink) }
.cnet-cell.draft .d-nar { font-size: 10px; color: var(--dim); line-height: 1.4 }
.cnet-cell.draft .d-sub { font-size: 9px; color: var(--dim2); letter-spacing: 1px }

.cnet-table {
  background: #04050a; border-top: 1px solid #1a1f2e;
  font-size: 11px;
}
.cnet-row {
  display: grid;
  grid-template-columns: 50px 100px 40px 110px 60px 80px 1fr;
  gap: 10px; padding: 5px 14px;
  border-bottom: 1px solid #0f1320;
  color: var(--dim); overflow: hidden;
}
.cnet-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.cnet-row.cnet-header { color: var(--dim2); font-size: 9px; letter-spacing: 1.5px; background: #06080e; border-bottom: 1px solid #1a1f2e }
.cnet-row .cnet-url { color: var(--pink) }
.cnet-row .pid { color: var(--amber) }
.cnet-row .st-r { color: var(--ok) }
.cnet-row .st-i { color: var(--dim2) }
.cnet-row.active { background: rgba(255,255,255,0.03) }

.cnet-bottombar {
  padding: 7px 14px; background: linear-gradient(to top, #0a0d16, #06070b);
  border-top: 1px solid #1a1f2e;
  display: flex; gap: 14px; font-size: 10px; color: var(--dim);
  align-items: center;
}
.cnet-dim { color: var(--dim2) }
.cnet-connect { display: flex; align-items: center; gap: 6px; color: var(--ok); margin-left: auto }

@media (max-width: 900px) {
  .cnet-grid { grid-template-columns: repeat(1, 1fr) }
  .cnet-cell { height: 280px }
  .cnet-row { grid-template-columns: 40px 70px 30px 1fr 1fr; }
  .cnet-row span:nth-child(5), .cnet-row span:nth-child(6) { display: none }
}

/* make the mother + draft cells also bigger */
.cnet-cell .ch { padding: 10px 14px; font-size: 12px; }
.cnet-cell .ch b { font-size: 15px; }
.cnet-cell .fb { padding: 8px 14px; font-size: 12px; }
.cnet-cell.mother .ascii { font-size: 72px }
.cnet-cell.mother .lbl { font-size: 18px }
.cnet-cell.mother .think { font-size: 13px; max-width: 90% }
.cnet-cell.draft .d-sym { font-size: 32px }
.cnet-cell.draft .d-name { font-size: 15px }
.cnet-cell.draft .d-nar { font-size: 12px }

/* legacy name — kept so other pages don't break */
.crawler-stage {
  position: relative;
  height: 540px;
  background: #06070b;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 0 80px rgba(255,255,255, .05);
}
.crawler-stage .refs {
  position: absolute; inset: 0;
  padding: 24px 36px;
  overflow: hidden;
  pointer-events: auto;
  font-family: var(--mono);
}
.crawler-stage .refs .ref {
  font-size: 11px;
  color: #a8aec0;
  line-height: 1.55;
  margin-bottom: 7px;
  opacity: 0.86;
  transition: opacity .4s;
}
.crawler-stage .refs .ref.new {
  animation: refIn .9s ease-out both;
}
@keyframes refIn { from { opacity: 0; transform: translateY(-6px) } to { opacity: .86; transform: none } }
.crawler-stage .refs .ref .idx {
  color: var(--dim2);
  margin-right: 8px;
}
.crawler-stage .refs .ref .src {
  color: var(--pink);
  font-size: 9px;
  padding: 1px 5px;
  border: 1px solid rgba(255,255,255, .4);
  border-radius: 10px;
  margin-right: 7px;
  letter-spacing: 1px;
}
.crawler-stage .refs .ref[data-src="x"] .src { color: var(--blue); border-color: rgba(122, 162, 255, .4) }
.crawler-stage .refs .ref[data-src="weibo"] .src { color: var(--amber); border-color: rgba(242, 211, 107, .4) }
.crawler-stage .refs .ref[data-src="xhs"] .src { color: #ffffff; border-color: rgba(255, 106, 184, .4) }
.crawler-stage .refs .ref[data-src="douyin"] .src { color: var(--violet); border-color: rgba(192, 132, 252, .4) }
.crawler-stage .refs .ref a {
  color: inherit;
}
.crawler-stage .refs .ref .k {
  display: inline-block;
  padding: 0 4px;
  border-radius: 2px;
  background: transparent;
  transition: all .25s;
}
.crawler-stage .refs .ref .k.hit {
  background: rgba(255,255,255, .22);
  box-shadow: 0 0 12px rgba(255,255,255, .55);
  color: #fff;
}
.crawler-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.crawler-stage::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to top, #06070b 20%, transparent);
  pointer-events: none;
}
.crawler-stage::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 40px;
  background: linear-gradient(to bottom, #06070b 10%, transparent);
  pointer-events: none;
  z-index: 1;
}
.mind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mind-card {
  background: var(--panel); padding: 20px; display: flex; flex-direction: column; gap: 6px;
  transition: all .2s; position: relative; cursor: pointer;
}
.mind-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); opacity: .6; }
.mind-card:hover { background: #141822; }
.mind-card:hover::before { opacity: 1; box-shadow: 0 0 14px var(--c); }
.mc-head { display: flex; align-items: center; gap: 10px; }
.mc-av { color: var(--c); font-size: 20px; text-shadow: 0 0 12px var(--c); }
.mc-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.mc-role { color: var(--dim); font-size: 11px; }
.mc-surf { color: var(--ink); opacity: .75; font-size: 12px; margin-top: 4px; }
.mc-model { color: var(--c); font-size: 10px; margin-top: 10px; opacity: .8; font-style: italic; }

.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.step { background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 4px; min-height: 100px; }
.step > span { color: var(--pink); font-family: var(--display); font-size: 11px; letter-spacing: 2px; }
.step > b { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.step > em { color: var(--dim); font-style: normal; font-size: 11px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); font-size: 12px; color: var(--ink); }
.chips li:hover { border-color: var(--pink); color: var(--pink); }

.foot {
  max-width: 1100px; margin: 60px auto 30px; padding: 24px 28px;
  border-top: 1px solid var(--line); color: var(--dim); font-size: 11px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.foot a { color: var(--pink); }

/* ═══ console (/app) ═══════════════════════════════════════════════ */
body.console { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.jobbar { display: flex; align-items: center; gap: 14px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.jobbar .pulse { width: 8px; height: 8px; border-radius: 50%; background: #333; transition: all .3s; }
.jobbar .pulse.on { background: var(--pink); box-shadow: 0 0 14px var(--pink); animation: breathe 1.4s ease-in-out infinite; }
.jobbar .cmd { flex: 1; color: var(--dim); font-size: 12px; }
.pill { padding: 5px 12px; border: 1px solid var(--pink); border-radius: 20px; color: var(--pink); font-size: 11px; }
.feed { display: grid; grid-template-columns: 1.8fr 1fr 1fr auto; gap: 8px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: #090b11; }
.feed input, .feed textarea, .feed button {
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; padding: 9px 12px; font: inherit; font-family: var(--mono);
}
.feed input:focus, .feed textarea:focus { border-color: var(--pink); outline: none; }
.feed textarea { min-height: 42px; max-height: 42px; resize: none; }
.feed button {
  background: var(--pink); color: #06070b; font-weight: 700; cursor: pointer;
  border-color: var(--pink); box-shadow: 0 0 24px rgba(255,255,255, .4);
}
.feed button:hover { background: var(--pink2); }
.feed button:disabled { opacity: .5; cursor: wait; box-shadow: none; }
.stage { display: grid; grid-template-columns: 1fr 420px; flex: 1; min-height: 0; }
.mirror { position: relative; background: #000; overflow: hidden; }
.mirror img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top center; opacity: 0; transition: opacity .4s; }
.mirror img.shown { opacity: .82; }
.mirror canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mirror .url { position: absolute; left: 14px; top: 14px; padding: 6px 12px; background: rgba(0,0,0,.75); color: var(--pink); border: 1px solid rgba(255,255,255, .5); border-radius: 20px; font-size: 11px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side { display: grid; grid-template-rows: 200px auto 1fr; border-left: 1px solid var(--line); background: var(--bg2); overflow: hidden; }
.radar { position: relative; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at center, #0d1120, var(--bg)); }
.radar canvas { width: 100%; height: 100%; display: block; }
.dots { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.cell { background: var(--panel); padding: 10px 12px; min-height: 70px; display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden; transition: background .15s; }
.cell::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dot-color); opacity: 0; transition: opacity .2s; }
.cell.awake::before { opacity: 1; box-shadow: 0 0 10px var(--dot-color); }
.cell:hover { background: #141822; }
.cell .row1 { display: flex; justify-content: space-between; align-items: baseline; }
.cell .name { color: var(--dot-color); font-weight: 700; font-size: 13px; font-family: var(--display); }
.cell .verb { color: var(--pink); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
.cell .verb.idle { color: var(--dim2); }
.cell .model { color: var(--dim); font-size: 10px; font-style: italic; }
.cell .line { color: var(--ink); opacity: .8; font-size: 11px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cell .meter { height: 2px; background: #1c2030; margin-top: 2px; border-radius: 1px; overflow: hidden; }
.cell .meter > div { height: 100%; background: var(--dot-color); width: 0%; transition: width .4s; }
.log { overflow-y: auto; padding: 14px 20px; border-top: 1px solid var(--line); }
.log .row { color: var(--dim); margin-bottom: 7px; font-size: 11px; line-height: 1.5; }
.log .row b { margin-right: 6px; }
.log .row.err b { color: var(--red); }
.log .row .what { color: var(--ink); opacity: .9; }
.log .row .k { color: var(--amber); }
.log .row .tool { color: var(--cyan); }

/* ═══ mind page ═══════════════════════════════════════════════════ */
body.mindpage { padding-bottom: 60px; }
.mind-hero {
  max-width: 1100px; margin: 40px auto; padding: 0 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.mh-left { display: flex; align-items: center; gap: 20px; }
.mh-av { font-size: 60px; color: var(--c); text-shadow: 0 0 24px var(--c); }
.mh-meta h1 { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -1px; }
.mh-sub { color: var(--dim); margin-top: 4px; font-size: 13px; }
.mh-stats { display: flex; gap: 20px; }
.stat { text-align: right; }
.stat b { font-family: var(--display); font-size: 22px; display: block; color: var(--c); }
.stat em { color: var(--dim); font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }

.tabs { max-width: 1100px; margin: 20px auto 0; padding: 0 28px; display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.tab { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--dim); font: inherit; font-family: var(--display); font-weight: 500; padding: 12px 18px; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--pink); border-color: var(--pink); }
.mind-main { max-width: 1100px; margin: 24px auto; padding: 0 28px; }
.pane { display: none; }
.pane.active { display: block; }
.stream { display: flex; flex-direction: column; gap: 12px; }
.stream .row { padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.stream .row.thought { border-left: 3px solid var(--pink); }
.stream .row.intent { border-left: 3px solid var(--cyan); }
.stream .row.lesson { border-left: 3px solid var(--amber); }
.stream .row .when { color: var(--dim2); font-size: 10px; margin-bottom: 4px; }
.stream .row .text { color: var(--ink); font-size: 13px; line-height: 1.55; }
.memcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.memcol { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.memcol h3, .mind-main > h3 { font-family: var(--display); font-size: 15px; margin-bottom: 10px; color: var(--pink); font-weight: 500; letter-spacing: .3px; }
.memcol pre, .pane pre { color: var(--ink); font-size: 11px; white-space: pre-wrap; max-height: 300px; overflow-y: auto; opacity: .85; }
.arch { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.arch > div { padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.lessons { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lessons li { padding: 12px 16px; background: var(--panel); border-left: 3px solid var(--amber); border-radius: 4px; font-size: 12px; }
.lessons li .when { color: var(--dim2); font-size: 10px; margin-bottom: 3px; }
.siblings { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.siblings a { background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 4px; }

/* ═══ jobs / job pages ═════════════════════════════════════════════ */
body.jobpage, body.docspage { padding-bottom: 60px; }
.list { max-width: 1100px; margin: 40px auto; padding: 0 28px; }
.list h1 { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -1px; margin-bottom: 24px; }
.jobrow { padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 1px; display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; }
.jobrow:hover { background: #141822; border-color: var(--pink); }
.jobrow .job { color: var(--ink); font-size: 13px; }
.jobrow .when, .jobrow .stat2 { color: var(--dim); font-size: 11px; }
.jobrow .stat2 b { color: var(--ok); }

.run { max-width: 1100px; margin: 40px auto; padding: 0 28px; }
.run-head { margin-bottom: 32px; }
.run-head h1 { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; }
.run-meta { margin-top: 8px; color: var(--dim); font-size: 12px; }
.run-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 32px; overflow: hidden; }
.run-card { background: var(--panel); padding: 16px; position: relative; }
.run-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.run-card .av { font-size: 20px; color: var(--c); }
.run-card .nm { font-family: var(--display); font-weight: 700; margin-top: 4px; }
.run-card .ln { color: var(--ink); opacity: .75; font-size: 11px; margin-top: 6px; }
.run-card .n2 { margin-top: 10px; display: flex; gap: 14px; font-size: 11px; color: var(--dim); }
.run-card .n2 b { color: var(--c); }
.run-tl { display: flex; flex-direction: column; gap: 8px; }
.run-tl .ev { padding: 10px 14px; background: var(--panel); border-left: 3px solid var(--c, var(--pink)); border-radius: 4px; font-size: 12px; }
.run-tl .ev .when { color: var(--dim2); font-size: 10px; margin-right: 8px; }
.run-tl .ev .who { color: var(--c, var(--pink)); font-weight: 700; margin-right: 8px; }
.run-share { margin-top: 32px; display: flex; gap: 10px; }
.run-share button { padding: 8px 14px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; cursor: pointer; font: inherit; font-family: var(--mono); font-size: 11px; }
.run-share button:hover { border-color: var(--pink); color: var(--pink); }

/* ═══ docs ═════════════════════════════════════════════════════════ */
.doc { max-width: 820px; margin: 40px auto; padding: 0 28px; }
.doc h1 { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.doc .lead { font-size: 16px; color: #c5c9d4; margin-top: 16px; line-height: 1.65; }
.doc h2 { font-family: var(--display); font-size: 22px; margin-top: 44px; margin-bottom: 14px; color: var(--pink); font-weight: 600; }
.doc h2::before { content: "◖ "; }
.doc ol, .doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; line-height: 1.65; }
.doc b { color: var(--pink); font-weight: 600; }
.doc code { background: var(--panel); padding: 2px 6px; border-radius: 3px; font-size: 11px; color: var(--cyan); border: 1px solid var(--line); }
.doctbl { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.doctbl th, .doctbl td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.doctbl th { color: var(--pink); font-family: var(--display); font-weight: 600; }
.doctbl td code { font-size: 10px; }

@media (max-width: 900px) {
  .mind-hero { grid-template-columns: 1fr; }
  .mh-stats { justify-content: flex-start; }
  .memcols { grid-template-columns: 1fr; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .feed { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; grid-template-rows: 50vh 1fr; }
  .side { border-left: none; border-top: 1px solid var(--line); grid-template-rows: 160px auto 1fr; }
  body.console { overflow-y: auto; height: auto; }
}
