/**
 * Black Label Bots — narrated demo shell
 */

.blb-demo-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--blb-bg);
  overflow: hidden;
}

/* ── Top bar ─────────────────────────────────────────── */
.blb-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--blb-line);
  background: var(--blb-bg-2);
  flex-shrink: 0;
  z-index: 50;
}

.blb-demo-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.blb-demo-back {
  font-family: var(--fx-font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blb-text-mute);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid var(--blb-line);
  transition: color 0.2s, border-color 0.2s;
}

.blb-demo-back:hover {
  color: var(--blb-gold);
  border-color: var(--blb-gold-dim);
}

.blb-demo-title-wrap {
  min-width: 0;
}

.blb-demo-eyebrow {
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blb-text-mute);
  margin-bottom: 2px;
}

.blb-demo-title {
  font-family: var(--blb-font-display);
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blb-demo-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.blb-demo-voice-badge {
  font-family: var(--fx-font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blb-gold);
  padding: 5px 10px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  background: rgba(201, 169, 97, 0.06);
  white-space: nowrap;
}

.blb-demo-voice-badge.is-fallback {
  color: var(--blb-text-mute);
  border-color: var(--blb-line);
  background: transparent;
}

/* ── Main layout ─────────────────────────────────────── */
.blb-demo-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 0;
}

.blb-demo-main {
  position: relative;
  min-height: 0;
  background: #050505;
  overflow: hidden;
}

.blb-demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.blb-demo-builtin {
  height: 100%;
  overflow-y: auto;
  padding: 24px;
}

.blb-demo-highlight {
  position: absolute;
  border: 2px solid var(--blb-gold);
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s, top 0.5s, left 0.5s, width 0.5s, height 0.5s;
  box-shadow: 0 0 24px rgba(201, 169, 97, 0.25);
  z-index: 10;
}

.blb-demo-highlight.visible {
  opacity: 1;
}

/* ── Narrator panel ──────────────────────────────────── */
.blb-demo-narrator {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--blb-line);
  background: var(--blb-bg-2);
  min-height: 0;
}

.blb-demo-narrator-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--blb-line);
}

.blb-demo-step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.blb-demo-step-label {
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blb-gold);
}

.blb-demo-step-count {
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  color: var(--blb-text-mute);
}

.blb-demo-caption {
  font-size: 15px;
  line-height: 1.65;
  color: var(--blb-text);
  min-height: 120px;
}

.blb-demo-caption .word {
  opacity: 0.45;
  transition: opacity 0.15s;
}

.blb-demo-caption .word.active {
  opacity: 1;
  color: var(--blb-gold);
}

.blb-demo-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-top: 16px;
}

.blb-demo-wave span {
  width: 3px;
  background: var(--blb-gold);
  border-radius: 2px;
  height: 6px;
  opacity: 0.35;
  transition: height 0.12s, opacity 0.12s;
}

.blb-demo-wave.playing span {
  opacity: 0.85;
  animation: blb-demo-wave 0.8s ease-in-out infinite alternate;
}

.blb-demo-wave.playing span:nth-child(2) { animation-delay: 0.1s; }
.blb-demo-wave.playing span:nth-child(3) { animation-delay: 0.2s; }
.blb-demo-wave.playing span:nth-child(4) { animation-delay: 0.15s; }
.blb-demo-wave.playing span:nth-child(5) { animation-delay: 0.25s; }
.blb-demo-wave.playing span:nth-child(6) { animation-delay: 0.05s; }
.blb-demo-wave.playing span:nth-child(7) { animation-delay: 0.18s; }
.blb-demo-wave.playing span:nth-child(8) { animation-delay: 0.12s; }

@keyframes blb-demo-wave {
  from { height: 6px; }
  to { height: 22px; }
}

.blb-demo-progress {
  height: 2px;
  background: var(--blb-line);
  margin-top: 14px;
  border-radius: 1px;
  overflow: hidden;
}

.blb-demo-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blb-gold-dim), var(--blb-gold));
  transition: width 0.15s linear;
}

.blb-demo-controls {
  padding: 18px 22px 22px;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--blb-line);
}

.blb-demo-btn {
  font-family: var(--fx-font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--blb-line);
  background: transparent;
  color: var(--blb-text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.blb-demo-btn:hover {
  border-color: var(--blb-gold-dim);
  color: var(--blb-text);
}

.blb-demo-btn--primary {
  background: var(--blb-gold);
  border-color: var(--blb-gold);
  color: var(--blb-bg);
  font-weight: 600;
  flex: 1;
  min-width: 120px;
}

.blb-demo-btn--primary:hover {
  background: var(--blb-gold-bright, #e6c989);
  color: var(--blb-bg);
}

.blb-demo-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.blb-demo-hint {
  width: 100%;
  font-size: 11px;
  color: var(--blb-text-mute);
  line-height: 1.5;
  margin-top: 4px;
}

/* ── Built-in demo UIs ───────────────────────────────── */
.demo-ui {
  max-width: 960px;
  margin: 0 auto;
}

.demo-ui-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.demo-ui-card {
  padding: 20px;
  border: 1px solid var(--blb-line);
  background: var(--blb-bg);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.demo-ui-card.active {
  border-color: var(--blb-gold);
  box-shadow: 0 0 32px rgba(201, 169, 97, 0.12);
}

.demo-ui-card h4 {
  font-family: var(--blb-font-display);
  font-size: 18px;
  margin-bottom: 8px;
}

.demo-ui-card p,
.demo-ui-card li {
  font-size: 13px;
  color: var(--blb-text-dim);
  line-height: 1.6;
}

.demo-ui-tag {
  font-family: var(--fx-font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blb-gold);
  margin-bottom: 10px;
}

.demo-ui-terminal {
  font-family: var(--fx-font-mono, monospace);
  font-size: 12px;
  background: #0a0a0a;
  border: 1px solid var(--blb-line);
  padding: 16px;
  line-height: 1.7;
  color: var(--blb-text-dim);
  margin-top: 12px;
}

.demo-ui-terminal .cmd { color: var(--blb-gold); }
.demo-ui-terminal .ok { color: #6fbf7a; }
.demo-ui-terminal .dim { color: var(--blb-text-mute); }

.demo-ui-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 169, 97, 0.4);
  background: rgba(201, 169, 97, 0.08);
  font-family: var(--fx-font-mono, monospace);
  font-size: 12px;
  color: var(--blb-gold);
  margin: 16px 0;
  animation: demo-pulse-border 2s ease-in-out infinite;
}

@keyframes demo-pulse-border {
  0%, 100% { border-color: rgba(201, 169, 97, 0.3); }
  50% { border-color: rgba(201, 169, 97, 0.7); }
}

.demo-ui-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.demo-ui-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--blb-line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.demo-ui-list li:last-child { border-bottom: none; }

.demo-ui-badge {
  font-family: var(--fx-font-mono, monospace);
  font-size: 9px;
  padding: 3px 8px;
  border: 1px solid var(--blb-line);
  color: var(--blb-text-mute);
  white-space: nowrap;
}

.demo-ui-badge.hot { color: #6fbf7a; border-color: rgba(111, 191, 122, 0.35); }
.demo-ui-badge.warn { color: var(--blb-gold); border-color: rgba(201, 169, 97, 0.35); }
.demo-ui-badge.stale { color: #c86a6a; border-color: rgba(200, 106, 106, 0.35); }

.demo-ui-email {
  padding: 16px;
  border: 1px solid var(--blb-line);
  background: var(--blb-bg-2);
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--blb-text-dim);
}

.demo-ui-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.demo-ui-col {
  padding: 12px;
  border: 1px solid var(--blb-line);
  background: var(--blb-bg);
  min-height: 140px;
}

.demo-ui-col h5 {
  font-family: var(--fx-font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blb-text-mute);
  margin-bottom: 10px;
}

.demo-ui-chip {
  font-size: 11px;
  padding: 8px 10px;
  border: 1px solid var(--blb-line);
  margin-bottom: 8px;
  background: var(--blb-bg-2);
}

.demo-sig-long { color: #6fbf7a; font-family: var(--fx-font-mono, monospace); font-size: 28px; font-weight: 700; }
.demo-sig-meta { font-family: var(--fx-font-mono, monospace); font-size: 11px; color: var(--blb-text-mute); margin-top: 8px; }

/* ── Sovereign showcase ──────────────────────────────── */
.sov-showcase {
  height: 100%;
  padding: 16px;
  display: flex;
  align-items: stretch;
}

.sov-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(201, 169, 97, 0.25);
  background: linear-gradient(160deg, #080808, #050505);
  overflow: hidden;
  min-height: 420px;
  position: relative;
}

.sov-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  opacity: 0.5;
}

.sov-toast-rail {
  position: absolute;
  top: 44px;
  right: 12px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(220px, 42%);
  pointer-events: none;
}

.sov-toast {
  padding: 10px 12px;
  border: 1px solid rgba(201, 169, 97, 0.35);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(8px);
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.38, 1), opacity 0.35s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.sov-toast strong {
  display: block;
  color: var(--blb-gold);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.sov-toast span {
  color: var(--blb-text-mute);
  font-size: 9px;
}

.sov-toast.is-in {
  transform: translateX(0);
  opacity: 1;
}

.sov-toast.is-out {
  transform: translateX(120%);
  opacity: 0;
}

.sov-ghost-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  z-index: 20;
  pointer-events: none;
  transition: left 0.55s cubic-bezier(0.33, 1, 0.38, 1),
              top 0.55s cubic-bezier(0.33, 1, 0.38, 1),
              transform 0.15s ease;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.sov-ghost-cursor::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}

.sov-ghost-cursor.is-click {
  transform: scale(0.82);
  border-color: var(--blb-gold);
}

.sov-click-flash {
  animation: sov-click-flash 0.35s ease;
}

@keyframes sov-click-flash {
  0% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(201, 169, 97, 0); }
}

.sov-core.is-live {
  animation: sov-core-pulse 2.4s ease-in-out infinite;
}

.sov-core.is-pulse {
  animation: sov-core-flash 0.42s ease-out;
}

@keyframes sov-core-flash {
  0% { box-shadow: 0 0 12px rgba(201, 169, 97, 0.25); transform: scale(1); }
  40% { box-shadow: 0 0 28px rgba(201, 169, 97, 0.75); transform: scale(1.08); }
  100% { box-shadow: 0 0 12px rgba(201, 169, 97, 0.25); transform: scale(1); }
}

@keyframes sov-core-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(201, 169, 97, 0.25); }
  50% { box-shadow: 0 0 22px rgba(201, 169, 97, 0.55); }
}

.sov-download-queue {
  display: none;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 169, 97, 0.12);
}

.sov-showcase[data-phase="enter"] .sov-download-queue {
  display: block;
}

.sov-dl-queue-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 140px;
  overflow: hidden;
  font-family: var(--blb-font-mono, monospace);
  font-size: 9px;
  color: var(--blb-text-mute);
}

.sov-dl-queue-item {
  animation: sov-dl-queue-in 0.35s ease-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes sov-dl-queue-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

.sov-activity-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.sov-activity-label {
  font-family: var(--fx-font-mono, monospace);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blb-text-mute);
}

.sov-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.sov-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--fx-font-mono, monospace);
  font-size: 9px;
  line-height: 1.35;
  color: var(--blb-text-mute);
  animation: sov-feed-in 0.4s ease;
}

.sov-activity-item.is-ok { color: #6fbf7a; }
.sov-activity-item.is-hot { color: var(--blb-gold); }

.sov-activity-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blb-line);
  margin-top: 3px;
  flex-shrink: 0;
}

.sov-activity-item.is-ok .sov-activity-dot { background: #6fbf7a; }
.sov-activity-item.is-hot .sov-activity-dot { background: var(--blb-gold); }

@keyframes sov-feed-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.sov-waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  margin-bottom: 16px;
  opacity: 0.25;
  transition: opacity 0.35s;
}

.sov-waveform.is-active {
  opacity: 1;
}

.sov-waveform i {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--blb-gold);
  border-radius: 2px;
  animation: sov-wave 0.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.04s);
}

@keyframes sov-wave {
  0%, 100% { height: 6px; opacity: 0.45; }
  50% { height: 28px; opacity: 1; }
}

.sov-file-tree {
  margin-top: 12px;
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  border-top: 1px solid var(--blb-line);
  padding-top: 10px;
}

.sov-tree-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--blb-text-mute);
  transition: color 0.3s;
}

.sov-tree-row.is-written {
  color: #6fbf7a;
}

.sov-tree-badge {
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sov-tree-row.is-written .sov-tree-badge {
  color: #6fbf7a;
}

.sov-log-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sov-log-line.is-in {
  opacity: 1;
  transform: none;
}

.sov-complete-icon.is-pop {
  animation: sov-pop 0.55s cubic-bezier(0.33, 1.5, 0.38, 1);
}

@keyframes sov-pop {
  0% { transform: scale(0.6); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.sov-dl-bar {
  height: 4px;
  background: var(--blb-line);
  margin-bottom: 8px;
  overflow: hidden;
}

.sov-dl-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blb-gold-dim), var(--blb-sovereign, #f9e27d));
}

.sov-dl-label {
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  color: var(--blb-text-mute);
  margin-bottom: 16px;
}

.sov-stat-pop {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.sov-stat-pop.is-in {
  opacity: 1;
  transform: none;
}

.sov-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--blb-line);
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sov-dots { display: flex; gap: 5px; }
.sov-dots i {
  width: 8px; height: 8px; border-radius: 50%; display: block;
  background: var(--blb-line);
}
.sov-dots i:first-child { background: #c86a6a; }
.sov-dots i:nth-child(2) { background: var(--blb-gold); }
.sov-dots i:nth-child(3) { background: #6fbf7a; }

.sov-titlebar-id { color: var(--blb-gold); flex: 1; }
.sov-titlebar-status {
  color: #6fbf7a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sov-titlebar-status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6fbf7a;
  animation: demo-pulse-border 2s ease-in-out infinite;
}

.sov-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  flex: 1;
  min-height: 0;
}

.sov-sidebar {
  border-right: 1px solid var(--blb-line);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.35);
}

.sov-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sov-core {
  width: 28px; height: 28px;
  border: 1px solid var(--blb-gold);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 12px rgba(201, 169, 97, 0.25);
}
.sov-core::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--blb-gold);
  border-radius: 50%;
}

.sov-sidebar-name {
  font-family: var(--blb-font-display);
  font-size: 16px;
  font-weight: 500;
}

.sov-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sov-nav span {
  padding: 8px 10px;
  color: var(--blb-text-mute);
  border-left: 2px solid transparent;
}
.sov-nav span.active {
  color: var(--blb-gold);
  border-left-color: var(--blb-gold);
  background: rgba(201, 169, 97, 0.06);
}

.sov-sidebar-meta {
  margin-top: auto;
  font-family: var(--fx-font-mono, monospace);
  font-size: 9px;
}
.sov-sidebar-meta div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--blb-line);
}
.sov-sidebar-meta em { color: var(--blb-text-mute); font-style: normal; }
.sov-sidebar-meta strong { color: var(--blb-text-dim); }

.sov-main {
  position: relative;
  overflow: hidden;
  padding: 24px 28px;
  min-height: 340px;
}

.sov-phase {
  position: absolute;
  inset: 24px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.55s;
  will-change: opacity, transform;
}

.sov-phase.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .sov-phase {
    transition: opacity 0.2s ease;
    transform: none;
  }
}

/* Download startup — the only heavy immersive phase */
.sov-download { max-width: 520px; }

.sov-download h2 {
  font-family: var(--blb-font-display);
  font-size: 26px;
  margin: 8px 0 6px;
}

.sov-dl-meta {
  font-family: var(--blb-font-mono, monospace);
  font-size: 11px;
  color: var(--blb-text-mute);
  margin-bottom: 18px;
}

.sov-dl-streams {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.sov-dl-stream {
  opacity: 0.45;
  transition: opacity 0.3s;
}

.sov-dl-stream.is-active,
.sov-dl-stream.is-done { opacity: 1; }

.sov-dl-stream-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--blb-font-mono, monospace);
  font-size: 10px;
  margin-bottom: 4px;
}

.sov-dl-stream-head span:first-child { color: var(--blb-text-dim); }
.sov-dl-stream-pct { color: var(--blb-gold); }

.sov-dl-stream-bar {
  height: 3px;
  background: rgba(201, 169, 97, 0.12);
  overflow: hidden;
}

.sov-dl-stream-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blb-gold-dim), var(--blb-gold));
  transition: width 0.12s linear;
}

.sov-dl-stream.is-done .sov-dl-stream-fill { background: #6fbf7a; }

.sov-dl-stream-size {
  font-size: 9px;
  color: var(--blb-text-mute);
  font-family: var(--blb-font-mono, monospace);
}

.sov-dl-ticker-wrap {
  height: 22px;
  overflow: hidden;
  margin-bottom: 12px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sov-dl-ticker {
  display: flex;
  gap: 20px;
  font-family: var(--blb-font-mono, monospace);
  font-size: 9px;
  color: var(--blb-text-mute);
  white-space: nowrap;
  animation: sov-dl-ticker-scroll 12s linear infinite;
}

.sov-dl-ticker span { flex-shrink: 0; }

@keyframes sov-dl-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sov-dl-status {
  font-family: var(--blb-font-mono, monospace);
  font-size: 11px;
  color: #6fbf7a;
  margin-bottom: 14px;
}

.sov-dl-launch.ready { animation: sov-dl-launch-pulse 1.6s ease-in-out infinite; }

@keyframes sov-dl-launch-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0); }
  50% { box-shadow: 0 0 20px rgba(201, 169, 97, 0.35); }
}

.sov-boot { max-width: 420px; }
.sov-boot-logo {
  width: 48px; height: 48px;
  border: 2px solid var(--blb-gold);
  margin-bottom: 20px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 24px rgba(201, 169, 97, 0.2);
}
.sov-boot h2 {
  font-family: var(--blb-font-display);
  font-size: 26px;
  margin-bottom: 8px;
}
.sov-boot > p {
  font-size: 14px;
  color: var(--blb-text-dim);
  margin-bottom: 20px;
}

.sov-boot-bar {
  height: 3px;
  background: var(--blb-line);
  margin-bottom: 16px;
  overflow: hidden;
}
.sov-boot-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blb-gold-dim), var(--blb-gold));
  transition: width 0.1s linear;
}

.sov-boot-fill.is-smooth {
  transition: width 4s cubic-bezier(0.33, 1, 0.38, 1);
}

.sov-boot-log {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-family: var(--fx-font-mono, monospace);
  font-size: 11px;
}
.sov-boot-log li {
  color: var(--blb-text-mute);
  padding: 4px 0;
  opacity: 0.35;
  transition: opacity 0.3s, color 0.3s;
}
.sov-boot-log li.visible { opacity: 1; color: var(--blb-text-dim); }
.sov-boot-log li.visible:last-child { color: #6fbf7a; }

.sov-btn {
  font-family: var(--fx-font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid var(--blb-line);
  background: transparent;
  color: var(--blb-text-mute);
  cursor: default;
  transition: all 0.25s;
}
.sov-btn--gold.ready,
.sov-btn--gold:not(:disabled) {
  background: var(--blb-gold);
  border-color: var(--blb-gold);
  color: var(--blb-bg);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(201, 169, 97, 0.25);
}

.sov-setup h2 {
  font-family: var(--blb-font-display);
  font-size: 28px;
  margin-bottom: 8px;
}
.sov-setup > p {
  font-size: 14px;
  color: var(--blb-text-dim);
  margin-bottom: 24px;
}

.sov-field {
  display: block;
  margin-bottom: 20px;
}
.sov-field > span {
  display: block;
  font-family: var(--fx-font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blb-text-mute);
  margin-bottom: 8px;
}
.sov-input-wrap {
  position: relative;
  border: 1px solid var(--blb-line);
  background: #0a0a0a;
  padding: 14px 16px;
}
.sov-input-wrap.muted { opacity: 0.85; }
.sov-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--blb-font-display);
  font-size: 22px;
  color: var(--blb-text);
  outline: none;
}
.sov-input-cursor {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blb-gold);
  animation: sov-blink 1s step-end infinite;
}
@keyframes sov-blink { 50% { opacity: 0; } }

.sov-voice-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(201, 169, 97, 0.4);
  font-family: var(--fx-font-mono, monospace);
  font-size: 12px;
  color: var(--blb-gold);
  margin-bottom: 24px;
  animation: demo-pulse-border 2s ease-in-out infinite;
}

.sov-voice-bubble {
  padding: 20px 22px;
  border: 1px solid var(--blb-line);
  background: rgba(201, 169, 97, 0.05);
  margin-bottom: 24px;
  opacity: 0.5;
  transition: opacity 0.4s;
}
.sov-voice-bubble.visible { opacity: 1; }
.sov-voice-label {
  font-family: var(--fx-font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blb-text-mute);
}
.sov-voice-bubble p {
  font-size: 17px;
  line-height: 1.55;
  margin-top: 10px;
  color: var(--blb-text);
}

.sov-voice-routing {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sov-route-step {
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  padding: 10px 14px;
  border: 1px solid var(--blb-line);
  color: var(--blb-text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sov-route-step span {
  color: var(--blb-gold);
  font-weight: 600;
}
.sov-route-step.done {
  border-color: rgba(111, 191, 122, 0.35);
  color: #6fbf7a;
}

.sov-build-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sov-build-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  margin-bottom: 16px;
}
.sov-build-panel {
  border: 1px solid var(--blb-line);
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
}
.sov-build-panel h4 {
  font-family: var(--blb-font-display);
  font-size: 16px;
  margin-bottom: 10px;
}
.sov-build-panel > p {
  font-size: 13px;
  color: var(--blb-text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}
.sov-terminal {
  min-height: 220px;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 0;
}

.sov-progress-wrap { margin-top: 8px; }
.sov-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  color: var(--blb-text-mute);
  margin-bottom: 6px;
}
.sov-progress {
  height: 4px;
  background: var(--blb-line);
  overflow: hidden;
}
.sov-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blb-gold-dim), #6fbf7a);
  transition: width 0.3s ease-out;
}

.sov-complete { max-width: 480px; }
.sov-complete-icon {
  width: 52px; height: 52px;
  border: 2px solid #6fbf7a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #6fbf7a;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(111, 191, 122, 0.2);
}
.sov-complete h2 {
  font-family: var(--blb-font-display);
  font-size: 28px;
  margin-bottom: 10px;
}
.sov-complete > p {
  font-size: 14px;
  color: var(--blb-text-dim);
  margin-bottom: 20px;
  line-height: 1.65;
}

.sov-close h2 {
  font-family: var(--blb-font-display);
  font-size: 30px;
  margin-bottom: 12px;
}
.sov-close > p {
  font-size: 15px;
  color: var(--blb-text-dim);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 24px;
}
.sov-close-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.sov-close-stats .amt {
  display: block;
  font-family: var(--blb-font-display);
  font-size: 28px;
  color: var(--blb-gold);
}
.sov-close-stats .lbl {
  font-family: var(--fx-font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blb-text-mute);
}

.sov-transfer h2 {
  font-family: var(--blb-font-display);
  font-size: 28px;
  margin: 12px 0 8px;
}
.sov-transfer > p {
  font-size: 14px;
  color: var(--blb-text-dim);
  max-width: 48ch;
  line-height: 1.6;
  margin-bottom: 20px;
}
.sov-transfer-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.sov-transfer-key {
  border: 1px solid rgba(201, 169, 97, 0.25);
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
}
.sov-transfer-label {
  display: block;
  font-family: var(--fx-font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--blb-text-mute);
  margin-bottom: 8px;
}
.sov-transfer-key code {
  font-family: var(--blb-font-mono, monospace);
  font-size: 15px;
  color: var(--blb-gold);
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(249, 226, 125, 0.2);
}
.sov-transfer-manifest {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
}
.sov-transfer-manifest li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
  color: var(--blb-text-dim);
}
.sov-transfer-manifest li span:last-child { color: var(--blb-text-mute); }
.sov-transfer-dl.ready {
  box-shadow: 0 0 28px rgba(249, 226, 125, 0.25);
}
.sov-transfer-note {
  margin-top: 14px;
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--blb-text-mute);
}

@media (max-width: 900px) {
  .sov-body { grid-template-columns: 1fr; }
  .sov-sidebar { display: none; }
  .sov-build-grid { grid-template-columns: 1fr; }
}

/* ── Demo hub ────────────────────────────────────────── */
.blb-demo-hub {
  padding: 96px 0 80px;
}

.blb-demo-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.blb-demo-hub-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--blb-line);
  background: var(--blb-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}

.blb-demo-hub-card:hover {
  border-color: var(--blb-gold-dim);
  transform: translateY(-3px);
}

.blb-demo-hub-card--sovereign {
  border-color: rgba(201, 169, 97, 0.35);
  background: linear-gradient(145deg, var(--blb-bg), rgba(201, 169, 97, 0.06));
}

.blb-demo-hub-price {
  font-family: var(--blb-font-display);
  font-size: 24px;
  color: var(--blb-gold);
  margin-bottom: 8px;
}

.blb-demo-hub-card h3 {
  font-family: var(--blb-font-display);
  font-size: 22px;
  margin-bottom: 10px;
}

.blb-demo-hub-card p {
  font-size: 14px;
  color: var(--blb-text-dim);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blb-demo-hub-link {
  font-family: var(--fx-font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blb-gold);
}

.blb-demo-hub-banner {
  padding: 24px 28px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  background: rgba(201, 169, 97, 0.05);
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blb-demo-hub-banner p {
  font-size: 14px;
  color: var(--blb-text-dim);
  max-width: 52ch;
  margin: 0;
}

@media (max-width: 1100px) {
  .blb-demo-stage {
    grid-template-columns: 1fr 320px;
  }
}

@media (max-width: 900px) {
  .blb-demo-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh auto;
  }

  .blb-demo-narrator {
    border-left: none;
    border-top: 1px solid var(--blb-line);
    max-height: 45vh;
  }

  .blb-demo-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-ui-grid,
  .demo-ui-kanban {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .blb-demo-hub-grid {
    grid-template-columns: 1fr;
  }

  .blb-demo-voice-badge {
    display: none;
  }
}
