@import url("https://fonts.googleapis.com/css2?family=PT+Sans+Narrow:wght@400;700&display=swap");

:root {
  --bg: #111315;
  --panel: #181b1f;
  --panel-2: #20242a;
  --ink: #ece7df;
  --muted: #a8a29a;
  --line: #2c3138;
  --accent: #c9b37e;
  --accent-soft: #27231a;
  --attention: #d6a85f;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
h1, h2, h3, h4 {
  font-weight: 500;
}
strong {
  font-weight: 500;
}
body {
  margin: 0;
  font-family: "PT Sans Narrow", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.35;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 460px);
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.login-title {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.02;
}

.login-note {
  margin: 0 0 18px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-label {
  color: var(--muted);
  font-size: .94rem;
}

.login-input {
  font-size: 1rem;
  padding: 10px 12px;
}

.login-submit {
  width: 100%;
  padding: 10px 12px;
}

.login-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #5b4532;
  background: #241d17;
  color: #f1d8bf;
  border-radius: 10px;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

.app-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #121416;
  color: #e7e0d6;
  padding: 16px 14px;
  border-right: 1px solid #24282d;
}
.brand {
  font-weight: 500;
  letter-spacing: .12em;
  margin: 4px 10px 12px;
  color: #d7c49a;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: calc(100vh - 80px);
}
.nav-main {
  display: grid;
  gap: 1px;
}
.nav-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #24282d;
}

.nav-logout-form {
  margin-top: 8px;
}

.nav-logout-button {
  width: 100%;
  justify-content: center;
}
.nav-group {
  display: grid;
  gap: 2px;
}
.nav-submenu {
  display: grid;
  gap: 2px;
  margin: -2px 0 2px;
}
.nav-item {
  display: block;
  color: #cbc4bb;
  text-decoration: none;
  padding: 8px 10px;
  margin-bottom: 3px;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
  background: transparent;
  line-height: 1.12;
}
.nav-item:hover { background: #1c2024; transform: translateX(2px); }
.nav-item.active { background: #312b1f; color: #f1ece4; }
.nav-subitem {
  margin-left: 8px;
  padding: 6px 10px 6px 14px;
  font-size: .88rem;
  color: #b1aaa0;
  border-left: 1px solid #3a342b;
  border-radius: 0 10px 10px 0;
}
.nav-subitem.active {
  border-left-color: #c9b37e;
}

.content { padding: 24px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.02;
  font-weight: 500;
}
.topbar .eyebrow {
  margin-bottom: 8px;
}
.topbar-note {
  color: var(--muted);
  white-space: normal;
  text-align: left;
  max-width: 24rem;
  margin-left: auto;
  flex: 0 1 24rem;
}

.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-slab {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
  background: var(--panel);
}
.hero-slab.compact { align-items: center; }
.hero-title {
  margin: 0 0 6px;
  font-size: 1.62rem;
  line-height: 1.08;
  font-weight: 500;
}
.dashboard-hero .muted {
  margin-bottom: 12px;
}
.dashboard-quick-stats {
  gap: 6px;
}
.dashboard-chip {
  background: #242118;
  border-color: #453b28;
  color: #e4d9c1;
}
.hero-slab > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.15;
  font-weight: 500;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  animation: rise .28s ease;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.metric .num { font-size: 2rem; margin: 8px 0 0; font-weight: 500; }
.metric .num.small { font-size: 1.35rem; }
.dashboard-metric {
  padding: 14px 16px;
}
.dashboard-metric h3 {
  margin: 0;
}
.dashboard-watch-grid {
  margin-bottom: 20px;
}
.dashboard-command-grid,
.dashboard-role-grid,
.dashboard-primary-grid,
.dashboard-stat-grid,
.dashboard-activity-grid {
  margin-top: 0;
  margin-bottom: 16px;
  align-items: stretch;
}
.dashboard-command-card,
.dashboard-role-card {
  align-content: start;
  height: 100%;
}
.dashboard-command-card h3,
.dashboard-role-card h3 {
  margin: 0;
}
.dashboard-command-card .muted,
.dashboard-role-card .muted {
  margin: 0;
}
.dashboard-command-card-attention {
  border-color: rgba(214, 168, 95, 0.32);
  background: #1d1914;
}
.dashboard-primary-grid {
  align-items: start;
}
.dashboard-primary-grid .saved-view-grid,
.dashboard-strategy-section .saved-view-grid,
.dashboard-saved-views .saved-view-grid,
.dashboard-bottom-grid .category-grid,
.dashboard-activity-grid .saved-view-grid {
  gap: 16px;
}
.dashboard-priority-section,
.dashboard-inbox-section {
  display: flex;
  flex-direction: column;
}
.dashboard-saved-views.dashboard-priority-section,
.dashboard-saved-views.dashboard-inbox-section {
  margin-bottom: 0;
}
.dashboard-priority-section .saved-view-grid {
  flex: 1 1 auto;
  align-items: stretch;
}
.dashboard-priority-section .saved-view-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 12px;
}
.dashboard-priority-section .saved-view-card .chip.subtle {
  margin-top: auto;
}
.dashboard-inbox-section .report-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: flex-start;
  align-items: start;
  gap: 10px;
}
.dashboard-inbox-section .report-card {
  height: auto;
  padding: 12px;
}
.dashboard-primary-grid > .card,
.dashboard-stat-grid > .card,
.dashboard-activity-grid > .card,
.dashboard-role-grid > .card,
.dashboard-command-grid > .card,
.dashboard-saved-views .saved-view-card,
.dashboard-activity-grid .saved-view-card {
  height: 100%;
}
.dashboard-bottom-grid {
  align-items: stretch;
}
.dashboard-bottom-grid > .card {
  height: 100%;
}
.dashboard-category-landscape {
  display: grid;
  align-content: start;
}
.dashboard-category-landscape .category-grid {
  align-content: start;
  flex: 1 1 auto;
}
.dashboard-strategy-section {
  margin-top: 0;
  margin-bottom: 16px;
}
.dashboard-working-section,
.dashboard-launcher-section {
  margin-top: 0;
  margin-bottom: 16px;
}
.dashboard-working-section .dashboard-role-grid {
  margin-bottom: 0;
}
.dashboard-saved-views {
  margin-bottom: 20px;
}
.saved-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.saved-view-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.saved-view-card:hover {
  border-color: #5a4f3a;
  background: #29261f;
  transform: translateY(-2px);
}
.saved-view-card strong {
  font-size: .98rem;
  font-weight: 500;
}
.saved-view-card .muted {
  margin: 0;
}
.feature-matrix-card {
  align-content: start;
}
.feature-matrix-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.feature-matrix-command-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.feature-matrix-command-card h3,
.feature-matrix-command-card p {
  margin: 0;
}
.feature-matrix-command-card-attention {
  border-color: #5a4d34;
}
.feature-matrix-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr);
  gap: 16px;
  margin-bottom: 16px;
}
.feature-matrix-intro-section,
.feature-matrix-controls-section {
  display: grid;
  gap: 12px;
}
.feature-matrix-intro-section .muted {
  margin: 0;
}
.feature-matrix-controls-section .toolbar {
  margin-bottom: 0;
}
.feature-matrix-results-section {
  margin-top: 0;
}
.feature-matrix-results-section .section-head {
  margin-bottom: 12px;
}
.matrix-row-inspector {
  align-content: start;
  position: sticky;
  top: 24px;
}
.feature-matrix-detail-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}
.feature-gap-detail-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}
.feature-gap-row-inspector {
  position: sticky;
  top: 24px;
  align-content: start;
}
.feature-matrix-covered-list {
  margin-bottom: 12px;
}
.feature-matrix-evidence-grid {
  margin-bottom: 12px;
}
.feature-matrix-evidence-grid .saved-view-card {
  gap: 8px;
  padding: 12px;
}
.matrix-best-opportunity {
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  background: #211d18;
}
.matrix-best-pain-point {
  background: #1e1a16;
}
.matrix-best-report {
  background: #1c1915;
}
.matrix-best-opportunity strong {
  font-size: 1rem;
  font-weight: 500;
}
.matrix-inspector-summary {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1a1714;
}
.matrix-evidence-reason {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}
.matrix-row-marker {
  margin-left: 8px;
  vertical-align: middle;
}
.matrix-row-marker-opportunity {
  border-color: #6b5a35;
}
.matrix-row-marker-priority {
  border-color: #7b6131;
  background: #2a2318;
  color: #dfc086;
}
.matrix-row-marker-watch {
  border-color: #63533a;
  background: #221d16;
  color: #c9b38a;
}
.matrix-row-marker-pain {
  border-color: #5b4b3b;
}
.matrix-row-marker-report {
  border-color: #4f4738;
}
.feature-gap-detail-grid .intelligence-table tbody tr {
  cursor: pointer;
}
.feature-gap-detail-grid .intelligence-table tbody tr.is-active {
  background: #1d1914;
}
.matrix-bundle-actions {
  margin-top: 10px;
}
.candidate-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #24211b;
  color: #d8bb86;
  font-size: .82rem;
  font-weight: 500;
}
.feature-matrix-inline-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.feature-matrix-markdown .table-wrap {
  overflow: auto;
  max-height: 78vh;
}
.feature-matrix-markdown table {
  min-width: 1100px;
}
.feature-matrix-markdown thead th {
  position: sticky;
  top: 0;
  background: #1b1f24;
  z-index: 1;
}
.feature-matrix-markdown tbody tr {
  cursor: pointer;
}
.feature-matrix-markdown tbody tr.is-active {
  background: rgba(201, 179, 126, 0.08);
}
.feature-matrix-markdown thead th a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.feature-matrix-markdown thead th a:hover {
  border-bottom-color: #6f6349;
}
.feature-matrix-markdown th,
.feature-matrix-markdown td {
  white-space: nowrap;
}
.dashboard-watch-card {
  display: grid;
  gap: 10px;
  align-content: start;
}
.dashboard-watch-card h3 {
  margin: 0;
}
.dashboard-watch-card .muted {
  margin: 0;
}
.dashboard-watch-card-attention {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}
.hero { border-left: 5px solid var(--accent); }
.stat-bars {
  display: grid;
  gap: 12px;
}
.stat-bar {
  display: grid;
  gap: 6px;
}
.stat-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  text-transform: capitalize;
}
.stat-bar-head strong {
  color: var(--ink);
}
.stat-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #121418;
  border: 1px solid var(--line);
  overflow: hidden;
}
.stat-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #bda26d;
}
.stat-bar-fill.is-alt {
  background: #8c9a78;
}
.opportunity-stack {
  display: grid;
  gap: 10px;
  counter-reset: opportunity;
}
.opportunity-card {
  position: relative;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid rgba(201, 179, 126, 0.28);
  counter-increment: opportunity;
}
.opportunity-card h4 {
  margin: 8px 0 0;
  padding-right: 28px;
}
.opportunity-card::after {
  content: counter(opportunity);
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(201, 179, 126, 0.16);
  color: #dcc79a;
  font-size: .78rem;
  font-weight: 500;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.dashboard-category-landscape {
  margin-bottom: 0;
}
.dashboard-category-stats {
  margin-top: 0;
  margin-bottom: 16px;
}
.dashboard-bottom-grid {
  margin-top: 0;
  margin-bottom: 16px;
}
.feature-gap-priority-section,
.feature-gap-category-section,
.feature-matrix-results-section,
.campaigns-results-section,
.strategy-momentum-results-section {
  margin-top: 20px;
}
.feature-gap-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.feature-gap-command-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.feature-gap-command-card h3,
.feature-gap-command-card p {
  margin: 0;
}
.feature-gap-command-card-attention {
  border-color: #5a4d34;
}
.feature-gap-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr);
  gap: 16px;
  margin-bottom: 16px;
}
.feature-gap-intro-section,
.feature-gap-controls-section {
  display: grid;
  gap: 12px;
}
.feature-gap-intro-section .muted {
  margin: 0;
}
.feature-gap-controls-section .toolbar {
  margin-bottom: 0;
}
.feature-gap-summary-section {
  margin-top: 0;
}
.guide-links-section {
  margin-top: 16px;
}
.guide-screen-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.guide-auth-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.guide-screen-card {
  align-content: start;
}
.guide-auth-card {
  align-content: start;
}
.guide-screen-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1113;
}
.guide-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-top: 20px;
}
.guide-content-card {
  min-width: 0;
}
.category-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.category-card:hover {
  border-color: #35527a;
  background: #172a44;
  transform: translateY(-2px);
}
.category-card strong {
  font-size: 1.4rem;
  line-height: 1;
}

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; align-items: center; }
.strategy-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171a1f;
  color: var(--muted);
}
.strategy-check span {
  color: var(--ink);
  font-size: .95rem;
}
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pagination-summary {
  color: var(--muted);
  font-size: .9rem;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}
.server-pagination .pagination-size {
  padding-right: 10px;
  margin-right: 2px;
  border-right: 1px solid var(--line);
}
.server-pagination .pagination-size .select {
  min-width: 88px;
  height: 36px;
}
.pagination-size .select {
  min-width: 84px;
}
.pagination-page {
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #49423a;
  background: #1f2227;
  color: #e4ddd2;
  cursor: pointer;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}
.pagination-page.is-active {
  background: #312b1f;
  border-color: #c9b37e;
  color: #f4efe7;
}
.pagination-nav:disabled,
.pagination-page:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #171a1f;
  color: var(--ink);
}
.input::placeholder {
  color: #8f887f;
}
.select { min-width: 160px; }
.btn, .btn-link {
  border: 0;
  background: var(--accent);
  color: #17130d;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.btn.secondary {
  background: #1d2025;
  color: #e5ddd1;
  border: 1px solid #4b433a;
}
.btn-link { background: transparent; color: #d7c49a; padding: 0; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: .94rem; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #a59d92; }
th[data-sort] { cursor: pointer; }
.vendor-row { cursor: pointer; transition: background .18s ease, transform .18s ease; }
.vendor-row:hover { background: #23272d; }
.vendor-row.is-active { background: #26241d; }
.vendor-row[data-signal="priority"] td:first-child {
  box-shadow: inset 3px 0 0 #d6a85f;
}
.vendor-row[data-signal="watch"] td:first-child {
  box-shadow: inset 3px 0 0 #9a9a88;
}
.vendor-trigger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.vendor-trigger-name {
  font-weight: 500;
  color: #efe8de;
}
.vendor-trigger-meta {
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8f887f;
}
.vendor-trigger-meta .vendor-trigger-flag {
  margin-left: 8px;
  vertical-align: middle;
}
.vendor-trigger-flag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.vendor-trigger-flag-priority {
  background: rgba(214, 168, 95, 0.14);
  color: #d8bb86;
  border: 1px solid rgba(214, 168, 95, 0.24);
}
.vendor-trigger-flag-watch {
  background: rgba(168, 162, 154, 0.14);
  color: #cbc3b8;
  border: 1px solid rgba(168, 162, 154, 0.22);
}
.vendor-table-inline {
  gap: 5px;
}
.vendor-table-chip {
  background: #24211c;
  border-color: #463d33;
  color: #e4d9cb;
}
.vendor-table-chip-muted {
  color: #aaa196;
}
.vendor-table-chip-confidence {
  min-width: 72px;
  justify-content: center;
}
.vendor-table-number {
  font-weight: 500;
  color: #efe8de;
}

.sticky { position: sticky; left: 0; background: var(--panel); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-chips {
  gap: 6px;
}
.inline-chips .chip {
  padding: 3px 8px;
}
.comparison-inline {
  gap: 5px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 8px;
  background: #1b1f24;
  color: #d8d1c7;
  border: 1px solid #373c44;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.chip.attention { background: rgba(214, 168, 95, 0.16); color: #d8bb86; }
.chip.subtle {
  background: #20242a;
  border-color: #343941;
  color: #a9a39a;
}
.feature-gap-status-chip {
  background: rgba(140, 154, 120, 0.14);
  border-color: rgba(140, 154, 120, 0.22);
  color: #c8d0bb;
}
.feature-gap-status-chip-watch {
  background: rgba(201, 179, 126, 0.14);
  border-color: rgba(201, 179, 126, 0.22);
  color: #dcc79a;
}
.feature-gap-status-chip-risk {
  background: rgba(154, 109, 92, 0.16);
  border-color: rgba(154, 109, 92, 0.24);
  color: #d7b0a3;
}
.comparison-chip {
  background: #24211c;
  border-color: #463d33;
  color: #e4d9cb;
}
.muted-chip {
  color: #aaa196;
}
.confidence-chip {
  min-width: 72px;
  justify-content: center;
}
.comparison-number {
  font-weight: 500;
  color: #efe8de;
}

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 10px; }
.kv dt { font-weight: 500; color: #b6aea2; }
.kv dd { margin: 0; }
.kv.compact {
  grid-template-columns: 110px 1fr;
}

.feature-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-box { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; }
.feature-box h4 { margin: 0 0 8px; text-transform: capitalize; }

.list { margin: 6px 0 0; padding-left: 18px; }
.list li { margin-bottom: 5px; }
.timeline-list { margin: 0; padding-left: 18px; }
.timeline-list li { margin-bottom: 12px; }
.timeline-day {
  list-style: none;
  margin-left: 0;
}
.timeline-day-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.timeline-day-stack {
  display: grid;
  gap: 12px;
}
.timeline-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.timeline-card-report {
  border-left: 3px solid #c9b37e;
}
.timeline-card-wave {
  border-left: 3px solid #d6a85f;
}
.timeline-card-vendor-signal {
  border-left: 3px solid #8c9a78;
}
.timeline-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-card-body {
  display: grid;
  gap: 6px;
}
.timeline-card-title {
  font-size: 1rem;
  line-height: 1.3;
}
.timeline-card p {
  margin: 0;
  color: #cbc4bb;
}
.timeline-card-actions {
  display: flex;
  justify-content: flex-start;
}
.timeline-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.timeline-command-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.timeline-command-card h3,
.timeline-command-card p {
  margin: 0;
}
.timeline-command-card-attention {
  border-color: #5a4d34;
}
.timeline-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr);
  gap: 16px;
  margin-bottom: 16px;
}
.timeline-intro-section,
.timeline-controls-section {
  display: grid;
  gap: 12px;
}
.timeline-intro-section .muted {
  margin: 0;
}
.timeline-controls-section .toolbar {
  margin-bottom: 0;
}
.timeline-results-section {
  margin-top: 0;
}
.timeline-results-section .section-head {
  margin-bottom: 12px;
}

.markdown h1, .markdown h2, .markdown h3 { margin-top: 1em; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { font-weight: 500; }
.markdown table { min-width: 100%; }
.synthesis-markdown {
  line-height: 1.55;
}
.synthesis-markdown h1,
.synthesis-markdown h2,
.synthesis-markdown h3,
.synthesis-markdown h4 {
  scroll-margin-top: 24px;
}
.synthesis-markdown p,
.synthesis-markdown li {
  color: #d8d1c7;
}

.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 6px;
  color: #b8ab90;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}

.vendor-browser {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}
.vendor-table-card {
  min-width: 0;
}
.vendor-browser-spotlights {
  margin-bottom: 16px;
}
.vendor-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.vendor-working-section {
  margin-top: 0;
  margin-bottom: 16px;
}
.vendor-working-section .vendor-command-grid {
  margin-bottom: 0;
}
.vendor-command-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.vendor-command-card h3,
.vendor-command-card p {
  margin: 0;
}
.vendor-command-card-attention {
  border-color: #5a4d34;
}
.vendor-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .9fr);
  gap: 16px;
  margin-bottom: 16px;
}
.vendor-browser-intro {
  display: grid;
  gap: 12px;
}
.vendor-browser-intro h3 {
  margin: 0;
  font-weight: 500;
}
.vendor-browser-intro p {
  margin: 0;
}
.vendor-controls-card {
  display: grid;
  gap: 12px;
}
.vendor-controls-card .toolbar {
  margin-bottom: 0;
}
.saved-view-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}
.saved-view-row .chip {
  text-decoration: none;
}
.vendor-results-section .section-head {
  margin-bottom: 12px;
}
.vendor-detail-panel {
  position: sticky;
  top: 24px;
  min-height: 72vh;
  overflow: hidden;
  background: var(--panel);
}
.vendor-detail-empty,
.vendor-detail-body {
  animation: rise .22s ease;
}
.vendor-detail-body {
  display: grid;
  gap: 14px;
}
.vendor-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.vendor-detail-header h2 {
  margin: 0;
  font-weight: 500;
}
.vendor-detail-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  align-items: flex-end;
}
.vendor-detail-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.vendor-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.vendor-detail-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.vendor-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}
.vendor-detail-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.vendor-summary-block {
  border: 1px solid var(--line);
  background: rgba(28, 32, 38, 0.94);
  border-radius: 12px;
  padding: 10px 12px;
}
.detail-label {
  display: block;
  margin-bottom: 6px;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #988f84;
}
.vendor-detail-section + .vendor-detail-section {
  margin-top: 0;
}
.vendor-detail-section h3 {
  margin-top: 0;
  font-weight: 500;
}
.vendor-detail-section-compact .section-head {
  margin-bottom: 10px;
}
.vendor-detail-section-compact .section-head h3 {
  font-size: 1rem;
}
.vendor-detail-section-compact .kv.compact {
  gap: 6px 10px;
}
.vendor-detail-section-compact .detail-label {
  margin-bottom: 4px;
}
.vendor-review-stack {
  display: grid;
  gap: 10px;
}
.vendor-review-stack .list {
  margin-top: 4px;
}
.section-tabs {
  gap: 10px;
}
.section-tab {
  background: #201f1b;
  color: #cec6bb;
  border-color: #474035;
}
.section-tab.is-active {
  background: #312b1f;
  color: #f4efe7;
  border-color: #c9b37e;
}
.vendor-page-hero {
  margin-bottom: 16px;
}
.vendor-page-tabs {
  margin-bottom: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.vendor-page-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.vendor-page-rail {
  position: sticky;
  top: 32px;
  display: grid;
  gap: 10px;
}
.vendor-rail-nav {
  display: grid;
  gap: 8px;
}
.vendor-rail-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #171a1f;
  color: #cec6bb;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.vendor-rail-link:hover {
  border-color: #5a5146;
  background: #23272d;
  color: #efe8de;
  transform: translateX(2px);
}
.vendor-rail-link.is-active {
  border-color: #c9b37e;
  background: #312b1f;
  color: #f4efe7;
}
.vendor-page-main {
  display: grid;
  gap: 16px;
}
.vendor-page-main > .card,
.vendor-page-main > .grid {
  margin-bottom: 0;
}
.campaign-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.detail-start-grid,
.detail-metric-grid {
  margin-top: 0;
  margin-bottom: 16px;
}
.campaign-card-hot {
  border-color: rgba(214, 168, 95, 0.32);
  box-shadow: 0 0 0 1px rgba(214, 168, 95, 0.12), var(--shadow);
}
.campaign-card-watch {
  border-color: rgba(168, 162, 154, 0.24);
}
.campaign-card-head h3 {
  margin: 0;
  font-weight: 500;
}
.campaign-card-head h3 a {
  color: var(--ink);
  text-decoration: none;
}
.campaign-card-meta {
  justify-content: flex-end;
}
.campaign-context {
  margin: -2px 0 14px;
  font-size: .88rem;
}
.campaign-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}
.campaign-metrics.compact {
  margin: 10px 0 14px;
}
.campaign-strip {
  padding-top: 0;
}
.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.campaign-question-strip {
  gap: 6px;
}
.campaign-chip {
  background: #24211c;
  border-color: #463d33;
  color: #e4d9cb;
}
.campaign-chip-hot {
  background: rgba(214, 168, 95, 0.16);
  color: #d8bb86;
  border-color: rgba(214, 168, 95, 0.28);
}
.campaign-chip-watch {
  background: rgba(168, 162, 154, 0.14);
  color: #cbc3b8;
  border-color: rgba(168, 162, 154, 0.22);
}
.campaign-chip-muted {
  color: #aaa196;
}
.campaign-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.campaign-command-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.campaign-command-card h3,
.campaign-command-card p {
  margin: 0;
}
.campaign-command-card-attention {
  border-color: #5a4d34;
}
.campaign-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 16px;
  margin-bottom: 16px;
}
.campaigns-intro-section,
.campaigns-controls-section {
  display: grid;
  gap: 12px;
}
.campaigns-intro-section .muted {
  margin: 0;
}
.campaigns-controls-section .toolbar {
  margin-bottom: 0;
}
.campaigns-results-section {
  margin-top: 0;
}
.campaigns-results-section .section-head {
  margin-bottom: 12px;
}
.comparison-hero {
  display: grid;
  gap: 14px;
}
.comparison-page-hero {
  margin-bottom: 18px;
}
.comparison-page-summary {
  margin-bottom: 20px;
}
.reports-metric-grid,
.reports-command-grid,
.reports-primary-grid {
  margin-bottom: 16px;
}
.reports-working-section {
  margin-top: 0;
  margin-bottom: 16px;
}
.reports-working-section .reports-command-grid {
  margin-bottom: 0;
}
.reports-command-card {
  align-content: start;
}
.reports-command-card h3 {
  margin: 0;
}
.reports-command-card .muted {
  margin: 0;
}
.reports-primary-grid {
  align-items: start;
}
.reports-controls-card,
.reports-spotlight-section {
  height: 100%;
}
.reports-controls-card .saved-view-row {
  margin-bottom: 12px;
}
.reports-streams-section {
  margin-bottom: 16px;
}
.strategy-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.strategy-command-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.strategy-command-card h3,
.strategy-command-card p {
  margin: 0;
}
.strategy-command-card-attention {
  border-color: #5a4d34;
}
.strategy-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr);
  gap: 16px;
  margin-bottom: 16px;
}
.strategy-intro-section,
.strategy-controls-section {
  display: grid;
  gap: 12px;
}
.strategy-intro-section .muted {
  margin: 0;
}
.strategy-controls-section .toolbar {
  margin-bottom: 0;
}
.strategy-results-section {
  margin-top: 0;
}
.strategy-results-section .section-head {
  margin-bottom: 12px;
}
.v3-section {
  margin-top: 0;
}
.v3-list {
  display: grid;
  gap: 10px;
}
.v3-group-stack {
  display: grid;
  gap: 14px;
}
.v3-group-block {
  display: grid;
  gap: 10px;
}
.v3-list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: inherit;
  text-decoration: none;
}
.v3-list-item:hover {
  border-color: var(--accent);
}
.v3-list-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.v3-kanban-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.v3-kanban-column {
  display: grid;
  gap: 12px;
  align-content: start;
}
.v3-column-note {
  margin: 0;
}
.v3-kanban-cards {
  display: grid;
  gap: 10px;
}
.v3-kanban-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: inherit;
  text-decoration: none;
}
.v3-kanban-card:hover {
  border-color: var(--accent);
}
.graph-shell {
  position: relative;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  overflow: hidden;
}
.graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.graph-lines line {
  stroke: var(--line);
  stroke-width: .4;
}
.graph-meta-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.graph-meta-strip .muted {
  margin: 0;
}
.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.graph-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.graph-filter-btn {
  cursor: pointer;
}
.graph-filter-btn.is-active {
  border-color: var(--accent);
  background: rgba(214, 168, 95, 0.12);
  color: var(--ink);
}
.graph-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 152px;
  display: grid;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.graph-node.active {
  width: 184px;
  border-color: var(--accent);
  background: #242019;
}
.graph-node strong {
  font-size: 0.96rem;
  line-height: 1.12;
}
.graph-node .muted {
  margin: 0;
  font-size: .78rem;
  line-height: 1.2;
}
.graph-node-vendor {
  background: #1d1f21;
}
.graph-node-signal {
  background: #201b18;
}
.graph-shell.is-filtering .graph-node,
.graph-shell.is-filtering .graph-lines line {
  opacity: .18;
}
.graph-shell.is-filtering .graph-node.is-match,
.graph-shell.is-filtering .graph-node.active,
.graph-shell.is-filtering .graph-lines line.is-match {
  opacity: 1;
}
.graph-shell.is-focus .graph-node,
.graph-shell.is-focus .graph-lines line {
  opacity: .16;
}
.graph-shell.is-focus .graph-node.is-focus,
.graph-shell.is-focus .graph-node.is-neighbor,
.graph-shell.is-focus .graph-node.active,
.graph-shell.is-focus .graph-lines line.is-focus {
  opacity: 1;
}
.graph-shell.is-focus .graph-node.is-focus {
  transform: translate(-50%, -50%) scale(1.03);
  border-color: var(--accent);
}
.graph-shell.is-focus .graph-node.is-neighbor {
  border-color: rgba(214, 168, 95, 0.45);
}
.graph-shell.is-focus .graph-lines line.is-focus {
  stroke: var(--accent);
  stroke-width: .7;
}
.graph-overflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.graph-overflow-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.graph-overflow-list {
  display: grid;
  gap: 8px;
}
.section-head.compact {
  margin-bottom: 0;
}
.decision-readiness.positive {
  background: rgba(127, 163, 124, 0.18);
  border-color: rgba(127, 163, 124, 0.45);
  color: #d9ead6;
}
.decision-readiness.attention {
  background: rgba(214, 168, 95, 0.18);
  border-color: rgba(214, 168, 95, 0.45);
  color: #f0dfbf;
}
.decision-readiness.warning {
  background: rgba(166, 112, 85, 0.2);
  border-color: rgba(166, 112, 85, 0.42);
  color: #f0d4c7;
}
.decision-readiness.info {
  background: rgba(120, 132, 148, 0.18);
  border-color: rgba(120, 132, 148, 0.38);
  color: #dde3ea;
}
.decision-readiness.muted {
  background: rgba(96, 98, 102, 0.2);
  border-color: rgba(96, 98, 102, 0.38);
  color: #d3d0ca;
}
.decision-readiness.subtle {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
}
.v3-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.v3-breakdown-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.v3-breakdown-item span {
  color: var(--muted);
  font-size: .82rem;
}
.v3-breakdown-item strong {
  font-size: 1.2rem;
  font-weight: 500;
}
.comparison-preset-bar {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1b1f24;
}
.comparison-preset-bar strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #efe8de;
}
.comparison-preset-bar .muted {
  margin: 0;
  max-width: 60ch;
}
.campaign-detail-grid {
  align-items: start;
}
.campaign-detail-card,
.campaign-related-reports {
  margin-top: 0;
}
.wave-stack {
  display: grid;
  gap: 10px;
}
.wave-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.wave-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.campaign-answer-card .chips {
  margin-bottom: 10px;
}
.qa-chip {
  background: #24211c;
  color: #e4d9cb;
  cursor: pointer;
  padding: 3px 8px;
}
.qa-chip.is-active {
  border-color: #c9b37e;
  background: #312b1f;
}
.report-list {
  display: grid;
  gap: 14px;
}
.report-list-compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.report-group-list {
  display: grid;
  gap: 18px;
}
.report-group {
  display: grid;
  gap: 12px;
}
.report-group-priority .report-group-head {
  padding: 10px 12px;
  border: 1px solid rgba(214, 168, 95, 0.22);
  border-radius: 12px;
  background: rgba(214, 168, 95, 0.05);
}
.report-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.report-group-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-group-head h3 {
  margin: 0;
  font-weight: 500;
}
.report-group.is-collapsed .report-list {
  display: none;
}
.report-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--panel-2);
}
.report-card-compact {
  padding: 12px;
  background: #1c2026;
}
.report-card-highlight {
  border-color: #5a5146;
  background: #29261f;
}
.report-card-strategic {
  border-color: rgba(214, 168, 95, 0.34);
  background: linear-gradient(180deg, rgba(214, 168, 95, 0.08), rgba(32, 36, 42, 1));
}
.report-card h3 {
  margin: 10px 0 6px;
  font-weight: 500;
}
.report-card-compact h3 {
  font-size: 1rem;
  margin: 8px 0 4px;
  font-weight: 500;
}
.report-summary {
  margin: 0;
  color: #c7c0b7;
  line-height: 1.45;
}
.report-card-compact .report-summary {
  line-height: 1.4;
  font-size: .92rem;
}
.report-card-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.report-priority-chip {
  background: rgba(214, 168, 95, 0.16);
  color: #d8bb86;
  border-color: rgba(214, 168, 95, 0.28);
}
.report-fresh-chip {
  background: rgba(168, 162, 154, 0.14);
  color: #cbc3b8;
  border-color: rgba(168, 162, 154, 0.22);
}
.report-older-chip {
  color: #aaa196;
}
.report-card-compact .campaign-actions {
  margin-top: 12px;
}
.intelligence-grid-gap {
  margin-bottom: 16px;
}
.intelligence-saved-views {
  margin-bottom: 16px;
}
.intelligence-command-grid,
.intelligence-overview-metric-grid,
.intelligence-primary-grid,
.intelligence-overview-core-section,
.intelligence-overview-operational-section,
.intelligence-overview-coverage-section {
  margin-top: 0;
  margin-bottom: 16px;
}
.intelligence-working-section {
  margin-top: 0;
  margin-bottom: 16px;
}
.intelligence-working-section .intelligence-command-grid {
  margin-bottom: 0;
}
.intelligence-command-card {
  align-content: start;
}
.intelligence-command-card h3 {
  margin: 0;
}
.intelligence-command-card .muted {
  margin: 0;
}
.intelligence-command-card-attention {
  border-color: rgba(214, 168, 95, 0.32);
  background: #1d1914;
}
.intelligence-primary-grid {
  align-items: start;
}
.intelligence-overview-nav-section,
.intelligence-overview-nav-section .saved-view-card {
  height: 100%;
}
.intelligence-overview-highlight {
  background: #1b1f24;
}
.intelligence-trend-radar {
  margin: 18px 0;
}
.trend-radar-grid {
  display: grid;
  grid-template-columns: 120px repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.trend-radar-axis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1b1f24;
  color: #d0c8bd;
  font-size: .84rem;
  font-weight: 500;
}
.trend-radar-corner {
  min-height: 38px;
}
.trend-radar-row-label {
  justify-content: flex-start;
  padding: 0 12px;
}
.trend-radar-cell {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1b1f24;
}
.trend-radar-cell strong {
  font-size: .96rem;
}
.intelligence-table-wrap {
  margin-top: 8px;
}
.intelligence-table td {
  vertical-align: top;
}
.intelligence-table-row td:first-child {
  min-width: 320px;
}
.table-primary-link {
  color: #efe8de;
  text-decoration: none;
  font-weight: 500;
}
.table-primary-link:hover {
  color: #d7c49a;
}
.feature-gap-card {
  display: grid;
  gap: 14px;
  align-content: start;
}
.feature-gap-row-card {
  gap: 10px;
}
.feature-gap-row-card strong {
  font-size: .98rem;
}
.intelligence-detail-grid {
  align-items: start;
}
.intelligence-detail-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
}
.intelligence-detail-hero-signals {
  border-left: 4px solid #d6a85f;
}
.intelligence-detail-hero-trends {
  border-left: 4px solid #8c9a78;
}
.intelligence-detail-hero-priority {
  box-shadow: 0 0 0 1px rgba(214, 168, 95, 0.18), var(--shadow);
}
.intelligence-detail-hero-watch {
  box-shadow: 0 0 0 1px rgba(168, 162, 154, 0.16), var(--shadow);
}
.intelligence-detail-rail {
  position: sticky;
  top: 24px;
}
.intelligence-rail-related {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.intelligence-rail-related .detail-label {
  margin-top: 6px;
}
.intelligence-detail-main {
  display: grid;
  gap: 16px;
}
.intelligence-related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.intelligence-related-card {
  gap: 10px;
  align-content: start;
}
.intelligence-related-card strong {
  font-size: 1rem;
  font-weight: 500;
}
.intelligence-related-card .chips {
  margin-top: 2px;
}
.intelligence-decision-card {
  margin-top: 0;
}
.intelligence-decision-grid {
  align-items: stretch;
}
.intelligence-decision-item {
  display: grid;
  gap: 10px;
  align-content: start;
  background: #1b1f24;
}
.intelligence-decision-item strong {
  font-size: 1.15rem;
  color: #efe8de;
  font-weight: 500;
}
.intelligence-coverage-card {
  background: #1b1f24;
}
.intelligence-detail-kv {
  margin-top: 14px;
}
.intelligence-score-grid {
  align-items: stretch;
}
.intelligence-score-total {
  display: grid;
  gap: 8px;
  align-content: start;
  background: #1b1f24;
}
.intelligence-score-total strong {
  font-size: 2.25rem;
  line-height: 1;
  color: #f4efe7;
}
.intelligence-score-stack {
  display: grid;
  gap: 12px;
  grid-column: span 3;
}
.intelligence-score-row {
  display: grid;
  gap: 8px;
}
.intelligence-score-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: .92rem;
  color: #d9d0c4;
}
.intelligence-score-label strong {
  font-size: .9rem;
  color: #f4efe7;
  font-weight: 500;
}
.intelligence-score-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #171a1f;
  border: 1px solid #463d33;
  overflow: hidden;
}
.intelligence-score-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9b37e 0%, #d6a85f 100%);
}
.intelligence-step-card,
.intelligence-evidence-card {
  background: #1c2026;
}
.intelligence-workflow-meta,
.intelligence-workflow-tools {
  margin-bottom: 12px;
}
.intelligence-workflow-stack {
  gap: 14px;
  position: relative;
}
.intelligence-workflow-stack::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(201, 179, 126, 0.32) 0%, rgba(201, 179, 126, 0.06) 100%);
}
.intelligence-step-card {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid #5a5146;
  margin-left: 12px;
}
.intelligence-step-card::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #c9b37e;
  box-shadow: 0 0 0 4px #1c2026;
}
.intelligence-step-card-friction {
  border-left-color: rgba(214, 168, 95, 0.45);
}
.intelligence-step-card-friction::before {
  background: #d6a85f;
}
.intelligence-step-headline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.intelligence-step-number {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #171a1f;
  border: 1px solid #4b433a;
  color: #e4ddd2;
  font-size: .84rem;
  font-weight: 500;
}
.intelligence-step-actor {
  margin: 2px 0 0;
}
.intelligence-step-card + .intelligence-step-card::after {
  content: "handoff";
  position: absolute;
  left: -64px;
  top: -11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #171a1f;
  border: 1px solid #463d33;
  color: #aaa196;
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.intelligence-step-tools,
.intelligence-step-links {
  margin-top: 8px;
}
.intelligence-friction-callout {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(214, 168, 95, 0.28);
  background: rgba(214, 168, 95, 0.09);
}
.intelligence-friction-callout strong {
  display: block;
  margin-bottom: 4px;
  color: #d8bb86;
}
.intelligence-friction-callout .muted {
  margin: 0;
}
.intelligence-evidence-stack {
  gap: 14px;
}
.intelligence-evidence-card {
  display: grid;
  gap: 12px;
}
.intelligence-evidence-quote {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid #c9b37e;
  background: #171a1f;
  color: #efe8de;
  font-size: .98rem;
  line-height: 1.55;
}
.intelligence-evidence-actions {
  margin-top: 0;
}
.intelligence-spotlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}
.intelligence-record {
  gap: 10px;
}
.intelligence-record-signals {
  border-left: 3px solid #d6a85f;
}
.intelligence-record-trends {
  border-left: 3px solid #8c9a78;
}
.intelligence-record-priority {
  box-shadow: inset 3px 0 0 #d6a85f;
}
.intelligence-record-watch {
  box-shadow: inset 3px 0 0 #9a9a88;
}
.intelligence-highlight-row {
  margin-top: 2px;
}
.intelligence-record h3 {
  margin-bottom: 2px;
  font-weight: 500;
}
.intelligence-subtitle {
  margin: 0;
  color: #b9b0a4;
}
.intelligence-meta,
.intelligence-tags {
  margin-top: 2px;
}
.campaign-card a,
.report-card a {
  text-decoration: none;
}

a {
  color: #cfbb91;
}

@media (max-width: 1120px) {
  .cards-6, .cards-4, .cards-3, .two-col, .intelligence-spotlights, .intelligence-related-grid { grid-template-columns: 1fr; }
  .vendor-browser { grid-template-columns: 1fr; }
  .feature-gap-command-grid,
  .feature-gap-primary-grid,
  .feature-matrix-command-grid,
  .feature-matrix-primary-grid,
  .timeline-command-grid,
  .timeline-primary-grid,
  .vendor-command-grid,
  .vendor-primary-grid { grid-template-columns: 1fr; }
  .campaign-command-grid,
  .campaign-primary-grid { grid-template-columns: 1fr; }
  .strategy-command-grid,
  .strategy-primary-grid { grid-template-columns: 1fr; }
  .v3-kanban-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .graph-shell { min-height: 740px; }
  .vendor-page-layout { grid-template-columns: 1fr; }
  .intelligence-detail-layout { grid-template-columns: 1fr; }
  .trend-radar-grid { grid-template-columns: 1fr; }
  .trend-radar-corner { display: none; }
  .intelligence-score-stack { grid-column: span 1; }
  .vendor-detail-panel { position: static; min-height: auto; }
  .vendor-page-rail { position: static; }
  .intelligence-detail-rail { position: static; }
  .matrix-row-inspector { position: static; }
  .hero-slab { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .guide-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    top: auto;
    height: auto;
    overflow: visible;
    z-index: auto;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-note {
    white-space: normal;
    text-align: left;
    max-width: none;
  }
  .vendor-detail-actions,
  .vendor-detail-controls,
  .vendor-detail-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }
  .vendor-detail-grid,
  .vendor-detail-split,
  .feature-grid,
  .campaign-metrics { grid-template-columns: 1fr; }
  .v3-kanban-board,
  .v3-breakdown-grid { grid-template-columns: 1fr; }
  .v3-list-item {
    display: grid;
  }
  .v3-list-item-meta {
    justify-content: flex-start;
  }
  .graph-node,
  .graph-node.active {
    width: 148px;
  }
  .graph-overflow-grid { grid-template-columns: 1fr; }
  .vendor-rail-nav { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
