/* ============================================================
   newsdesk-panel.css — Solveza News Desk inside the admin shell.
   Bloomberg-terminal energy. Dense, dark, monospaced where it
   matters, serif where it breathes. Lives inside #adm-main, so
   it shouldn't fight the admin shell — it just lays out a 3-pane
   intelligence terminal in the content area.
   ============================================================ */

.nd-root {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 420px;
  grid-template-rows: auto 1fr;
  gap: 0;
  background: #0a0b0e;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  min-height: 720px;
  height: calc(100vh - 200px);
  max-height: 960px;
  color: #cfd2d8;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

#adm-newsdesk-mount {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  max-width: 100vw;
}
.adm-newsdesk-host {
  padding: 0;
}
#adm-newsdesk-mount .nd-root {
  flex: 1;
  min-height: 0;
}

/* Chrome row + 3-pane body */
.nd-chrome {
  grid-column: 1 / -1;
  grid-row: 1;
}
.nd-root > .nd-rail {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  overflow-y: auto;
  max-height: none;
}
.nd-root > .nd-center {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nd-root > .nd-brief,
.nd-root > .nd-reading-pane {
  grid-column: 3;
  grid-row: 2;
  min-height: 0;
  overflow-y: auto;
  max-height: none;
}
.nd-root > .nd-brief-backdrop {
  display: none;
}
.nd-chrome .nd-ps-ticker-mount {
  grid-column: unset;
}
.nd-center .nd-trend-board {
  flex-shrink: 0;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}
.nd-center #nd-audio-brief-mount:empty {
  display: none;
}
.nd-center .nd-grid {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  width: 100%;
  overflow-y: auto;
}

/* Collapsed onboarding — thin bar, not a tall card */
.nd-onboard-checklist.nd-ob-collapsed,
.nd-onboard-checklist.nd-ob-expanded {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.nd-ob-bar {
  flex: 1;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #9aa0ad;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
}
.nd-ob-bar:hover { color: #d4a853; }
.nd-ob-dismiss {
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #6e7480;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
}
.nd-ob-dismiss:hover { color: #cfd2d8; background: rgba(255,255,255,0.06); }
.nd-ob-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.nd-ob-expanded .nd-ob-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 4px;
  width: 100%;
}
.nd-ob-expanded {
  flex-direction: column;
  align-items: stretch;
}
.nd-ob-step {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  font-size: 12.5px;
}
.nd-ob-step.done .nd-ob-link { color: #7dd3a0; text-decoration: line-through; }
.nd-ob-link { color: #cfd2d8; text-decoration: none; }
.nd-ob-link:hover { color: #d4a853; }
.nd-ob-mark { color: #6e7480; font-size: 11px; }

/* 3-pane body — explicit columns so auto-placement can't shove the list into the right rail */
.nd-root > .nd-feed-banner,
.nd-root > .nd-topbar,
.nd-root > .nd-ps-ticker-mount,
.nd-root > .nd-onboard-checklist {
  grid-column: unset;
}

/* ===== Reporter Notebook split (C-N77) ===== */
.nd-root.nd-notebook-open {
  grid-template-columns: 220px minmax(0, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
}
.nd-nb-pane {
  background: #0e1014;
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.nd-nb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nd-nb-title {
  flex: 1;
  min-width: 140px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: #e8eaed;
  padding: 8px 10px;
  font-size: 14px;
  min-height: 44px;
}
.nd-nb-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nd-nb-tag {
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.25);
  color: #d4a853;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  min-height: 32px;
}
.nd-nb-tag-input {
  width: 72px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #9aa0ad;
  font-size: 12px;
  padding: 4px;
}
.nd-nb-close {
  background: transparent;
  border: 0;
  color: #9aa0ad;
  font-size: 22px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.nd-nb-editor {
  flex: 1;
  min-height: 200px;
  resize: none;
  border: 0;
  background: #0a0b0e;
  color: #cfd2d8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.55;
  padding: 14px;
}
.nd-nb-status {
  font-size: 11px;
  color: #6b7280;
  padding: 8px 12px;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
}
.nd-nb-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e2228;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 80;
}
.nd-nb-toast.show { opacity: 1; }
.nd-nb-tabs { display: none; }

.nd-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.nd-tour-card {
  background: #1a1d24;
  border: 1px solid rgba(212,168,83,0.3);
  border-radius: 12px;
  padding: 18px;
  max-width: 420px;
  width: 100%;
}
.nd-tour-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.nd-tour-actions { display: flex; gap: 10px; justify-content: flex-end; }
.nd-tour-step { font-size: 11px; color: #6b7280; font-family: 'JetBrains Mono', monospace; }

/* ===== TOP BAR (spans all three columns) ===== */
.nd-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(20,22,28,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.nd-desk-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent, #e0a96d), #b87f30);
  color: var(--cream, #f4ecd9);
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  flex-shrink: 0;
}
.nd-desk-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--cream, #f4ecd9);
  letter-spacing: 0.02em;
  margin-right: 6px;
  flex-shrink: 0;
}
.nd-mode-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px;
}
.nd-mode-btn {
  background: transparent;
  border: 0;
  color: #9aa0ad;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.nd-mode-btn.active {
  background: linear-gradient(135deg, #d4a853, #b87f30);
  color: #1a1a1a;
}
.nd-search {
  flex: 1;
  min-width: 220px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #f5f3ee;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 9px 14px;
}
.nd-search:focus {
  outline: none;
  border-color: #d4a853;
  background: rgba(212,168,83,0.05);
}
.nd-sort {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cfd2d8;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  max-width: 160px;
}
.nd-entity-jump {
  flex: 0 1 140px;
  min-width: 100px;
}
.nd-entity-jump-in {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #cfd2d8;
  font-size: 12px;
  padding: 8px 10px;
}
.nd-quality-wrap { flex-shrink: 0; }
.nd-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4ade80;
}
.nd-live-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d4a853;
  box-shadow: 0 0 8px #d4a853;
  animation: nd-pulse 1.6s ease-in-out infinite;
}
.nd-live-dot.live { color: #4ade80; }
.nd-live-dot.warn { color: #e8b86d; }
.nd-live-dot.live::before {
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}
.nd-live-dot.nd-live-dot-blocked { color: #e8a06d; }
.nd-live-dot.nd-live-dot-blocked::before { background: #e8a06d; box-shadow: 0 0 8px #e8a06d; }
.nd-reading-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.nd-brief-slot { flex-shrink: 0; }
.nd-dossier-slot {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nd-dossier-cluster-links {
  margin: 8px 0 12px;
  padding-left: 18px;
  font-size: 13px;
}
.nd-dossier-cluster-links a { color: var(--accent, #e0a96d); }
.nd-diagnostics { margin-top: 12px; font-size: 12px; }
.nd-diagnostics-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono, monospace); font-size: 11px; }
.nd-diagnostics-table th, .nd-diagnostics-table td { padding: 4px 8px; border-bottom: 1px solid var(--border, #2a2f35); text-align: left; }
.nd-diagnostics-ping { color: var(--text-2, #aab2bb); margin: 0 0 8px; }
.nd-live-dot.breaking-pulse::before {
  background: #ff8b8b;
  box-shadow: 0 0 14px #ff8b8b;
  animation: nd-breaking-pulse 0.5s ease-in-out 4;
}
@keyframes nd-breaking-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.85; }
}
.nd-bell-btn, .nd-mute-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  color: #cfd2d8;
}
.nd-bell-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  background: #ff8b8b;
  color: #0a0b0e;
  border-radius: 8px;
  line-height: 16px;
  text-align: center;
}
.nd-brief-close {
  display: none;
  position: sticky;
  top: 0;
  z-index: 5;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #e8eaed;
  font-size: 22px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nd-brief-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nd-brief-backdrop {
  display: none;
}
.nd-spinner {
  width: 28px; height: 28px;
  margin: 14px auto;
  border: 2px solid rgba(212,168,83,0.2);
  border-top-color: #d4a853;
  border-radius: 50%;
  animation: nd-spin 0.9s linear infinite;
}
@keyframes nd-spin { to { transform: rotate(360deg); } }
@keyframes nd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== LEFT RAIL (categories + watchlists) ===== */
.nd-rail {
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 18px 14px;
  background: rgba(14,16,20,0.6);
  overflow-y: auto;
}
.nd-rail-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream, #f4ecd9);
  margin: 0 0 10px 0;
  padding: 0 6px;
}
.nd-states-block {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nd-states-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cream, #f4ecd9);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}
.nd-states-toggle:hover { background: rgba(255,255,255,0.04); }
.nd-states-chev { font-size: 11px; opacity: 0.8; }
.nd-states-list {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}
.nd-states-list.open { display: flex; }
.nd-state-item {
  display: flex;
  align-items: center;
  padding: 8px 10px 8px 18px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cfd2d8;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
}
.nd-state-item:hover { background: rgba(255,255,255,0.04); }
.nd-state-item.active {
  background: rgba(212,168,83,0.1);
  color: #f5f3ee;
  border-left: 2px solid #d4a853;
  padding-left: 16px;
}
.nd-state-national { color: #9aa0ad; font-size: 11.5px; }
.nd-root.nd-state-desk > .nd-chrome .nd-topbar,
.nd-root.nd-state-desk > .nd-topbar {
  background: linear-gradient(135deg, rgba(30,28,24,0.95), rgba(22,20,18,0.98));
  border-bottom-color: rgba(212,168,83,0.22);
}
.nd-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 22px;
}
.nd-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  color: #cfd2d8;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
}
.nd-cat:hover { background: rgba(255,255,255,0.04); }
.nd-cat.active {
  background: rgba(212,168,83,0.1);
  color: #f5f3ee;
  border-left: 2px solid #d4a853;
  padding-left: 8px;
}
.nd-cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nd-cat-label { flex: 1; }
.nd-cat-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #6e7480;
}
.nd-wl-list { display: flex; flex-direction: column; gap: 4px; }
.nd-wl {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 9px 11px;
  color: #cfd2d8;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}
.nd-wl:hover { border-color: rgba(212,168,83,0.4); }
.nd-wl.active {
  border-color: #d4a853;
  background: rgba(212,168,83,0.08);
  color: #f5f3ee;
}
.nd-wl-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4a853;
  display: block;
  margin-bottom: 3px;
}
.nd-wl-entities {
  color: #9aa0ad;
  font-size: 11px;
}

/* ===== STORY GRID (center) ===== */
.nd-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255,255,255,0.04);
  overflow-y: auto;
}
.nd-story {
  display: grid;
  grid-template-columns: 28px 52px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: 10px 12px;
  align-items: start;
  min-height: 108px;
  padding: 14px 16px 16px;
  background: #0a0b0e;
  border: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  text-align: left;
  cursor: pointer;
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font: inherit;
  isolation: isolate;
}
.nd-story:hover { background: rgba(255,255,255,0.025); }
.nd-story.selected {
  background: rgba(212,168,83,0.07);
  box-shadow: inset 3px 0 0 #d4a853;
  z-index: 1;
}
.nd-compare-pick {
  grid-column: 1;
  align-self: start;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  font-size: 16px;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  padding: 4px 0;
}
.nd-story-scores {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  padding-top: 4px;
  min-width: 52px;
  flex-shrink: 0;
}
.nd-score {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  color: #cfd2d8;
  white-space: nowrap;
}
.nd-score.urg-high { background: rgba(214,69,69,0.18); color: #ff8b8b; }
.nd-score.urg-mid  { background: rgba(212,168,83,0.18); color: #d4a853; }
.nd-score.urg-low  { background: rgba(255,255,255,0.04); color: #9aa0ad; }
.nd-score.cred     { background: rgba(74,222,128,0.12); color: #6fe6a0; }
.nd-story-body { grid-column: 3; grid-row: 1; min-width: 0; }
.nd-story-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  row-gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e7480;
  margin-bottom: 8px;
  min-height: 18px;
}
.nd-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cfd2d8;
}
.nd-cat-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.nd-story-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.32;
  color: #f5f3ee;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.nd-story.selected .nd-story-headline { color: #ffe9b3; }
.nd-story-summary {
  font-size: 12.5px;
  line-height: 1.5;
  color: #9aa0ad;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nd-story-sources {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
  max-width: 100%;
}
.nd-fm-badge-meta {
  margin-left: 0;
  animation: none;
  vertical-align: baseline;
  font-size: 8px;
  padding: 2px 6px;
}
.nd-src-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #cfd2d8;
}
/* ===== C-N9 first-mover scoop panel ===== */
.nd-firstmover.active {
  border-left: 2px solid #ff6b6b;
  padding-left: 8px;
}
.nd-fm-dot {
  background: #ff6b6b !important;
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.55);
}
.nd-fm-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nd-fm-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 107, 107, 0.06);
  border-bottom: 1px solid rgba(255, 107, 107, 0.2);
}
.nd-fm-toolbar-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8b8b;
  margin: 0 0 4px 0;
}
.nd-fm-toolbar-sub {
  font-size: 11px;
  color: #6e7480;
  margin: 0;
  line-height: 1.45;
}
.nd-fm-story {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 20px 18px 56px;
  background: #0a0b0e;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  position: relative;
}
.nd-fm-story:hover { background: rgba(255, 107, 107, 0.04); }
.nd-fm-story.selected {
  background: rgba(255, 107, 107, 0.08);
  border-left: 3px solid #ff6b6b;
  padding-left: 53px;
}
.nd-scoop-chip {
  position: absolute;
  top: 16px;
  left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: #c73e3e;
  padding: 3px 7px;
  border-radius: 3px;
}
.nd-fm-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: #f5f3ee;
  margin: 0 0 8px 0;
}
.nd-fm-story.selected .nd-fm-headline { color: #ffe0e0; }
.nd-fm-solo-line {
  font-size: 12.5px;
  color: #d4a853;
  margin: 0 0 10px 0;
  line-height: 1.45;
}
.nd-fm-source-link {
  color: #d4a853;
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 83, 0.45);
}
.nd-fm-source-link:hover { color: #ffe9b3; }
.nd-fm-source-name { color: #d4a853; font-weight: 500; }
.nd-fm-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nd-fm-age {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #ff8b8b;
  text-transform: uppercase;
}
.nd-fm-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #6e7480;
  text-transform: uppercase;
}

.nd-solo-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: linear-gradient(135deg, #d4a853, #b87f30);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.nd-src-chip.tier-1 { color: #d4a853; border-color: rgba(212,168,83,0.3); }
.nd-src-more {
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: #6e7480;
  padding: 3px 4px;
}
.nd-story-right {
  grid-column: 4;
  grid-row: 1;
  align-self: start;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: right;
  white-space: nowrap;
  min-width: 52px;
}
.nd-opp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  background: rgba(95,180,207,0.15);
  color: #8dd1e4;
}
.nd-brief-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  padding: 28px 24px;
}
.nd-brief-empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: #f5f3ee;
  margin: 0 0 10px 0;
}
.nd-time-ago {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #6e7480;
  letter-spacing: 0.08em;
}
.nd-source-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: #d4a853;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== BRIEF DRAWER (right) ===== */
.nd-brief {
  border-left: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,11,14,0.96);
  padding: 22px 22px 30px;
  overflow-y: auto;
  position: relative;
}
.nd-brief-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4a853;
  margin: 0 0 8px 0;
}
.nd-brief-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  color: #f5f3ee;
  margin: 0 0 14px 0;
}
.nd-brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.nd-brief-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
}
.nd-brief-section:first-of-type { border-top: 0; padding-top: 0; }
.nd-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream, #f4ecd9);
  margin: 0 0 8px 0;
}
.nd-section-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream, #f4ecd9);
}
.nd-brief-quiet,
.nd-brief-error-msg {
  color: var(--text-2, #aab2bb) !important;
}
.nd-bullet-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nd-bullet-list li { line-height: 1.5; }
.nd-bullet-list.warn li::marker { color: #d64545; }
.nd-bullet-list.unknown li::marker { color: #d4a853; }

/* C-N1 — citation-linked facts (claim + source on new line) */
.nd-fact-cited {
  list-style-position: outside;
}
.nd-fact-claim {
  display: block;
  color: #f5f3ee;
}
.nd-citation {
  display: block;
  margin-top: 4px;
  padding-left: 2px;
  font-size: 11.5px;
  line-height: 1.45;
}
.nd-citation-line {
  display: inline;
}
.nd-citation-arrow {
  color: #6e7480;
  margin-right: 2px;
}
.nd-citation-source {
  color: #d4a853;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.nd-citation-url {
  color: #9aa0ad;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-decoration: none;
  word-break: break-all;
}
.nd-citation-url:hover {
  color: #d4a853;
  text-decoration: underline;
}
.nd-angle-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.nd-angle {
  background: rgba(255,255,255,0.03);
  border-left: 2px solid #d4a853;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #f5f3ee;
  border-radius: 0 4px 4px 0;
}
.nd-angle-platform {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4a853;
  margin-bottom: 4px;
}
.nd-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.nd-cta {
  background: linear-gradient(135deg, #d4a853, #b87f30);
  color: #1a1a1a;
  border: 0;
  padding: 10px 16px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.nd-cta.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #cfd2d8;
}
.nd-articles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.nd-article {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  font-size: 12px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.025);
  border-radius: 4px;
  align-items: center;
}
.nd-article-src {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #d4a853;
  text-transform: uppercase;
}
.nd-article-title { color: #cfd2d8; line-height: 1.35; }
.nd-article-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: #6e7480;
}

.nd-empty {
  padding: 60px 30px;
  text-align: center;
  color: #6e7480;
  font-style: italic;
}
.nd-doctrine-note {
  margin-top: 24px;
  padding: 12px 14px;
  background: rgba(212,168,83,0.05);
  border: 1px dashed rgba(212,168,83,0.25);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.55;
  color: #9aa0ad;
}
.nd-doctrine-note strong { color: #d4a853; font-weight: 500; }

/* ===== C-N2 story timeline (brief drawer) ===== */
.nd-timeline {
  margin: 0 0 14px 0;
  padding: 10px 0 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nd-tl-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e7480;
}
.nd-tl-bound { white-space: nowrap; }
.nd-tl-track {
  position: relative;
  height: 28px;
  margin: 0 4px;
}
.nd-tl-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
}
.nd-tl-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  padding: 0;
  border: 2px solid #0a0b0e;
  border-radius: 50%;
  background: #9aa0ad;
  cursor: default;
  transition: transform 0.12s ease, background 0.12s ease;
}
.nd-tl-dot.tier-1 { background: #d4a853; }
.nd-tl-dot.tier-2 { background: #7dcea0; }
.nd-tl-dot:hover {
  transform: scale(1.35);
  z-index: 2;
  background: #f5f3ee;
}
.nd-tl-dot.tier-1:hover { background: #ffe9b3; }

/* ===== C-N8 entity chips + sidebar drawer ===== */
.nd-entity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px 0;
}
.nd-entity-chip {
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.35);
  color: #d4a853;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
}
.nd-entity-chip:hover {
  background: rgba(212,168,83,0.22);
  color: #ffe9b3;
}
.nd-entity-link {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: #d4a853;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(212,168,83,0.45);
  cursor: pointer;
}
.nd-entity-link:hover { color: #ffe9b3; }

.nd-brief-has-drawer .nd-brief-section,
.nd-brief-has-drawer .nd-cta-row {
  filter: brightness(0.55);
  pointer-events: none;
}
.nd-entity-drawer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.nd-entity-drawer.open { pointer-events: auto; }
.nd-entity-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  cursor: pointer;
}
.nd-entity-panel {
  position: relative;
  width: min(340px, 92%);
  height: 100%;
  background: #12141a;
  border-left: 1px solid rgba(212,168,83,0.25);
  box-shadow: -12px 0 40px rgba(0,0,0,0.45);
  padding: 18px 18px 22px;
  overflow-y: auto;
  pointer-events: auto;
}
.nd-entity-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: #cfd2d8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.nd-entity-close:hover { background: rgba(212,168,83,0.15); color: #f5f3ee; }
.nd-entity-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  padding-right: 28px;
}
.nd-entity-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.nd-entity-img-placeholder {
  background: linear-gradient(135deg, rgba(212,168,83,0.12), rgba(255,255,255,0.04));
}
.nd-entity-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #f5f3ee;
  margin: 0;
  align-self: center;
}
.nd-entity-summary-wrap.clamped .nd-entity-summary {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nd-entity-summary {
  font-size: 12.5px;
  line-height: 1.55;
  color: #b8bcc4;
  margin: 0 0 8px 0;
}
.nd-entity-readmore {
  background: none;
  border: 0;
  padding: 0;
  color: #d4a853;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 12px;
}
.nd-entity-readmore:hover { text-decoration: underline; }
.nd-entity-facts {
  margin: 12px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nd-entity-fact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
}
.nd-entity-fact dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4a853;
  margin: 0;
}
.nd-entity-fact dd {
  margin: 0;
  color: #cfd2d8;
}
.nd-entity-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #6e7480;
}
.nd-entity-footer a {
  color: #d4a853;
  text-decoration: none;
}
.nd-entity-footer a:hover { text-decoration: underline; }
.nd-entity-error {
  font-size: 14px;
  color: #ff8b8b;
  margin: 40px 0 8px 0;
}
.nd-entity-error-sub {
  font-size: 12px;
  color: #9aa0ad;
}
.nd-entity-skel-img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  animation: nd-entity-pulse 1.2s ease-in-out infinite;
}
.nd-entity-skel-title {
  height: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  animation: nd-entity-pulse 1.2s ease-in-out infinite;
  animation-delay: 0.1s;
}
.nd-entity-skel-line {
  height: 12px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  margin-bottom: 8px;
  animation: nd-entity-pulse 1.2s ease-in-out infinite;
}
.nd-entity-skel-line.short { width: 65%; }
.nd-entity-skel-fact {
  height: 36px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 8px;
  animation: nd-entity-pulse 1.2s ease-in-out infinite;
}
@keyframes nd-entity-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Responsive — collapse rail + drawer on narrow ===== */
@media (max-width: 1180px) {
  .nd-root {
    grid-template-columns: 180px 1fr 360px;
  }
}
/* ===== C-N10 Primary sources pane ===== */
.nd-primary-sources-mount { margin-top: 4px; }
.nd-primary-sources { margin-top: 8px; }
.nd-ps-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nd-ps-group-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4a853;
  margin-bottom: 4px;
}
.nd-ps-group-sub {
  font-size: 12px;
  color: #9aa0ad;
  margin-bottom: 8px;
}
.nd-ps-list { list-style: none; margin: 0; padding: 0; }
.nd-ps-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12.5px;
}
.nd-ps-form-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(212,168,83,0.15);
  color: #e8c97a;
}
.nd-ps-item-date { color: #6e7480; font-size: 11px; }
.nd-ps-item-desc { flex: 1 1 100%; color: #c8ccd4; }
.nd-ps-item-link { font-size: 11px; color: #d4a853; }
.nd-ps-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9aa0ad;
  padding: 8px 0;
}
.nd-ps-error {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #ff8b8b;
  padding: 8px 0;
}
.nd-ps-retry {
  min-height: 32px;
  min-width: 44px;
  padding: 4px 10px;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #e8eaed;
  border-radius: 4px;
  cursor: pointer;
}
.nd-spinner-inline {
  width: 14px;
  height: 14px;
  border-width: 2px;
  flex-shrink: 0;
}

/* ===== C-N15 Export + fact copy ===== */
.nd-export-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.nd-export-btn, .nd-copy-btn {
  min-height: 32px; min-width: 36px; padding: 4px 10px; font-size: 11px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
  color: #b8bcc6; border-radius: 4px; cursor: pointer;
}
.nd-export-btn:hover, .nd-copy-btn:hover { color: #e8eaed; border-color: rgba(212,168,83,0.4); }
.nd-story:focus-visible, .nd-fm-story:focus-visible, .nd-cat:focus-visible, .nd-mode-btn:focus-visible,
.nd-cta:focus-visible, .nd-export-btn:focus-visible, .nd-copy-btn:focus-visible, .nd-search:focus-visible {
  outline: 2px solid #d4a853;
  outline-offset: 2px;
}
.nd-fact-cited { position: relative; }
.nd-fact-actions { display: inline-flex; gap: 4px; margin-left: 8px; opacity: 0; transition: opacity 0.15s; }
.nd-fact-cited:hover .nd-fact-actions { opacity: 1; }
.nd-copy-flash { background: rgba(74,222,128,0.25) !important; color: #4ade80 !important; }
.nd-bias-bar { display: block; width: 100%; border: 0; background: transparent; padding: 8px 0; cursor: pointer; }
.nd-bias-track { display: flex; gap: 3px; align-items: flex-end; height: 28px; }
.nd-bias-seg { display: inline-block; height: 100%; border-radius: 2px; min-width: 6px; }
.nd-bias-labels, .nd-bias-counts { display: flex; justify-content: space-between; font-size: 10px; color: #6e7480; margin-top: 4px; }
.nd-bias-detail { margin-top: 12px; font-size: 12px; color: #9aa0ad; }
.nd-quote-card { margin: 12px 0; padding: 14px 16px; border-left: 3px solid #d4a853; background: rgba(255,255,255,0.03); border-radius: 0 6px 6px 0; }
.nd-quote-text { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; line-height: 1.45; color: #e8eaed; margin-bottom: 10px; }
.nd-quote-speaker { font-weight: 600; font-size: 12px; }
.nd-quote-role, .nd-quote-src { font-size: 12px; color: #9aa0ad; }
.nd-quote-src a { color: #d4a853; }
/* ===== C-N55–C-N58 Content engines (Layer 2) ===== */
.nd-content-engines { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; }
.nd-ce-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nd-ce-btn, .nd-ce-retry {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 12px;
  border: 1px solid rgba(212,168,83,0.35);
  background: rgba(212,168,83,0.08);
  color: #e8c97a;
  border-radius: 6px;
  cursor: pointer;
}
.nd-ce-btn:hover { background: rgba(212,168,83,0.18); }
.nd-ce-link {
  background: none;
  border: 0;
  color: #d4a853;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  min-height: 44px;
  padding: 4px 8px 4px 0;
}
.nd-ce-image { width: 100%; border-radius: 8px; margin: 10px 0; display: block; }
.nd-ce-image-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nd-ce-caption, .nd-ce-cost { font-size: 11px; color: #6e7480; margin-top: 8px; font-family: 'JetBrains Mono', monospace; }
.nd-ce-cost strong { color: #9aa0ad; }
.nd-ce-empty, .nd-ce-hint { font-size: 12.5px; color: #6e7480; line-height: 1.45; margin: 8px 0; }
.nd-ce-error { font-size: 12px; color: #ff8b8b; margin: 10px 0; }
.nd-ce-loading p { font-size: 12px; color: #9aa0ad; margin-top: 8px; }
.nd-ce-shimmer {
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(212,168,83,0.12) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: nd-ce-shimmer 1.2s ease-in-out infinite;
}
@keyframes nd-ce-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.nd-ce-audio { width: 100%; margin: 8px 0; }
.nd-ce-transcribe-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.nd-ce-url-input { flex: 1; min-width: 200px; }
.nd-ce-seg { font-size: 12.5px; margin: 6px 0; line-height: 1.4; }
.nd-ce-ts { font-family: 'JetBrains Mono', monospace; color: #d4a853; margin-right: 8px; }

/* C-N59 / C-N60 admin ops widgets */
.nd-sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 16px 0; }
.nd-sh-layer { padding: 14px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.nd-sh-layer-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #d4a853; }
.nd-sh-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nd-sh-dot { width: 14px; height: 14px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; min-width: 44px; min-height: 44px; background: transparent; position: relative; }
.nd-sh-dot::after { content: ''; position: absolute; inset: 15px; border-radius: 50%; background: #6e7480; }
.nd-sh-dot.ok::after { background: #4ade80; }
.nd-sh-dot.bad::after { background: #ff8b8b; }
.nd-sh-drawer { margin-top: 16px; padding: 16px; border: 1px solid rgba(212,168,83,0.3); border-radius: 8px; position: relative; }
.nd-pv-chain { margin: 8px 0 16px 18px; font-size: 13px; color: #9aa0ad; }
.nd-pv-chain li { margin: 4px 0; }
.nd-pv-row { cursor: pointer; }
.nd-pv-row:hover { background: rgba(212,168,83,0.06); }

/* ===== Content Forge (C-N96–C-N99) ===== */
.nd-content-forge {
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nd-cf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.nd-cf-url-label {
  flex: 1 1 100%;
  font-size: 11px;
  color: #9aa0ad;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nd-cf-url {
  width: 100%;
  margin-top: 6px;
  min-height: 44px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #e8eaed;
  font-size: 13px;
}
.nd-cf-expand-btn { flex: 1 1 auto; min-width: 160px; }
.nd-cf-status { flex: 1 1 100%; font-size: 12px; color: #6b7280; margin: 0; min-height: 1.2em; }
.nd-cf-h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: #d4a853;
  margin: 0 0 12px;
}
.nd-cf-muted { font-size: 13px; color: #9aa0ad; line-height: 1.45; margin: 0 0 10px; }
.nd-cf-shimmer-wrap { padding: 24px; text-align: center; color: #9aa0ad; }
.nd-cf-shimmer {
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(212,168,83,0.5), transparent);
  background-size: 200% 100%;
  animation: nd-cf-shimmer 1.2s ease infinite;
  margin-bottom: 12px;
  border-radius: 2px;
}
@keyframes nd-cf-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.nd-cf-error { color: #e8a0a0; font-size: 13px; padding: 12px; background: rgba(200,80,80,0.08); border-radius: 8px; }
.nd-cf-split .nd-cf-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .nd-cf-split .nd-cf-columns { grid-template-columns: 1fr; }
}
.nd-cf-col-title { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #d4a853; margin: 0 0 12px; }
.nd-cf-col-source { border-right: 1px solid rgba(255,255,255,0.06); padding-right: 16px; }
.nd-cf-research { margin-bottom: 20px; }
.nd-cf-block { margin-bottom: 16px; }
.nd-cf-block-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9aa0ad;
  margin: 0 0 8px;
}
.nd-cf-source-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  margin-bottom: 8px;
}
.nd-cf-src-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #d4a853;
  min-width: 24px;
}
.nd-cf-src-body { flex: 1; min-width: 0; }
.nd-cf-src-body h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.nd-cf-src-meta { font-size: 11px; color: #6b7280; margin: 0; }
.nd-cf-src-link {
  color: #d4a853;
  text-decoration: none;
  font-size: 16px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nd-cf-facts { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.nd-cf-cite { color: #d4a853; font-size: 10px; }
.nd-cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-cf-chip {
  background: rgba(212,168,83,0.1);
  border: 1px solid rgba(212,168,83,0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}
.nd-cf-chip em { display: block; font-style: normal; font-size: 10px; color: #9aa0ad; margin-top: 2px; }
.nd-cf-timeline { border-left: 2px solid rgba(212,168,83,0.35); padding-left: 14px; }
.nd-cf-tl-item { margin-bottom: 10px; }
.nd-cf-tl-date { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #d4a853; }
.nd-cf-tl-label { font-size: 13px; }
.nd-cf-claim { margin-bottom: 10px; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 6px; }
.nd-cf-claim p { margin: 6px 0 0; font-size: 13px; color: #9aa0ad; }
.nd-cf-quote {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 3px solid #d4a853;
  background: rgba(255,255,255,0.03);
  font-size: 14px;
}
.nd-cf-quote footer { font-size: 12px; color: #9aa0ad; margin-top: 8px; }
.nd-cf-implications {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.nd-cf-implications > div {
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  font-size: 13px;
}
.nd-cf-implications span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4a853;
  margin-bottom: 6px;
}
.nd-cf-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.nd-cf-compare h4 { margin: 0 0 8px; font-size: 12px; color: #d4a853; }
.nd-cf-compare ul { margin: 0; padding-left: 16px; font-size: 13px; }
.nd-cf-angles { display: flex; flex-direction: column; gap: 8px; }
.nd-cf-angle {
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  color: inherit;
  min-height: 44px;
}
.nd-cf-angle strong { display: block; font-size: 14px; margin-bottom: 4px; }
.nd-cf-angle span { font-size: 12px; color: #9aa0ad; }
.nd-cf-format-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.nd-cf-format-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  min-height: 72px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  color: #cfd2d8;
  font-size: 11px;
}
.nd-cf-format-btn:hover:not(:disabled) { border-color: rgba(212,168,83,0.4); }
.nd-cf-format-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.nd-cf-fmt-icon { font-size: 18px; }
.nd-cf-fmt-label { font-weight: 500; text-align: center; line-height: 1.2; }
.nd-cf-fmt-est { font-size: 9px; color: #6b7280; font-family: 'JetBrains Mono', monospace; }
.nd-cf-result {
  margin-top: 16px;
  padding: 16px;
  background: #0e1014;
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 10px;
}
.nd-cf-result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.nd-cf-meta { font-size: 11px; color: #6b7280; font-family: 'JetBrains Mono', monospace; }
.nd-cf-md { font-size: 14px; line-height: 1.6; max-height: 420px; overflow-y: auto; }
.nd-cf-md pre { white-space: pre-wrap; font-size: 12px; }
.nd-cf-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nd-cf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.nd-cf-modal {
  background: #12141a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
}
.nd-cf-modal label { display: block; font-size: 12px; color: #9aa0ad; margin: 12px 0 6px; }
.nd-cf-modal select, .nd-cf-modal input[type="range"] { width: 100%; min-height: 44px; }
.nd-cf-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

@media print {
  body.nd-print-mode * { visibility: hidden; }
  body.nd-print-mode .nd-brief, body.nd-print-mode .nd-brief * { visibility: visible; }
  body.nd-print-mode .nd-brief { position: absolute; left: 0; top: 0; width: 100%; background: #fff; color: #111; }
  body.nd-print-mode .nd-export-bar, body.nd-print-mode .nd-cta-row { display: none !important; }
}

/* C-S401 — realtime new cluster highlight (3s) */
.nd-story.nd-story-new {
  animation: nd-story-slide-in 0.45s ease-out;
  box-shadow: inset 3px 0 0 rgba(212, 168, 83, 0.85);
  background: rgba(212, 168, 83, 0.06);
  border-color: rgba(212, 168, 83, 0.45);
}
@keyframes nd-story-slide-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.nd-new-banner-mount { position: absolute; top: 12px; right: 12px; z-index: 12; max-width: min(360px, 42vw); }
.nd-new-banner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(26, 29, 35, 0.96); border: 1px solid rgba(212, 168, 83, 0.35);
  font-size: 13px; color: #e4e6ea; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.nd-new-banner-btn {
  background: #d4a853; color: #1a1d23; border: 0; border-radius: 6px;
  padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.nd-new-banner-dismiss { background: transparent; border: 0; color: #9aa0ad; font-size: 18px; cursor: pointer; margin-left: auto; }
.nd-velocity-pill {
  font-size: 11px; padding: 4px 10px; border-radius: 20px;
  background: rgba(212, 168, 83, 0.12); color: #d4a853; white-space: nowrap;
}
.nd-breaking-pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; background: rgba(255, 100, 100, 0.15); color: #ff8b8b;
}
.nd-heat-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nd-heat-breaking {
  background: rgba(255, 100, 100, 0.18);
  color: #ff9a9a;
}
.nd-heat-trending {
  background: rgba(255, 160, 60, 0.15);
  color: #ffb86c;
}
.nd-fm-story .nd-heat-pill { margin-bottom: 4px; }
.nd-recency { font-size: 11px; color: #9aa0ad; }
.nd-src-count { font-size: 10px; color: #9aa0ad; white-space: nowrap; }
.nd-presence { display: inline-flex; align-items: center; gap: 4px; }
.nd-presence-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  background: rgba(212, 168, 83, 0.25); color: #f0e6d0; border: 1px solid rgba(212,168,83,0.4);
}
.nd-presence-more { font-size: 11px; color: #9aa0ad; }
.nd-live-toggle {
  font-size: 12px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12); background: transparent; color: #9aa0ad;
}
.nd-live-toggle.on { border-color: #d4a853; color: #d4a853; background: rgba(212,168,83,0.1); }
.nd-root { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .nd-story.nd-story-new { animation: none; }
}
.nd-bookmark {
  background: transparent;
  border: 0;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  line-height: 1;
}
.nd-bookmark.on { color: #d4a853; }
.nd-export-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.nd-export-modal {
  background: #12141a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 20px;
  max-width: 420px;
  width: 100%;
}
.nd-export-modal label { display: block; margin: 10px 0; font-size: 14px; }
.nd-export-lead { font-size: 13px; color: #9aa0ad; line-height: 1.45; }
.nd-export-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.nd-export-msg { font-size: 12px; color: #9aa0ad; min-height: 1.2em; }

.nd-empty-quiet {
  color: var(--text-2, #aab2bb);
  font-size: 13px;
}
.nd-feed-banner {
  grid-column: 1 / -1;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-2, #aab2bb);
  font-size: 12.5px;
  text-align: center;
}

/* C-N22 — phone + iPad portrait stack */
@media (max-width: 900px) {
  .nd-root.nd-notebook-open {
    grid-template-columns: 1fr;
  }
  .nd-root.nd-notebook-open .nd-nb-pane {
    position: fixed;
    inset: 0;
    z-index: 55;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  .nd-root.nd-notebook-open.nd-nb-tab-note .nd-nb-pane {
    transform: translateX(0);
  }
  .nd-root.nd-notebook-open.nd-nb-tab-note .nd-brief {
    transform: translateX(-100%);
  }
  .nd-nb-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nd-nb-tabs button {
    flex: 1;
    min-height: 44px;
    background: transparent;
    border: 0;
    color: #9aa0ad;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .nd-nb-tabs button.active {
    color: #d4a853;
    border-bottom: 2px solid #d4a853;
  }
  .nd-root {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    min-height: min(100dvh, 900px);
    height: auto;
    max-height: none;
    border-radius: 0;
  }
  .nd-chrome { grid-row: auto; }
  .nd-root > .nd-center { order: 2; grid-column: 1; grid-row: auto; }
  .nd-root > .nd-rail { order: 1; grid-column: 1; grid-row: auto; max-height: none; }
  .nd-root > .nd-brief,
  .nd-root > .nd-reading-pane { order: 3; grid-column: 1; grid-row: auto; }
  .nd-root > .nd-brief-backdrop { display: block; }
  .nd-feed-banner { grid-column: 1; }
  .nd-topbar {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .nd-rail {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-left: max(10px, env(safe-area-inset-left));
  }
  .nd-rail-eyebrow, .nd-doctrine-note { display: none; }
  .nd-cat-list, .nd-wl-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 8px;
  }
  .nd-cat, .nd-wl {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 44px;
    padding: 10px 14px;
  }
  .nd-center .nd-grid {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom);
    flex: 1;
    min-height: 0;
  }
  .nd-reading-pane {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 50;
    height: min(92dvh, 720px);
    max-height: 92dvh;
    border: 0;
    border-radius: 16px 16px 0 0;
    background: #12141a;
    overflow-y: auto;
    transform: translateY(110%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -12px 40px rgba(0,0,0,0.45);
  }
  .nd-brief {
    position: static;
    height: auto;
    max-height: none;
    transform: none;
    transition: none;
    pointer-events: auto;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .nd-brief-close { display: inline-flex; align-items: center; justify-content: center; }
  .nd-root.nd-brief-open .nd-reading-pane {
    transform: translateY(0);
    pointer-events: auto;
  }
  .nd-root.nd-brief-open .nd-brief {
    transform: none;
    pointer-events: auto;
  }
  .nd-brief-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .nd-root.nd-brief-open .nd-brief-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .nd-brief-has-drawer .nd-entity-drawer {
    align-items: flex-end;
    z-index: 60;
  }
  .nd-brief-has-drawer .nd-entity-panel {
    max-height: 70vh;
    width: 100%;
    border-radius: 14px 14px 0 0;
    margin-top: auto;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nd-fm-story, .nd-mode-btn, .nd-cta, .nd-cat, .nd-entity-chip, .nd-bell-btn, .nd-mute-btn {
    min-height: 44px;
  }
  .nd-compare-pick { min-height: 40px; min-width: 40px; }
  .nd-bookmark { min-width: 40px; min-height: 40px; }
  .nd-fm-grid { padding: 10px 12px; gap: 10px; }
  .nd-fm-grid .nd-fm-story {
    width: 100%;
    padding: 14px 12px;
  }
  .nd-fm-headline { font-size: 15px; }
  /* C-N99 — Content Forge mobile stack */
  .nd-cf-toolbar { flex-direction: column; align-items: stretch; }
  .nd-cf-expand-btn, .nd-cf-ingest-btn { width: 100%; }
  .nd-cf-format-grid { grid-template-columns: 1fr; }
  .nd-cf-implications { grid-template-columns: 1fr; }
  .nd-cf-compare { grid-template-columns: 1fr; }
  .nd-cf-result { margin-left: 0; margin-right: 0; }
  .nd-content-forge { padding-bottom: env(safe-area-inset-bottom); }
}
/* iPad landscape — keep 3-pane (primary newsroom device) */
@media (min-width: 981px) and (max-width: 1180px) {
  .nd-root { grid-template-columns: 180px 1fr 360px; }
}
@media (max-width: 600px) {
  .nd-topbar { flex-wrap: wrap; gap: 8px; }
  .nd-search { min-width: 100%; order: 3; flex: 1 1 100%; }
  .nd-mode-toggle { order: 1; }
}

/* C-N113 source credibility */
.nd-cred-badge, .nd-cred-chip em { font-style: normal; font-size: 10px; font-family: 'JetBrains Mono', monospace; opacity: 0.9; }
.nd-cred-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }
.nd-cred-t1 { background: rgba(72,187,120,0.15); color: #7dd3a0; }
.nd-cred-t2 { background: rgba(212,168,83,0.12); color: #d4a853; }
.nd-cred-t3 { background: rgba(201,122,90,0.15); color: #e8b090; }
.nd-cred-t4 { background: rgba(120,120,140,0.2); color: #9aa0ad; }
.nd-src-chip.nd-cred-chip { display: inline-flex; align-items: center; gap: 4px; }

/* C-N114 bias spread */
.nd-bias-spread { margin: 8px 0; }
.nd-bs-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #9aa0ad; margin: 0 0 6px; }
.nd-bs-wrap { display: block; width: 100%; background: transparent; border: 0; padding: 0; cursor: pointer; text-align: left; }
.nd-bs-track { display: flex; gap: 2px; height: 10px; border-radius: 4px; overflow: hidden; }
.nd-bs-bar { min-width: 4px; border-radius: 2px; }
.nd-bs-labels, .nd-bs-counts { display: flex; justify-content: space-between; font-size: 9px; color: #6b7280; margin-top: 4px; font-family: 'JetBrains Mono', monospace; }
.nd-bs-detail { font-size: 12px; color: #9aa0ad; margin-top: 8px; }
.nd-bs-compact .nd-bs-labels { font-size: 8px; }

/* C-N105 cluster compare */
.nd-story-compare-on .nd-compare-pick { color: #d4a853; }
.nd-cmp-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.nd-cmp-dialog {
  background: #12141a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  max-width: 1100px;
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 20px;
}
.nd-cmp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.nd-cmp-head h2 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 22px; }
.nd-cmp-close { background: transparent; border: 0; color: #9aa0ad; font-size: 28px; cursor: pointer; min-width: 44px; min-height: 44px; }
.nd-cmp-lead { font-size: 13px; color: #9aa0ad; margin: 8px 0 16px; }
.nd-cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nd-cmp-col { background: #0e1014; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 14px; }
.nd-cmp-col h3 { margin: 0 0 8px; font-size: 16px; }
.nd-cmp-sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.nd-cmp-overlap { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
.nd-cmp-framing-diverge { background: rgba(212,168,83,0.08); border-left: 3px solid #d4a853; padding: 8px 10px; margin: 8px 0; border-radius: 0 6px 6px 0; }
@media (max-width: 768px) {
  .nd-cmp-grid { grid-template-columns: 1fr; }
}

/* C-N106 primary source ticker */
.nd-ps-ticker-mount { grid-column: 1 / -1; }
.nd-ps-ticker { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: rgba(10,11,14,0.6); border-bottom: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.nd-ps-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #d4a853; flex-shrink: 0; }
.nd-ps-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.nd-ps-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #12141a; border: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: #cfd2d8; text-decoration: none; white-space: nowrap; min-height: 36px; }
.nd-ps-chip em { font-style: normal; color: #6b7280; font-size: 11px; }
.nd-ps-chip strong { color: #e8eaed; }

/* C-N108 PWA install banner */
.nd-pwa-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #12141a;
  border: 1px solid rgba(212,168,83,0.35);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.nd-pwa-banner p { flex: 1; margin: 0; font-size: 13px; color: #cfd2d8; }

/* C-N126 first-mover badge */
.nd-fm-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  background: linear-gradient(135deg, #d4a853, #f0d78a);
  padding: 3px 8px;
  border-radius: 4px;
  animation: nd-fm-pulse 2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes nd-fm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,83,0.5); }
  50% { box-shadow: 0 0 12px 4px rgba(212,168,83,0.35); }
}

.dr-tool-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.dr-tool-tabs button { min-height: 36px; padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #9aa0ad; cursor: pointer; }
.dr-tool-tabs button.active { color: #d4a853; border-color: rgba(212,168,83,0.4); }
.dr-tools-slot { min-width: 280px; }
.nd-brief-cost {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: #8a8f99;
  cursor: help;
}
.nd-brief-cost-label { color: #d4a853; margin-right: 8px; font-weight: 600; }
.nd-trial-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; background: rgba(212,168,83,0.08); border-radius: 8px; font-size: 13px; }
.nd-trial-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.nd-trial-dialog, .nd-trial-gauntlet-inner { background: #12141a; border: 1px solid rgba(212,168,83,0.35); border-radius: 12px; padding: 24px; max-width: 520px; width: 100%; }
.nd-trial-gauntlet-inner h2 { font-size: 1.15rem; line-height: 1.45; margin: 0 0 12px; color: #f5f3ee; }
.nd-trial-gauntlet-eyebrow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #d4a853; }
.nd-trial-gauntlet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; font-size: 13px; }
@media (max-width: 520px) { .nd-trial-gauntlet-cols { grid-template-columns: 1fr; } }

.nd-pub-prev-overlay, .nd-img-prompt-overlay { position: fixed; inset: 0; z-index: 220; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.nd-pub-prev-dialog, .nd-img-prompt-dialog { background: #12141a; border-radius: 12px; max-width: 900px; width: 100%; max-height: 92dvh; overflow: auto; padding: 16px; }
.nd-pub-prev-frame { width: 100%; min-height: 400px; border: 0; background: #fff; }

.nd-intel-rail { margin: 12px 0; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.nd-intel-cards { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.nd-intel-card { font-size: 13px; color: #cfd2d8; text-decoration: none; padding: 8px; border-radius: 6px; background: rgba(255,255,255,0.03); }
.nd-intel-card:hover { color: #d4a853; }
.nd-covered-banner { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: rgba(212,168,83,0.1); border: 1px solid rgba(212,168,83,0.3); color: #d4a853; font-size: 13px; }
.nd-trend-board { margin: 0 0 12px; padding: 12px; background: #12141a; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); }
.nd-trend-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; width: 100%; text-align: left; background: transparent; border: 0; color: #cfd2d8; padding: 8px 4px; cursor: pointer; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.nd-trend-row:hover { color: #d4a853; }
.nd-trend-rank { color: #6b7280; font-weight: 600; }
.nd-trend-vel { color: #d4a853; font-size: 12px; }
.nd-audio-brief-player { position: sticky; bottom: 0; z-index: 40; margin: 12px 0; padding: 12px; background: #12141a; border: 1px solid rgba(212,168,83,0.25); border-radius: 10px; }
.nd-ab-label { font-size: 11px; color: #d4a853; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.nd-ab-title { font-size: 13px; margin: 0 0 8px; }
.nd-ab-audio { width: 100%; }
.nd-ab-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.nod-root { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
.nod-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.nod-table th, .nod-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.nod-feed-err td { color: #e8a0a0; }
.nod-metrics { list-style: none; margin: 8px 0; padding: 0; }
.nod-metrics li { padding: 4px 0; color: #9aa0ad; }
.nod-hint { font-size: 12px; color: #6b7280; }

/* Primary ticker + Hermes quiet states */
.nd-ps-unavailable, .nd-ps-empty, .nd-ps-quiet, .nd-ps-loading-bar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; }
.nd-ps-unavail-msg, .nd-ps-quiet-msg { font-size: 11px; color: #6e7480; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.nd-ps-stale { font-size: 9px; color: #d4a853; text-transform: uppercase; letter-spacing: 0.08em; }
.nd-hermes-unavail { color: #9aa0ad; font-size: 12px; }

/* Engine quality selector */
.nd-quality-wrap { display: inline-flex; align-items: center; gap: 6px; }
.nd-quality-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e7480;
}
.nd-quality-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cfd2d8;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  min-height: 36px;
}
.nd-voice-wrap { display: inline-flex; align-items: center; gap: 6px; }
.nd-voice-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e7480;
}
.nd-voice-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cfd2d8;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  min-height: 36px;
  max-width: 160px;
}
.nd-tier-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #9aa0ad;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  margin: 6px 0 10px;
}
#nd-factcheck-mount .dr-fc-panel { margin: 12px 0; padding: 12px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.nd-brief-engine-meta { margin: 0 16px 8px; }
.nd-brief-engine-meta .nd-tier-tag { margin: 0; }

/* Research dossier */
.nd-dossier-mount { margin: 0 0 16px; }
.nd-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.nd-dossier-fallback-hint {
  font-size: 11px;
  color: #6e7480;
  margin: 0 0 8px;
}
.nd-dossier-link-btn {
  background: none;
  border: 0;
  color: #d4a853;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.nd-dossier {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0 8px;
  max-width: 100%;
  overflow-x: hidden;
}
.nd-dossier-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 10px; }
.nd-dossier-head { margin: 0; font-size: 15px; font-weight: 600; color: #e8eaed; flex: 1 1 auto; }
.nd-dossier-count { margin: 0; font-size: 12px; color: #9aa0ad; flex: 1 1 100%; }
.nd-dossier-subhead { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cream, #f4ecd9); }
.nd-dossier-muted, .nd-dossier-pending, .nd-dossier-warn { font-size: 12px; color: #9aa0ad; margin: 0 0 10px; }
.nd-dossier-warn { color: #e8b86d; }
.nd-dossier-reader-wrap { margin-bottom: 12px; }
.nd-dossier-cards { display: flex; flex-direction: column; gap: 8px; }
.nd-dossier-source-list {
  max-height: min(55vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
  padding-right: 4px;
}
.nd-dossier-compose-block-prominent {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
}
.nd-dossier-compose-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
}
.nd-dossier-step {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #9aa0ad;
}
.nd-dossier-step.active { border-color: rgba(224,169,109,0.45); color: #e0a96d; background: rgba(224,169,109,0.08); }
.nd-dossier-step.done { color: #aab2bb; }
.nd-dossier-step-arrow { color: #6e7480; font-size: 11px; }
.nd-dossier-compose-quiet {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.nd-dossier-edit-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #e8eaed;
  margin: 12px 0 8px;
}
.nd-dossier-article-edit {
  width: 100%;
  min-height: 280px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0e1014;
  color: #e8eaed;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
}
.nd-story-when {
  font-size: 10px;
  color: #7c858f;
  white-space: nowrap;
}
.nd-brief-quiet { color: #aab2bb !important; }
.nd-cf-quiet,
.dr-fc-quiet {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: #aab2bb;
}
.nd-cf-quiet .nd-cta,
.dr-fc-quiet .dr-btn { margin-top: 10px; }
.nd-dossier-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 10px 10px 36px;
  background: rgba(255,255,255,0.02);
}
.nd-dossier-check { position: absolute; left: 10px; top: 12px; }
.nd-dossier-check input { width: 16px; height: 16px; accent-color: #d4a853; min-height: 44px; min-width: 44px; margin: -14px 0 0 -14px; }
.nd-dossier-compose-hint { font-size: 11px; color: #6e7480; flex: 1 1 100%; }
.nd-skel-dossier { margin: 12px 0; }
.nd-dossier-card-primary { border-color: rgba(212,168,83,0.25); }
.nd-dossier-compose-block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nd-dossier-compose-block .nd-dossier-compose-btn { min-width: 200px; }
.nd-dossier-compose-block .nd-quality-radios { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-dossier-compose-block .nd-quality-opt {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; cursor: pointer; min-height: 44px;
}
.nd-dossier-compose-block .nd-quality-opt.active { border-color: rgba(212,168,83,0.45); background: rgba(212,168,83,0.08); }
.nd-dossier-compose-btn { flex: 1 1 200px; }
.nd-dossier-compose-progress, .nd-dossier-compose-error {
  margin: 0 0 12px; padding: 12px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
}
.nd-dossier-compose-error { border-color: rgba(232,128,128,0.35); background: rgba(232,128,128,0.06); }
.nd-dossier-compose-msg { margin: 8px 0 0; font-size: 13px; }
.nd-dossier-article-result {
  margin: 0 0 14px; padding: 12px; border-radius: 10px;
  border: 1px solid rgba(212,168,83,0.25); background: rgba(212,168,83,0.04);
}
.nd-dossier-built-badge { margin-bottom: 10px; }
.nd-dossier-built-label { display: block; font-size: 12px; color: #d4a853; margin-bottom: 8px; }
.nd-dossier-src-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-dossier-src-chip {
  font-size: 11px; padding: 4px 8px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.2);
  color: #cfd2d8; cursor: pointer;
}
.nd-dossier-src-chip-static { cursor: default; }
.nd-dossier-tier-meta { margin: 0 0 8px; }
.nd-dossier-article-body h1, .nd-dossier-article-body h2 { font-size: 15px; margin: 12px 0 8px; }
.nd-dossier-article-body p { margin: 0 0 10px; }
.nd-dossier-article-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nd-dossier-md-fallback { white-space: pre-wrap; font-size: 12px; }
.nd-dossier-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9aa0ad;
  margin-bottom: 4px;
}
.nd-dossier-badge-primary { color: #d4a853; }
.nd-dossier-outlet { display: block; font-size: 11px; color: #7dd3a0; margin-bottom: 4px; }
.nd-dossier-title { margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.nd-dossier-date { font-size: 11px; color: #6e7480; }
.nd-dossier-snippet { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: #9aa0ad; }
.nd-dossier-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.nd-dossier-open { font-size: 12px; color: #d4a853; text-decoration: none; }
.nd-dossier-conflicts {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(232,128,128,0.35);
  background: rgba(232,128,128,0.06);
}
.nd-dossier-conflict-list { margin: 8px 0 0; padding-left: 18px; }
.nd-dossier-conflict-claim { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.nd-dossier-conflict-sources { margin: 0; font-size: 12px; color: #cfd2d8; }
.nd-dossier-connectors { margin: 12px 0; }
.nd-dossier-connector-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-dossier-add-url { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 12px 0; }
.nd-dossier-add-url label { flex: 1 1 200px; font-size: 12px; color: #9aa0ad; }
.nd-dossier-url-in {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); color: inherit;
}
.nd-dossier-how { margin: 10px 0; font-size: 12px; color: #9aa0ad; }
.nd-dossier-how-list { margin: 8px 0 0; padding-left: 18px; }
.nd-dossier-loading { text-align: center; padding: 20px 0; }

/* Article-centric flow */
.nd-article-centric .nd-brief-slot { flex: 0 0 auto; }
.nd-article-story-view { display: flex; flex-direction: column; gap: 14px; }
.nd-article-hero-title {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
  color: var(--cream, #f4ecd9);
}
.nd-article-editorial {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream, #f4ecd9);
}
.nd-article-editorial p { margin: 0 0 14px; }
.nd-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.nd-article-remix-btn { font-weight: 600; }

/* Compose-from-dossier reader pane */
.nd-compose-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  font-weight: 600;
}
.nd-compose-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted, #7c858f);
}
.nd-compose-thin { margin-top: 6px; font-size: 12px; }
.nd-compose-progress {
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.nd-compose-progress-msg {
  margin: 0;
  font-size: 15px;
  color: var(--cream, #f4ecd9);
}
.nd-compose-cancel { min-height: 44px; }
.nd-compose-error { padding: 8px 0 12px; }
.nd-compose-block { margin-bottom: 16px; }
.nd-compose-summary {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream, #f4ecd9);
  overflow-wrap: anywhere;
}
.nd-compose-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nd-compose-title-chip {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.2);
  color: var(--cream, #f4ecd9);
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.nd-compose-title-chip.on {
  border-color: rgba(212,168,83,0.45);
  background: rgba(212,168,83,0.1);
  color: #d4a853;
}
.nd-compose-story-fold {
  margin: 0 0 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(0,0,0,0.12);
}
.nd-compose-story-summary {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream, #f4ecd9);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nd-compose-story-body {
  padding: 0 14px 14px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.nd-compose-src-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nd-compose-src-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.nd-compose-src-link {
  color: #d4a853;
  text-decoration: none;
  border-bottom: 1px dotted rgba(212,168,83,0.4);
}
.nd-compose-src-link:hover { color: #f5c761; }
.nd-compose-src-name { color: var(--text-2, #aab2bb); }
.nd-compose-src-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212,168,83,0.35);
  color: #d4a853;
}
.nd-compose-regenerate {
  background: transparent;
  border: none;
  color: var(--text-muted, #7c858f);
  font-size: 13px;
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nd-compose-regenerate:hover { color: var(--cream, #f4ecd9); }
.nd-paywall-tag {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa0ad;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1px 5px;
}
.nd-source-read-fold { margin-top: 12px; }

/* Full article read — primary pane */
.nd-read-primary { margin-bottom: 8px; }
.nd-read-progress-msg {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--cream, #f4ecd9);
}
.nd-read-loading,
.nd-read-failed { padding: 8px 0 12px; }
.nd-read-cancel { min-height: 44px; }
.nd-article-meta {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted, #7c858f);
}
.nd-read-full-body {
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.nd-read-full-body img {
  max-width: 100%;
  height: auto;
}
.nd-article-source-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
}
.nd-read-reload {
  background: transparent;
  border: none;
  color: var(--text-muted, #7c858f);
  font-size: 13px;
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nd-read-reload:hover { color: var(--cream, #f4ecd9); }
.nd-reader-sources {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nd-article-actions .nd-compose-idle,
.nd-article-actions .nd-compose-progress,
.nd-article-actions .nd-compose-error,
.nd-article-actions .nd-compose-result {
  width: 100%;
  margin-bottom: 8px;
}
.nd-article-fold {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(0,0,0,0.12);
}
.nd-article-fold-summary {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream, #f4ecd9);
  cursor: pointer;
}
.nd-dossier-strip-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 14px;
  max-height: 280px;
  overflow-y: auto;
}
.nd-dossier-strip-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  font-size: 13px;
}
.nd-dossier-strip-outlet { color: #d4a853; font-size: 11px; text-transform: uppercase; }
.nd-dossier-strip-title { grid-column: 1 / -1; color: var(--cream, #f4ecd9); }
.nd-dossier-strip-actions { display: flex; gap: 6px; }
.nd-dossier-compact-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.nd-dossier-slot-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.nd-brief-nested { padding: 12px 14px; }
.nd-pulse-group { margin-bottom: 12px; }
.nd-pulse-label { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; color: #9aa0ad; }
.nd-pulse-list { margin: 0; padding-left: 18px; }
.nd-pulse-item { margin-bottom: 6px; font-size: 13px; line-height: 1.45; }
.nd-pulse-score { color: #d4a853; font-size: 12px; }

/* Article reading pane */
.nd-read-section { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px; }
.nd-read-body {
  max-height: 42vh;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream, #f4ecd9);
}
.nd-article-hero .nd-read-body,
.nd-article-editorial.nd-read-body { max-height: none; overflow: visible; }
.nd-read-body h1, .nd-read-body h2, .nd-read-body h3 {
  color: var(--accent, #e0a96d);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.25;
}
.nd-read-body p { margin: 0 0 10px; }
.nd-read-error .nd-section-body { color: var(--text-2, #aab2bb); }
.nd-dossier-subhead {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cream, #f4ecd9);
}
.nd-dossier-head { color: var(--cream, #f4ecd9); }
.nd-dossier-article-preview {
  padding: 14px 16px;
  margin: 0 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #2a2f35);
  background: var(--surface, #16191c);
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream, #f4ecd9);
  max-height: min(50vh, 520px);
  overflow-y: auto;
}
.nd-dossier-article-preview h1,
.nd-dossier-article-preview h2,
.nd-dossier-article-preview h3 {
  color: var(--accent, #e0a96d);
  font-family: 'Cormorant Garamond', serif;
  margin: 0 0 10px;
}
.nd-dossier-article-preview p { margin: 0 0 12px; }
.nd-dossier-article-preview a { color: var(--accent, #e0a96d); }
.nd-article-btn {
  display: block; width: 100%; text-align: left; background: transparent;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 12px;
  margin-bottom: 8px; cursor: pointer; color: inherit;
}
.nd-article-btn:hover, .nd-article-active { border-color: rgba(212,168,83,0.45); background: rgba(212,168,83,0.06); }
.nd-paywall { opacity: 0.85; font-size: 11px; }

/* Wave 6 — tap targets + mobile sheets (exclude story cards — they need natural height) */
.nd-cta, .nd-cta.ghost, .nd-article-btn, .nd-bell-btn, .nd-cat {
  min-height: 44px;
}
.nd-brief-backdrop {
  cursor: pointer;
}
@media (max-width: 390px) {
  .nd-story {
    grid-template-columns: 24px 48px minmax(0, 1fr);
    min-height: 112px;
    padding: 12px 12px 14px;
  }
  .nd-story-right {
    grid-column: 3;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 4px;
  }
  .nd-story-headline { font-size: 16px; }
  .nd-dossier-compose-block { flex-direction: column; align-items: stretch; }
  .nd-dossier-compose-btn { width: 100%; min-width: 0; }
  .nd-dossier-src-chips { max-width: 100%; }
  .nd-dossier-card, .nd-dossier-article-body { max-width: 100%; overflow-x: hidden; word-break: break-word; }
  .nd-root { overflow-x: hidden; }
  .nd-topbar { padding: 10px 12px; gap: 8px; }
}
@media (max-width: 900px) {
  .nd-brief {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    z-index: 120;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
  }
  .nd-brief-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 110;
  }
  .nd-root.nd-brief-open .nd-brief-backdrop { display: block; }
}
.nd-cf-brief-id code { font-size: 11px; color: #d4a853; }
.nd-ps-save-research {
  margin: 8px 0 12px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212,168,83,0.35);
  background: rgba(212,168,83,0.08);
  color: #d4a853;
  cursor: pointer;
}
.cn-verified { font-size: 12px; color: #7dd3a0; margin: 0 0 8px; }

/* Reusable primary source doc rows */
.nd-ps-doc-list { list-style: none; margin: 0; padding: 0; }
.nd-ps-doc {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
}
.nd-ps-doc.compact { padding: 6px 0; }
.nd-ps-doc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #d4a853;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nd-ps-doc-date { font-size: 10px; color: #6e7480; grid-column: 2; }
.nd-ps-doc-title { grid-column: 1 / -1; color: #cfd2d8; line-height: 1.35; }
.nd-ps-doc-source { font-size: 10px; color: #6e7480; }
.nd-ps-doc-link { grid-column: 1 / -1; font-size: 11px; color: #7eb8ff; text-decoration: none; }
.nd-ps-doc-link:hover { text-decoration: underline; }

/* Watchlist SEC filings panel */
.nd-wl-filings-mount { margin: 12px 0; }
.nd-wl-filings {
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.nd-wl-filings-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4a853;
  margin: 0 0 6px;
}
.nd-wl-filings-sub { font-size: 11px; color: #6e7480; margin: 0 0 8px; line-height: 1.4; }
.nd-wl-filings-group { margin-bottom: 10px; }
.nd-wl-filings-ticker { font-size: 12px; font-weight: 600; margin: 0 0 4px; color: #cfd2d8; }
.nd-wl-filings-ticker span { font-weight: 400; color: #6e7480; margin-left: 6px; }
.nd-wl-filings-err { font-size: 11px; color: #c97a7a; margin: 0; }
.nd-wl-filings-pin { display: flex; gap: 6px; margin-top: 8px; }
.nd-wl-filings-in {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cfd2d8;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  text-transform: uppercase;
}
.nd-wl-filings-btn {
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.35);
  color: #d4a853;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
}
.nd-wl-filings-meta { font-size: 10px; color: #6e7480; margin: 6px 0 0; }

/* Forge JSON card output */
.nd-cf-json-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.nd-cf-json-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
}
.nd-cf-json-card-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d4a853;
  margin: 0 0 6px;
}
.nd-cf-json-card-title { font-size: 13px; margin: 0 0 6px; color: #e8eaed; }
.nd-cf-json-card-body { font-size: 12px; line-height: 1.45; color: #9aa0ad; margin: 0; }

/* Brief CTA declutter */
.nd-cta-primary { flex-wrap: wrap; gap: 8px; }
.nd-cta-more {
  margin: 0 16px 12px;
  font-size: 12px;
  color: #9aa0ad;
}
.nd-cta-more-summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 0;
  color: #d4a853;
}
.nd-cta-more-summary::-webkit-details-marker { display: none; }
.nd-cta-more-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 4px;
}

/* Primary connector pull (research + shared) */
.nd-ps-pull { margin: 12px 0; }
.nd-ps-pull-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4a853;
  margin: 0 0 8px;
}
.nd-ps-pull-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.nd-ps-pull-select,
.nd-ps-pull-in {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cfd2d8;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
}
.nd-ps-pull-btn {
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.35);
  color: #d4a853;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}
.nd-ps-pull-hint { font-size: 11px; color: #6e7480; margin: 0; line-height: 1.4; }
.nd-ps-pull-err { font-size: 11px; color: #c97a7a; margin: 0; }

/* Politics lean filters */
.nd-lean-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 12px;
  padding: 0 2px;
}
.nd-lean-bar-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #7c858f);
}
.nd-lean-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nd-lean-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--cream, #f4ecd9);
  font-size: 13px;
  cursor: pointer;
}
.nd-lean-pill.on {
  border-color: rgba(212,168,83,0.45);
  background: rgba(212,168,83,0.1);
  color: #d4a853;
}
.nd-lean-count {
  font-size: 11px;
  color: var(--text-muted, #7c858f);
}
.nd-lean-pill.on .nd-lean-count { color: rgba(212,168,83,0.85); }

/* Balanced view — across the spectrum */
.nd-spectrum-strip {
  margin: 16px 0 18px;
  padding-top: 4px;
}
.nd-spectrum-sub {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted, #7c858f);
}
.nd-spectrum-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.nd-spectrum-col {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  min-width: 0;
}
.nd-spectrum-lean {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted, #7c858f);
}
.nd-spectrum-item + .nd-spectrum-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); }
.nd-spectrum-outlet {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream, #f4ecd9);
  text-decoration: none;
}
a.nd-spectrum-outlet:hover { color: #d4a853; }
.nd-spectrum-take {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #b8bec8;
}
.nd-spectrum-empty-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted, #7c858f);
  font-style: italic;
}
