:root {
  --bg-1: #050816;
  --bg-2: #0b1020;
  --bg-3: #0f172a;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.10);
  --soft-text: rgba(255, 255, 255, 0.72);
  --muted-text: rgba(255, 255, 255, 0.52);
  --cyan: #67e8f9;
  --cyan-2: #22d3ee;
  --blue: #60a5fa;
  --green: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-cyan: 0 0 40px rgba(103, 232, 249, 0.10);
  --radius-xl: 24px;
  --radius-xxl: 30px;
}

html,
body {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(96, 165, 250, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 50%, #030712 100%);
  color: #fff;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.01em;
}

a {
  text-decoration: none;
}

.site-shell {
  max-width: 1440px;
  padding-left: 32px;
  padding-right: 32px;
}

.navbar-custom {
  background: rgba(5, 8, 22, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.22), rgba(96, 165, 250, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.hero {
  padding-top: 110px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.18;
  pointer-events: none;
}

.hero-split .row {
  min-height: calc(100vh - 160px);
}

.hero-copy-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-right: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.10);
  border: 1px solid rgba(103, 232, 249, 0.22);
  color: #bff8ff;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 900px;
}

.hero .lead {
  max-width: 760px;
  color: var(--soft-text);
  font-size: 1.16rem;
  line-height: 1.8;
  margin-top: 22px;
}

.accent {
  color: var(--cyan);
}

.btn-glow {
  background: var(--cyan);
  color: #041018;
  border: none;
  font-weight: 700;
  border-radius: 16px;
  padding: 14px 24px;
  box-shadow: var(--shadow-cyan);
}

.btn-glow:hover {
  background: #9af3ff;
  color: #041018;
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 16px;
  padding: 14px 24px;
  font-weight: 600;
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.glass-card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.stat-card {
  padding: 24px;
  height: 100%;
  border-radius: var(--radius-xl);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-label {
  color: var(--muted-text);
  margin-top: 6px;
  font-size: 0.95rem;
}

.terminal-panel {
  padding: 26px;
  position: relative;
  min-height: 100%;
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.live-panel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.feed-range-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.range-pill {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.range-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.range-pill.active {
  background: rgba(103, 232, 249, 0.14);
  color: #c8fbff;
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.10);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #a7f3d0;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
}

.feed-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  margin-bottom: 14px;
}

.feed-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.80rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-text);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.feed-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feed-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.feed-tag.macro {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.22);
  color: #bfdbfe;
}

.feed-tag.geopolitics {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.22);
  color: #ddd6fe;
}

.feed-tag.politics {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.22);
  color: #fdba74;
}

.feed-tag.semis {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.22);
  color: #fde68a;
}

.feed-tag.general {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.feed-title {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.feed-velocity {
  color: var(--cyan);
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.feed-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.feed-source-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.92rem;
}

.feed-favicon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.feed-source-name {
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-source-link {
  color: #9bc2ff;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.feed-source-link:hover {
  color: #c8dcff;
  text-decoration: underline;
}

.footer-note {
  color: var(--muted-text);
  font-size: 0.95rem;
}

@media (max-width: 1399.98px) {
  .site-shell {
    max-width: 1320px;
  }
}

@media (max-width: 1199.98px) {
  .hero-copy-wrap {
    padding-right: 0;
  }
}

@media (max-width: 991.98px) {
  .site-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 50px;
  }

  .hero-split .row {
    min-height: auto;
  }

  .terminal-panel {
    margin-top: 10px;
  }
}

@media (max-width: 575.98px) {
  .feed-source-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .feed-meta {
    align-items: flex-start;
  }

  .terminal-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .live-panel-controls {
    width: 100%;
    justify-content: space-between;
  }

  .feed-range-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .range-pill {
    flex: 1 1 auto;
    text-align: center;
  }
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

@media (max-width: 991.98px) {
  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .feed-grid {
    grid-template-columns: 1fr;
  }
}

.range-btn {
  padding: 6px 14px;
  border-radius: 20px;
  color: #9aa6b2;
  text-decoration: none;
}

.range-btn.active {
  background: #1c2735;
  color: white;
}

.section-spacer {
  margin-top: 42px;
}

.brief-shell {
  background: linear-gradient(180deg, rgba(8, 15, 25, 0.96), rgba(8, 13, 21, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.brief-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.brief-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.terminal-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ff6b6b;
}

.dot-amber {
  background: #ffd166;
}

.dot-green {
  background: #34f5c5;
}

.brief-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  color: #f6fbff;
}

.brief-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(111, 211, 255, 0.16), rgba(111, 211, 255, 0.06));
  border: 1px solid rgba(111, 211, 255, 0.18);
  color: #6fd3ff;
  font-weight: 800;
}

.brief-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
}

.brief-pill.live {
  color: #b8ffe7;
  border-color: rgba(52, 245, 197, 0.18);
  background: rgba(52, 245, 197, 0.08);
}

.brief-hero {
  padding: 24px 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(111, 211, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.brief-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6fd3ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.brief-eyebrow-line {
  width: 32px;
  height: 1px;
  background: rgba(111, 211, 255, 0.45);
}

.brief-headline {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  font-weight: 800;
  color: #f4f9ff;
}

.brief-subhead {
  margin: 14px 0 0;
  max-width: 920px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.brief-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.015);
}

.brief-card {
  background: rgba(15, 24, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 14px 14px 12px;
  min-height: 88px;
}

.brief-meta-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 10px;
  font-weight: 700;
}

.brief-meta-value {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
  color: #f2f8fd;
}

.brief-meta-value.mono {
  font-family: monospace;
  font-size: 0.92rem;
  color: #6fd3ff;
}

.brief-meta-value.green {
  color: #8af5c8;
}

.brief-meta-value.amber {
  color: #ffd166;
}

.brief-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 209, 102, 0.06);
  color: #ffe7a6;
  font-size: 0.95rem;
  line-height: 1.6;
}

.brief-body-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  padding: 20px 22px 24px;
}

.brief-main {
  background: rgba(11, 18, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 24px 22px;
}

.brief-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brief-side-card {
  background: rgba(11, 18, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 16px 16px 14px;
}

.brief-side-title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 800;
}

.brief-side-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.brief-side-list li {
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.brief-side-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.brief-side-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.brief-side-stat-label {
  color: rgba(255, 255, 255, 0.52);
}

.brief-side-stat-value {
  color: #f1f7fd;
  font-weight: 700;
  text-align: right;
}

.briefing-body h1 {
  font-size: 1.55rem;
  margin-bottom: 18px;
  color: #6fd3ff;
  border-bottom: 1px solid rgba(111, 211, 255, 0.18);
  padding-bottom: 10px;
}

.briefing-body h2 {
  font-size: 1.05rem;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #8af5c8;
  text-transform: uppercase;
}

.briefing-body h3 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #ffd166;
}

.briefing-body p,
.briefing-body li {
  font-size: 1.02rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.72);
}

.briefing-body ul {
  padding-left: 22px;
  margin-top: 10px;
}

.brief-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  font-family: monospace;
}

@media (max-width: 991.98px) {
  .brief-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-body-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .brief-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brief-meta-grid {
    grid-template-columns: 1fr;
  }

  .brief-main {
    padding: 18px 16px;
  }

  .briefing-body p,
  .briefing-body li {
    font-size: 0.98rem;
  }
}

/* =========================================================
   AI BRIEFING PANEL
   Align with live narrative feed spacing + style
========================================================= */

.section-spacer {
  margin-top: 48px;
}

#ai-briefing .col-12,
#live-feed .col-12 {
  padding-left: 0;
  padding-right: 0;
}

.brief-shell {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* top terminal bar */
.brief-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.brief-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.terminal-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.95;
}

.dot-red {
  background: #ff6b6b;
}

.dot-amber {
  background: #ffd166;
}

.dot-green {
  background: #34f5c5;
}

.brief-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  color: #f6fbff;
  letter-spacing: -0.02em;
}

.brief-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(111, 211, 255, 0.16), rgba(111, 211, 255, 0.06));
  border: 1px solid rgba(111, 211, 255, 0.18);
  color: #6fd3ff;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(111, 211, 255, 0.12);
}

.brief-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.brief-pill.live {
  color: #b8ffe7;
  border-color: rgba(52, 245, 197, 0.18);
  background: rgba(52, 245, 197, 0.08);
}

/* hero header */
.brief-hero {
  padding: 26px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(111, 211, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.brief-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6fd3ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.brief-eyebrow-line {
  width: 32px;
  height: 1px;
  background: rgba(111, 211, 255, 0.45);
}

.brief-headline {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  font-weight: 800;
  color: #f4f9ff;
  letter-spacing: -0.04em;
  max-width: 1100px;
}

.brief-subhead {
  margin: 14px 0 0;
  max-width: 920px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

/* meta grid */
.brief-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
}

.brief-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 16px 14px;
  min-height: 92px;
}

.brief-meta-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 10px;
  font-weight: 700;
}

.brief-meta-value {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
  color: #f2f8fd;
}

.brief-meta-value.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  color: #6fd3ff;
}

.brief-meta-value.green {
  color: #8af5c8;
}

.brief-meta-value.amber {
  color: #ffd166;
}

/* disclaimer */
.brief-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 209, 102, 0.06);
  color: #ffe7a6;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* main body + side rail */
.brief-body-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  padding: 22px 28px 28px;
}

.brief-main {
  min-width: 0;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 22px;
}

.brief-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brief-side-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 16px 14px;
}

.brief-side-title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 800;
}

.brief-side-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.brief-side-list li {
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.brief-side-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.brief-side-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.brief-side-stat-label {
  color: rgba(255, 255, 255, 0.52);
}

.brief-side-stat-value {
  color: #f1f7fd;
  font-weight: 700;
  text-align: right;
}

/* summary body */
.briefing-body h1,
.briefing-body h2,
.briefing-body h3 {
  font-family: inherit;
  margin-top: 0;
}

.briefing-body h1 {
  font-size: 1.55rem;
  margin-bottom: 18px;
  color: #6fd3ff;
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(111, 211, 255, 0.18);
  padding-bottom: 10px;
}

.briefing-body h2 {
  font-size: 1.05rem;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #8af5c8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.briefing-body h3 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #ffd166;
}

.briefing-body p,
.briefing-body li {
  font-size: 1.02rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.72);
}

.briefing-body ul {
  padding-left: 22px;
  margin-top: 10px;
}

.briefing-body li {
  margin-bottom: 10px;
}

.briefing-body strong {
  color: #f3f9ff;
}

/* footer strip */
.brief-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 28px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* responsive */
@media (max-width: 991.98px) {
  .brief-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-body-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {

  .brief-topbar,
  .brief-hero,
  .brief-meta-grid,
  .brief-disclaimer,
  .brief-body-wrap,
  .brief-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brief-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brief-meta-grid {
    grid-template-columns: 1fr;
  }

  .brief-main {
    padding: 18px 16px;
  }

  .briefing-body p,
  .briefing-body li {
    font-size: 0.98rem;
  }
}

/* =========================================
   ALIGN AI BLOCK WITH NARRATIVE PANEL
========================================= */

.section-spacer {
  margin-top: 48px;
}

#live-feed,
#ai-briefing {
  width: 100%;
}

#live-feed .col-12,
#ai-briefing .col-12 {
  padding-left: 0;
  padding-right: 0;
}

.brief-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* make all inner AI sections use the same left/right rhythm */
.brief-topbar,
.brief-hero,
.brief-meta-grid,
.brief-disclaimer,
.brief-body-wrap,
.brief-footer {
  padding-left: 28px;
  padding-right: 28px;
}

/* topbar */
.brief-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.brief-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.terminal-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ff6b6b;
}

.dot-amber {
  background: #ffd166;
}

.dot-green {
  background: #34f5c5;
}

.brief-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  color: #f6fbff;
  letter-spacing: -0.02em;
}

.brief-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(111, 211, 255, 0.16), rgba(111, 211, 255, 0.06));
  border: 1px solid rgba(111, 211, 255, 0.18);
  color: #6fd3ff;
  font-weight: 800;
}

.brief-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.brief-pill.live {
  color: #b8ffe7;
  border-color: rgba(52, 245, 197, 0.18);
  background: rgba(52, 245, 197, 0.08);
}

/* hero area */
.brief-hero {
  padding-top: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(111, 211, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.brief-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6fd3ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.brief-eyebrow-line {
  width: 32px;
  height: 1px;
  background: rgba(111, 211, 255, 0.45);
}

.brief-headline {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  font-weight: 800;
  color: #f4f9ff;
  letter-spacing: -0.04em;
  max-width: 1000px;
}

.brief-subhead {
  margin: 14px 0 0;
  max-width: 920px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

/* meta cards */
.brief-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
}

.brief-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 16px 14px;
  min-height: 92px;
}

.brief-meta-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 10px;
  font-weight: 700;
}

.brief-meta-value {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
  color: #f2f8fd;
}

.brief-meta-value.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  color: #6fd3ff;
}

.brief-meta-value.green {
  color: #8af5c8;
}

.brief-meta-value.amber {
  color: #ffd166;
}

/* disclaimer */
.brief-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 209, 102, 0.06);
  color: #ffe7a6;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* main body */
.brief-body-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 28px;
}

.brief-main {
  min-width: 0;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 22px;
}

.brief-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brief-side-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 16px 14px;
}

.brief-side-title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 800;
}

.brief-side-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.brief-side-list li {
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.brief-side-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.brief-side-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.brief-side-stat-label {
  color: rgba(255, 255, 255, 0.52);
}

.brief-side-stat-value {
  color: #f1f7fd;
  font-weight: 700;
  text-align: right;
}

/* summary typography */
.briefing-body h1 {
  font-size: 1.55rem;
  margin-bottom: 18px;
  color: #6fd3ff;
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(111, 211, 255, 0.18);
  padding-bottom: 10px;
}

.briefing-body h2 {
  font-size: 1.05rem;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #8af5c8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.briefing-body h3 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #ffd166;
}

.briefing-body p,
.briefing-body li {
  font-size: 1.02rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.72);
}

.briefing-body ul {
  padding-left: 22px;
  margin-top: 10px;
}

.brief-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 28px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 991.98px) {
  .brief-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-body-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {

  .brief-topbar,
  .brief-hero,
  .brief-meta-grid,
  .brief-disclaimer,
  .brief-body-wrap,
  .brief-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brief-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brief-meta-grid {
    grid-template-columns: 1fr;
  }

  .brief-main {
    padding: 18px 16px;
  }

  .briefing-body p,
  .briefing-body li {
    font-size: 0.98rem;
  }
}

#live-feed,
#ai-briefing {
  width: 100%;
}

#live-feed .col-12,
#ai-briefing .col-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#live-feed .terminal-panel,
#ai-briefing .brief-shell {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.brief-shell {
  box-sizing: border-box;
}

.feed-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 10px;
  color: #8c97a3;
}

.feed-time {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.label-pill {
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
}

.velocity-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #79e3ff;
  font-weight: 600;
}