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

:root {
  --blue: #2B3EC1;
  --blue-dark: #1f2e9a;
  --blue-light: #EEF0FC;
  --blue-mid: #c7ccf5;
  --green: #1D9E75;
  --green-light: #EAF3DE;
  --red: #DC2626;
  --red-light: #FEE2E2;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --text: #111827;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --border: rgba(0,0,0,0.07);
  --border-2: rgba(0,0,0,0.12);
  --bg: #F8F9FF;
  --surface: #FFFFFF;
  --sidebar-w: 230px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ── Auth page ── */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a2580 0%, #2B3EC1 60%, #4a5fd4 100%);
}
.auth-card {
  background: var(--surface); border-radius: 20px;
  padding: 2.5rem 2rem; width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(43,62,193,0.25);
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.logo-text { font-size: 16px; font-weight: 700; color: var(--text); }
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.auth-sub { color: var(--text-2); font-size: 13px; margin-bottom: 1.75rem; }
.auth-footer { margin-top: 1.25rem; font-size: 12px; color: var(--text-3); text-align: center; }
.auth-footer a { color: var(--blue); text-decoration: none; }

/* ── Sidebar ── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 1.25rem 0.75rem;
  z-index: 10;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 15px; font-weight: 700;
  margin-bottom: 1.75rem; padding-left: 8px;
}
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all 0.15s;
}
.nav-item:hover { background: var(--blue-light); color: var(--blue); }
.nav-item.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.nav-item.active svg { stroke: var(--blue); }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem; margin-top: 0.5rem;
}
.user-pill { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 0 4px; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-role { font-size: 11px; color: var(--text-3); }
.btn-signout {
  width: 100%; padding: 8px; border-radius: 8px;
  border: 1px solid var(--border-2);
  background: transparent; color: var(--text-2);
  font-size: 12px; cursor: pointer; font-weight: 500;
}
.btn-signout:hover { background: var(--bg); color: var(--text); }

/* ── Main layout ── */
.main { margin-left: var(--sidebar-w); padding: 2rem; min-height: 100vh; }

.tab-section { display: none; }
.tab-section.active { display: block; }

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--text); }
.page-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }

.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input {
  font-size: 13px; padding: 7px 11px; border-radius: 8px;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text); outline: none;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--blue); }

.person-tabs { display: flex; gap: 4px; }
.ptab {
  padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border-2); background: transparent; color: var(--text-2);
  cursor: pointer; transition: all 0.15s;
}
.ptab:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue-mid); }
.ptab.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Role switcher ── */
.role-switcher {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue-light); border-radius: 10px;
  padding: 8px 14px; margin-bottom: 1.5rem;
  border: 1px solid var(--blue-mid);
}
.role-switcher label { font-size: 12px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.role-switcher select {
  font-size: 13px; font-weight: 500; border: none;
  background: transparent; color: var(--text); outline: none; cursor: pointer;
  flex: 1;
}

/* ── Metrics ── */
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 1.5rem;
}
.metric-card {
  background: var(--surface); border-radius: 14px;
  border: 1px solid var(--border); padding: 1.25rem;
  transition: box-shadow 0.15s;
}
.metric-card:hover { box-shadow: 0 4px 16px rgba(43,62,193,0.08); }
.metric-label { font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.metric-val { font-size: 30px; font-weight: 700; color: var(--text); line-height: 1.1; }
.metric-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ── Charts ── */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-card {
  background: var(--surface); border-radius: 14px;
  border: 1px solid var(--border); padding: 1.25rem;
}
.chart-title { font-size: 13px; font-weight: 600; margin-bottom: 1rem; color: var(--text); }
.chart-wrap { position: relative; width: 100%; }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.leg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }

/* ── Cards ── */
.card {
  background: var(--surface); border-radius: 14px;
  border: 1px solid var(--border); padding: 1.25rem;
}
.card-header { font-size: 13px; font-weight: 600; margin-bottom: 1rem; color: var(--text); }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 700; color: var(--text-2);
  border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg);
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg); }
.empty { text-align: center; color: var(--text-3); padding: 2.5rem !important; font-size: 13px; }
.notes-cell { color: var(--text-2); font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Person tags ── */
.person-tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: var(--blue-light); color: var(--blue);
}
.person-tag.harvy { background: var(--green-light); color: #166534; }
.person-tag.pietro { background: #F3F4F6; color: #374151; }

/* ── Status badges ── */
.status-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
  white-space: nowrap;
}

/* ── Forms ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea {
  padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--border-2); font-size: 13px;
  background: var(--surface); color: var(--text);
  outline: none; transition: border 0.15s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,62,193,0.08); }
.form-group textarea { resize: vertical; min-height: 60px; }

/* ── Buttons ── */
.btn {
  padding: 9px 18px; border-radius: 9px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text); cursor: pointer; transition: all 0.15s;
}
.btn:hover { background: var(--bg); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-full { width: 100%; }

/* ── Messages ── */
.error-msg { background: var(--red-light); color: var(--red); padding: 10px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 12px; font-weight: 500; }
.success-msg { background: var(--green-light); color: #166534; padding: 10px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 12px; font-weight: 500; }

/* ── Upload ── */
.upload-area {
  display: flex; flex-direction: column; align-items: center;
  border: 2px dashed var(--border-2); border-radius: 14px;
  padding: 2.5rem; cursor: pointer; background: var(--bg);
  transition: all 0.15s;
}
.upload-area:hover { border-color: var(--blue); background: var(--blue-light); }
.upload-label { font-size: 14px; font-weight: 600; margin-top: 10px; color: var(--text); }
.upload-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.helper-text { font-size: 13px; color: var(--text-2); margin-bottom: 1.25rem; line-height: 1.6; }
.info-box { background: var(--bg); border-radius: 10px; padding: 1rem; border: 1px solid var(--border); }
.info-title { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.info-row { font-size: 13px; color: var(--text-2); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--red); font-weight: 700; }

/* ── Kanban ── */
.kanban-wrap { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.kanban-col {
  min-width: 220px; max-width: 220px;
  background: var(--bg); border-radius: 12px;
  border: 1px solid var(--border); padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  max-height: calc(100vh - 280px); overflow-y: auto;
}
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 8px; border-bottom: 2px solid transparent;
  margin-bottom: 2px;
}
.kanban-col-title { font-size: 12px; font-weight: 700; }
.kanban-count {
  background: rgba(0,0,0,0.08); color: var(--text-2);
  font-size: 11px; font-weight: 600; border-radius: 20px;
  padding: 1px 7px;
}
.kanban-card {
  background: var(--surface); border-radius: 10px;
  border: 1px solid var(--border); padding: 10px 12px;
  cursor: pointer; transition: all 0.15s;
}
.kanban-card:hover { box-shadow: 0 4px 12px rgba(43,62,193,0.1); border-color: var(--blue-mid); transform: translateY(-1px); }
.kanban-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.kanban-meta { font-size: 11px; color: var(--text-3); }
.kanban-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.kanban-by { font-size: 10px; font-weight: 600; color: var(--blue); background: var(--blue-light); padding: 2px 7px; border-radius: 20px; }

/* ── View toggle ── */
.view-toggle { display: flex; gap: 4px; background: var(--bg); border-radius: 8px; padding: 3px; border: 1px solid var(--border); }
.view-btn { padding: 5px 10px; border-radius: 6px; border: none; background: transparent; cursor: pointer; color: var(--text-2); font-size: 12px; font-weight: 500; transition: all 0.15s; }
.view-btn.active { background: var(--surface); color: var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 1rem;
}
.modal {
  background: var(--surface); border-radius: 18px;
  padding: 1.75rem; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-2); padding: 4px 8px; border-radius: 6px; line-height: 1; }
.modal-close:hover { background: var(--bg); }

/* ── Icon buttons ── */
.icon-btn { background: none; border: none; cursor: pointer; padding: 3px 6px; border-radius: 5px; font-size: 13px; opacity: 0.4; transition: opacity 0.15s; }
.icon-btn:hover { opacity: 1; background: var(--bg); }

/* ── Sidebar roles ── */
.sidebar-roles-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 4px; margin-top: 8px;
}
.sidebar-roles-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.sidebar-add-role { background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 16px; padding: 0 4px; line-height: 1; border-radius: 4px; }
.sidebar-add-role:hover { color: var(--blue); background: var(--blue-light); }
.sidebar-role-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px; border-radius: 8px; cursor: pointer;
  transition: all 0.15s; gap: 6px;
}
.sidebar-role-item:hover { background: var(--blue-light); }
.sidebar-role-item.active { background: var(--blue-light); }
.sidebar-role-title { font-size: 12px; font-weight: 500; color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-role-item.active .sidebar-role-title { color: var(--blue); font-weight: 600; }
.sidebar-role-meta { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.sidebar-role-status { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 20px; }
.sidebar-role-count { font-size: 10px; font-weight: 700; background: var(--blue); color: #fff; padding: 1px 6px; border-radius: 20px; }
.sidebar-role-empty { font-size: 12px; color: var(--text-3); padding: 6px 12px; font-style: italic; }
.sidebar-divider { height: 1px; background: var(--border); margin: 8px 4px; }

/* ── Role cards (Roles tab) ── */
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.role-card {
  background: var(--surface); border-radius: 14px;
  border: 1px solid var(--border); padding: 1.25rem;
  cursor: pointer; transition: all 0.15s;
}
.role-card:hover { box-shadow: 0 4px 20px rgba(43,62,193,0.1); border-color: var(--blue-mid); transform: translateY(-1px); }
.role-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; gap: 8px; }
.role-card-title { font-size: 16px; font-weight: 700; color: var(--text); }
.role-card-date { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.role-status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.role-card-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 10px; }
.role-stat { text-align: center; background: var(--bg); border-radius: 8px; padding: 8px 4px; }
.role-stat-val { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.2; }
.role-stat-label { font-size: 10px; color: var(--text-3); margin-top: 2px; font-weight: 500; }
.role-card-notes { font-size: 12px; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }

/* ── Role banner ── */
.role-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 1rem;
  gap: 10px;
}

/* ── Fathom integration ── */
.fathom-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-top: 1rem; border-top: 1px solid var(--border); }
.fathom-header-title { font-size: 13px; font-weight: 700; color: var(--text); }
.fathom-header-badge { font-size: 10px; font-weight: 700; background: #0891B2; color: #fff; padding: 2px 8px; border-radius: 20px; }
.fathom-loading { font-size: 13px; color: var(--text-2); padding: 1rem 0; text-align: center; }
.fathom-empty { text-align: center; padding: 1.25rem; background: var(--bg); border-radius: 10px; }
.fathom-empty-icon { font-size: 24px; margin-bottom: 6px; }
.fathom-empty-text { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.fathom-empty-sub { font-size: 11px; color: var(--text-3); }
.fathom-meetings { display: flex; flex-direction: column; gap: 8px; }
.fathom-meeting-card { background: var(--bg); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.fathom-meeting-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; gap: 10px; }
.fathom-meeting-title { font-size: 13px; font-weight: 600; color: var(--text); }
.fathom-meeting-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.fathom-expand-btn { font-size: 12px; padding: 5px 12px; white-space: nowrap; flex-shrink: 0; }
.fathom-meeting-body { padding: 0 14px 14px; border-top: 1px solid var(--border); }
.fathom-section-block { margin-top: 12px; }
.fathom-block-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); margin-bottom: 6px; }
.fathom-block-content { font-size: 13px; color: var(--text); line-height: 1.6; background: var(--surface); border-radius: 8px; padding: 10px 12px; border: 1px solid var(--border); }
.fathom-action-list { font-size: 13px; color: var(--text); line-height: 1.7; padding-left: 1.25rem; }
.fathom-transcript { max-height: 220px; overflow-y: auto; background: var(--surface); border-radius: 8px; padding: 10px 12px; border: 1px solid var(--border); }
.fathom-segment { display: flex; gap: 8px; margin-bottom: 8px; font-size: 12px; line-height: 1.5; }
.fathom-speaker { font-weight: 700; color: var(--blue); min-width: 80px; flex-shrink: 0; }
.fathom-text { color: var(--text); }
.fathom-truncated { font-size: 11px; color: var(--text-3); margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.fathom-truncated a { color: var(--blue); }
.fathom-link-btn { font-size: 12px; color: var(--blue); text-decoration: none; font-weight: 500; }
.fathom-link-btn:hover { text-decoration: underline; }
.fathom-error { font-size: 13px; color: var(--red); padding: 10px; background: var(--red-light); border-radius: 8px; margin-top: 10px; }

/* ── AI Scoring ── */
.score-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.score-circle {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; flex-shrink: 0;
  color: #fff;
}
.score-number { font-size: 16px; font-weight: 700; line-height: 1; }
.score-pct { font-size: 10px; font-weight: 500; opacity: 0.85; }
.score-empty { padding: 1rem; background: var(--bg); border-radius: 10px; }
.score-section-header {
  display: flex; align-items: center; gap: 8px;
  padding-top: 1rem; border-top: 1px solid var(--border); margin-bottom: 10px;
}
.score-section-title { font-size: 13px; font-weight: 700; color: var(--text); }

/* ── Side drawer ── */
.drawer-overlay { position:fixed;inset:0;background:rgba(0,0,0,0.35);z-index:1000;display:flex;justify-content:flex-end;opacity:0;transition:opacity .28s ease; }
.drawer-overlay.open { opacity:1; }
.side-drawer { width:780px;max-width:95vw;height:100%;background:#fff;box-shadow:-4px 0 24px rgba(0,0,0,0.12);transform:translateX(100%);transition:transform .28s ease;overflow-y:auto; }
.drawer-overlay.open .side-drawer { transform:translateX(0); }
.drawer-inner { display:flex;height:100%; }
.drawer-left { width:340px;min-width:340px;border-right:1px solid #e5e7eb;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px; }
.drawer-right { flex:1;padding:20px;overflow-y:auto;background:#f9fafb; }
.drawer-header { display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:4px; }
.drawer-name { font-size:15px;font-weight:600;color:#111;display:flex;align-items:center;gap:4px; }
.drawer-meta { font-size:12px;color:#6b7280;margin-top:2px; }
.drawer-close { width:28px;height:28px;border-radius:6px;border:1px solid #e5e7eb;background:transparent;cursor:pointer;font-size:14px;color:#6b7280;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.drawer-label { font-size:11px;color:#6b7280;font-weight:500;text-transform:uppercase;letter-spacing:.4px;display:block;margin-bottom:4px; }
.drawer-field { display:flex;flex-direction:column; }
.drawer-field-row { display:grid;grid-template-columns:1fr 1fr;gap:10px; }
.drawer-field input,.drawer-field select,.drawer-field textarea { font-size:13px;padding:6px 9px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#111;width:100%; }
.drawer-field textarea { resize:vertical; }
.drawer-section { background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:14px;margin-bottom:12px; }
.drawer-section-label { font-size:11px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px; }

/* Quick status pills */
.quick-status-btn { font-size:11px;padding:4px 10px;border-radius:20px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;color:#374151;transition:all .15s; }
.quick-status-btn:hover { background:#f3f4f6; }
.quick-status-btn--next { background:#EEF0FC;color:#1f2e9a;border-color:#c7d0f8; }
.quick-status-btn--next:hover { background:#dde3fa; }

/* Verdict buttons */
.verdict-btn { font-size:11px;font-weight:500;padding:3px 12px;border-radius:20px;border:none;cursor:pointer;transition:opacity .15s; }
.verdict-pass { background:#DCFCE7;color:#14532D; }
.verdict-fail { background:#FEE2E2;color:#991B1B; }
.verdict-inactive { background:#f3f4f6;color:#9ca3af;opacity:0.5; }

/* ── Kanban drag-and-drop ── */
.kanban-card { cursor:grab;transition:box-shadow .15s,opacity .15s,transform .15s; }
.kanban-card:active { cursor:grabbing; }
.kanban-card.dragging { opacity:0.4;box-shadow:0 8px 24px rgba(0,0,0,0.18);transform:scale(1.02); }
.kanban-col { transition:background .15s; }
.kanban-col.drag-over { background:rgba(43,62,193,0.06);outline:2px dashed var(--blue-mid);outline-offset:-4px; }
.kanban-cards-area { min-height:60px;transition:background .15s; }
.kanban-empty-drop { text-align:center;padding:1.5rem 0;color:var(--text-3);font-size:12px; }
/* ─────────────────────────────────────────────────────────────────────────────
   QuietLab — DR Brand Intelligence Styles
   Append to the bottom of css/style.css
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Alert badge on nav item ── */
.nav-item .dr-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: auto;
  line-height: 1;
}

/* ── Brand grid ── */
.dr-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

/* ── Brand card ── */
.dr-brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
}
.dr-brand-card:hover {
  box-shadow: 0 4px 16px rgba(43,62,193,0.1);
  border-color: var(--blue-mid);
  transform: translateY(-1px);
}
.dr-brand-card.dr-brand-new {
  border-color: var(--green);
  background: linear-gradient(135deg, #fff 0%, var(--green-light) 100%);
}

.dr-brand-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.dr-brand-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dr-brand-niche {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dr-brand-signals {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dr-brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── Ad count badge ── */
.dr-ad-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.dr-ad-count-high {
  background: #FEF3C7;
  color: var(--amber);
}
.dr-ad-count-mid {
  background: var(--blue-light);
  color: var(--blue);
}
.dr-ad-count-low {
  background: var(--bg);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* ── Contact pill ── */
.dr-contact-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-2);
}

/* ── Ads link ── */
.dr-ads-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.dr-ads-link:hover { text-decoration: underline; }

/* ── New badge ── */
.dr-new-badge {
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ── Contact row in drawer ── */
.dr-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.dr-contact-row:last-child { border-bottom: none; }

/* ── Social links ── */
.dr-social-link {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  background: var(--bg);
  transition: background 0.1s;
}
.dr-social-link:hover { background: var(--border); }
.dr-linkedin { border-color: #0077B5; color: #0077B5; }
.dr-linkedin:hover { background: #e8f4fb; }
.dr-twitter { border-color: #1DA1F2; color: #1DA1F2; }
.dr-twitter:hover { background: #e8f6fd; }

/* ── Contact status select ── */
.dr-contact-status {
  font-size: 11px;
  padding: 3px 6px;
  border: 1px solid var(--border-2);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* ── Niche filter bar ── */
.dr-niche-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}
