/* Grupo Palme — US Prospect Intelligence
   Minimalist pale off-white + charcoal palette */

:root {
  /* Palette */
  --bg: #f5f1ea;          /* warm off-white */
  --bg-elev: #ffffff;     /* card */
  --bg-soft: #ede8df;     /* subtle section bg */
  --ink: #1d1d1b;         /* charcoal text */
  --ink-2: #4a4843;       /* secondary text */
  --ink-3: #7a7870;       /* muted */
  --line: #d9d3c7;        /* hairline */
  --line-soft: #e5ddd0;
  --accent: #5b6550;      /* muted moss */
  --accent-2: #8b2c1d;    /* terracotta for alerts/tariff flags */
  --gold: #a17e2f;        /* hot-20 accent */
  --success: #3a5a3d;
  --warn: #b08135;

  /* Tiers */
  --tier-large: #1d1d1b;
  --tier-mid: #4a4843;
  --tier-small: #7a7870;

  /* China exposure */
  --exp-heavy: #8b2c1d;
  --exp-moderate: #b08135;
  --exp-low: #5b6550;
  --exp-unknown: #a9a69d;

  /* Type */
  --font-display: 'General Sans', 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Satoshi', ui-sans-serif, system-ui, sans-serif;

  /* Spacing */
  --radius: 3px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 0 rgba(29, 29, 27, 0.04);
  --shadow-md: 0 1px 3px rgba(29, 29, 27, 0.06), 0 4px 14px rgba(29, 29, 27, 0.04);
  --maxw: 1280px;

  --transition: 180ms cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--ink);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}
.site-nav {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link.active {
  color: var(--ink);
  background: var(--bg-soft);
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Main */
main { padding: 40px 28px 24px; min-height: 60vh; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: 36px; line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 16px; }

/* Page header */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.page-title {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page-subtitle {
  color: var(--ink-3);
  font-size: 14px;
  max-width: 720px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 500;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.kpi {
  background: var(--bg-elev);
  padding: 22px 24px;
}
.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 500;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.kpi-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

/* Two-column grid for dashboard sections */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 12px; row-gap: 10px; }
  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 0 20px 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex-shrink: 0; font-size: 13px; padding: 6px 12px; }
}

/* Card */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.card-meta {
  font-size: 12px;
  color: var(--ink-3);
}

/* Bar chart */
.bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 40px;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
}
.bar-row:last-child { border-bottom: none; }
.bar-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  background: var(--ink);
  transition: width 400ms cubic-bezier(0.2, 0, 0, 1);
}
.bar-fill.tier-LARGE { background: var(--tier-large); }
.bar-fill.tier-MID { background: var(--tier-mid); }
.bar-fill.tier-SMALL { background: var(--tier-small); }
.bar-fill.exp-HEAVY { background: var(--exp-heavy); }
.bar-fill.exp-MODERATE { background: var(--exp-moderate); }
.bar-fill.exp-LOW { background: var(--exp-low); }
.bar-fill.exp-UNKNOWN { background: var(--exp-unknown); }
.bar-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  font-weight: 500;
}

/* US Map */
.us-map-wrap {
  padding: 8px 0;
}
.us-map {
  width: 100%;
  height: auto;
}
.state-path {
  fill: var(--bg-soft);
  stroke: var(--line);
  stroke-width: 0.75;
  transition: fill 200ms ease;
  cursor: default;
}
.state-path.has-prospects { cursor: pointer; }
.state-path:hover { stroke: var(--ink); stroke-width: 1.2; }
.state-label {
  font-size: 9px;
  fill: var(--ink-3);
  pointer-events: none;
  text-anchor: middle;
}
.state-count {
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
  pointer-events: none;
  text-anchor: middle;
}
.map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-3);
}
.map-legend-scale {
  display: flex;
  height: 10px;
  width: 180px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-legend-scale div { flex: 1; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: center;
}
.filter-bar input, .filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  min-width: 140px;
  transition: border-color 150ms ease;
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: none;
  border-color: var(--ink);
}
.filter-bar input[type="search"] {
  min-width: 240px;
  flex: 1;
}
.filter-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.filter-result {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
}
.filter-clear {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition);
}
.filter-clear:hover { background: var(--bg-soft); }

/* Prospect Table */
.table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.prospect-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.prospect-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.prospect-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.prospect-table tr:last-child td { border-bottom: none; }
.prospect-table tr:hover td { background: var(--bg-soft); }
.prospect-table tr { cursor: pointer; transition: var(--transition); }
.prospect-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}
.prospect-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}
.tag-tier-LARGE { background: #1d1d1b; color: #f5f1ea; }
.tag-tier-MID { background: #4a4843; color: #f5f1ea; }
.tag-tier-SMALL { background: #e5ddd0; color: #4a4843; border: 1px solid var(--line); }
.tag-exp-HEAVY { background: #f3dfd9; color: #8b2c1d; }
.tag-exp-MODERATE { background: #f2e3cb; color: #8c5f21; }
.tag-exp-LOW { background: #dfe3db; color: #3d4a35; }
.tag-exp-UNKNOWN { background: #ede8df; color: var(--ink-3); }
.tag-cannabis { background: #eae1d2; color: #6a5514; border: 1px solid #d5c69a; }
.tag-hot { background: var(--gold); color: #fff; }
.tag-ease {
  background: transparent;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border: 1px solid var(--line);
}
.tag-muted { color: var(--ink-3); font-size: 11px; }
.tag-lowdata { background: transparent; color: var(--ink-3); border: 1px dashed var(--line); font-style: italic; }

/* Dossier modal */
.dossier-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 27, 0.32);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  z-index: 100;
  overflow-y: auto;
  backdrop-filter: blur(2px);
}
.dossier-overlay.open { display: flex; }
.dossier {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(29,29,27,0.18);
  position: relative;
  animation: fadeUp 220ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.dossier-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}
.dossier-close:hover { background: var(--bg-soft); color: var(--ink); }
.dossier h1 {
  font-size: 28px;
  margin-bottom: 4px;
}
.dossier-sub {
  color: var(--ink-3);
  font-size: 14px;
  margin-bottom: 24px;
}
.dossier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.dossier-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.dossier-section:first-of-type { padding-top: 0; border-top: none; }
.dossier-section h3 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  font-weight: 500;
}
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 24px;
}
.dossier-item .label {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.dossier-item .value {
  font-size: 14px;
  color: var(--ink);
  word-break: break-word;
}
.dossier-item .value a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.dossier-notes {
  background: var(--bg-soft);
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}
.dossier-dm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dossier-dm-item {
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: 13px;
}
.dossier-dm-name { font-weight: 600; }
.dossier-dm-title { color: var(--ink-3); font-size: 12px; }
.dossier-sources {
  font-size: 12px;
  color: var(--ink-3);
}
.dossier-sources a {
  color: var(--ink-2);
  text-decoration: underline;
  margin-right: 8px;
  word-break: break-all;
}

/* Hot 20 cards */
.hot20-intro {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 32px;
}
.hot20-section {
  margin-bottom: 48px;
}
.hot20-section-title {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.hot20-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.hot20-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hot20-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.hot20-rank {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.hot20-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.hot20-loc {
  font-size: 12px;
  color: var(--ink-3);
}
.hot20-body {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  flex: 1;
}
.hot20-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Competitor map */
.comp-category {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.comp-category-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.comp-category-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.comp-hts {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: var(--ink-3);
  background: var(--bg-soft);
  padding: 3px 7px;
  border-radius: 2px;
}
.comp-two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
}
@media (max-width: 800px) {
  .comp-two-col { grid-template-columns: 1fr; }
  .dossier { padding: 24px; }
  .dossier-grid { grid-template-columns: 1fr; }
  .prospect-table th:nth-child(4),
  .prospect-table td:nth-child(4) { display: none; }
  .prospect-table th:nth-child(5),
  .prospect-table td:nth-child(5) { display: none; }
}
.comp-col h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.comp-list { list-style: none; padding: 0; margin: 0; }
.comp-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
}
.comp-list li:last-child { border-bottom: none; }
.comp-list .n {
  font-weight: 600;
  color: var(--ink);
}
.comp-list .s {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.45;
}
.comp-score {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}
.comp-score-5 { background: var(--gold); color: white; }
.comp-score-4 { background: #d4be7a; color: #4a3a14; }
.comp-score-3 { background: var(--bg-soft); color: var(--ink-2); }

/* Products page */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card h2 {
  font-size: 22px;
  margin-bottom: 4px;
}
.product-card .line {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.product-card ul {
  padding-left: 18px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}
.product-card .count {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
}
.product-card .count a {
  color: var(--accent);
  text-decoration: underline;
}
.product-section-title {
  grid-column: 1 / -1;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 8px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* Empty state */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
}
.text-ink-3 { color: var(--ink-3); }

/* ============ CRM ============ */
.nav-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--line);
  margin: 0 6px;
  vertical-align: middle;
}
.nav-link-crm {
  color: var(--accent);
}
.nav-link-crm.active {
  color: var(--accent);
  background: var(--bg-soft);
}

.crm-actionbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.btn {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--bg-soft); border-color: var(--ink-3); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink-2); }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* Pipeline kanban */
.kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-top: 8px;
}
.kanban-col {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-width: 240px;
  flex: 1 1 240px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.kanban-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.kanban-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.kanban-count {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 12px;
}
.kanban-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-more {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  padding: 6px;
}
.lead-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.lead-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.lead-card-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.25;
  color: var(--ink);
}
.lead-card-meta {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tag-day {
  background: var(--accent);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
}

/* Lead drawer */
.lead-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,29,27,0.4);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lead-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lead-drawer {
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  height: 100vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: -10px 0 30px rgba(29,29,27,0.1);
}
.lead-drawer-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink-3);
  line-height: 1;
}
.lead-drawer-close:hover { color: var(--ink); }
.lead-drawer-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.lead-drawer-sub {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.lead-drawer-link {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}
.lead-drawer-link:hover { text-decoration: underline; }
.lead-drawer-sec {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.lead-drawer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.lead-drawer-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-family: var(--font-body);
  font-size: 13px;
}
.lead-drawer-notes {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-family: var(--font-body);
  font-size: 13px;
  resize: vertical;
}
.lead-contact-row {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 6px;
  font-size: 13px;
}
.lead-contact-name { margin-bottom: 4px; }
.lead-contact-email { font-size: 12px; color: var(--ink-2); }
.lead-contact-email a { color: var(--accent); text-decoration: none; }
.lead-contact-li {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 11px;
  text-decoration: none;
}
.tag-ok {
  display: inline-block;
  color: var(--success);
  font-size: 10px;
  margin-left: 4px;
}
.lead-cad-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
}
.lead-cad-row.done { color: var(--ink-3); text-decoration: line-through; }
.lead-cad-day {
  display: inline-block;
  width: 50px;
  color: var(--ink-3);
  font-size: 11px;
}
.lead-cad-label { flex: 1; }
.lead-cad-when { color: var(--ink-3); font-size: 11px; }

/* Today view */
.today-group {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 16px;
}
.today-group-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.today-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.today-row:last-child { border-bottom: none; }
.today-row:hover { background: var(--bg-soft); }
.today-row-name {
  font-weight: 500;
  font-size: 13px;
  flex: 0 0 240px;
  color: var(--ink);
}
.today-row-contact {
  flex: 1;
  font-size: 12px;
  color: var(--ink-2);
}

/* Inbox */
.inbox-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 8px;
  cursor: pointer;
}
.inbox-card:hover { border-color: var(--accent); }
.inbox-from { font-weight: 500; font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.inbox-subject { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.inbox-snippet { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.inbox-ts { margin-top: 6px; font-size: 11px; }

/* Activity */
.activity-list {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.activity-row {
  display: grid;
  grid-template-columns: 130px 240px 1fr;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  cursor: pointer;
}
.activity-row:last-child { border-bottom: none; }
.activity-row:hover { background: var(--bg-soft); }
.activity-ts { color: var(--ink-3); }
.activity-co { font-weight: 500; color: var(--ink); }
.activity-detail { color: var(--ink-2); }

/* Empty states */
.empty-state {
  background: var(--bg-elev);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 60px 20px;
  text-align: center;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}
.empty-state p { color: var(--ink-3); margin: 4px 0; font-size: 13px; }

/* Persona badges + intel section */
.tag-persona-procurement {
  background: #d8f5e2; color: #145a32; border: 1px solid #87d8a2;
  font-weight: 600;
}
.tag-persona-owner {
  background: #fde8c8; color: #8b4513; border: 1px solid #e0a85e;
}
.tag-persona-operations {
  background: #dbe9ff; color: #1e3a8a; border: 1px solid #93b5e8;
}
.tag-persona-sales {
  background: #f3d9ff; color: #5b21b6; border: 1px solid #c89ce8;
}
.tag-persona-exec {
  background: #ffd9d9; color: #7c1f1f; border: 1px solid #e88a8a;
}
.lead-contact-notes {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
  padding-left: 0;
  font-style: italic;
  line-height: 1.4;
}
.intel-hook {
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 0 6px 6px 0;
}
.intel-row {
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
  line-height: 1.5;
}
.intel-row:last-child { border-bottom: none; }
.intel-key {
  display: inline-block;
  min-width: 110px;
  color: var(--ink-3);
  font-weight: 500;
}
.intel-chip {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  margin-right: 4px;
  text-decoration: none;
  color: var(--ink-2);
}
.intel-chip:hover { background: var(--bg-elev); }
.intel-row code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--ink);
}
