/* ============================================================
   CMO Hub · Bud Ecosystem
   Light-mode treatment of the Bud brand system.
   Brand palette inverted: 60% light surfaces · 30% violet · 10% deep.
   ============================================================ */

:root {
  /* Brand palette */
  --violet-deep: #4C1D95;
  --violet: #6D28D9;
  --violet-electric: #8C33EF;
  --violet-2: #B785F4;
  --violet-3: #D9BAF9;
  --midnight: #120E1C;
  --deep-surface: #1E1A2B;
  --dusk: #6B6080;
  --haze: #C5BFD3;

  /* Light-mode semantic tokens */
  --bg: #F7F6FA;
  --bg-grain: #FBFAFD;
  --surface: #FFFFFF;
  --surface-soft: #F2EFF8;
  --surface-tint: #F8F4FE;
  --border: #E7E2F0;
  --border-strong: #D9D2E6;
  --ink: var(--midnight);
  --ink-muted: var(--dusk);
  --ink-soft: #9990A8;
  --accent: var(--violet);
  --accent-strong: var(--violet-deep);
  --accent-electric: var(--violet-electric);
  --accent-soft: var(--violet-3);
  --accent-tint: #EFE6FC;

  /* Status */
  --ok: #15803D;
  --ok-bg: #DCFCE7;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --bad: #B91C1C;
  --bad-bg: #FEE2E2;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(18, 14, 28, 0.05);
  --shadow-md: 0 4px 16px rgba(76, 29, 149, 0.06), 0 1px 3px rgba(18, 14, 28, 0.04);
  --shadow-lg: 0 12px 40px rgba(76, 29, 149, 0.10), 0 2px 6px rgba(18, 14, 28, 0.05);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', 'Fira Code', monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(140, 51, 239, 0.06), transparent 70%),
    radial-gradient(900px 600px at 100% 0%, rgba(76, 29, 149, 0.04), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; color: var(--ink); margin: 0; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 600; }
h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }

p { margin: 0 0 10px; }
.muted { color: var(--ink-muted); }
.small { font-size: 12px; }
.mono { font-family: var(--font-mono); font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

/* =============== Header =============== */
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 28px;
  max-width: 1600px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand-lockup-img {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 9px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--accent-tint);
  white-space: nowrap;
}

.header-meta { text-align: center; }
.meta-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.meta-edition {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--ink-muted);
  min-width: 260px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.search-wrap input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  color: var(--ink);
  width: 100%;
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-tint); }

/* =============== Tabs =============== */
.tabs {
  display: flex;
  gap: 4px;
  padding: 0 28px;
  max-width: 1600px;
  margin: 0 auto;
  overflow-x: auto;
}
.tab {
  position: relative;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-muted);
  padding: 12px 14px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* =============== View =============== */
.view {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px;
}
.view-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px; gap: 16px;
}
.view-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.025em; }
.view-head .eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.view-head .crumb { color: var(--ink-muted); font-size: 13px; }
.view-actions { display: flex; gap: 8px; }

/* =============== Cards & primitives =============== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card.flat { box-shadow: none; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.card-head h2 { font-size: 16px; }
.card-head .accent {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.card-head .accent::before {
  content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-electric);
}

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--ink-muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--accent-soft); }
.btn.has-unsaved { border-color: var(--warn); color: var(--warn); }
.unsaved-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--warn);
  display: inline-block; margin-left: 7px; box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.18);
}
.btn-danger { color: var(--bad); }
.btn-danger:hover { color: white; background: var(--bad); border-color: var(--bad); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--accent-tint); color: var(--accent-strong);
  border: 1px solid transparent;
}
.pill.neutral { background: var(--surface-soft); color: var(--ink-muted); }
.pill.outline { background: transparent; border-color: var(--border); color: var(--ink-muted); }

/* Status dot (contact heat indicator) */
.status-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 0 0 4px var(--border);
  flex-shrink: 0;
}
.status-dot.green { background: #16A34A; box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 0 0 4px #BBF7D0; }
.status-dot.yellow { background: #D97706; box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 0 0 4px #FDE68A; }
.status-dot.red { background: #DC2626; box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 0 0 4px #FECACA; }

/* Segment badge */
.segment-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.segment-badge.customer  { background: #DCFCE7; color: #166534; }
.segment-badge.partner   { background: #DBEAFE; color: #1E40AF; }
.segment-badge.industry  { background: #FEF3C7; color: #92400E; }
.segment-badge.vendor    { background: #EDE9FE; color: var(--accent-strong); }

/* =============== Newspaper home =============== */
.newspaper-masthead {
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 18px 0 14px;
  margin-bottom: 24px;
  text-align: center;
}
.newspaper-masthead h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.newspaper-masthead .masthead-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
  margin-top: 12px;
  padding: 0 4px;
}
.newspaper-masthead .masthead-meta span { display: inline-block; }
.newspaper-masthead .masthead-meta strong { color: var(--accent); font-weight: 700; }

.home-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } }

.lead-story h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.lead-story .lead-deck {
  font-size: 15px;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.5;
}
.lead-story .lead-body { font-size: 14px; line-height: 1.65; }
.lead-story .lead-body::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 0.9;
  padding: 4px 8px 0 0;
  color: var(--accent);
}

.column-rule { border-left: 1px solid var(--border); padding-left: 28px; }
@media (max-width: 1100px) { .column-rule { border-left: 0; padding-left: 0; } }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px; margin-bottom: 12px;
}
.section-head h3 {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.16em;
}
.section-head .more { font-size: 11px; color: var(--ink-muted); }

.story {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.story:last-child { border-bottom: 0; }
.story .kicker {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.story h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--ink); text-transform: none; letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.story p { color: var(--ink-muted); font-size: 13px; margin: 0; }
.story .byline { font-size: 11px; color: var(--ink-soft); margin-top: 6px; }

.agenda-item {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.agenda-item:last-child { border-bottom: 0; }
.agenda-time {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); font-weight: 600;
}
.agenda-title { font-weight: 600; font-size: 13px; }
.agenda-meta { font-size: 12px; color: var(--ink-muted); }
.agenda-empty { padding: 8px 0 10px; line-height: 1.5; }
.agenda-peek-head {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft);
}
.agenda-peek { opacity: .68; }
.agenda-peek .agenda-time { color: var(--ink-muted); }

/* Hot List */
.hot-add { display: flex; gap: 8px; margin: 4px 0 12px; }
.hot-input {
  flex: 1; font: inherit; font-size: 13px; color: var(--ink);
  padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
.hot-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.hot-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
}
.hot-item:last-child { border-bottom: 0; }
.hot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-electric); box-shadow: 0 0 0 3px var(--accent-tint); }
.hot-text { font-size: 13px; font-weight: 600; color: var(--ink); }
.hot-remove {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; color: var(--ink-soft);
  font-size: 16px; line-height: 1; border-radius: 6px; cursor: pointer; transition: all 0.15s;
}
.hot-remove:hover { background: var(--bad-bg); color: var(--bad); }
.hot-empty { padding: 6px 0 2px; }

/* World clock / timezone converter */
.tz-list { display: flex; flex-direction: column; }
.tz-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--border);
}
.tz-row:last-child { border-bottom: 0; }
.tz-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.tz-sub { font-size: 10.5px; color: var(--ink-soft); margin-top: 1px; }
.tz-time { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--accent-strong); white-space: nowrap; }
.tz-remove {
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; color: var(--ink-soft);
  font-size: 15px; line-height: 1; border-radius: 6px; cursor: pointer; opacity: 0; transition: all 0.15s;
}
.tz-card:hover .tz-remove { opacity: 1; }
.tz-remove:hover { background: var(--bad-bg); color: var(--bad); }
.tz-add { margin-top: 10px; }
.tz-select {
  width: 100%; font: inherit; font-size: 12.5px; color: var(--ink-muted);
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer;
}
.tz-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

/* News source link + share controls (front page + intelligence) */
.news-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.news-source {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent);
}
.news-source:hover { color: var(--accent-strong); text-decoration: underline; }
.news-share { display: inline-flex; align-items: center; }
.news-share-btn {
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-muted); background: transparent; border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px; cursor: pointer; transition: all 0.15s;
}
.news-share-btn:hover { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-tint); }
.news-share-menu { display: inline-flex; gap: 6px; margin-left: 6px; }
.news-share-menu[hidden] { display: none; }
.news-share-opt {
  font: inherit; font-size: 11px; font-weight: 600;
  color: var(--ink); background: var(--surface-soft); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px; cursor: pointer; transition: all 0.15s;
}
.news-share-opt:hover { background: var(--accent-tint); color: var(--accent-strong); border-color: var(--accent-soft); }

/* Intelligence weekly-scan feedback */
.btn.is-busy { opacity: 0.7; cursor: progress; }
.scan-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 18px; padding: 10px 14px;
  background: var(--accent-tint); border: 1px solid var(--accent-soft); border-radius: 10px;
  color: var(--accent-strong); font-size: 12.5px; line-height: 1.45;
}
.scan-note[hidden] { display: none; }
.scan-note-close {
  flex-shrink: 0; background: transparent; border: none; color: var(--accent-strong);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.scan-note-close:hover { color: var(--accent); }

.todo-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.todo-item:last-child { border-bottom: 0; }
.todo-item .status-dot { margin-top: 4px; }
.todo-item .todo-body { flex: 1; }
.todo-item .todo-title { font-weight: 600; font-size: 13px; }
.todo-item .todo-meta { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.todo-item .todo-due { font-size: 11px; color: var(--bad); font-weight: 600; }

/* Resolved-state checkbox for Owed by Me */
.todo-item .todo-check {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px; cursor: pointer; user-select: none;
  width: 18px; height: 18px; flex-shrink: 0;
}
.todo-item .todo-check-box {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin: 0;
  border: 1.5px solid var(--border); border-radius: 4px;
  background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.todo-item .todo-check-box:hover { border-color: var(--ink-muted); }
.todo-item .todo-check-box:checked {
  background: #16A34A; border-color: #16A34A;
}
.todo-item .todo-check-box:checked::after {
  content: ''; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.todo-item .todo-check-box:focus-visible {
  outline: 2px solid var(--accent, #2563EB); outline-offset: 2px;
}
.todo-item.is-resolved { opacity: 0.55; }
.todo-item.is-resolved .todo-title { text-decoration: line-through; }
.todo-item.is-resolved .todo-due { color: var(--ink-muted); }

.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.stat {
  flex: 1; min-width: 130px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--border);
}
.stat-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.stat-value {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); margin-top: 4px;
}
.stat-trend { font-size: 11px; color: var(--ok); font-weight: 600; }
.stat-trend.down { color: var(--bad); }

/* =============== Contact Center =============== */
.contacts-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 20px;
}
@media (max-width: 960px) { .contacts-layout { grid-template-columns: 1fr; } }

.segment-list { position: sticky; top: 110px; align-self: start; }
.segment-section { margin-bottom: 16px; }
.segment-section h4 {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 8px;
}
.segment-toggle {
  cursor: pointer; user-select: none; padding: 4px 6px; margin: 0 -6px 6px;
  border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.segment-toggle:hover { background: var(--surface-soft); color: var(--accent-strong); }
.seg-label { display: inline-flex; align-items: center; gap: 7px; }
.seg-caret {
  display: inline-block; font-size: 9px; color: var(--ink-soft);
  transform: rotate(90deg); transition: transform 0.15s;
}
.segment-toggle.is-collapsed .seg-caret { transform: rotate(0deg); }
.company-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--ink);
  cursor: pointer;
  border: 1px solid transparent;
}
.company-link:hover { background: var(--surface-soft); }
.company-link.is-active {
  background: var(--accent-tint); color: var(--accent-strong);
  border-color: var(--accent-soft); font-weight: 600;
}
.company-link .count {
  font-size: 11px; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 999px;
}
.company-link.is-active .count { background: white; color: var(--accent); }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.contact-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); }
.contact-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.contact-name { font-weight: 700; font-size: 14px; }
.contact-title { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.contact-company { font-size: 11px; color: var(--ink-soft); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.contact-summary { font-size: 12px; color: var(--ink-muted); margin-top: 10px; line-height: 1.5; }
.contact-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

.contact-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.contact-edit, .contact-delete {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; border-radius: 6px;
  border: 1px solid transparent; background: transparent;
  color: var(--ink-soft); font-size: 14px; line-height: 1; cursor: pointer;
  opacity: 0; transition: all 0.15s;
}
.contact-delete { font-size: 16px; }
.contact-card:hover .contact-edit, .contact-card:hover .contact-delete { opacity: 1; }
.contact-edit:hover { background: var(--accent-tint); color: var(--accent); }
.contact-delete:hover { background: var(--bad-bg); color: var(--bad); }

.contact-channels { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.contact-channel {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--accent); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.contact-channel:hover { color: var(--accent-strong); text-decoration: underline; }
.detail-section .contact-channels { gap: 6px; }

/* Detail panel */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.detail-section h4 { margin-bottom: 8px; }
.detail-section ul { margin: 0; padding-left: 18px; color: var(--ink-muted); }
.detail-section li { margin-bottom: 4px; font-size: 13px; }

.timeline { border-left: 2px solid var(--border); margin-left: 6px; padding-left: 16px; }
.timeline-item { position: relative; padding-bottom: 14px; }
.timeline-item::before {
  content: ''; position: absolute; left: -22px; top: 4px;
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent); border: 2px solid white;
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.timeline-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.timeline-title { font-weight: 600; font-size: 13px; margin-top: 2px; }
.timeline-body { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

/* =============== Initiatives =============== */
.initiative-card { padding: 18px; }
.initiative-title {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.initiative-path {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft); text-transform: none; margin-bottom: 10px;
}
.initiative-path .sep { color: var(--accent); margin: 0 4px; }
.initiative-summary { font-size: 13px; color: var(--ink-muted); margin-bottom: 12px; }

.initiative-panels { display: grid; grid-template-columns: 1fr; gap: 16px; }
.panel {
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--border);
}
.panel h4 { margin-bottom: 8px; color: var(--accent-strong); }
.panel dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.panel dl dt { font-weight: 600; color: var(--ink-muted); }
.panel dl dd { margin: 0; color: var(--ink); }
.panel.detail { background: var(--surface); }

.action-list { list-style: none; padding: 0; margin: 0; }
.action-list li {
  display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 13px;
}
.action-list li::before {
  content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0;
}

/* =============== Marketing & Intelligence shared =============== */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .kanban { grid-template-columns: 1fr; } }
.kanban-col {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 200px;
}
.kanban-col h4 {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 10px; color: var(--accent-strong);
  font-size: 11px; letter-spacing: 0.16em;
}
.kanban-col h4 .count {
  background: white; color: var(--accent);
  padding: 2px 8px; border-radius: 999px; font-size: 10px;
}
.kanban-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kanban-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); }
.kanban-card-title { font-weight: 600; font-size: 13px; padding-right: 36px; }
.kanban-card-meta { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }
.kanban-card-note { font-size: 11px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
.kanban-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.kanban-card-tags .pill { font-size: 10px; padding: 2px 6px; }
.kc-actions { position: absolute; top: 7px; right: 8px; display: flex; gap: 2px; }
.kc-btn {
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; color: var(--ink-soft);
  font-size: 13px; line-height: 1; border-radius: 5px; cursor: pointer; opacity: 0; transition: all 0.15s;
}
.kanban-card:hover .kc-btn { opacity: 1; }
.kc-btn:hover { background: var(--accent-tint); color: var(--accent); }
.kc-del:hover { background: var(--bad-bg); color: var(--bad); }

/* Content Tracker cards */
.content-card {
  position: relative; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color 0.15s, box-shadow 0.15s;
}
.content-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); }
.content-title { font-weight: 700; font-size: 14px; padding-right: 36px; }
.content-meta { font-size: 11.5px; color: var(--ink-muted); margin-top: 4px; }
.content-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 9px; }
.content-status { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.content-status.ok { background: var(--ok-bg); color: var(--ok); }
.content-status.warn { background: var(--warn-bg); color: var(--warn); }
.content-status.neutral { background: var(--surface-soft); color: var(--ink-muted); }
.content-note { font-size: 11.5px; color: var(--ink-soft); margin-top: 9px; line-height: 1.45; }
.content-card .news-source { display: inline-block; margin-top: 9px; }
.cc-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 2px; }

/* Roadmap (cross-hub 3-month timeline) */
.rmx { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.rmx-row { display: grid; grid-template-columns: 168px 1fr 1fr 1fr; border-top: 1px solid var(--border); min-height: 56px; }
.rmx-row:first-child { border-top: 0; }
.rmx-head { background: linear-gradient(180deg, var(--surface-tint), var(--surface)); min-height: 0; }
.rmx-month { padding: 9px 10px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); border-left: 1px solid var(--border); }
.rmx-month.is-current { color: var(--accent-strong); background: var(--accent-tint); }
.rmx-corner { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; }
.rmx-lane-label {
  padding: 10px 12px; background: var(--bg-grain); border-right: 1px solid var(--border);
  display: flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--ink);
  border-left: 4px solid var(--border);
}
.rmx-lane-label.l1 { border-left-color: #8C33EF; }
.rmx-lane-label.l2 { border-left-color: #B785F4; }
.rmx-lane-label.l3 { border-left-color: #6D28D9; }
.rmx-lane-label.l4 { border-left-color: #4C1D95; }
.rmx-lane-label.lu { border-left-color: var(--ink-soft); }
.rmx-lane-label.lc { border-left-color: var(--accent-strong); background: var(--accent-tint); }
.rmx-content { border-top: 2px solid var(--accent); }
.rmx-cell { padding: 6px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.rmx-cell.is-current { background: rgba(140, 51, 239, 0.04); }
.rmx-chip { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; font-size: 11px; border: 1px solid transparent; overflow: hidden; cursor: pointer; transition: filter 0.15s, box-shadow 0.15s; }
.rmx-chip:hover { filter: brightness(0.97); box-shadow: 0 1px 4px rgba(18,14,28,0.12); }
.rmx-chip-day { font-family: var(--font-mono); font-weight: 700; flex-shrink: 0; }
.rmx-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmx-chip.red { background: var(--bad-bg); color: var(--bad); }
.rmx-chip.amber { background: var(--warn-bg); color: var(--warn); }
.rmx-chip.green { background: var(--ok-bg); color: var(--ok); }
.rmx-chip.gray { background: var(--surface-soft); color: var(--ink-muted); }
.rmx-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; font-size: 11.5px; color: var(--ink-muted); }
.rmx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rmx-legend i { width: 16px; height: 9px; border-radius: 3px; display: inline-block; }
.rmx-legend i.red { background: var(--bad-bg); border: 1px solid var(--bad); }
.rmx-legend i.amber { background: var(--warn-bg); border: 1px solid var(--warn); }
.rmx-legend i.green { background: var(--ok-bg); border: 1px solid var(--ok); }
.rmx-legend i.gray { background: var(--surface-soft); border: 1px solid var(--border); }

/* Intelligence */
.intel-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .intel-grid { grid-template-columns: 1fr; } }
.intel-section h3 {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px;
}
.intel-section h3::before {
  content: ''; width: 10px; height: 10px; border-radius: 2px; background: var(--accent-electric);
}
.intel-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.intel-item:last-child { border-bottom: 0; }
.intel-item .src {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.intel-item h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  text-transform: none; letter-spacing: -0.005em; color: var(--ink);
  margin: 2px 0 4px;
}
.intel-item p { font-size: 12px; color: var(--ink-muted); margin: 0; }
.intel-item .meta { font-size: 11px; color: var(--ink-soft); margin-top: 4px; }

/* =============== Calendar =============== */
.calendar-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-filter {
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--ink-muted);
  cursor: pointer;
}
.cal-filter.is-active {
  background: var(--accent); color: white; border-color: var(--accent);
}

.month-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.dow-header {
  background: var(--surface-soft);
  padding: 8px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.day {
  background: var(--surface);
  min-height: 110px;
  padding: 6px 8px;
  position: relative;
}
.day.is-other { background: var(--bg-grain); color: var(--ink-soft); }
.day.is-today { background: var(--accent-tint); }
.day-num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); font-weight: 600; }
.day.is-today .day-num { color: var(--accent-strong); font-weight: 700; }
.cal-event {
  display: block;
  font-size: 11px;
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  padding: 3px 6px;
  margin-top: 4px;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-event.customers  { border-left-color: #16A34A; background: #ECFDF5; }
.cal-event.partners   { border-left-color: #2563EB; background: #EFF6FF; }
.cal-event.events     { border-left-color: #D97706; background: #FFFBEB; }
.cal-event.marketing  { border-left-color: var(--accent); background: var(--accent-tint); }

/* =============== Resource Library =============== */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column;
  transition: all 0.15s;
  cursor: pointer;
}
.resource-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.resource-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent-tint); color: var(--accent-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; margin-bottom: 10px;
}
.resource-card h3 { font-size: 14px; margin-bottom: 4px; }
.resource-card p { font-size: 12px; color: var(--ink-muted); margin: 0; }
.resource-card .meta { margin-top: 10px; font-size: 11px; color: var(--ink-soft); }

/* =============== Footer =============== */
.app-footer {
  max-width: 1600px;
  margin: 32px auto 0;
  padding: 16px 28px 32px;
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-soft);
  border-top: 1px solid var(--border);
}

/* =============== Modal =============== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18,14,28,0.5); }
.modal-card {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  padding: 22px; width: min(560px, 92vw); box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-card textarea {
  width: 100%; font: inherit; font-size: 13px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  resize: vertical; min-height: 120px;
}
.modal-card textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* Add-contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.field-full { grid-column: 1 / -1; }
.field .req { color: var(--bad); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 13px; font-weight: 400; color: var(--ink);
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
.field textarea { resize: vertical; min-height: 56px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.form-hint { margin-top: 10px; }
.form-error {
  margin-top: 10px; padding: 9px 12px; border-radius: 8px;
  background: var(--bad-bg); color: var(--bad); font-size: 12px; font-weight: 600;
}
.form-error[hidden] { display: none; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.qc-inbox { margin-top: 16px; max-height: 200px; overflow-y: auto; }
.qc-inbox-item {
  padding: 10px 0; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--ink-muted);
}
.qc-inbox-item time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); display: block; margin-bottom: 3px; }

/* =============== Util =============== */
.flex { display: flex; }
.flex.between { justify-content: space-between; }
.flex.center { align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.text-right { text-align: right; }

/* Scrollbars: subtle */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-soft); }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   ===== Bud Engagement Hub — additions on top of CMO Hub CSS
   ============================================================ */

/* Status dot color aliases (dot-green / dot-yellow / dot-red) */
.status-dot.dot-green  { background: #16A34A; box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 0 0 4px #BBF7D0; }
.status-dot.dot-yellow { background: #D97706; box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 0 0 4px #FDE68A; }
.status-dot.dot-red    { background: #DC2626; box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 0 0 4px #FECACA; }

/* ===== Header: user picker ===== */
.user-picker-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.user-picker-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.user-picker {
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink);
  border: 0; background: transparent; cursor: pointer; outline: none;
  padding: 4px 0;
}

/* ===== Page / sections / heads ===== */
.page { display: flex; flex-direction: column; gap: 20px; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 4px;
}
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.page-head .kicker { color: var(--accent); margin-bottom: 4px; }
.page-head-actions { display: flex; gap: 8px; }
.kicker {
  font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-strong);
}
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 12px;
}
.section-head h3 { font-size: 14px; }
.section-head .more {
  font-size: 11px; color: var(--ink-soft); font-weight: 600; letter-spacing: 0.04em;
}
.section-label {
  margin: 22px 0 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.empty-state {
  padding: 40px 20px; text-align: center;
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  color: var(--ink-muted); font-size: 13px;
}
.empty { padding: 8px 0; }

/* ===== Front Page — masthead, greet, body grid ===== */
.masthead {
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 16px 0 14px;
  text-align: center;
  margin-bottom: 4px;
}
.masthead-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.masthead-vol  { justify-self: start;  text-align: left; }
.masthead-tag  { justify-self: center; text-align: center; color: var(--accent); }
.masthead-date { justify-self: end;    text-align: right; }
.masthead-title {
  font-family: var(--font-display); font-size: 44px; font-weight: 800;
  letter-spacing: -0.03em; margin: 8px 0 4px;
}
.masthead-tagline { color: var(--ink-muted); font-size: 13px; font-style: italic; }

.greet-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.greet-left { display: flex; align-items: center; gap: 14px; }
.greet-line { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.greet-note { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-strong);
  font-family: var(--font-display); font-weight: 700;
  flex-shrink: 0;
}
.avatar-xs { width: 18px; height: 18px; font-size: 9px; }
.avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.avatar-md { width: 36px; height: 36px; font-size: 12px; }
.avatar-lg { width: 48px; height: 48px; font-size: 14px; }

.mini-stats { display: flex; gap: 14px; }
.mini-stat {
  background: var(--surface-soft); border-radius: var(--radius);
  padding: 8px 14px; min-width: 90px; text-align: center;
}
.mini-stat-val { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); }
.mini-stat-lab { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.mini-stat-sub { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }

.home-body { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 1100px) { .home-body { grid-template-columns: 1fr; } }
.home-left, .home-right { display: flex; flex-direction: column; gap: 18px; }

.lead-story {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.lead-story .kicker { color: var(--accent); display: block; margin-bottom: 8px; }
.lead-headline { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
.lead-deck { font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 12px; line-height: 1.5; }
.lead-body { color: var(--ink-muted); font-size: 13px; line-height: 1.6; margin-top: 10px; }
.byline { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; margin-top: 12px; }
.byline a { color: var(--ink-soft); border-bottom: 1px dotted var(--ink-soft); }
.byline a:hover { color: var(--accent); border-color: var(--accent); }

.headline {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px;
}
.headline .kicker { display: block; margin-bottom: 6px; color: var(--ink-soft); }
.headline-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.headline-body { font-size: 12.5px; color: var(--ink-muted); margin-top: 6px; line-height: 1.5; }

/* Front-page agenda */
.agenda-list { display: flex; flex-direction: column; gap: 8px; }
.agenda-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.agenda-item:last-child { border-bottom: 0; }
.agenda-item.is-owed { background: linear-gradient(90deg, rgba(220,38,38,0.05), transparent); border-left: 3px solid var(--bad); padding-left: 8px; border-radius: 4px; }
.agenda-time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.agenda-title { font-size: 13px; font-weight: 600; }
.agenda-meta { margin-top: 2px; }

/* My actions card / risk card */
.action-list { display: flex; flex-direction: column; gap: 4px; }
.action-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px;
  padding: 10px 4px; align-items: start;
  border-bottom: 1px dashed var(--border);
}
.action-row:last-child { border-bottom: 0; }
.action-row.is-overdue { background: linear-gradient(90deg, rgba(220,38,38,0.06), transparent); border-radius: 4px; padding-left: 8px; }
.action-row.is-done .action-text { text-decoration: line-through; color: var(--ink-soft); }
.action-text { font-size: 13px; font-weight: 600; line-height: 1.35; outline: none; }
.action-text[contenteditable="true"]:focus { background: var(--accent-tint); border-radius: 4px; padding: 2px 4px; }
.action-meta { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.action-meta a { color: var(--accent-strong); font-weight: 600; }
.action-due-input {
  font: inherit; font-size: 11px; padding: 1px 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface);
}
.action-owner-select {
  font: inherit; font-size: 11px; padding: 1px 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: inherit;
}
.action-check { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }
.action-controls { display: flex; gap: 4px; align-items: start; }
.overdue-pill {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  background: var(--bad-bg); color: var(--bad);
  margin-left: 4px;
}
.ai-spark { color: var(--accent-electric); font-weight: 800; font-size: 14px; margin-right: 4px; }
.ai-source { font-size: 11px; color: var(--accent); font-style: italic; margin-top: 4px; }

.risk-list { display: flex; flex-direction: column; gap: 0; }
.risk-row {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  padding: 10px 4px; border-bottom: 1px dashed var(--border);
  color: var(--ink);
}
.risk-row:last-child { border-bottom: 0; }
.risk-row:hover { background: var(--surface-soft); }
.risk-row .status-dot { margin-top: 4px; }
.risk-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.risk-meta { margin-top: 2px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ===== Engagement Hub: triage strip ===== */
.triage-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.triage-cell {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; text-align: left;
  font: inherit; cursor: pointer; transition: all 0.15s;
}
.triage-cell:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.triage-cell.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.triage-cell.is-empty { opacity: 0.45; cursor: default; }
.triage-cell.is-empty .triage-val { color: var(--ink-soft); }
.triage-cell.tone-red    { border-left: 4px solid var(--bad); }
.triage-cell.tone-yellow { border-left: 4px solid var(--warn); }
.triage-cell.tone-green  { border-left: 4px solid var(--ok); }
.triage-val { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.triage-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-top: 2px; }
.triage-driver { margin-top: 6px; }

/* ===== Engagement Hub: owed lens (cross-user bottleneck visibility) ===== */
.owed-lens .section-head h3 { display: inline-flex; align-items: center; }
.owed-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.owed-card {
  background: var(--bg-grain); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; transition: all 0.15s;
}
.owed-card.has-overdue { border-color: rgba(220, 38, 38, 0.4); background: linear-gradient(180deg, rgba(220,38,38,0.05), var(--bg-grain) 30%); }
.owed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.owed-name { font-size: 13px; font-weight: 700; }
.owed-role { line-height: 1.2; }
.owed-counts { margin-left: auto; display: flex; gap: 4px; }
.count-pill {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 999px;
  background: var(--surface-soft); color: var(--ink-muted);
  border: 1px solid var(--border);
}
.count-pill.is-bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(220, 38, 38, 0.3); }
.owed-list { display: flex; flex-direction: column; gap: 4px; }
.owed-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; color: var(--ink);
}
.owed-item:hover { border-color: var(--accent-soft); background: var(--accent-tint); }
.owed-item.is-overdue { border-left: 3px solid var(--bad); }
.owed-eng { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); display: block; }
.owed-text { font-weight: 600; line-height: 1.3; display: block; margin-top: 1px; }
.owed-due { white-space: nowrap; }

/* ===== Engagement Hub: filters ===== */
.sales-filters { display: flex; flex-direction: column; gap: 10px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-muted);
  cursor: pointer; transition: all 0.15s;
}
.chip:hover { color: var(--ink); border-color: var(--accent-soft); }
.chip.is-active { background: var(--accent); color: white; border-color: var(--accent); }
.chip.chip-link {
  margin-left: auto;
  background: var(--accent-tint); color: var(--accent-strong); border-color: var(--accent-soft);
  font-weight: 700;
}
.chip.chip-link:hover { background: var(--accent); color: white; border-color: var(--accent); }
.toggle-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-muted); font-weight: 600;
}
.toggle input[type="checkbox"] { accent-color: var(--accent); }
.toggle select {
  font: inherit; font-size: 12px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink);
}
.btn-tiny { font-size: 11px; padding: 3px 8px; border-radius: 6px; }

/* ===== Engagement Hub: engagement grid + cards ===== */
.engagement-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px;
}
.engagement-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; cursor: pointer; transition: all 0.15s;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 3px solid var(--border);
}
.engagement-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.engagement-card.health-red    { border-top-color: var(--bad); }
.engagement-card.health-yellow { border-top-color: var(--warn); }
.engagement-card.health-green  { border-top-color: var(--ok); }
.eng-card-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eng-card-title { font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.eng-card-customer { font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.eng-card-body { line-height: 1.45; }
.eng-card-foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; gap: 8px; }
.eng-card-meta { font-size: 11px; color: var(--ink-soft); line-height: 1.5; }
.eng-card-counts { display: flex; gap: 4px; flex-wrap: wrap; }

.partner-chip {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent-tint); color: var(--accent-strong);
  padding: 2px 8px; border-radius: 4px;
}
.bud20-pill {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--violet-electric), var(--violet-deep));
  color: white; padding: 2px 7px; border-radius: 4px;
}
.stage-pill {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--surface-soft); color: var(--ink-muted);
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--border);
}
.clock-pill {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px;
}
.clock-pill.clock-commercial { background: #FEF3C7; color: #92400E; }
.clock-pill.clock-internal   { background: #DBEAFE; color: #1E40AF; }

/* ===== Engagement detail page ===== */
.breadcrumb { font-size: 12px; color: var(--ink-muted); }
.breadcrumb a { color: var(--accent); font-weight: 600; }

.engagement-header {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--border);
}
.engagement-header.health-red    { border-top-color: var(--bad); }
.engagement-header.health-yellow { border-top-color: var(--warn); }
.engagement-header.health-green  { border-top-color: var(--ok); }
.eh-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.eh-title-wrap { display: flex; align-items: center; gap: 12px; }
.eh-title-wrap h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.eh-title.editable {
  outline: none; border-radius: 6px;
  padding: 2px 6px; margin: -2px -6px;
  transition: background 0.12s;
  cursor: text;
}
.eh-title.editable:hover {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}
.eh-title.editable:focus {
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--accent);
}
.eh-meta-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.eh-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 18px;
  margin-top: 18px;
}
.eh-field { display: flex; flex-direction: column; gap: 3px; }
.eh-field-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.eh-field-input {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--ink);
}
.eh-field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.eh-field-readonly .eh-field-val { font-size: 13px; font-weight: 600; padding: 6px 0; }

.eh-contributors {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.contributor-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-soft); padding: 3px 10px 3px 4px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--border);
}

/* Sub-tabs */
.subtabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
}
.subtab {
  font: inherit; background: transparent; border: 0; cursor: pointer;
  padding: 10px 16px; font-weight: 600; font-size: 13px; color: var(--ink-muted);
  border-bottom: 2px solid transparent;
}
.subtab:hover { color: var(--ink); }
.subtab.is-active { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* Bottom sub-nav: same nav, but visually marked as a "jump back" affordance */
.subtabs.subtabs-bottom {
  margin-top: 8px; padding-top: 14px;
  border-bottom: 0; border-top: 1px solid var(--border);
  justify-content: center;
}
.subtabs.subtabs-bottom .subtab {
  border-bottom: 0; border-top: 2px solid transparent;
  padding: 14px 16px 10px;
}
.subtabs.subtabs-bottom .subtab.is-active {
  border-top-color: var(--accent);
}

.engagement-body { display: flex; flex-direction: column; gap: 16px; }
.pane { display: flex; flex-direction: column; gap: 16px; }

/* Scope pane (legacy full layout — retained for reference, no longer routed) */
.scope-block { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.scope-block:last-child { border-bottom: 0; }
.scope-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.scope-value { font-size: 13px; line-height: 1.55; }
.scope-value.editable[contenteditable="true"]:focus {
  outline: none; background: var(--accent-tint); border-radius: 6px; padding: 6px 8px;
}
.contact-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.contact-chip {
  display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-soft); color: var(--ink); border: 1px solid var(--border);
}

/* Condensed scope card — sits under Action Items on the combined Summary pane */
.scope-condensed { background: var(--bg-grain); }
.scope-condensed .scope-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px;
}
@media (max-width: 760px) { .scope-condensed .scope-grid { grid-template-columns: 1fr; } }
.scope-condensed .scope-cell { padding: 0; }
.scope-condensed .scope-label { margin-bottom: 3px; }
.scope-condensed .scope-value { font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.scope-contacts { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.scope-contacts .scope-label { margin-bottom: 6px; }

/* Actions pane */
.actions-card.actions-system {
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 60%);
  border-color: var(--accent-soft);
}
.actions-card.actions-done { background: var(--bg-grain); }
.actions-card.actions-done .action-text { opacity: 0.65; }

/* Details pane */
.details-edit {
  font-size: 14px; line-height: 1.65; min-height: 120px;
  padding: 6px 0; outline: none;
}
.details-edit[contenteditable="true"]:focus {
  background: var(--accent-tint); border-radius: 6px; padding: 8px 10px;
}

/* Timeline pane */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 19px; top: 14px; bottom: 14px; width: 2px;
  background: var(--border);
}
.tl-row { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 10px 0; align-items: start; }
.tl-channel {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  position: relative; z-index: 1;
  border: 2px solid var(--surface);
}
.channel-slack    { background: #ECFDF5; color: #15803D; }
.channel-gmail    { background: #FEE2E2; color: #B91C1C; }
.channel-calendar { background: #DBEAFE; color: #1E40AF; }
.channel-manual   { background: var(--accent-tint); color: var(--accent-strong); }
.tl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tl-channel-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  background: var(--surface-soft); padding: 2px 6px; border-radius: 4px;
  color: var(--ink-muted);
}
.tl-dir { font-size: 11px; color: var(--ink-soft); font-family: var(--font-mono); font-weight: 600; }
.tl-time { margin-left: auto; }
.tl-summary { font-size: 13px; font-weight: 500; line-height: 1.45; }
.tl-meta { margin-top: 4px; display: flex; gap: 10px; align-items: center; }
.tl-link { color: var(--accent); font-weight: 600; }
.add-touch-card textarea { width: 100%; min-height: 60px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 13px; }
.add-touch-card textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

/* ===== Marketing Hub ===== */
.mh-nav { display: flex; gap: 10px; }
.mh-nav-card {
  font: inherit; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 16px; cursor: pointer;
  text-align: left; transition: all 0.15s;
}
.mh-nav-card:hover { border-color: var(--accent-soft); }
.mh-nav-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.mh-nav-title { font-size: 13px; font-weight: 700; }
.mh-nav-sub { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

/* Resource Library — cards with hover edit/delete controls + URL link */
.library-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.library-item {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column;
}
.library-item:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); }
.library-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent-tint); color: var(--accent-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; margin-bottom: 10px; letter-spacing: 0.04em;
}
.library-title { font-size: 14px; font-weight: 700; padding-right: 36px; line-height: 1.3; }
.library-desc { margin-top: 5px; font-size: 12px; color: var(--ink-muted); line-height: 1.45; }
.library-meta { margin-top: 10px; font-size: 11px; color: var(--ink-soft); }
.library-link {
  display: inline-block; margin-top: 9px;
  font-size: 12px; font-weight: 700; color: var(--accent);
}
.library-link:hover { color: var(--accent-strong); text-decoration: underline; }

/* Kanban (Projects view) */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .kanban { grid-template-columns: 1fr; } }
.kanban-col {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 200px;
}
.kanban-col h4 {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 10px; color: var(--accent-strong);
  font-size: 11px; letter-spacing: 0.16em;
}
.kanban-col h4 .count {
  background: var(--surface); color: var(--accent);
  padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700;
}
.kanban-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kanban-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); }
.kanban-card-title { font-weight: 600; font-size: 13px; padding-right: 36px; line-height: 1.35; }
.kanban-card-meta { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }
.kanban-card-note { font-size: 11px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
.kanban-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.kanban-card-tags .pill { font-size: 10px; padding: 2px 6px; }
.kc-actions { position: absolute; top: 7px; right: 8px; display: flex; gap: 2px; }
.kc-btn {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; color: var(--ink-soft);
  font-size: 13px; line-height: 1; border-radius: 5px; cursor: pointer;
  opacity: 0; transition: all 0.15s;
}
.kanban-card:hover .kc-btn, .content-card-mh:hover .kc-btn, .library-item:hover .kc-btn { opacity: 1; }
.kc-btn:hover { background: var(--accent-tint); color: var(--accent); }
.kc-del:hover { background: var(--bad-bg); color: var(--bad); }

/* Blockers ribbon (Marketing Projects) */
.blockers-card .blocker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.blocker-item {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  padding: 10px 12px; background: var(--surface-soft); border-radius: 8px;
  border-left: 3px solid var(--border);
}
.blocker-item.severity-red    { border-left-color: var(--bad);  background: linear-gradient(90deg, var(--bad-bg), var(--surface-soft) 40%); }
.blocker-item.severity-yellow { border-left-color: var(--warn); background: linear-gradient(90deg, var(--warn-bg), var(--surface-soft) 40%); }
.blocker-title { font-weight: 700; font-size: 13px; }
.blocker-issue { font-size: 11.5px; color: var(--ink-muted); margin-top: 2px; }

/* Content Tracker cards (CMO-Hub style) */
.content-cat-section { margin-bottom: 22px; }
.content-cat-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.content-cat-head h2 { font-size: 16px; font-weight: 700; }
.content-cat-head .pill { font-size: 11px; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.content-card-mh {
  position: relative; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color 0.15s, box-shadow 0.15s;
}
.content-card-mh:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); }
.content-card-mh.is-requested { border-left: 3px solid var(--violet-electric); }
.content-card-mh .content-title { font-weight: 700; font-size: 14px; padding-right: 36px; line-height: 1.3; }
.content-card-mh .content-meta { font-size: 11.5px; color: var(--ink-muted); margin-top: 4px; }
.content-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 9px; }
.content-status-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.content-status-badge.ok      { background: var(--ok-bg);   color: var(--ok); }
.content-status-badge.warn    { background: var(--warn-bg); color: var(--warn); }
.content-status-badge.neutral { background: var(--surface-soft); color: var(--ink-muted); }
.requested-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, var(--violet-electric), var(--violet-deep));
  color: white;
}
.content-note { font-size: 11.5px; color: var(--ink-soft); margin-top: 9px; line-height: 1.45; }
.content-link {
  display: inline-block; margin-top: 9px;
  font-size: 12px; font-weight: 700; color: var(--accent);
}
.content-link:hover { color: var(--accent-strong); text-decoration: underline; }
.cc-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 2px; }

/* Status counts strip (Projects + Content) */
.mh-counts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.mh-count-pill {
  font-size: 11px; font-weight: 600; color: var(--ink-muted);
  padding: 4px 10px; border-radius: 999px; background: var(--surface-soft);
  border: 1px solid var(--border);
}
.mh-count-pill strong { color: var(--ink); font-weight: 800; margin-right: 4px; }

/* ===== Intelligence Center ===== */
.intel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1280px) { .intel-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 880px)  { .intel-grid { grid-template-columns: 1fr; } }
.intel-section { display: flex; flex-direction: column; }
.intel-item { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.intel-item:last-of-type { border-bottom: 0; }
.intel-source { font-size: 10px; color: var(--ink-soft); }
.intel-title { font-size: 14px; font-weight: 700; margin: 6px 0; line-height: 1.3; }
.intel-body { font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }
.intel-meta { margin-top: 6px; font-style: italic; }
.intel-add-here { margin-top: 12px; align-self: start; }
.news-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.news-source { font-size: 11px; font-weight: 700; color: var(--accent); }
.news-source:hover { color: var(--accent-strong); text-decoration: underline; }

/* Scan note banner (Intelligence Center) */
.scan-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  background: var(--accent-tint); color: var(--accent-strong);
  border: 1px solid var(--accent-soft); border-radius: 8px;
  font-size: 12px; font-weight: 600;
}
.scan-note[hidden] { display: none; }
.scan-note-close {
  font: inherit; background: transparent; border: 0; cursor: pointer;
  color: var(--accent-strong); font-size: 16px; line-height: 1;
  width: 22px; height: 22px; border-radius: 4px;
}
.scan-note-close:hover { background: rgba(255,255,255,0.4); }
.btn.is-busy { opacity: 0.7; cursor: progress; }

/* ===== Calendar (list view) ===== */
.cal-day { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.cal-day-label { font-size: 12px; font-weight: 700; color: var(--accent-strong); margin-bottom: 6px; }
.cal-event {
  /* override the CMO Hub inline style */
  display: flex; align-items: center; gap: 10px;
  white-space: normal; padding: 6px 10px; margin: 4px 0;
  font-size: 13px; border-left-width: 3px;
}
.cal-lane-pill {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
  background: var(--surface-soft); color: var(--ink-muted);
}
.cal-event.lane-customers .cal-lane-pill { background: #DCFCE7; color: #166534; }
.cal-event.lane-partners  .cal-lane-pill { background: #DBEAFE; color: #1E40AF; }
.cal-event.lane-events    .cal-lane-pill { background: #FEF3C7; color: #92400E; }
.cal-title { flex: 1; font-weight: 600; }
.cal-link { font-size: 12px; color: var(--accent); font-weight: 700; }

/* ===== Modals: extra ===== */
.modal-card-sm { width: min(420px, 92vw); }

/* ===== Responsive nips ===== */
@media (max-width: 900px) {
  .triage-strip { grid-template-columns: repeat(2, 1fr); }
  .eh-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .triage-strip { grid-template-columns: 1fr; }
  .eh-fields { grid-template-columns: 1fr; }
  .header-inner { grid-template-columns: auto 1fr; }
  .header-meta { display: none; }
  .greet-strip { flex-direction: column; align-items: start; }
  .mh-nav { flex-direction: column; }
}

/* ===== Row menu (dropdown for delay / mark done) ===== */
.row-menu { position: relative; align-self: start; }
.row-menu summary { list-style: none; cursor: pointer; padding: 2px 8px; border-radius: 4px; color: var(--ink-soft); font-size: 14px; font-weight: 700; line-height: 1; user-select: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary::marker { content: ''; }
.row-menu summary:hover { background: var(--surface-soft); color: var(--ink); }
.row-menu[open] summary { background: var(--accent-tint); color: var(--accent-strong); }
.row-menu-panel {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20;
  display: flex; flex-direction: column; min-width: 180px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-md); padding: 4px;
}
.row-menu-panel button {
  font: inherit; font-size: 12px; font-weight: 600;
  background: transparent; border: 0; text-align: left;
  padding: 7px 10px; cursor: pointer; border-radius: 4px;
  color: var(--ink);
}
.row-menu-panel button:hover { background: var(--accent-tint); color: var(--accent-strong); }

/* Footer reset button */
.footer-reset {
  font: inherit; font-size: 11px; font-weight: 600;
  background: transparent; border: 1px solid var(--border);
  color: var(--ink-muted);
  padding: 2px 8px; border-radius: 999px; cursor: pointer;
  margin-left: 4px;
}
.footer-reset:hover { color: var(--bad); border-color: rgba(220, 38, 38, 0.4); background: var(--bad-bg); }

/* Action row tweaks for new layout */
.action-row { grid-template-columns: auto 1fr auto; }
.action-link { color: var(--ink); text-decoration: none; }
.action-link:hover { color: var(--accent-strong); text-decoration: underline; }

/* Risk row split: link + menu */
.risk-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; padding: 10px 4px; border-bottom: 1px dashed var(--border); }
.risk-row:last-child { border-bottom: 0; }
.risk-link { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--ink); text-decoration: none; }
.risk-link:hover .risk-title { color: var(--accent-strong); }
.risk-link .status-dot { margin-top: 4px; }

/* ===== Today / calendar card ===== */
.agenda-item.is-today {
  background: linear-gradient(90deg, var(--accent-tint), transparent);
  border-left: 3px solid var(--accent);
  padding-left: 8px; border-radius: 4px;
}
.agenda-item.is-today .agenda-time {
  color: var(--accent-strong); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.agenda-engagement-link {
  color: var(--accent); font-weight: 600; margin-left: 6px;
}
.agenda-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ===== Hot List ===== */
.hot-card { /* same base card */ }
.hot-add { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 12px; }
.hot-input {
  font: inherit; font-size: 13px;
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--ink);
}
.hot-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.hot-list { display: flex; flex-direction: column; gap: 4px; }
.hot-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 7px 4px; border-bottom: 1px dashed var(--border);
}
.hot-item:last-child { border-bottom: 0; }
.hot-item.is-done .hot-text { text-decoration: line-through; color: var(--ink-soft); }
.hot-check { width: 16px; height: 16px; accent-color: var(--accent); }
.hot-text { font-size: 13px; font-weight: 600; line-height: 1.35; }
.hot-remove {
  font: inherit; background: transparent; border: 0;
  font-size: 16px; line-height: 1; color: var(--ink-soft);
  width: 22px; height: 22px; border-radius: 4px; cursor: pointer;
}
.hot-remove:hover { background: var(--bad-bg); color: var(--bad); }

/* ============================================================
   CFO HUB ADDITIONS
   Net-new components on top of the shared Bud system base:
   pipeline board · decline flags · ARR dashboard · reference cards
   ============================================================ */

/* Extra contact segment badges (base covers customer/partner/industry/vendor) */
.segment-badge.investor { background: #EDE9FE; color: var(--accent-strong); }
.segment-badge.advisor  { background: #E0F2FE; color: #075985; }

/* ---- Engagement Hub: pipeline kanban (6 stages) ---- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(216px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
@media (max-width: 1280px) { .pipeline { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(240px, 1fr); } }
.pipeline-col {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  min-height: 120px;
  transition: background .12s, box-shadow .12s;
}
.pipeline-col > h4, .declined-lane h4 ~ * { }
.pipeline-col > h4 {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 10px; padding: 0 2px;
}
.pipeline-col > h4 .count {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 1px 8px; font-size: 11px; color: var(--ink-muted);
}
.pipeline-col.drag-over, .declined-row.drag-over {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 2px var(--accent-soft);
}
.eng-card { margin-bottom: 10px; cursor: grab; }
.eng-card.dragging { opacity: .5; }
.eng-card .eng-check { font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); margin-top: 6px; font-weight: 600; }
.eng-card .eng-touch { margin-top: 4px; }
.eng-card.is-flagged { border-color: #FCA5A5; box-shadow: 0 0 0 2px rgba(220,38,38,0.12); }

.decline-flag {
  margin-top: 10px; padding: 8px 10px;
  background: var(--bad-bg); border: 1px solid #FCA5A5; border-radius: 8px;
  font-size: 11.5px; color: var(--bad); line-height: 1.4;
}

/* Passed / Declined lane */
.declined-lane { margin-top: 22px; }
.declined-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  background: var(--surface-soft); border: 1px dashed var(--border-strong);
  border-radius: var(--radius); padding: 14px; min-height: 80px;
  transition: background .12s, box-shadow .12s;
}
.declined-row .eng-card { width: 260px; margin-bottom: 0; opacity: .82; }
.declined-row .empty { align-self: center; }

/* timeline channel colors + decline highlight */
.tl-channel.channel-note     { background: var(--surface-soft); color: var(--ink-muted); }
.tl-channel.channel-calendar { background: #E0F2FE; color: #075985; }
.tl-row.tl-decline .tl-summary { color: var(--bad); }
.tl-row.tl-decline { border-left: 2px solid var(--bad); padding-left: 10px; margin-left: -12px; }

/* ---- Intelligence: Capital Raised funding cards ---- */
.funding-item .fund-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.funding-item .fund-company { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.funding-item .fund-amount {
  font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--accent-strong);
  background: var(--accent-tint); border-radius: 6px; padding: 1px 8px; white-space: nowrap;
}
.funding-item .fund-meta { font-size: 11.5px; color: var(--ink-muted); margin: 2px 0 6px; font-weight: 600; }

/* ---- ARR Multiples Dashboard ---- */
.arr-summary { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; margin: 4px 0 14px; }
@media (max-width: 900px) { .arr-summary { grid-template-columns: 1fr 1fr; } }
.arr-summary .card { padding: 16px; }
.arr-target { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; border: 0; }
.arr-target-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .85; }
.arr-target-mult { font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1.05; margin: 4px 0; letter-spacing: -0.02em; }
.arr-target-sub { font-size: 12px; opacity: .9; }
.arr-target-ev { font-family: var(--font-mono); font-size: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.25); }
.arr-stat { display: flex; flex-direction: column; justify-content: center; }
.arr-stat-val { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; color: var(--ink); }
.arr-stat-lab { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }

.arr-table-wrap { overflow-x: auto; }
.arr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.arr-table th {
  text-align: left; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; padding: 6px 12px 8px; border-bottom: 1px solid var(--border-strong);
}
.arr-table th.num, .arr-table td.num { text-align: right; font-family: var(--font-mono); }
.arr-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.arr-table tr:last-child td { border-bottom: 0; }
.arr-ticker { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.arr-mult { font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.arr-mult.high { background: var(--ok-bg); color: var(--ok); }
.arr-mult.low  { background: var(--surface-soft); color: var(--ink-muted); }
.spark-wrap { display: inline-flex; align-items: center; gap: 6px; }
.spark { display: block; }
.spark-delta { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; }
.spark-delta.up { color: var(--ok); }
.spark-delta.down { color: var(--bad); }

/* ---- Reference Center cards ---- */
.ref-card { display: flex; flex-direction: column; gap: 4px; }
.ref-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ref-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-strong);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
}
.ref-status { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }
.ref-status.is-live    { background: var(--ok-bg); color: var(--ok); }
.ref-status.is-connect { background: var(--warn-bg); color: var(--warn); }
.ref-title { font-size: 14px; margin-top: 2px; }
.ref-metric { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.ref-metric-lab { font-size: 12px; color: var(--ink-muted); }
.ref-sub { margin-top: 2px; }
.ref-desc { font-size: 12.5px; color: var(--ink-muted); margin: 8px 0; line-height: 1.5; flex: 1; }
.ref-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ref-note { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); line-height: 1.45; }

/* ============================================================
   Marketing Hub integration · store pill, first-time setup wizard,
   Connections page, live-feed cards
   ============================================================ */
.store-pill { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; background: var(--surface-soft); color: var(--ink-muted); white-space: nowrap; }
.store-pill.is-live  { background: var(--ok-bg); color: var(--ok); }
.store-pill.is-local { background: var(--warn-bg); color: var(--warn); }
.store-pill.is-bad   { background: var(--bad-bg); color: var(--bad); }
.hub-link { text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .store-pill, .hub-link { display: none; } }

.setup { max-width: 880px; margin: 0 auto; }
.setup-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.setup-steps li { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-muted); font-size: 12px; font-weight: 600; }
.setup-steps li.is-current { background: var(--accent-tint); color: var(--accent-strong); }
.setup-steps li.is-done { color: var(--ok); }
.setup-num { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.setup-steps li.is-current .setup-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.setup-steps li.is-done .setup-num { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.setup-card { padding: 28px; }
.setup-card h2, .conn-card h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.conn-card h2 { font-size: 18px; }
.setup-provider-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.setup-logo { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex-shrink: 0; }
.setup-logo-google { background: #E8F0FE; color: #1A73E8; }
.setup-logo-slack  { background: #F3E8FF; color: #4A154B; }
.setup-powers { margin: 8px 0 14px; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.setup-scopes { padding: 10px 12px; background: var(--surface-soft); border-radius: 8px; }
.setup-status { margin-top: 14px; min-height: 20px; }
.setup-ok { font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.setup-warn { font-size: 13px; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); line-height: 1.5; }
.setup-actions { display: flex; gap: 8px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
@media (max-width: 720px) { .setup-grid { grid-template-columns: 1fr; } }
.setup-tile { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 13px; }
.setup-tile b { display: block; margin-bottom: 4px; }
.notice { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.notice.is-ok  { background: var(--ok-bg); color: var(--ok); }
.notice.is-bad { background: var(--bad-bg); color: var(--bad); }

.conn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .conn-grid { grid-template-columns: 1fr; } }
.conn-card .setup-actions { margin-top: 14px; }
.conn-meta { font-size: 12px; color: var(--ink-muted); margin-top: 8px; line-height: 1.6; word-break: break-word; }
.conn-meta code { font-family: var(--font-mono); font-size: 11px; background: var(--surface-soft); padding: 1px 5px; border-radius: 4px; }

.feed-error { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 0; }
.owed-gmail { margin-top: 14px; }
.owed-gmail .todo-due { text-decoration: none; }
.slack-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.slack-item:last-child { border-bottom: 0; }
.slack-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.slack-channel { font-size: 11px; font-weight: 700; color: var(--accent-strong); }
.slack-text { font-size: 13px; line-height: 1.45; }
/* Header: room for the store pill, gear and hub link without wrapping the edition line. */
.meta-edition { white-space: nowrap; }
.header-actions .search-wrap { max-width: 230px; }
@media (max-width: 1100px) { .header-actions .search-wrap { display: none; } }

/* Investor Deck tab */
.deck-stat-val { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.deck-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.deck-input { flex: 1; min-width: 160px; font: inherit; font-size: 13px; color: var(--ink); padding: 7px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.deck-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.deck-url { font-family: var(--font-mono); font-size: 12px; background: var(--surface); padding: 4px 8px; border-radius: 6px; word-break: break-all; color: var(--ink); font-weight: 500; }
.deck-code { font-family: var(--font-mono); font-size: 11px; }
.deck-link-row { cursor: pointer; }
.deck-link-row:hover td { background: var(--surface-soft); }
.deck-link-row.is-selected td { background: var(--accent-tint); }
.deck-actions { white-space: nowrap; text-align: right; }
.deck-actions .btn + .btn { margin-left: 4px; }
.deck-activity { display: flex; flex-direction: column; }
.deck-visit { padding: 12px 0; border-bottom: 1px solid var(--border); display: grid; gap: 3px; }
.deck-visit:last-child { border-bottom: 0; }
.deck-visit.is-landed { opacity: 0.75; }
.deck-visit-head { display: flex; justify-content: space-between; gap: 10px; }
.deck-bars { display: flex; gap: 3px; align-items: flex-end; height: 44px; margin-top: 6px; max-width: 520px; }
.deck-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.deck-bar span { display: block; width: 100%; background: var(--accent); border-radius: 2px 2px 0 0; }
.deck-bar.is-empty span { background: var(--border); }
.deck-bar i { font-style: normal; font-size: 9px; color: var(--ink-muted); margin-top: 2px; line-height: 1; }

/* ============================================================
   Investment Firms · Engagement Tracker sync · import
   ============================================================ */
.modal-card.modal-wide { width: min(760px, 94vw); max-height: 92vh; overflow-y: auto; }
.modal-card.modal-wide .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modal-card.modal-wide .form-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 720px) { .modal-card.modal-wide .form-grid { grid-template-columns: 1fr 1fr; } }
.modal-card .field textarea { min-height: 48px; }

/* Sync status line (Firms page, tracker, line of engagement) */
.sync-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 16px; font-size: 12px; }
.sync-bar .sync-pill { line-height: 1.5; }
.card .sync-bar { margin: 0 0 10px; }

/* Firm directory */
.firm-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.firm-filters .chip .count { margin-left: 6px; font-family: var(--font-mono); font-size: 10px; opacity: .75; }
.firm-filters .eh-field-input { font-weight: 500; }
.firm-search { min-width: 220px; }
.firm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.firm-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex; flex-direction: column; gap: 8px; min-height: 150px;
}
.firm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.firm-card:hover .contact-edit { opacity: 1; }
.firm-card.is-flagged { border-color: #FCA5A5; }
.firm-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.firm-card-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.firm-card-blurb { font-size: 12px; color: var(--ink-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.firm-card-facts { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.firm-card-facts .eng-check { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-strong); }
.firm-card-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--border); }
.firm-card .decline-flag { margin-top: 2px; }

/* Stage pill shades: the further along, the stronger the violet. */
.stage-pill.s-0 { background: var(--surface-soft); color: var(--ink-muted); }
.stage-pill.s-1 { background: #F3E8FF; color: var(--violet); border-color: #E9D5FF; }
.stage-pill.s-2 { background: #EDE9FE; color: var(--violet-deep); border-color: var(--violet-3); }
.stage-pill.s-3 { background: var(--violet-3); color: var(--violet-deep); border-color: var(--violet-2); }
.stage-pill.s-4 { background: var(--violet); color: #fff; border-color: var(--violet); }
.stage-pill.s-5 { background: var(--ok-bg); color: var(--ok); border-color: #BBF7D0; }
.stage-pill.is-declined { background: var(--surface-soft); color: var(--ink-soft); text-decoration: line-through; }

/* Firm page: overview + key contacts */
.overview-char { font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.overview-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.overview-facts dt { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.overview-facts dd { margin: 0; color: var(--ink); }
.overview-facts dd a { color: var(--accent); font-weight: 600; }
.key-contact { display: grid; grid-template-columns: 1fr auto 24px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.key-contact:last-of-type { border-bottom: 0; }
.key-contact-name { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.key-contact-name:hover { color: var(--accent); text-decoration: underline; }
.key-contact-reach { margin-top: 2px; }
.key-contact-reach a { color: var(--accent); }
.key-contact-deck { text-align: right; font-size: 12px; }
.key-contact-deck .deck-row { justify-content: flex-end; margin-top: 4px; }
.card .section-head .eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }

/* Timeline: deck-link entries and cancelled meetings */
.tl-channel.channel-deck { background: var(--accent-tint); color: var(--accent-strong); }
.tl-row.tl-cancelled .tl-summary { color: var(--ink-soft); text-decoration: line-through; }
.scan-note a { color: var(--accent-strong); font-weight: 600; }

/* Import modal */
.import-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0 10px; font-size: 12px; }
.import-row input[type="file"] { font: inherit; font-size: 12px; }
.import-check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); font-weight: 600; }
#im-text { font-family: var(--font-mono); font-size: 12px; min-height: 140px; }
.import-preview { margin-top: 10px; display: grid; gap: 6px; }
.import-list { margin: 4px 0 0; padding-left: 18px; color: var(--ink-muted); }
.import-list li { margin-bottom: 2px; }

/* Prospects: off-board firms (bulk imports) */
.stage-pill.is-prospect { background: transparent; color: var(--ink-soft); border-style: dashed; }
.prospect-lane .section-head { flex-wrap: wrap; gap: 10px; }
.prospect-lane .firm-search { min-width: 200px; }
.prospect-row .eng-card { border-style: dashed; opacity: .9; }
.show-more { display: flex; justify-content: center; margin: 16px 0 4px; }
.segment-toggle.is-active .seg-label { color: var(--accent); }
