/* ═══════════════════════════════════════════════════════════════════════════
   RBQ · 绒布球生态 (rbq.my) — Flagship Showcase & Interactive Onboarding
   Obsidian Velvet × Champagne Gold × Moonlight Indigo (Dark)
   Warm Alabaster Paper × Sumi Ink (Light) · Zero External CDN
   ═══════════════════════════════════════════════════════════════════════════ */

:root,
:root[data-theme="dark"] {
  --bg: #07080c;
  --bg-soft: #0c0e16;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-solid: #10131d;
  --surface-elevated: #141826;
  --bar-bg: rgba(7, 8, 12, 0.72);
  --input-bg: rgba(255, 255, 255, 0.042);

  --text: #cbd5e1;
  --text-strong: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --border: rgba(255, 255, 255, 0.08);
  --border-top: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(255, 255, 255, 0.20);

  --indigo: #8d99ff;
  --indigo-soft: rgba(141, 153, 255, 0.13);
  --indigo-border: rgba(141, 153, 255, 0.30);

  --gold: #ebd08f;
  --gold-soft: rgba(235, 208, 143, 0.12);
  --gold-border: rgba(235, 208, 143, 0.30);

  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --warning: #fbbf24;
  --danger: #f87171;

  --luminous-bg: #f8fafc;
  --luminous-hover: #ffffff;
  --luminous-text: #07080c;
  --luminous-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 10px 30px rgba(248, 250, 252, 0.16);

  --grid-dot: rgba(255, 255, 255, 0.05);
  --spotlight: rgba(255, 255, 255, 0.05);
  --shadow-stage: 0 32px 90px rgba(0, 0, 0, 0.68);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 40px rgba(0, 0, 0, 0.36);
  --shadow-pop: 0 24px 64px rgba(0, 0, 0, 0.65);
}

:root[data-theme="light"] {
  --bg: #f7f6f2;
  --bg-soft: #efede6;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-2: rgba(15, 23, 42, 0.045);
  --surface-solid: #ffffff;
  --surface-elevated: #ffffff;
  --bar-bg: rgba(247, 246, 242, 0.80);
  --input-bg: #f3f2ed;

  --text: #334155;
  --text-strong: #0f172a;
  --text-dim: #475569;
  --text-muted: #64748b;

  --border: rgba(15, 23, 42, 0.085);
  --border-top: rgba(15, 23, 42, 0.10);
  --border-hover: rgba(15, 23, 42, 0.18);

  --indigo: #4655dc;
  --indigo-soft: rgba(70, 85, 220, 0.09);
  --indigo-border: rgba(70, 85, 220, 0.24);

  --gold: #a67518;
  --gold-soft: rgba(166, 117, 24, 0.10);
  --gold-border: rgba(166, 117, 24, 0.25);

  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.12);
  --warning: #b45309;
  --danger: #dc2626;

  --luminous-bg: #0f172a;
  --luminous-hover: #1e293b;
  --luminous-text: #ffffff;
  --luminous-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);

  --grid-dot: rgba(15, 23, 42, 0.045);
  --spotlight: rgba(70, 85, 220, 0.04);
  --shadow-stage: 0 28px 72px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 2px 6px rgba(15, 23, 42, 0.03), 0 14px 34px rgba(15, 23, 42, 0.055);
  --shadow-pop: 0 20px 56px rgba(15, 23, 42, 0.15);
}

/* ── Reset & Typography ── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.mono {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.ico {
  display: inline-block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-gold { color: var(--gold); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sculptural Ambient Light Backdrop ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-aurora {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(141, 153, 255, 0.16) 0%, rgba(99, 102, 241, 0.06) 42%, transparent 72%);
  filter: blur(55px);
}

.ambient-warm {
  position: absolute;
  top: 260px;
  left: 50%;
  transform: translateX(-15%);
  width: 820px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(235, 208, 143, 0.09) 0%, transparent 70%);
  filter: blur(70px);
}

:root[data-theme="light"] .ambient-aurora {
  background: radial-gradient(ellipse at center, rgba(70, 85, 220, 0.08) 0%, transparent 70%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 18%, rgba(0, 0, 0, 0.75), transparent 100%);
}

/* Spotlight Card Sheen */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight), transparent 65%);
  transition: opacity 240ms ease;
}

.spotlight-card:hover::after { opacity: 1; }

/* Status Dots */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--text-muted);
}

.dot.is-online   { background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-soft); }
.dot.is-slow     { background: var(--warning); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16); }
.dot.is-offline  { background: var(--danger); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16); }
.dot.is-checking { background: var(--indigo); animation: pulse 1.2s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.spinning { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.btn-lg { padding: 12px 24px; font-size: 0.94rem; }
.btn-sm { padding: 9px 17px; font-size: 0.84rem; }
.btn-xs { padding: 6px 12px; font-size: 0.76rem; }

.btn-luminous {
  background: var(--luminous-bg);
  color: var(--luminous-text);
  box-shadow: var(--luminous-shadow);
}

.btn-luminous:hover {
  background: var(--luminous-hover);
  transform: translateY(-1px);
}

.btn-glass {
  background: var(--surface-2);
  color: var(--text-strong);
  border: 1px solid var(--border-top);
}

.btn-glass:hover {
  border-color: var(--border-hover);
  background: var(--surface);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   0. FLOATING FLAGSHIP TOPBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-crest {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #191d2e, #0f121d);
  color: #a5b0ff;
  border: 1px solid rgba(141, 153, 255, 0.35);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 780;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.brand-domain {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 520;
  color: var(--text-dim);
  transition: color 150ms ease, background 150ms ease;
}

.top-nav a:hover {
  color: var(--text-strong);
  background: var(--surface-2);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmd-trigger {
  height: 32px;
  padding: 0 9px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 150ms ease, border-color 150ms ease;
}

.cmd-trigger:hover {
  color: var(--text-strong);
  border-color: var(--border-hover);
}

.cmd-trigger kbd {
  font-size: 0.7rem;
  font-weight: 650;
}

.radar-anchor { position: relative; }

.route-pill {
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 150ms ease, border-color 150ms ease;
}

.route-pill:hover,
.route-pill[aria-expanded="true"] {
  color: var(--text-strong);
  border-color: var(--border-hover);
}

.route-pill .chevron { opacity: 0.6; transition: transform 150ms ease; }
.route-pill[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Floating Radar Popover */
.radar-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 332px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-pop);
  z-index: 60;
  animation: fadeDown 150ms ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pop-title { font-size: 0.84rem; font-weight: 700; color: var(--text-strong); }
.pop-sub   { font-size: 0.71rem; color: var(--text-muted); }

.pop-reprobe {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.pop-nodes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

.pop-node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  transition: border-color 140ms ease;
}

.pop-node-row:hover { border-color: var(--indigo-border); }
.pop-node-row.is-best {
  border-color: rgba(16, 185, 129, 0.34);
  background: linear-gradient(90deg, var(--emerald-soft), var(--input-bg) 65%);
}

.pop-node-host { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 650; color: var(--text-strong); }
.pop-node-role { font-size: 0.7rem; color: var(--text-muted); padding-left: 14px; }
.pop-node-ms   { text-align: right; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.pop-node-ms.good { color: var(--emerald); }
.pop-node-ms.warn { color: var(--warning); }
.pop-node-ms.bad  { color: var(--danger); }
.pop-node-tag { display: block; font-size: 0.65rem; font-weight: 600; color: var(--text-muted); }
.pop-node-tag.best { color: var(--emerald); }

.pop-api { padding-top: 12px; border-top: 1px solid var(--border); }
.pop-api-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 7px; }
.pop-seg { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--input-bg); border: 1px solid var(--border); }
.pop-seg-btn { padding: 2px 8px; border-radius: 5px; font-size: 0.69rem; font-weight: 600; color: var(--text-muted); }
.pop-seg-btn.active { background: var(--surface-solid); color: var(--text-strong); }
.pop-api-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: 9px; background: var(--input-bg); border: 1px solid var(--border); }
.pop-api-row code { font-size: 0.71rem; color: var(--emerald); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-copy-btn { padding: 3px 9px; border-radius: 6px; font-size: 0.71rem; font-weight: 650; color: var(--text-strong); background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 150ms ease, border-color 150ms ease;
}

.icon-btn:hover { color: var(--text-strong); border-color: var(--border-hover); }

.top-console-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0 6px;
}

.top-console-link:hover { color: var(--text-strong); }

.btn-top-cta {
  height: 33px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.81rem;
  font-weight: 680;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--luminous-bg);
  color: var(--luminous-text);
  transition: transform 150ms ease, background 150ms ease;
}

.btn-top-cta:hover {
  background: var(--luminous-hover);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. HERO + INTERACTIVE 3-MODE SHOWCASE STAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-section {
  padding: 46px 0 56px;
}

.hero-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow-pill {
  max-width: min(640px, 100%);
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-top);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  transition: border-color 160ms ease, color 160ms ease;
}

.eyebrow-pill:hover {
  border-color: var(--indigo-border);
  color: var(--text-strong);
}

.eyebrow-badge {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
}

.eyebrow-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow-arrow { flex-shrink: 0; opacity: 0.65; }

.hero-display {
  font-size: clamp(2.35rem, 5.1vw, 4rem);
  font-weight: 820;
  line-height: 1.13;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  margin-bottom: 20px;
}

.hero-display-shine {
  background: linear-gradient(120deg, var(--gold) 0%, #ffffff 48%, var(--indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root[data-theme="light"] .hero-display-shine {
  background: linear-gradient(120deg, #9a6710 0%, #1e293b 45%, #4655dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  font-size: 1.03rem;
  line-height: 1.78;
  color: var(--text-dim);
  max-width: 650px;
  margin-bottom: 30px;
}

.hero-lead strong {
  color: var(--text-strong);
  font-weight: 680;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Interactive Stage Window */
.stage-frame {
  position: relative;
  padding: 8px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-top);
  box-shadow: var(--shadow-stage);
}

.stage-glow {
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(125deg, rgba(141, 153, 255, 0.18), rgba(235, 208, 143, 0.12));
  filter: blur(36px);
  opacity: 0.7;
  pointer-events: none;
}

.stage-window {
  border-radius: 19px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  overflow: hidden;
}

.stage-bar {
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.stage-dots {
  display: inline-flex;
  gap: 7px;
}

.stage-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}

.stage-dots span:nth-child(1) { background: rgba(248, 113, 113, 0.65); }
.stage-dots span:nth-child(2) { background: rgba(251, 191, 36, 0.65); }
.stage-dots span:nth-child(3) { background: rgba(16, 185, 129, 0.65); }

.stage-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  gap: 3px;
}

.stage-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 640;
  color: var(--text-dim);
  transition: all 160ms ease;
}

.stage-tab:hover { color: var(--text-strong); }

.stage-tab.active {
  background: var(--luminous-bg);
  color: var(--luminous-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.stage-meta {
  font-size: 0.73rem;
  color: var(--emerald);
}

.stage-panel {
  animation: stageFade 240ms ease;
}

@keyframes stageFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panel 1 & Panel 3 Shared Showcase Grid */
.studio-showcase,
.market-showcase {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  min-height: 440px;
}

.market-showcase {
  grid-template-columns: 0.88fr 1.25fr;
}

.tavern-showcase {
  display: grid;
  grid-template-columns: 0.96fr 1.28fr;
  min-height: 440px;
}

.studio-art-wrap,
.tavern-manga-wrap,
.market-poster-wrap {
  position: relative;
  overflow: hidden;
  background: #080a12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-art-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 470px;
  object-fit: cover;
}

.market-poster-img {
  width: 100%;
  height: 100%;
  max-height: 470px;
  object-fit: cover;
  object-position: center top;
}

.art-hud-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
  color: #f8fafc;
  background: rgba(8, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.art-hud-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hud-prompt-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ebd08f;
  margin-bottom: 6px;
}

.hud-prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hud-prompt-tags span {
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 6px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Studio Inspector Right Pane */
.studio-inspector,
.tavern-chat-side {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insp-kicker {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.studio-inspector h3,
.tavern-chat-side h3 {
  font-size: 1.32rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.3;
  margin-bottom: 10px;
}

.studio-inspector > p,
.tavern-chat-side > p {
  font-size: 0.87rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.insp-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 13px;
}

.insp-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.insp-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--indigo);
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-border);
  margin-top: 2px;
}

.insp-features strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-strong);
  margin-bottom: 1px;
}

.insp-features span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.insp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* SillyTavern Chat Simulation Card */
.chat-sim-card {
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--input-bg);
  border: 1px solid var(--border-top);
  margin-bottom: 22px;
}

.chat-sim-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0b0d14;
  background: linear-gradient(135deg, var(--gold), #a5b0ff);
}

.chat-sim-head strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-strong);
}

.chat-sim-head span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chat-lock-tag {
  margin-left: auto;
  font-size: 0.68rem !important;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--gold) !important;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
}

.chat-sim-quote {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-strong);
  margin-bottom: 11px;
}

.chat-sim-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--indigo);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. SHARED SECTION HEADERS & INTERACTIVE PERSONA WIZARD
   ═══════════════════════════════════════════════════════════════════════════ */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-end {
  padding-bottom: 84px;
}

.sec-head {
  max-width: 680px;
  margin-bottom: 34px;
}

.sec-kicker {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--indigo);
  margin-bottom: 8px;
}

.sec-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.sec-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Persona Selector Cards */
.persona-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.persona-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.persona-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.persona-card.active {
  background: radial-gradient(ellipse 80% 70% at 100% 0%, var(--indigo-soft), transparent 72%), var(--surface-solid);
  border-color: var(--indigo);
  box-shadow: 0 0 0 1px var(--indigo-border), var(--shadow-card);
}

.persona-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--indigo);
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-border);
}

.persona-ico.is-gold { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-border); }
.persona-ico.is-emerald { color: var(--emerald); background: var(--emerald-soft); border-color: rgba(16, 185, 129, 0.3); }

.persona-tag {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 4px;
}

.persona-tag.is-gold { color: var(--gold); }
.persona-tag.is-emerald { color: var(--emerald); }

.persona-meta h3 {
  font-size: 1.02rem;
  font-weight: 760;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.persona-meta p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-dim);
}

/* Guided Track Container */
.guide-track {
  padding: 26px;
  border-radius: 22px;
  background: var(--surface-solid);
  border: 1px solid var(--border-top);
  box-shadow: var(--shadow-card);
  animation: stageFade 200ms ease;
}

.ext-chooser {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.ext-chooser-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-strong);
}

.ext-chooser-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.ext-pill {
  flex: 1 1 240px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}

.ext-pill strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-strong);
}

.ext-pill span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ext-pill.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.track-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.track-step {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.track-step.is-highlight {
  background: radial-gradient(ellipse 80% 70% at 100% 0%, var(--indigo-soft), transparent 72%), var(--input-bg);
  border-color: var(--indigo-border);
}

.step-badge {
  align-self: flex-start;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--indigo);
  background: var(--indigo-soft);
  margin-bottom: 12px;
}

.track-step h4 {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.track-step p {
  font-size: 0.82rem;
  line-height: 1.62;
  color: var(--text-dim);
  margin-bottom: 18px;
  flex: 1;
}

.step-btn-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.81rem;
  font-weight: 650;
  color: var(--text-strong);
  background: var(--surface-solid);
  border: 1px solid var(--border-hover);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.step-cta:hover {
  border-color: var(--indigo);
  transform: translateY(-1px);
}

.step-cta.is-solid {
  background: var(--luminous-bg);
  color: var(--luminous-text);
  border-color: transparent;
}

/* Veteran Fast-Lane Grid */
.vet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vet-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  transition: transform 150ms ease, border-color 150ms ease;
}

.vet-tile:hover {
  transform: translateY(-2px);
  border-color: var(--indigo-border);
}

.vet-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--indigo);
  background: var(--indigo-soft);
}

.vet-ico.is-gold { color: var(--gold); background: var(--gold-soft); }

.vet-tile strong { display: block; font-size: 0.89rem; color: var(--text-strong); }
.vet-tile span   { display: block; font-size: 0.75rem; color: var(--text-muted); }
.vet-arr { margin-left: auto; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   3. ARCHITECTURAL ECOSYSTEM BENTO
   ═══════════════════════════════════════════════════════════════════════════ */
.bento-showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.span-7  { grid-column: span 7; }
.span-5  { grid-column: span 5; }
.span-12 { grid-column: span 12; }

.bento-box {
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
  box-shadow: var(--shadow-card);
}

.bento-pulse {
  background: radial-gradient(ellipse 80% 70% at 100% 0%, var(--gold-soft), transparent 72%), var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.box-kicker {
  display: block;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: var(--indigo);
  margin-bottom: 4px;
}

.box-kicker.is-gold { color: var(--gold); }

.bento-box h3 {
  font-size: 1.2rem;
  font-weight: 780;
  color: var(--text-strong);
  letter-spacing: -0.015em;
}

.bento-box-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.bento-nodes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bnode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  transition: border-color 150ms ease;
}

.bnode-card:hover { border-color: var(--border-hover); }
.bnode-card.is-best {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(90deg, var(--emerald-soft), var(--input-bg) 68%);
}

.bnode-host {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 680;
  color: var(--text-strong);
}

.bnode-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-left: 14px;
}

.bnode-ms {
  text-align: right;
  font-size: 0.8rem;
  font-weight: 750;
  flex-shrink: 0;
}

.bnode-ms.good { color: var(--emerald); }
.bnode-ms.warn { color: var(--warning); }
.bnode-ms.bad  { color: var(--danger); }

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--emerald);
  background: var(--emerald-soft);
}

.pulse-hero-num {
  padding: 16px 0;
}

.pulse-num-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pulse-hero-num strong {
  font-size: clamp(2.2rem, 3.6vw, 2.9rem);
  font-weight: 820;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-strong);
}

.pulse-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pulse-cell {
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.pulse-cell span {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.pulse-cell strong {
  font-size: 1.15rem;
  font-weight: 760;
  color: var(--text-strong);
}

/* Span-12 Open Source Matrix Split */
.bento-eco-split {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.bento-eco-left h3 { margin-bottom: 10px; }
.bento-eco-left p {
  font-size: 0.87rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.bento-eco-left strong { color: var(--text-strong); }

.bento-eco-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bento-eco-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plugin-pill-chip {
  padding: 8px 13px;
  border-radius: 11px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  font-size: 0.79rem;
  font-weight: 620;
  color: var(--text-strong);
  transition: border-color 150ms ease, transform 150ms ease;
}

.plugin-pill-chip:hover {
  border-color: var(--indigo-border);
  transform: translateY(-1px);
}

.plugin-pill-chip span {
  color: var(--text-muted);
  font-weight: 450;
  margin-left: 5px;
  font-size: 0.74rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. COMMUNITY BANNER & FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.comm-banner {
  padding: 36px 40px;
  border-radius: 24px;
  background: radial-gradient(ellipse 65% 80% at 100% 50%, var(--gold-soft), transparent 70%),
              radial-gradient(ellipse 55% 80% at 0% 50%, var(--indigo-soft), transparent 70%),
              var(--surface-solid);
  border: 1px solid var(--border-top);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.comm-banner-copy {
  max-width: 560px;
}

.comm-banner-copy h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.comm-banner-copy p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.qq-big-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--input-bg);
  border: 1px solid var(--gold-border);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}

.qq-big-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.qq-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.qq-big-btn strong {
  font-size: 1.32rem;
  font-weight: 820;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.qq-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.81rem;
  font-weight: 700;
  background: var(--luminous-bg);
  color: var(--luminous-text);
}

/* Footer */
.footer {
  padding: 26px 0 36px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--indigo);
  background: var(--indigo-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover { color: var(--text-strong); }

/* ═══════════════════════════════════════════════════════════════════════════
   5. OVERLAYS: ⌘K COMMAND DIALOG & MODAL SHEETS
   ═══════════════════════════════════════════════════════════════════════════ */
.cmd-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 11vh;
  background: rgba(4, 5, 9, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-backdrop {
  align-items: center;
  padding-top: 20px;
}

.cmd-dialog {
  width: 100%;
  max-width: 580px;
  border-radius: 18px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: fadeDown 140ms ease;
}

.cmd-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.cmd-ico { color: var(--text-muted); }

.cmd-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.94rem;
  color: var(--text-strong);
}

.cmd-input::placeholder { color: var(--text-muted); }

.cmd-esc {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--text-muted);
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.cmd-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
}

.cmd-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 7px 10px 4px;
}

.cmd-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  text-align: left;
}

.cmd-item:hover,
.cmd-item.is-active { background: var(--indigo-soft); }

.cmd-item-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cmd-item-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  flex-shrink: 0;
}

.cmd-item.is-active .cmd-item-ico { color: var(--indigo); border-color: var(--indigo-border); }
.cmd-item-text { min-width: 0; }
.cmd-item-name { display: block; font-size: 0.85rem; font-weight: 650; color: var(--text-strong); }
.cmd-item-desc { display: block; font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-item-hint { font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; }
.cmd-empty { padding: 20px; text-align: center; font-size: 0.83rem; color: var(--text-muted); }

/* Ecosystem & Notice Modal Sheets */
.sheet {
  width: 100%;
  max-width: 900px;
  max-height: calc(100dvh - 44px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: fadeDown 150ms ease;
}

.sheet-sm { max-width: 580px; }

.sheet-head {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.sheet-head h2 { font-size: 1.04rem; font-weight: 760; color: var(--text-strong); }
.sheet-head p  { font-size: 0.78rem; color: var(--text-muted); }

.sheet-body { padding: 20px 22px 24px; overflow-y: auto; }

.eco-ext-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.eco-card { display: flex; flex-direction: column; padding: 18px; border-radius: 15px; background: var(--input-bg); border: 1px solid var(--border); }
.eco-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.eco-pill { font-size: 0.71rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; color: var(--indigo); background: var(--indigo-soft); border: 1px solid var(--indigo-border); }
.eco-pill.is-gold { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-border); }
.eco-ver { font-size: 0.72rem; color: var(--text-muted); }
.eco-card h3 { font-size: 1.04rem; font-weight: 760; color: var(--text-strong); margin-bottom: 6px; }
.eco-slug { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); margin-left: 6px; }
.eco-summary { font-size: 0.81rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; }
.eco-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: 0.79rem; }
.eco-list li { display: flex; align-items: flex-start; gap: 7px; }
.eco-list .ico { color: var(--emerald); margin-top: 2px; }
.eco-install { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--surface-solid); border: 1px solid var(--border); margin-bottom: 10px; }
.eco-install code { font-size: 0.73rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eco-links { display: flex; gap: 8px; flex-wrap: wrap; }

.eco-plugins { padding: 16px; border-radius: 15px; background: var(--input-bg); border: 1px solid var(--border); }
.eco-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.eco-sub-head h3 { font-size: 0.92rem; font-weight: 750; color: var(--text-strong); }
.eco-sub-head p  { font-size: 0.76rem; color: var(--text-muted); }
.count-tag { font-size: 0.7rem; padding: 1px 7px; border-radius: 999px; color: var(--indigo); background: var(--indigo-soft); margin-left: 4px; }
.eco-plugins-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.eco-plugin-item { padding: 9px 10px; border-radius: 9px; background: var(--surface-solid); border: 1px solid var(--border); }
.eco-plugin-item strong { display: block; font-size: 0.77rem; color: var(--text-strong); }
.eco-plugin-item span   { display: block; font-size: 0.7rem; color: var(--text-muted); }

.eco-labs { margin-top: 14px; }
.eco-labs-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.73rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.eco-labs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eco-lab-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border); }
.eco-lab-card strong { font-size: 0.84rem; color: var(--text-strong); }
.eco-lab-card p { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }

.notice-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.notice-box { padding: 14px 16px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border); }
.notice-box.is-pinned { border-color: var(--gold-border); }
.notice-box-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.79rem; font-weight: 700; color: var(--text-strong); margin-bottom: 6px; }
.notice-box-src  { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); }
.notice-box-text { font-size: 0.83rem; line-height: 1.68; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.notice-box-text a { color: var(--indigo); text-decoration: underline; }
.notice-empty { padding: 14px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); }

.comm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.comm-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border); }
.comm-card strong { display: block; font-size: 0.83rem; color: var(--text-strong); }
.comm-card span   { display: block; font-size: 0.74rem; color: var(--text-muted); }

/* Toast */
.toast-stack { position: fixed; right: 20px; bottom: 22px; z-index: 95; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 12px; font-size: 0.82rem; font-weight: 650; color: var(--text-strong); background: var(--surface-elevated); border: 1px solid rgba(16, 185, 129, 0.35); box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(10px); transition: opacity 160ms ease, transform 160ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast .ico { color: var(--emerald); }

/* ═══════════════════════════════════════════════════════════════════════════
   6. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .top-nav,
  .top-console-link,
  .stage-meta { display: none; }

  .studio-showcase,
  .tavern-showcase,
  .market-showcase,
  .persona-tabs,
  .track-steps,
  .bento-eco-split {
    grid-template-columns: 1fr;
  }

  .span-7,
  .span-5 { grid-column: span 12; }

  .vet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-plugins-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .topbar-inner { gap: 8px; }
  .top-actions { gap: 6px; }
  .brand-title { font-size: 0.9rem; }
  .route-pill { padding: 0 9px; font-size: 0.72rem; }
  .btn-top-cta { padding: 0 11px; font-size: 0.76rem; }
  .brand-sub,
  .brand-domain,
  .cmd-trigger,
  .stage-dots,
  .art-hud-top .hud-chip:nth-child(2) { display: none; }

  .hero-section { padding: 30px 0 36px; }
  .hero-display { font-size: clamp(1.88rem, 7.6vw, 2.6rem); }
  .stage-bar { justify-content: center; padding: 9px 10px; }
  .stage-tabs { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .stage-tab { padding: 6px 12px; font-size: 0.76rem; flex-shrink: 0; }

  .studio-inspector,
  .tavern-chat-side { padding: 22px 18px; }
  .guide-track,
  .bento-box,
  .comm-banner { padding: 22px 18px; }

  .bento-nodes-grid,
  .vet-grid,
  .eco-ext-grid,
  .eco-labs-grid,
  .comm-grid { grid-template-columns: 1fr; }

  .eco-plugins-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-popover { width: min(320px, calc(100vw - 32px)); right: -56px; }
  .qq-big-btn { width: 100%; justify-content: space-between; }
  .toast-stack { left: 16px; right: 16px; bottom: 16px; }
  .toast { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
