:root {
  --bg-void: #070301;
  --surface-wire: #160D08;
  --surface-elevated: #1D110A;
  --neon-core: #FFF3D6;
  --neon-amber: #FF7A1A;
  --neon-ember: #B83800;
  --text-body: #E8DDD2;
  --text-muted: #8C7365;
  --text-dim: #5C493E;
  --border-subtle: rgba(255, 122, 26, 0.16);
  --border-warm: rgba(255, 122, 26, 0.42);
  --font-sans: 'Plus Jakarta Sans', 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: var(--bg-void);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtle dark-room halation — ~90% quiet void preserved */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 122, 26, 0.09) 0%, rgba(184, 56, 0, 0.03) 26%, transparent 52%),
    radial-gradient(circle at 88% 92%, rgba(184, 56, 0, 0.07) 0%, transparent 45%);
}

.neon-text {
  color: var(--neon-core);
  text-shadow:
    0 0 6px rgba(255, 122, 26, 0.9),
    0 0 18px rgba(255, 122, 26, 0.6),
    0 0 40px rgba(184, 56, 0, 0.45);
}

.neon-border {
  border: 1px solid rgba(255, 122, 26, 0.72) !important;
  box-shadow:
    inset 0 0 8px rgba(255, 122, 26, 0.22),
    0 0 18px rgba(255, 122, 26, 0.28);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1420px;
  margin: 0 auto;
  padding: 28px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  filter: drop-shadow(0 0 14px rgba(255, 122, 26, 0.32));
}

.brand-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.brand-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.15;
}

.telemetry-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.telemetry-pill {
  background: var(--surface-wire);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 128px;
}

.t-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.t-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
}

/* Mode Nav */
.mode-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mode-tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 160ms ease;
}

.mode-tab:hover {
  color: var(--neon-core);
  background: rgba(22, 13, 8, 0.7);
  border-color: var(--border-subtle);
}

.mode-tab.active {
  background: var(--surface-wire);
  color: var(--neon-core);
  border-color: rgba(255, 122, 26, 0.65);
  box-shadow: inset 0 0 8px rgba(255, 122, 26, 0.18), 0 0 14px rgba(255, 122, 26, 0.22);
}

.mode-tab.active .tab-spark {
  color: var(--neon-core);
  text-shadow: 0 0 8px rgba(255, 122, 26, 0.9);
}

.nav-spacer {
  flex: 1;
}

.hub-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-amber);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 122, 26, 0.24);
  transition: all 160ms ease;
}

.hub-link:hover {
  color: var(--neon-core);
  border-color: rgba(255, 122, 26, 0.7);
  background: rgba(255, 122, 26, 0.08);
}

/* Views */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* Switchboard Layout */
.switchboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.switchboard-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.grid-panel,
.banked-panel,
.inspector-panel,
.vault-sidebar,
.vault-reader,
.social-card {
  background: rgba(22, 13, 8, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 22px;
}

.node-spark-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.drop-mult {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon-core);
  background: rgba(255, 122, 26, 0.22);
  border: 1px solid rgba(255, 122, 26, 0.65);
  border-radius: 999px;
  padding: 1px 6px;
}

.drop-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.drop-tab {
  appearance: none;
  background: rgba(7, 3, 1, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 140ms ease;
}

.drop-tab:hover {
  color: var(--neon-core);
  border-color: var(--border-warm);
}

.drop-tab.active {
  color: var(--neon-core);
  border-color: var(--neon-amber);
  background: rgba(255, 122, 26, 0.14);
}

.banked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.banked-card {
  appearance: none;
  text-align: left;
  background: rgba(7, 3, 1, 0.82);
  border: 1px dashed rgba(255, 122, 26, 0.42);
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 150ms ease;
}

.banked-card:hover,
.banked-card.selected {
  border-style: solid;
  border-color: var(--neon-amber);
  background: rgba(255, 122, 26, 0.09);
  box-shadow: 0 0 14px rgba(255, 122, 26, 0.2);
}

.banked-empty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.banked-empty code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--neon-core);
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: 8px;
}

/* Telemetry View */
.telemetry-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: rgba(22, 13, 8, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
  color: var(--neon-core);
  line-height: 1.1;
}

.telemetry-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.metric-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.metric-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.metric-row-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-body);
}

.metric-bar-rail {
  height: 5px;
  background: rgba(140, 115, 101, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-ember), var(--neon-amber));
  border-radius: 999px;
}

.feed-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin-top: 12px;
}

.feed-table th,
.feed-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 122, 26, 0.12);
  text-align: left;
}

.feed-table th {
  color: var(--neon-amber);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feed-table td {
  color: var(--text-body);
}

@media (max-width: 1020px) {
  .telemetry-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .telemetry-panels {
    grid-template-columns: 1fr;
  }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.panel-header.compact {
  align-items: center;
  margin-bottom: 14px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--neon-amber);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-title {
  font-size: 19px;
  font-weight: 400;
  color: var(--neon-core);
  letter-spacing: -0.01em;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  appearance: none;
  background: rgba(7, 3, 1, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 140ms ease;
}

.filter-pill:hover {
  color: var(--text-body);
  border-color: var(--border-warm);
}

.filter-pill.active {
  color: var(--neon-core);
  border-color: var(--neon-amber);
  background: rgba(255, 122, 26, 0.14);
}

.progress-rail {
  width: 100%;
  height: 4px;
  background: rgba(140, 115, 101, 0.16);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-ember), var(--neon-amber), var(--neon-core));
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.8);
  transition: width 300ms ease;
}

/* 5x5 Switchboard Grid */
.node-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.node-card {
  position: relative;
  appearance: none;
  text-align: left;
  background: rgba(7, 3, 1, 0.85);
  border: 1px solid rgba(140, 115, 101, 0.18);
  border-radius: 14px;
  padding: 14px 13px 13px;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.node-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.45);
  background: rgba(22, 13, 8, 0.92);
}

.node-card.selected {
  border-color: rgba(255, 122, 26, 0.85);
  box-shadow: inset 0 0 10px rgba(255, 122, 26, 0.22), 0 0 16px rgba(255, 122, 26, 0.24);
}

.node-card.status-shipped {
  background: radial-gradient(circle at 80% 15%, rgba(255, 122, 26, 0.16), rgba(22, 13, 8, 0.95) 68%);
  border-color: rgba(255, 122, 26, 0.72);
  box-shadow: inset 0 0 10px rgba(255, 122, 26, 0.2), 0 0 18px rgba(255, 122, 26, 0.28);
}

.node-card.status-building {
  border-color: rgba(255, 122, 26, 0.52);
  background: rgba(255, 122, 26, 0.06);
}

.node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.node-day {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.node-card.status-shipped .node-day {
  color: var(--neon-amber);
}

.node-spark {
  font-size: 18px;
  line-height: 1;
  color: var(--text-dim);
}

.node-card.status-shipped .node-spark {
  color: var(--neon-core);
  text-shadow:
    0 0 6px rgba(255, 122, 26, 0.95),
    0 0 16px rgba(255, 122, 26, 0.65);
}

.node-card.status-building .node-spark {
  color: var(--neon-amber);
}

.node-title {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.32;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.node-card.status-shipped .node-title {
  color: var(--neon-core);
}

.node-act {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.node-card.status-shipped .node-act {
  color: rgba(255, 243, 214, 0.65);
}

/* Inspector Panel */
.inspector-panel {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inspector-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  background: rgba(7, 3, 1, 0.7);
}

.badge-live {
  color: var(--neon-core);
  border-color: var(--neon-amber);
  background: rgba(255, 122, 26, 0.16);
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.25);
}

.inspector-title {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.22;
}

.inspector-tagline {
  font-size: 14.5px;
  color: #C9B7A8;
  line-height: 1.6;
}

.inspector-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inspector-list li {
  font-size: 13.5px;
  color: var(--text-body);
  padding-left: 18px;
  position: relative;
}

.inspector-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--neon-amber);
  font-size: 11px;
  top: 2px;
}

.cmd-box {
  background: var(--bg-void);
  border: 1px solid rgba(255, 122, 26, 0.36);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cmd-box code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-core);
  word-break: break-all;
}

.btn {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 122, 26, 0.55);
  background: rgba(255, 122, 26, 0.12);
  color: var(--neon-core);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 150ms ease;
}

.btn:hover {
  background: rgba(255, 122, 26, 0.24);
  box-shadow: 0 0 14px rgba(255, 122, 26, 0.3);
}

.btn-ghost {
  background: rgba(7, 3, 1, 0.7);
  border-color: var(--border-subtle);
  color: var(--text-body);
}

.btn-ghost:hover {
  border-color: var(--border-warm);
  color: var(--neon-core);
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Vault View */
.vault-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.vault-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 210px);
}

.privacy-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: 6px;
}

.search-input,
.neon-select {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--neon-core);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
}

.search-input:focus,
.neon-select:focus {
  border-color: var(--neon-amber);
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.2);
}

.vault-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
}

.vault-item {
  appearance: none;
  text-align: left;
  width: 100%;
  background: rgba(7, 3, 1, 0.65);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 140ms ease;
}

.vault-item:hover {
  border-color: var(--border-subtle);
  background: rgba(22, 13, 8, 0.9);
}

.vault-item.active {
  border-color: rgba(255, 122, 26, 0.65);
  background: rgba(255, 122, 26, 0.1);
}

.vault-item-title {
  font-size: 13.5px;
  color: var(--neon-core);
  font-weight: 400;
  margin-bottom: 3px;
}

.vault-item-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.vault-reader {
  min-height: 560px;
  padding: 28px 32px;
}

.vault-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.md-body h1 {
  font-size: 26px;
  font-weight: 300;
  color: var(--neon-core);
  margin-bottom: 16px;
  text-shadow: 0 0 14px rgba(255, 122, 26, 0.45);
}

.md-body h2 {
  font-size: 17px;
  font-weight: 500;
  color: var(--neon-amber);
  margin: 24px 0 10px;
}

.md-body h3 {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--neon-core);
  margin: 18px 0 8px;
}

.md-body p {
  margin-bottom: 12px;
  color: var(--text-body);
  font-size: 14.5px;
}

.md-body ul, .md-body ol {
  margin: 0 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
}

.md-body blockquote {
  border-left: 2px solid var(--neon-amber);
  background: rgba(7, 3, 1, 0.65);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 14px 0;
  color: #C9B7A8;
}

.md-body pre {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 14px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--neon-core);
}

.md-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(7, 3, 1, 0.8);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--neon-core);
}

.md-body pre code {
  background: transparent;
  padding: 0;
}

.md-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.md-body th, .md-body td {
  border: 1px solid var(--border-subtle);
  padding: 9px 11px;
  text-align: left;
}

.md-body th {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-amber);
  background: rgba(7, 3, 1, 0.6);
}

.wikilink {
  color: var(--neon-amber);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 122, 26, 0.55);
  cursor: pointer;
}

.wikilink:hover {
  color: var(--neon-core);
  border-bottom-color: var(--neon-core);
}

.backlinks-box {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* Social Studio */
.social-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.social-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.neon-select {
  width: auto;
  min-width: 180px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.approval-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 26, 0.55);
  color: var(--neon-amber);
  background: rgba(255, 122, 26, 0.1);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.fold-meter {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 122, 26, 0.45);
  color: var(--neon-core);
  background: rgba(255, 122, 26, 0.12);
}

.post-preview {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.62;
  white-space: pre-wrap;
  color: var(--text-body);
  max-height: 460px;
  overflow-y: auto;
}

.fold-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--neon-amber);
}

.fold-divider::before,
.fold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  border-top: 1px dashed rgba(255, 122, 26, 0.48);
}

.tweet-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tweet-card {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tweet-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.tweet-body {
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-body);
}

.carousel-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 26, 0.45);
  background: var(--bg-void);
}

.carousel-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 8px;
}

.thumb-btn {
  appearance: none;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-void);
  cursor: pointer;
  opacity: 0.62;
  transition: all 140ms ease;
}

.thumb-btn.active,
.thumb-btn:hover {
  opacity: 1;
  border-color: var(--neon-amber);
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.35);
}

.thumb-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  display: block;
}

/* Footer & Toast */
.footer {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.mono-dim {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface-elevated);
  border: 1px solid rgba(255, 122, 26, 0.8);
  box-shadow: 0 0 22px rgba(255, 122, 26, 0.32);
  color: var(--neon-core);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 180ms ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1160px) {
  .switchboard-layout {
    grid-template-columns: 1fr;
  }
  .inspector-panel {
    position: static;
  }
  .social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vault-layout {
    grid-template-columns: 1fr;
  }
  .vault-sidebar {
    max-height: none;
  }
}
