/* Selling Carolinas Group CRM: Pink and White Clean Mobile-First UI */
:root {
  --bg: #FDFBFC;
  --surface: #FFFFFF;
  --surface-soft: #FDF2F6;
  --surface-blush: #FCE7F0;
  --surface-hover: #FAF5F7;
  --border: #F0E4E9;
  --border-strong: #E3C9D4;

  --accent: #C24E78;
  --accent-hover: #A83E65;
  --accent-soft: #E88AA8;
  --accent-ring: rgba(194, 78, 120, 0.18);

  --ink: #1F242D;
  --ink-secondary: #4B5563;
  --muted: #6B7280;
  --muted-light: #9CA3AF;

  --emerald-bg: #ECFDF5;
  --emerald-ink: #047857;
  --emerald-border: #A7F3D0;

  --amber-bg: #FFFBEB;
  --amber-ink: #B45309;
  --amber-border: #FDE68A;

  --crimson-bg: #FEF2F2;
  --crimson-ink: #DC2626;
  --crimson-border: #FECACA;

  --slate-bg: #F3F4F6;
  --slate-ink: #374151;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(31, 36, 45, 0.04);
  --shadow-sm: 0 2px 8px rgba(194, 78, 120, 0.06), 0 1px 2px rgba(31, 36, 45, 0.04);
  --shadow-md: 0 10px 28px rgba(31, 36, 45, 0.10), 0 2px 6px rgba(194, 78, 120, 0.08);

  --sidebar-w: 252px;
  --mobile-header-h: 58px;
  --bottom-nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3, h4, p { margin: 0; }
.hidden { display: none !important; }

/* ==================== AUTH SCREEN ==================== */
.auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(circle at top right, #FCE7F0 0%, #FDFBFC 55%);
}

.auth-card {
  width: 100%;
  max-width: 410px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.auth-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.auth-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.auth-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--crimson-bg);
  border: 1px solid var(--crimson-border);
  color: var(--crimson-ink);
  font-size: 13px;
}

/* ==================== APP SHELL ==================== */
.app-shell {
  display: flex;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  gap: 12px;
  overflow-y: auto;
}

.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 2px 4px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C24E78 0%, #DF739A 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(194, 78, 120, 0.24);
}
.brand-mark-sm { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
.brand-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.ws-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.ws-btn {
  padding: 6px 4px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.15s ease;
}

.ws-btn.active {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}
.nav-item:hover { background: var(--surface-hover); color: var(--ink); }
.nav-item.active { background: var(--surface-soft); color: var(--accent); font-weight: 600; }
.nav-icon { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-label { flex: 1; }

.nav-badge {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}
.nav-count { font-size: 12px; color: var(--muted); font-weight: 600; }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.user-role-tag {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border-strong);
  font-weight: 700;
}

/* ==================== MAIN WORKSPACE ==================== */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.topbar {
  height: 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.mobile-brand { display: none; align-items: center; gap: 8px; }
.mobile-ws-bar {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
}

.view-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
}

.view-panel.no-pad { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

/* ==================== BUTTONS & INPUTS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn-xs { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(194, 78, 120, 0.22);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-soft {
  background: var(--surface-soft);
  color: var(--accent);
  border: 1px solid var(--border-strong);
}
.btn-soft:hover { background: var(--surface-blush); }

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--surface-hover); }

.btn-emerald {
  background: var(--emerald-bg);
  color: var(--emerald-ink);
  border: 1px solid var(--emerald-border);
}
.btn-danger {
  background: var(--crimson-bg);
  color: var(--crimson-ink);
  border: 1px solid var(--crimson-border);
}

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); }
.input, .select, .textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}
.textarea { min-height: 82px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: none;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ==================== CARDS & BADGES ==================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}
.badge-pink { background: var(--surface-soft); color: var(--accent); border: 1px solid var(--border-strong); }
.badge-comm { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; }
.badge-emerald { background: var(--emerald-bg); color: var(--emerald-ink); border: 1px solid var(--emerald-border); }
.badge-amber { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-border); }
.badge-crimson { background: var(--crimson-bg); color: var(--crimson-ink); border: 1px solid var(--crimson-border); }
.badge-slate { background: var(--slate-bg); color: var(--slate-ink); }

/* ==================== INBOX / PEOPLE SPLIT PANE ==================== */
.smart-list-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
}

.sl-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.sl-pill.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.inbox-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 410px;
  overflow: hidden;
}

.contact-list-col {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.list-search-box {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.contact-list-scroll {
  flex: 1;
  overflow-y: auto;
}

.contact-row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s ease;
}
.contact-row:hover { background: var(--surface-hover); }
.contact-row.active { background: var(--surface-soft); border-left: 3px solid var(--accent); }

.contact-row-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.contact-name { font-weight: 700; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-preview { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.contact-meta-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 5px; }

.thread-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
}

.thread-header {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.thread-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.thread-tab {
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.thread-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.thread-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: var(--shadow-xs);
}
.msg-inbound {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg-outbound {
  align-self: flex-end;
  background: var(--accent);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}
.msg-note {
  align-self: stretch;
  max-width: 100%;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--ink);
}
.msg-email {
  align-self: stretch;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
}
.msg-meta { font-size: 11px; opacity: 0.78; margin-top: 4px; }

.composer-box {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 14px 12px;
}
.quick-replies {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.qr-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.qr-chip:hover { background: var(--surface-blush); }

.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer-row textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  resize: vertical;
}

.detail-col {
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--bg);
}
.detail-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}
.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.kv-row:last-child { border-bottom: none; }
.kv-label { color: var(--muted); }
.kv-val { font-weight: 600; text-align: right; }

/* ==================== KANBAN DEALS BOARD ==================== */
.kanban-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.kanban-col {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 8px;
  border-bottom: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 13px;
}
.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==================== PERFORMANCE & PROGRESS BARS ==================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi-val { font-size: 24px; font-weight: 800; color: var(--ink); margin: 4px 0; letter-spacing: -0.02em; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.progress-track {
  height: 7px;
  background: var(--surface-blush);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C24E78, #DF739A);
  border-radius: var(--radius-pill);
}

/* ==================== TABLES & LISTS ==================== */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-soft);
}

.code-box {
  background: #1F242D;
  color: #FDF2F6;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  overflow-x: auto;
  word-break: break-all;
}

/* ==================== POWER DIALER ==================== */
.dialer-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}
.dialer-active-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

/* ==================== MODALS & TOAST ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 36, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 90;
}
.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #1F242D;
  color: #FFFFFF;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-width: 340px;
}

/* ==================== MOBILE BOTTOM NAV & RESPONSIVE ==================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4px 6px env(safe-area-inset-bottom, 4px);
  z-index: 40;
}
.bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.bottom-nav-btn.active { color: var(--accent); }
.bottom-nav-btn svg { width: 20px; height: 20px; }

.mobile-back-btn { display: none; }

@media (max-width: 1080px) {
  .inbox-split { grid-template-columns: 290px minmax(0, 1fr); }
  .detail-col { display: none; }
  .detail-col.mobile-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 60;
    border-left: none;
  }
}

@media (max-width: 820px) {
  .sidebar { display: none; }
  .mobile-brand { display: flex; }
  .mobile-ws-bar { display: block; }
  .topbar { padding: 0 14px; }
  .topbar-title { display: none; }
  .bottom-nav { display: flex; }
  .main-area { padding-bottom: var(--bottom-nav-h); }
  .view-panel { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .dialer-layout { grid-template-columns: 1fr; }
  .inbox-split { grid-template-columns: 1fr; }
  .inbox-split.thread-open .contact-list-col { display: none; }
  .inbox-split:not(.thread-open) .thread-col { display: none; }
  .mobile-back-btn { display: inline-flex; }
}


/* ==================== COMMERCIAL INTELLIGENCE & PAGINATION ==================== */
.quick-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.qf-chip {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.12s ease;
}
.qf-chip:hover { background: var(--surface-soft); color: var(--accent); }
.qf-chip.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.pagination-info {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.pagination-btns {
  display: flex;
  gap: 6px;
}
.pagination-btns .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.badge-litigator {
  background: #7F1D1D;
  color: #FFFFFF;
  border: 1px solid #991B1B;
}
.badge-tier-a {
  background: #C24E78;
  color: #FFFFFF;
  border: 1px solid #A83E65;
}
.badge-tier-b {
  background: var(--surface-blush);
  color: #9D174D;
  border: 1px solid var(--border-strong);
}

.compliance-banner {
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--crimson-bg);
  color: var(--crimson-ink);
  border-top: 1px solid var(--crimson-border);
  border-bottom: 1px solid var(--crimson-border);
}
.compliance-banner.litigator {
  background: #7F1D1D;
  color: #FFFFFF;
  border-color: #991B1B;
}

.comm-intel-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comm-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.talking-points-box {
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-left: 3.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.talking-points-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 4px;
}

.phone-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.phone-callable-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--emerald-bg);
  color: var(--emerald-ink);
  border: 1px solid var(--emerald-border);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.phone-callable-link:hover { filter: brightness(0.96); }

.phone-dnc-box {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: var(--radius-xs);
  background: var(--crimson-bg);
  border: 1px solid var(--crimson-border);
  color: var(--crimson-ink);
  font-size: 12px;
}
.phone-alt-box {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: var(--radius-xs);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-ink);
  font-size: 12px;
}

.prop-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prop-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}
.prop-addr {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.3;
}
.prop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prop-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--accent);
  border: 1px solid var(--border-strong);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}
.prop-link:hover { background: var(--surface-blush); }

.prop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  font-size: 12px;
}
.prop-kv {
  display: flex;
  flex-direction: column;
}
.prop-k {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.prop-v {
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.prop-alert {
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
}
.prop-alert-red {
  background: var(--crimson-bg);
  color: var(--crimson-ink);
  border: 1px solid var(--crimson-border);
}
.prop-alert-amber {
  background: var(--amber-bg);
  color: var(--amber-ink);
  border: 1px solid var(--amber-border);
}

.comm-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}
.comm-accordion > summary {
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comm-accordion > summary::-webkit-details-marker { display: none; }
.comm-accordion > summary::after { content: "+"; font-size: 15px; font-weight: 700; }
.comm-accordion[open] > summary::after { content: "-"; }
.comm-accordion-body {
  padding: 8px 12px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.raw-csv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.raw-csv-table tr { border-bottom: 1px dashed var(--border); }
.raw-csv-table td { padding: 4px 4px; vertical-align: top; word-break: break-word; }
.raw-csv-table td:first-child { color: var(--muted); width: 42%; font-weight: 600; }

.dossier-note-card {
  align-self: stretch;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3.5px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  box-shadow: var(--shadow-xs);
}
