:root {
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --border: #e7e9f0;
  --border-strong: #d4d8e3;
  --text: #14172b;
  --text-soft: #565d75;
  --text-muted: #8b91a7;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0fe;
  --accent: #6366f1;
  --ink: #14172b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 23, 43, .05);
  --shadow-md: 0 8px 24px rgba(20, 23, 43, .08);
  --shadow-lg: 0 30px 70px rgba(20, 23, 43, .25);
  --sidebar-w: 264px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { background: var(--bg); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

svg { display: block; height: 1em; width: 1em; flex: 0 0 auto; }
svg path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

/* ---------- Buttons ---------- */
button {
  align-items: center;
  background: var(--primary);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  gap: 7px;
  justify-content: center;
  line-height: 1;
  padding: 9px 14px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s, transform .05s ease;
  white-space: nowrap;
}
button:hover { background: var(--primary-hover); }
button:active { transform: translateY(.5px); }
button svg { font-size: 16px; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .25); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary, .ghostButton {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
}
.btn-secondary:hover, .ghostButton:hover { background: var(--surface-2); border-color: var(--text-muted); color: var(--text); }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--text-soft); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px; }
.btn-icon svg { font-size: 17px; }
.dangerButton { background: #fff; border: 1px solid #fda29b; color: #b42318; }
.dangerButton:hover { background: #fef3f2; border-color: #f04438; }

input, select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  outline: none;
}

/* ---------- Login ---------- */
.loginPage {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(99, 102, 241, .18), transparent 32rem),
    radial-gradient(circle at 100% 100%, rgba(79, 70, 229, .12), transparent 30rem),
    var(--bg);
}
.card, .loginCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 30px;
}
.loginCard { width: min(420px, 100%); }
.loginCard h1 { font-size: 23px; margin: 0 0 8px; letter-spacing: -.02em; }
.loginCard p { color: var(--text-soft); margin: 0; line-height: 1.5; }
.loginForm { display: grid; gap: 12px; margin-top: 22px; }
.loginForm label { color: var(--text-soft); font-size: 13px; font-weight: 600; }
.loginForm button { margin-top: 6px; padding: 12px; }

/* ---------- App shell ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 18px;
  background: linear-gradient(185deg, #1e1b3a 0%, #14172b 100%);
  color: #c7cadb;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-top { display: flex; flex-direction: column; gap: 26px; min-height: 0; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 11px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  letter-spacing: -.03em;
  width: 36px;
  box-shadow: 0 8px 18px rgba(99, 102, 241, .45);
}
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.brand-text small { color: #8b90ad; font-size: 11.5px; }

.sidebar-nav { display: grid; gap: 4px; }
.nav-item {
  align-items: center;
  border-radius: 10px;
  color: #aab0c8;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 11px;
  padding: 11px 12px;
}
.nav-item svg { font-size: 18px; }
.nav-item.active { background: rgba(99, 102, 241, .22); color: #fff; }

.sidebar-import {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 16px;
}
.sidebar-label { color: #c7cadb; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.sidebar-select {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
  width: 100%;
}
.sidebar-select option {
  color: var(--text);
}
.file-drop {
  align-items: center;
  background: rgba(255, 255, 255, .03);
  border: 1.5px dashed rgba(255, 255, 255, .2);
  border-radius: 11px;
  color: #aab0c8;
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 18px 12px;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.file-drop:hover { border-color: var(--accent); background: rgba(99, 102, 241, .12); }
.file-drop svg { font-size: 22px; color: #c0c4db; }
.file-drop-text { font-size: 12px; line-height: 1.4; }
.file-drop input[type="file"] {
  background: transparent;
  border: 0;
  color: #8b90ad;
  font-size: 11px;
  padding: 0;
  width: 100%;
}
.file-drop input[type="file"]::file-selector-button {
  background: rgba(255,255,255,.1);
  border: 0;
  border-radius: 6px;
  color: #e6e8f2;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  margin-right: 8px;
  padding: 4px 9px;
}

.sidebar-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }

/* ---------- Workspace ---------- */
.workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 32px 40px;
  min-width: 0;
}

.page-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.page-head-title h1 { font-size: 25px; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.page-head-title p { color: var(--text-soft); font-size: 14px; margin: 6px 0 0; }

/* ---------- KPI cards ---------- */
.kpi-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kpi {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  padding: 16px 18px;
}
.kpi-icon {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-size: 20px;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.kpi-icon-blue { background: var(--primary-soft); color: var(--primary); }
.kpi-icon-green { background: #e7f8ef; color: #099250; }
.kpi-icon-amber { background: #fef3d8; color: #d4860a; }
.kpi-label { color: var(--text-muted); display: block; font-size: 12.5px; font-weight: 600; }
.kpi strong { color: var(--text); display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }

/* ---------- Feedback (toast) ---------- */
.feedback {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  align-items: center;
  border-radius: var(--radius-sm);
  display: flex;
  font-size: 13.5px;
  font-weight: 500;
  gap: 8px;
  padding: 12px 18px;
  max-width: min(560px, 92vw);
  background: var(--primary-soft);
  border: 1px solid #d2d6fb;
  color: var(--primary-hover);
  box-shadow: var(--shadow-md);
  animation: toastIn .22s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.feedback.error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.feedback.success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.feedback.info { background: var(--primary-soft); border-color: #d2d6fb; color: var(--primary-hover); }

/* ---------- Content card + toolbar ---------- */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search-field { position: relative; display: inline-flex; align-items: center; }
.search-field svg {
  position: absolute;
  left: 11px;
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-field input {
  padding-left: 34px;
  width: 280px;
  max-width: 100%;
}
.select-input { font-size: 13.5px; padding: 9px 11px; }
.divider { width: 1px; height: 26px; background: var(--border); }

.export-group { display: flex; align-items: center; gap: 8px; }

/* ---------- Dropdown menu ---------- */
.menu { position: relative; }
.menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
  z-index: 40;
}
.menu.open .menu-list { display: grid; gap: 2px; }
.menu .caret { font-size: 15px; transition: transform .15s ease; }
.menu.open .caret { transform: rotate(180deg); }
.menu-option {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 500;
  justify-content: flex-start;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}
.menu-option:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Table ---------- */
.table-container { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid #f1f2f7;
  vertical-align: middle;
}
.data-table tbody tr { transition: background .12s ease; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.th-actions, .rowActions { text-align: right; white-space: nowrap; }
.rowActions { display: flex; gap: 6px; justify-content: flex-end; }
.rowActions button { padding: 7px 12px; font-size: 12.5px; }

.contactCell { align-items: center; display: flex; gap: 12px; min-width: 200px; }
.avatar {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  letter-spacing: -.01em;
  width: 38px;
}
.personCell, .companyCell { display: grid; gap: 2px; min-width: 0; }
.personCell strong, .companyCell strong { color: var(--text); font-weight: 600; }
.personCell span, .companyCell span, .emptyState span { color: var(--text-muted); font-size: 12.5px; }
.signalCell { color: var(--text-soft); max-width: 320px; }

.statusPill {
  align-items: center;
  background: #f1f2f7;
  border-radius: 999px;
  color: var(--text-soft);
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 700;
  gap: 6px;
  padding: 5px 11px;
  white-space: nowrap;
}
.statusPill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.qualityScore {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
}
.qualityScore.high { background: #dcfae6; color: #067647; }
.qualityScore.medium { background: #fef0c7; color: #b54708; }
.qualityScore.low { background: #fee4e2; color: #b42318; }

.emptyState { display: grid; gap: 8px; padding: 60px 24px; text-align: center; }
.emptyState strong { font-size: 16px; }

/* ---------- Modal / Drawer ---------- */
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal {
  background: rgba(20, 23, 43, .5);
  backdrop-filter: blur(3px);
  display: flex;
  inset: 0;
  justify-content: flex-end;
  position: fixed;
  z-index: 60;
  animation: overlayIn .2s ease;
}
/* Centered classic dialog (stacks above a side panel) */
.modal-center { justify-content: center; align-items: center; padding: 24px; z-index: 70; }
.eyebrow {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  margin: 0;
  text-transform: uppercase;
}

/* Side panels: contact detail + manual add — open from the right */
.drawer, .manualContactDialog {
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  height: 100vh;
  margin: 0;
  overflow-y: auto;
  padding: 28px;
  animation: panelIn .3s cubic-bezier(.32, .72, 0, 1);
}
.manualContactDialog { width: min(720px, 100%); }

/* Enrichment = classic centered modal */
.enrichmentDialog {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 48px);
  max-width: 480px;
  overflow-y: auto;
  padding: 28px;
  width: 100%;
  animation: dialogIn .22s cubic-bezier(.32, .72, 0, 1);
}
.manualContactForm { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manualContactForm label { color: var(--text-soft); display: grid; font-size: 12px; font-weight: 600; gap: 6px; }
.manualContactForm input, .manualContactForm select { width: 100%; }
.manualContactActions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.modalIntro { color: var(--text-soft); margin: -6px 0 18px; }

.enrichmentChoices { display: grid; gap: 10px; }
.enrichmentChoices button {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  min-height: 70px;
  padding: 14px 16px;
  text-align: left;
  white-space: normal;
  width: 100%;
}
.enrichmentChoices button:hover { background: var(--primary-soft); border-color: var(--accent); }
.providerCopy { display: grid; gap: 3px; min-width: 0; }
.providerCopy strong { color: var(--text); line-height: 1.25; overflow-wrap: anywhere; }
.providerCopy span { color: var(--text-soft); font-size: 12.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.providerLogo, .providerLogoStack { flex: 0 0 auto; }
.providerLogo {
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(20, 23, 43, .16);
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  letter-spacing: -.04em;
  width: 40px;
}
.providerLogoApollo { background: linear-gradient(135deg, #111827, #4f46e5); }
.providerLogoDropcontact { background: linear-gradient(135deg, #0f766e, #22c55e); }
.providerLogoStack { display: inline-flex; padding-right: 12px; }
.providerLogoStack .providerLogo + .providerLogo { margin-left: -12px; }

.drawer { width: min(920px, 100%); }
.drawerHeader {
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
}
.drawerHeader h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.02em; }

.detailSection { margin-bottom: 22px; }
.detailSection h3 { margin: 0 0 12px; font-size: 15px; }
.drawerTabs {
  background: #f1f2f7;
  border-radius: 12px;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
}
.drawerTabs button { background: transparent; color: var(--text-soft); padding: 8px 14px; }
.drawerTabs button:hover { background: rgba(255,255,255,.6); }
.drawerTabs button.active { background: #fff; box-shadow: var(--shadow-sm); color: var(--primary); }

.profileHero {
  align-items: center;
  background: linear-gradient(135deg, var(--primary-soft), #ffffff);
  border: 1px solid #d6d9fc;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 20px;
}
.profileHero.before { background: linear-gradient(135deg, var(--surface-2), #ffffff); border-color: var(--border); }
.profileHero.prospects { background: linear-gradient(135deg, #ecfdf3, #ffffff); border-color: #abefc6; }
.profileHero h3 { font-size: 22px; letter-spacing: -.02em; margin: 4px 0; }
.profileHero p { color: var(--text-soft); margin: 0; }
.profileKicker { color: var(--primary); font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.profileScore .qualityScore { font-size: 16px; padding: 9px 14px; }

.cardDetailSection { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.sectionTitle h3 { color: var(--text); font-size: 15px; }
.detailGrid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detailItem { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-height: 64px; padding: 11px 13px; }
.detailItem span { color: var(--text-muted); display: block; font-size: 11.5px; margin-bottom: 5px; }
.detailItem strong { color: var(--text); display: block; font-size: 13.5px; overflow-wrap: anywhere; }


.compareGrid {
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}
.compareHeader { background: #f1f2f7; color: var(--text-soft); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 12px; text-transform: uppercase; }
.compareLabel, .compareCell { border-top: 1px solid var(--border); padding: 12px; }
.compareLabel { background: #fbfcfe; color: var(--text-soft); font-weight: 700; }
.compareCell { overflow-wrap: anywhere; }
.compareCell.after { background: var(--primary-soft); font-weight: 600; }

.statusPanel {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 14px 16px;
}
.statusPanelHeader { align-items: center; display: flex; gap: 10px; }
.statusControl { align-items: end; display: flex; gap: 8px; }
.statusControl label { color: var(--text-soft); display: grid; font-size: 12px; font-weight: 600; gap: 6px; }
.statusControl select { min-width: 180px; }

.prospectsPanel { margin-bottom: 22px; }
.prospectsIntro { color: var(--text-soft); font-weight: 600; margin-bottom: 12px; }
.prospectsIntro span { color: #b54708; display: block; font-size: 12px; margin-top: 4px; }
.prospectsList { display: grid; gap: 12px; }
.prospectCard {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}
.prospectCard h4 { margin: 0 0 4px; }
.prospectTitleLine { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.sourcePill {
  background: var(--primary-soft);
  border-radius: 999px;
  color: var(--primary) !important;
  font-size: 11px !important;
  font-weight: 800;
  padding: 4px 8px;
  text-transform: uppercase;
}
.prospectCard p { color: var(--text-soft); margin: 0 0 6px; }
.prospectIdentity {
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 700;
}
.prospectCard span { color: var(--text-muted); font-size: 13px; }
.prospectSignals { align-items: flex-end; display: grid; gap: 6px; justify-items: end; min-width: 170px; }
.prospectSignals span, .prospectSignals a {
  background: #f1f2f7;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  text-decoration: none;
}

.drawerActions { border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; }
.editForm {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}
.editForm label { color: var(--text-soft); display: grid; font-size: 12px; font-weight: 600; gap: 6px; }
.editForm input, .editForm select { width: 100%; }
.formActions { align-items: end; display: flex; gap: 10px; }
.customFieldsEditor { border-top: 1px solid var(--border); display: grid; gap: 10px; grid-column: 1 / -1; padding-top: 12px; }
.customFieldsEditor h4 { margin: 0; }
.customFieldRow { display: grid; gap: 8px; grid-template-columns: minmax(160px, .8fr) minmax(200px, 1fr) auto; margin-bottom: 8px; }

pre { background: #14172b; border-radius: 12px; color: #d1e7ff; overflow: auto; padding: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }
  .sidebar-top { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; flex: 1; }
  .sidebar-nav { display: none; }
  .sidebar-import { flex: 1; min-width: 280px; grid-template-columns: 1fr; }
  .sidebar-foot { border-top: 0; padding-top: 0; }
  .sidebar-foot .btn-block { width: auto; }
}
@media (max-width: 720px) {
  .workspace { padding: 18px 16px 32px; }
  .page-head { flex-direction: column; }
  .kpi-row { grid-template-columns: 1fr; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-left, .toolbar-right { justify-content: flex-start; }
  .search-field, .search-field input { width: 100%; }
  .divider { display: none; }
  .detailGrid, .manualContactForm, .editForm { grid-template-columns: 1fr; }
  .drawer, .manualContactDialog { padding: 18px; width: 100%; }
  .enrichmentDialog { padding: 20px; }
  .statusPanel, .prospectCard { flex-direction: column; align-items: stretch; }
  .statusControl { flex-direction: column; align-items: stretch; }
  .statusControl select { min-width: 0; width: 100%; }
}
