@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;1,300&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --gold: #D4B84A; --gold-light: #E8CE70; --gold-dim: #9A7B20; --gold-pale: #2A2315;
  --ink: #F0EDE4; --ink-mid: #C8C4B8; --ink-light: #8A8880; --ink-faint: #5A5850;
  --rule: #3A3020; --paper: #0E0D0B; --paper-warm: #161412; --paper-elevated: #1C1A16;
  --surface: #1E1A14; --surface-hover: #262218; --border: rgba(212,184,74,0.15);
  --border-strong: rgba(212,184,74,0.3);
  --glass: rgba(22,20,18,0.85); --glass-border: rgba(212,184,74,0.12);
  --green: #6AC840; --green-bg: #1A3010; --red: #E07070; --red-bg: #301010;
  --amber: #D4A830; --amber-bg: #2A2010;
  --radius: 8px; --radius-lg: 12px; --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3); --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5); --shadow-glow: 0 0 20px rgba(212,184,74,0.08);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --mono: 'JetBrains Mono', monospace; --serif: 'Playfair Display', serif;
  --body: 'Source Serif 4', Georgia, serif; --sans: 'Inter', -apple-system, sans-serif;
}

html { min-height: 100vh; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(212,184,74,0.03) 0%, transparent 60%);
  display: flex; overflow: hidden; height: 100vh; }

/* ═══ SIDEBAR ═══ */
.sidebar {
  width: 68px; min-height: 100vh; background: var(--paper-warm);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  align-items: center; padding: 12px 0; z-index: 200; flex-shrink: 0;
  transition: width 0.25s cubic-bezier(0.4,0,0.2,1);
}
.sidebar:hover { width: 160px; }
.sidebar-brand { display: flex; align-items: center; gap: 8px; padding: 8px 0 20px;
  font-family: var(--serif); font-weight: 700; }
.brand-icon { font-size: 20px; color: var(--gold); }
.brand-text { font-size: 16px; color: var(--gold); opacity: 0;
  transition: opacity 0.2s; white-space: nowrap; }
.sidebar:hover .brand-text { opacity: 1; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0 8px; }
.sidebar-footer { width: 100%; padding: 0 8px; }
.nav-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  background: none; border: none; border-radius: var(--radius); color: var(--ink-faint);
  cursor: pointer; transition: all var(--transition); font-family: var(--mono);
  font-size: 11px; white-space: nowrap; overflow: hidden;
}
.nav-btn:hover { background: var(--surface); color: var(--ink-light); }
.nav-btn.active { background: rgba(212,184,74,0.1); color: var(--gold); border-left: 2px solid var(--gold); }
.nav-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.nav-label { opacity: 0; transition: opacity 0.2s; }
.sidebar:hover .nav-label { opacity: 1; }

/* ═══ MAIN CONTENT ═══ */
.main-content { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }

/* ═══ VIEW PANELS ═══ */
.view-panel { display: none; flex-direction: column; flex: 1; animation: fadeSlideIn 0.3s ease-out; }
.view-panel.active { display: flex; }
.view-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 32px; border-bottom: 1px solid var(--border); background: var(--paper-elevated);
  flex-wrap: wrap;
}
.view-title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--gold); }
.view-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 4px; }
.filter-chip {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 20px;
  background: none; color: var(--ink-faint); font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; cursor: pointer; transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--gold-dim); color: var(--ink-light); }
.filter-chip.active { background: rgba(212,184,74,0.15); border-color: var(--gold); color: var(--gold); }

/* ═══ LIBRARY ═══ */
.library-grid { padding: 24px 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.lib-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; transition: all var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.lib-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--border); transition: background 0.3s; }
.lib-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lib-card:hover::before { background: var(--gold); }
.lib-card[data-status="published"]::before { background: var(--green); }
.lib-card[data-status="approved"]::before { background: var(--amber); }
.lib-card[data-status="draft"]::before { background: var(--ink-faint); }
.lib-title { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 8px;
  line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden; }
.lib-meta { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; color: var(--ink-faint); margin-bottom: 12px; }
.lib-status {
  padding: 2px 8px; border-radius: 10px; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.lib-status.draft { background: var(--paper-warm); color: var(--ink-faint); }
.lib-status.approved { background: var(--amber-bg); color: var(--amber); }
.lib-status.published { background: var(--green-bg); color: var(--green); }
.lib-excerpt { font-size: 13px; color: var(--ink-faint); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-clamp: 3; overflow: hidden; }
.lib-actions { display: flex; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.lib-actions button { font-size: 10px; padding: 4px 10px; height: auto; }

/* ═══ ROADMAP ═══ */
.roadmap-calendar { padding: 24px 32px 0; }
.cal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cal-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.cal-nav { display: flex; gap: 4px; margin-left: auto; }
.cal-nav button { background: var(--surface); border: 1px solid var(--border); color: var(--ink-faint);
  width: 28px; height: 28px; border-radius: var(--radius); cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.cal-nav button:hover { border-color: var(--gold-dim); color: var(--gold); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border);
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.cal-day-header { padding: 8px; text-align: center; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-dim); background: var(--paper-elevated); }
.cal-day {
  min-height: 90px; padding: 8px; background: var(--surface); position: relative;
  transition: all var(--transition); cursor: pointer;
}
.cal-day:hover { background: var(--surface-hover); }
.cal-day.today { background: rgba(212,184,74,0.05); }
.cal-day.other-month { opacity: 0.3; }
.cal-date { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-bottom: 4px; }
.cal-day.today .cal-date { color: var(--gold); font-weight: 600; }
.cal-slot {
  padding: 3px 6px; margin-bottom: 2px; border-radius: 3px; font-size: 10px;
  font-family: var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; transition: all var(--transition);
}
.cal-slot:hover { transform: translateX(2px); }
.cal-slot.draft { background: rgba(90,88,80,0.3); color: var(--ink-faint); border-left: 2px solid var(--ink-faint); }
.cal-slot.approved { background: var(--amber-bg); color: var(--amber); border-left: 2px solid var(--amber); }
.cal-slot.published { background: var(--green-bg); color: var(--green); border-left: 2px solid var(--green); }
.cal-slot.planned { background: rgba(212,184,74,0.08); color: var(--gold-dim); border-left: 2px solid var(--gold-dim); border-style: dashed; }

.roadmap-section { padding: 24px 32px; }
.roadmap-section-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* Narrative Arcs */
.arcs-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.arc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; border-left: 3px solid var(--arc-color, var(--gold)); transition: all var(--transition);
}
.arc-card:hover { border-color: var(--arc-color, var(--gold)); box-shadow: var(--shadow-sm); }
.arc-card.add-arc {
  border-style: dashed; display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); cursor: pointer; min-height: 80px; font-family: var(--mono); font-size: 11px;
}
.arc-card.add-arc:hover { border-color: var(--gold); color: var(--gold); }
.arc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.arc-name { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.arc-count { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); }
.arc-bar { height: 4px; background: var(--paper-warm); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.arc-progress { height: 100%; background: var(--arc-color, var(--gold)); border-radius: 2px; transition: width 0.5s ease; }
.arc-meta { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); }

/* Growth Metrics */
.metrics-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.metric-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; text-align: center; transition: all var(--transition);
}
.metric-card:hover { border-color: var(--gold-dim); }
.metric-value { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--gold); }
.metric-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }

.roadmap-view-toggle { display: flex; gap: 4px; }

/* ═══ PHASE 2: INTEL FEED ═══ */
.feed-body { display: flex; flex-direction: column; flex: 1; overflow-y: auto; }

.feed-placeholder { grid-column: 1/-1; text-align: center; padding: 60px 32px;
  color: var(--ink-faint); font-family: var(--sans); font-size: 14px; line-height: 1.7; }

/* ═══ GROWTH ENGINE ═══ */
.growth-upload-zone {
  padding: 16px 32px; background: var(--paper-warm); border-bottom: 1px solid var(--border);
}
.upload-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--surface);
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--gold); background: rgba(212,184,74,0.04);
}
.dropzone-icon { font-size: 28px; margin-bottom: 8px; opacity: 0.4; }
.upload-dropzone p { font-family: var(--sans); font-size: 13px; color: var(--ink-mid); margin: 2px 0; }
.dropzone-sub { font-size: 11px !important; color: var(--ink-faint) !important; }
.upload-platform-select { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.upload-platform {
  display: flex; align-items: center; gap: 5px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 20px; cursor: pointer;
  font-family: var(--mono); font-size: 10px; color: var(--ink-faint);
  transition: all var(--transition);
}
.upload-platform:hover { border-color: var(--gold-dim); color: var(--ink-light); }
.upload-platform.active { background: rgba(212,184,74,0.15); border-color: var(--gold); color: var(--gold); }
.upload-status {
  margin-top: 10px; font-family: var(--mono); font-size: 10px;
  color: var(--green); text-align: center; min-height: 16px;
}
.upload-status.error { color: var(--red); }

/* Funnel */
.funnel-container { padding: 24px 32px; overflow-y: auto; }
.funnel-stages { display: flex; flex-direction: column; gap: 0; max-width: 700px; margin: 0 auto; }

.funnel-stage {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  transition: all var(--transition); position: relative;
}
.funnel-stage:hover { border-color: var(--gold-dim); }
.funnel-stage[data-stage="top"] { border-left: 3px solid var(--gold); }
.funnel-stage[data-stage="mid"] { border-left: 3px solid var(--amber); }
.funnel-stage[data-stage="bottom"] { border-left: 3px solid var(--green); }

.funnel-stage-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.funnel-stage-icon { font-size: 18px; }
.funnel-stage-label {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
}
.funnel-stage-sub {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); margin-left: auto;
}
.funnel-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}
.funnel-metric {
  text-align: center; padding: 10px 8px;
  background: var(--paper-warm); border-radius: var(--radius);
  border: 1px solid rgba(212,184,74,0.06);
}
.fm-value {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--gold); line-height: 1.2;
}
.fm-label {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 4px;
}

.funnel-connector {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 0; color: var(--ink-faint);
}
.funnel-arrow { font-size: 14px; opacity: 0.3; }
.funnel-conv-rate {
  font-family: var(--mono); font-size: 10px; color: var(--amber);
  background: var(--paper-warm); padding: 2px 10px; border-radius: 10px;
  border: 1px solid var(--border);
}

/* Platform Breakdown */
.platform-breakdown { margin-top: 24px; }
.platform-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
}
.platform-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; position: relative;
  overflow: hidden; transition: all var(--transition);
}
.platform-card:hover { border-color: var(--gold-dim); transform: translateY(-1px); }
.platform-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.platform-card[data-platform="linkedin"]::before { background: #0A66C2; }
.platform-card[data-platform="twitter"]::before { background: #1DA1F2; }
.platform-card-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.platform-card-icon { font-size: 18px; }
.platform-card-name { font-family: var(--serif); font-size: 14px; font-weight: 600; }
.platform-card-date { font-family: var(--mono); font-size: 9px; color: var(--ink-faint); margin-left: auto; }
.platform-card-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.pcm { text-align: center; }
.pcm-val { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.pcm-lab { font-family: var(--mono); font-size: 8px; color: var(--ink-faint);
  letter-spacing: 0.1em; text-transform: uppercase; }

/* Trend */
.trend-section { margin-top: 24px; }
.trend-chart {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; min-height: 120px;
  position: relative;
}
.trend-bars { display: flex; gap: 2px; align-items: flex-end; height: 80px; }
.trend-bar {
  flex: 1; background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  border-radius: 2px 2px 0 0; min-width: 4px; transition: all 0.3s ease;
  position: relative; cursor: crosshair;
}
.trend-bar:hover { background: var(--gold-light); }
.trend-bar:hover::after {
  content: attr(data-val); position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%); font-family: var(--mono); font-size: 9px;
  color: var(--gold); background: var(--paper-elevated); padding: 2px 6px;
  border-radius: 3px; white-space: nowrap; border: 1px solid var(--border);
}
.trend-legend {
  display: flex; gap: 16px; margin-top: 10px; justify-content: center;
  font-family: var(--mono); font-size: 9px; color: var(--ink-faint);
}
.trend-legend span { display: flex; align-items: center; gap: 4px; }
.trend-legend span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; }
.trend-legend .tl-imp::before { background: var(--gold); }
.trend-legend .tl-eng::before { background: var(--amber); }
.trend-legend .tl-click::before { background: var(--green); }


/* ═══ PHASE 3: BLOCK EDITING ═══ */
.block-editable { position: relative; cursor: pointer; transition: all 0.15s ease; border-left: 2px solid transparent; padding-left: 8px; margin-left: -10px; }
.block-editable:hover { border-left-color: var(--gold-dim); background: rgba(212,184,74,0.02); }
.block-editable.rewriting { opacity: 0.4; pointer-events: none; }
.block-editable.rewriting::after {
  content: 'Rewriting…'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 10px; color: var(--gold); background: var(--surface);
  padding: 4px 12px; border-radius: var(--radius); border: 1px solid var(--border); opacity: 1;
}

.block-toolbar {
  position: absolute; top: -38px; left: 0; z-index: 50;
  display: none; align-items: center; gap: 2px;
  background: var(--paper-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 4px; box-shadow: var(--shadow-lg);
  animation: fadeSlideIn 0.15s ease-out;
}
.block-toolbar.vis { display: flex; }
.block-toolbar button {
  background: none; border: none; color: var(--ink-faint); font-family: var(--mono);
  font-size: 9px; padding: 5px 10px; cursor: pointer; border-radius: 4px;
  transition: all var(--transition); white-space: nowrap; letter-spacing: 0.05em;
}
.block-toolbar button:hover { background: rgba(212,184,74,0.1); color: var(--gold); }
.block-toolbar .sep { width: 1px; height: 16px; background: var(--border); margin: 0 2px; }

/* Voice Profile Selector */
.voice-selector {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
}
.voice-select-dropdown {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 28px 6px 10px; font-family: var(--mono); font-size: 10px; color: var(--gold);
  appearance: none; cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239A7B20'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.voice-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-dim); }

/* Rewrite diff overlay */
.rewrite-diff {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); margin: 8px 0; padding: 16px; overflow: hidden;
  animation: fadeSlideIn 0.2s ease-out;
}
.rewrite-diff-header { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; font-family: var(--mono); font-size: 10px; }
.rewrite-diff-action { color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; }
.rewrite-diff-actions { display: flex; gap: 6px; }
.rewrite-diff-actions button { font-size: 9px; height: 26px; padding: 0 10px; }
.rewrite-original { padding: 10px; border-radius: var(--radius); background: rgba(224,112,112,0.06);
  border-left: 2px solid var(--red); font-size: 13px; line-height: 1.7; color: var(--ink-faint);
  margin-bottom: 8px; text-decoration: line-through; opacity: 0.6; }
.rewrite-result { padding: 10px; border-radius: var(--radius); background: rgba(106,200,64,0.06);
  border-left: 2px solid var(--green); font-size: 13px; line-height: 1.7; color: var(--ink-mid); }

/* Multiview preview toggle in publish bar */
.preview-toggle { display: flex; gap: 2px; margin-left: auto; }
.preview-toggle button {
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px;
  background: none; color: var(--ink-faint); font-family: var(--mono);
  font-size: 9px; cursor: pointer; transition: all var(--transition);
}
.preview-toggle button.active { background: rgba(212,184,74,0.1); border-color: var(--gold); color: var(--gold); }
.preview-toggle button:hover { border-color: var(--gold-dim); color: var(--ink-light); }

/* PDF preview */
.pdf-preview {
  background: white; color: #111; padding: 48px 56px; border-radius: var(--radius-lg);
  max-width: 760px; margin: 0 auto; font-family: Georgia, serif; font-size: 14px; line-height: 1.8;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.pdf-preview h1 { font-size: 24px; border-bottom: 2px solid #333; padding-bottom: 8px; margin-bottom: 16px; }
.pdf-preview h2 { font-size: 18px; color: #444; margin: 20px 0 10px; }
.pdf-preview p { margin-bottom: 10px; }
.pdf-preview .pdf-header { display: flex; justify-content: space-between; font-size: 10px;
  color: #888; margin-bottom: 20px; border-bottom: 1px solid #ddd; padding-bottom: 8px; }

/* ═══ MASTHEAD ═══ */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 32px; transition: all var(--transition);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; }
.masthead-left { display: flex; align-items: baseline; gap: 16px; }
.masthead-right { display: flex; align-items: center; }
.mrule { height: 1px; background: linear-gradient(90deg, transparent 5%, var(--gold) 50%, transparent 95%); opacity: 0.3; margin-top: 10px; }
.pub-name { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dim));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pub-tagline { font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-dim); }
.pub-meta { display: flex; gap: 16px; font-size: 10px; color: var(--ink-faint); font-family: var(--mono); }
.pub-meta span { display: flex; align-items: center; gap: 5px; }
.pub-meta span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-dim); }


/* ═══ JURISDICTION STRIP ═══ */
.juris-strip { display: flex; justify-content: center; gap: 6px; padding: 8px 32px;
  background: var(--paper-warm); border-bottom: 1px solid var(--border); }
.jbadge { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px; color: var(--ink-faint);
  transition: all var(--transition); }
.jbadge:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ═══ CONTROLS ═══ */
.controls-bar {
  padding: 20px 32px; background: var(--paper-elevated);
  border-bottom: 1px solid var(--border);
  display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
}
.cg { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 150px; }
.cg label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-dim); font-weight: 500; }
.cg input, .cg select {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; font-family: var(--sans); font-size: 13px; font-weight: 400;
  color: var(--ink); outline: none; transition: all var(--transition); width: 100%;
}
.cg input::placeholder { color: var(--ink-faint); }
.cg input:focus, .cg select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,184,74,0.1); }
.cg select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238A8880'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }
.cg select option { background: var(--surface); color: var(--ink); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 20px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; color: var(--ink-faint); background: var(--surface);
  transition: all var(--transition); user-select: none;
}
.chip:hover { border-color: var(--gold-dim); color: var(--ink-light); }
.chip.on { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); border-color: var(--gold);
  color: var(--paper); font-weight: 500; box-shadow: 0 0 12px rgba(212,184,74,0.15); }

.btn-row { display: flex; gap: 8px; align-self: flex-end; }
.gbtn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: var(--paper);
  border: none; border-radius: var(--radius); padding: 0 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: all var(--transition); height: 40px; white-space: nowrap;
  font-weight: 500; box-shadow: 0 2px 8px rgba(212,184,74,0.2);
  position: relative; overflow: hidden;
}
.gbtn::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1));
  opacity: 0; transition: opacity var(--transition); }
.gbtn:hover::after { opacity: 1; }
.gbtn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,184,74,0.3); }
.gbtn:active { transform: translateY(0); }
.gbtn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.gbtn.generating { animation: btnPulse 2s ease-in-out infinite; }
@keyframes btnPulse { 0%,100% { box-shadow: 0 2px 8px rgba(212,184,74,0.2); } 50% { box-shadow: 0 2px 20px rgba(212,184,74,0.4); } }

.pbtn {
  background: var(--surface); color: var(--ink-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 16px; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all var(--transition); height: 40px;
}
.pbtn:hover { border-color: var(--gold-dim); color: var(--gold); background: var(--surface-hover); }

/* ═══ MAIN BODY ═══ */
.nbody { max-width: 840px; margin: 0 auto; padding: 32px 32px 64px; }

/* ═══ AGENT PIPELINE ═══ */
.pipeline {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-sm);
  animation: fadeSlideIn 0.4s ease-out;
}
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.pipeline-header {
  background: linear-gradient(135deg, var(--paper-elevated), var(--surface));
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
}
.pipeline-header .dot { width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212,184,74,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(212,184,74,0); } }
.pipeline-header .elapsed { margin-left: auto; color: var(--ink-faint); font-size: 10px; letter-spacing: 0; text-transform: none; }

.pipeline-steps { padding: 4px 0; }
.pipeline-step {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  transition: all 0.3s ease; position: relative;
}
.pipeline-step::before { content: ''; position: absolute; left: 24px; top: 100%; width: 1px; height: 0;
  background: var(--border); z-index: 0; }
.pipeline-step:not(:last-child)::before { height: 100%; top: 50%; }
.step-indicator {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; border: 1.5px solid var(--border); background: var(--paper-warm);
  transition: all 0.3s ease; z-index: 1; flex-shrink: 0;
}
.step-info { flex: 1; min-width: 0; }
.step-name { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; }
.step-detail { font-family: var(--sans); font-size: 11px; color: var(--ink-faint); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-progress { width: 80px; height: 3px; background: var(--paper-warm); border-radius: 2px;
  overflow: hidden; flex-shrink: 0; }
.step-progress-bar { height: 100%; background: var(--gold); border-radius: 2px;
  transition: width 0.5s ease; width: 0; }

/* Step states */
.pipeline-step.pending { opacity: 0.3; }
.pipeline-step.active { opacity: 1; background: rgba(212,184,74,0.03); }
.pipeline-step.active .step-indicator { border-color: var(--gold); background: rgba(212,184,74,0.1);
  animation: stepPulse 2s ease-in-out infinite; }
@keyframes stepPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,184,74,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(212,184,74,0); } }
.pipeline-step.complete { opacity: 0.7; }
.pipeline-step.complete .step-indicator { border-color: var(--green); background: var(--green-bg); color: var(--green); }
.pipeline-step.error { opacity: 1; }
.pipeline-step.error .step-indicator { border-color: var(--red); background: var(--red-bg); color: var(--red); }

/* ═══ FINDINGS PANEL ═══ */
.findings-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 24px; overflow: hidden; animation: fadeSlideIn 0.4s ease-out 0.1s both;
}
.findings-header { padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-dim);
  display: flex; align-items: center; gap: 8px; }
.findings-list { padding: 12px 16px; }
.finding-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(212,184,74,0.06);
  font-size: 12px; color: var(--ink-mid); line-height: 1.5; animation: fadeIn 0.3s ease-out; }
.finding-item:last-child { border-bottom: none; }
.finding-item::before { content: '▸'; color: var(--gold-dim); flex-shrink: 0; margin-top: 1px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══ LIVE STREAM ═══ */
.stream-container {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 24px; animation: fadeSlideIn 0.4s ease-out 0.15s both;
  position: relative; overflow: hidden;
}
.stream-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.4; }
.stream-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-dim); margin-bottom: 12px; }
#stream-display { font-family: var(--body); font-size: 14px; line-height: 1.9;
  color: var(--ink-mid); white-space: pre-wrap; }
.stream-cursor { display: inline-block; width: 2px; height: 16px; background: var(--gold);
  animation: cursorBlink 0.8s step-end infinite; vertical-align: text-bottom; margin-left: 2px; }
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ═══ STATUS BAR ═══ */
#status-bar {
  display: none; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 20px; font-family: var(--mono); font-size: 10px; color: var(--gold-dim);
  animation: fadeSlideIn 0.3s ease-out;
}
#status-bar.vis { display: flex; }
.sdot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: pulse 1.5s ease-in-out infinite; flex-shrink: 0; }

/* ═══ PLACEHOLDER ═══ */
.placeholder {
  text-align: center; padding: 80px 32px; color: var(--ink-faint);
  animation: fadeIn 0.5s ease-out;
}
.placeholder-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.placeholder p { font-family: var(--sans); font-size: 14px; line-height: 1.75; max-width: 400px; margin: 0 auto; }
.placeholder .tipbox {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-dim); background: var(--surface); padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid var(--border); }
.placeholder .shortcut { background: var(--paper-warm); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 3px; font-size: 9px; }

/* ═══ RENDERED ARTICLE ═══ */
.article-result { animation: fadeSlideIn 0.5s ease-out; }

.edition-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-dim); margin-bottom: 20px;
}
.edition-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.data-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 1px; margin-bottom: 24px; background: var(--border); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
}
.dc { text-align: center; padding: 10px 8px; background: var(--surface); }
.dt { font-family: var(--mono); font-size: 9px; color: var(--ink-faint); letter-spacing: 0.05em; }
.dv { font-family: var(--serif); font-size: 15px; font-weight: 600; margin: 2px 0; }
.dch { font-family: var(--mono); font-size: 10px; }
.fl { color: var(--ink-faint); } .up { color: var(--green); } .dn { color: var(--red); }

.shead { display: flex; align-items: center; gap: 14px; margin: 36px 0 18px; }
.srule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--rule), transparent); }
.slabel { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); padding: 5px 14px; border: 1px solid var(--border); border-radius: 20px;
  white-space: nowrap; background: var(--surface); }

.acard {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dim); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin-bottom: 16px; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.acard::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,184,74,0.02), transparent); pointer-events: none; }
.acard:hover { border-left-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.akicker { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-dim); margin-bottom: 6px; }
.aheadline { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 12px; }
.abody { font-family: var(--body); font-size: 14px; line-height: 1.85; color: var(--ink-mid); margin-bottom: 8px; }

.atag { display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-top: 8px; margin-right: 4px; }
.t-bull { background: var(--green-bg); color: var(--green); }
.t-bear { background: var(--red-bg); color: var(--red); }
.t-neut { background: var(--paper-warm); color: var(--ink-faint); border: 1px solid var(--border); }
.t-watch { background: var(--amber-bg); color: var(--amber); }

.pquote { border-top: 2px solid var(--gold); border-bottom: 1px solid var(--rule);
  padding: 24px 28px; margin: 32px 0; background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.pquote p { font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.6; }
.pquote cite { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-dim); display: block; margin-top: 10px; }

/* ═══ PUBLISH ACTIONS ═══ */
.publish-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px; padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
#publish-status { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

.image-url-bar {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 18px; background: var(--paper-warm);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: -1px; margin-bottom: 20px;
}

/* ═══ RAW TEXT EDITOR ═══ */
.raw-editor-container {
  background: var(--surface); border: 1px solid var(--gold);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px;
  animation: fadeSlideIn 0.3s ease-out; box-shadow: var(--shadow-lg);
}
.raw-editor-header {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--gold);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.raw-editor-textarea {
  width: 100%; height: 360px; background: var(--paper-elevated);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; font-family: var(--body); font-size: 14px;
  line-height: 1.8; color: var(--ink-light); outline: none;
  resize: vertical; transition: border-color var(--transition);
}
.raw-editor-textarea:focus { border-color: var(--gold-dim); }
.raw-editor-footer {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px;
}

/* ═══ FOOTER ═══ */
.nfooter { border-top: 1px solid var(--rule); padding: 24px 32px; text-align: center;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--ink-faint); }
.frule { height: 2px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin-bottom: 16px; opacity: 0.5; }

/* ═══ TOAST ═══ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 20px; font-family: var(--mono); font-size: 11px; color: var(--ink);
  box-shadow: var(--shadow-lg); transform: translateY(100px); opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
  .masthead { padding: 12px 16px 10px; }
  .pub-name { font-size: 24px; }
  .controls-bar { padding: 16px; gap: 12px; }
  .nbody { padding: 20px 16px 48px; }
  .acard { padding: 16px; }
  .btn-row { width: 100%; }
  .gbtn, .pbtn { flex: 1; }
}

@media print {
  .masthead, .controls-bar, .juris-strip, #status-bar, .pipeline,
  .findings-panel, .stream-container, .publish-actions, .nfooter { display: none !important; }
  .nbody { max-width: 100%; padding: 20px; }
  .acard { break-inside: avoid; border-color: #ccc; }
  body { background: #fff; color: #111; }
}

/* ═══ SETTINGS MODAL ═══ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s ease-out;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: var(--paper-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl); width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: scaleIn 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--gold); }
.modal-close {
  background: none; border: none; color: var(--ink-faint); font-size: 20px;
  cursor: pointer; padding: 4px; transition: color 0.2s;
}
.modal-close:hover { color: var(--gold); }

.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-dim); }
.form-group input {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; font-family: var(--sans); font-size: 13px; color: var(--ink); outline: none;
}
.form-group input:focus { border-color: var(--gold); }

.modal-footer { padding: 16px 24px; background: var(--paper-warm); border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px; }

.settings-trigger {
  position: absolute; top: 16px; right: 24px;
  background: none; border: none; color: var(--ink-faint);
  font-size: 14px; cursor: pointer; transition: color 0.2s;
  display: flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em;
}
.settings-trigger:hover { color: var(--gold); }

/* ═══ DEEP RESEARCH ESSAY ═══ */
.essay-h1 {
  font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.3;
  color: var(--ink); margin: 32px 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--gold);
}
.essay-h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.35;
  color: var(--ink); margin: 28px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.essay-h3 {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin: 20px 0 10px;
}
.essay-body {
  font-family: var(--body); font-size: 15px; line-height: 1.9; color: var(--ink-mid);
  margin-bottom: 12px; text-align: justify;
}
.essay-body strong { color: var(--ink); }
.essay-list {
  margin: 12px 0 16px 24px; font-family: var(--body); font-size: 14px;
  line-height: 1.8; color: var(--ink-mid); list-style: none;
}
.essay-list li { position: relative; padding-left: 16px; margin-bottom: 8px; }
.essay-list li::before {
  content: '▸'; position: absolute; left: 0; color: var(--gold-dim);
}

/* ═══ SHORT BRIEF ═══ */
.brief-container {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px;
  border-top: 3px solid var(--amber);
}
.brief-header {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--gold); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.brief-section-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dim);
  margin: 20px 0 8px; padding: 6px 12px;
  background: var(--paper-warm); border-radius: var(--radius);
  display: inline-block;
}
.brief-body {
  font-family: var(--sans); font-size: 14px; line-height: 1.75;
  color: var(--ink-mid); margin-bottom: 6px;
}
.brief-body strong { color: var(--ink); }
.brief-list {
  margin: 8px 0 16px 0; list-style: none; padding: 0;
}
.brief-list li {
  font-family: var(--sans); font-size: 13px; line-height: 1.7;
  color: var(--ink-mid); padding: 8px 12px; margin-bottom: 4px;
  background: var(--paper-warm); border-radius: var(--radius);
  border-left: 2px solid var(--gold-dim);
  transition: all var(--transition);
}
.brief-list li:hover { border-left-color: var(--gold); transform: translateX(2px); }
.brief-list li strong { color: var(--ink); }

/* ═══ SOCIAL THREAD ═══ */
.thread-container {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.thread-container::before {
  content: ''; position: absolute; left: 18px; top: 20px; bottom: 20px;
  width: 2px; background: linear-gradient(180deg, var(--gold), var(--border), var(--gold));
  opacity: 0.3; border-radius: 1px;
}
.thread-post {
  display: flex; gap: 16px; padding: 16px 20px;
  position: relative; transition: all var(--transition);
  border-radius: var(--radius);
}
.thread-post:hover { background: var(--surface); }
.thread-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  background: var(--surface); border: 2px solid var(--gold-dim);
  color: var(--gold); flex-shrink: 0; z-index: 1;
  transition: all var(--transition);
}
.thread-post:hover .thread-num { border-color: var(--gold); background: rgba(212,184,74,0.1); }
.thread-content {
  flex: 1; font-family: var(--sans); font-size: 14px; line-height: 1.7;
  color: var(--ink-mid);
}
.thread-content strong { color: var(--ink); }
.thread-meta {
  font-family: var(--mono); font-size: 9px; color: var(--ink-faint);
  align-self: flex-end; white-space: nowrap;
}

/* ═══ INTELLIGENCE DIGEST ═══ */
.digest-container {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 32px;
  border-top: 3px solid #2CBAA0;
  max-width: 680px; margin: 0 auto;
}
.digest-h1 {
  font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.3;
  color: var(--ink); margin: 0 0 20px;
}
.digest-h2 {
  font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.35;
  color: var(--ink); margin: 24px 0 12px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.digest-h3 {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: #2CBAA0; margin: 18px 0 8px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.digest-body {
  font-family: var(--sans); font-size: 16px; line-height: 1.85; color: var(--ink-mid);
  margin-bottom: 10px;
}
.digest-body strong { color: var(--ink); font-weight: 600; }
.digest-actions {
  margin: 16px 0 20px 0; padding: 0 0 0 20px;
  font-family: var(--sans); font-size: 15px; line-height: 1.8;
  color: var(--ink-mid); counter-reset: digest-counter;
  list-style: none;
}
.digest-actions li {
  position: relative; padding: 10px 14px 10px 28px; margin-bottom: 6px;
  background: var(--paper-warm); border-radius: var(--radius);
  border-left: 3px solid #2CBAA0;
  counter-increment: digest-counter;
  transition: all var(--transition);
}
.digest-actions li::before {
  content: counter(digest-counter); position: absolute; left: 8px; top: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: #2CBAA0;
}
.digest-actions li:hover { transform: translateX(3px); border-left-color: var(--gold); }
.digest-actions li strong { color: var(--ink); }
