/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Bluecrest Lab Brand Palette ── */
  --color-navy:         #1b2d5e;   /* Bluecrest deep navy  */
  --color-navy-dark:    #111e3f;   /* darker navy for hover */
  --color-navy-mid:     #243570;   /* mid navy for cards on dark bg */
  --color-gold:         #b5924c;   /* Bluecrest champagne gold */
  --color-gold-light:   #f5ead8;   /* very light gold tint */
  --color-gold-dark:    #8a6c34;   /* darker gold for hover */

  /* ── Semantic / UI colours ── */
  --color-primary:      #1b2d5e;   /* navy as primary action */
  --color-primary-dark: #111e3f;
  --color-danger:       #c0392b;
  --color-success:      #1a7a4a;
  --color-warning:      #b5924c;   /* gold doubles as warning */
  --color-muted:        #5a6a8e;
  --color-border:       #d8dfee;
  --color-bg:           #f9f8f6;   /* Bluecrest warm off-white (matches brand website) */
  --color-surface:      #ffffff;
  --color-text:         #1a2035;   /* deep navy-tinted text */
  --color-text-light:   #5a6a8e;

  --radius:    6px;
  --shadow:    0 1px 3px rgba(27,45,94,.08), 0 1px 2px rgba(27,45,94,.05);
  --shadow-md: 0 4px 12px rgba(27,45,94,.1),  0 2px 4px rgba(27,45,94,.06);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', Consolas, monospace;

  --nav-h: 58px;
}

html { font-size: 15px; }
body { font-family: var(--font); color: var(--color-text); background: var(--color-bg); line-height: 1.5; }
a { color: var(--color-navy); text-decoration: none; }
a:hover { color: var(--color-gold-dark); text-decoration: underline; }

/* ─── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem; }

/* ─── Enrichment progress banner ───────────────────────────────────────────── */
.enrich-banner {
  background: var(--color-navy);
  color: #fff;
  font-size: .85rem;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.enrich-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 1.25rem;
  gap: 1rem;
}
.enrich-banner-left  { display: flex; align-items: center; gap: .6rem; }
.enrich-banner-right { display: flex; align-items: center; gap: .75rem; }
.enrich-spinner {
  display: inline-block;
  animation: enrich-spin 1.1s linear infinite;
  font-size: 1rem;
  line-height: 1;
}
@keyframes enrich-spin { to { transform: rotate(360deg); } }
.enrich-done-icon   { animation: none !important; }
.enrich-pct         { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 2.5rem; text-align: right; }
.enrich-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: .9rem;
  padding: 0 .2rem;
  line-height: 1;
}
.enrich-dismiss:hover { color: #fff; }
.enrich-track {
  height: 3px;
  background: rgba(255,255,255,.2);
}
.enrich-fill {
  height: 100%;
  width: 0%;
  background: #f0b429;
  transition: width .6s ease;
}
.enrich-banner-done  .enrich-fill { background: #38a169; }
.enrich-banner-error .enrich-fill { background: #e53e3e; width: 100% !important; }
.enrich-banner-done  { background: #1a5c38; }
.enrich-banner-error { background: #7b1a1a; }

/* ─── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  height: var(--nav-h);
  background: var(--color-navy);
  border-bottom: 3px solid var(--color-gold);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(17,30,63,.35);
}

.navbar-brand a {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.nav-logo {
  height: 32px;
  width: auto;
}
.nav-brand-text {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: .9;
  padding-left: .5rem;
  border-left: 1px solid rgba(181,146,76,.4);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: auto;
}

.nav-link {
  padding: .4rem .8rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,.78);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav-link.active { background: rgba(181,146,76,.2); color: var(--color-gold); }

.nav-dropdown { position: relative; }
.nav-user { cursor: pointer; display: flex; align-items: center; gap: .4rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 170px;
  padding: .25rem 0;
  z-index: 200;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: .5rem 1rem;
  color: var(--color-text);
  font-size: .875rem;
  text-decoration: none;
}
.dropdown-menu a:hover { background: var(--color-bg); color: var(--color-navy); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--color-border); margin: .25rem 0; }
/* Sign Out button inside dropdown — matches the <a> link style exactly */
.dropdown-logout-btn {
  display: block; width: 100%;
  padding: .5rem 1rem;
  background: none; border: none; cursor: pointer;
  color: var(--color-text); font-size: .875rem;
  text-align: left; text-decoration: none;
}
.dropdown-logout-btn:hover { background: var(--color-bg); color: var(--color-navy); }

/* ─── Role badges ──────────────────────────────────────────────────────────── */
.role-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .15rem .45rem;
  border-radius: 99px;
  letter-spacing: .05em;
}
.role-admin   { background: rgba(181,146,76,.25); color: var(--color-gold); border: 1px solid rgba(181,146,76,.4); }
.role-manager { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.2); }
.role-viewer  { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.15); }

/* ─── Alerts ───────────────────────────────────────────────────────────────── */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .9rem;
  border: 1px solid transparent;
  border-left-width: 4px;
}
.alert-success { background: #f0fdf6; color: #1a5c38; border-color: #a7e8c4; border-left-color: var(--color-success); }
.alert-error   { background: #fef2f2; color: #922020; border-color: #fecaca; border-left-color: var(--color-danger); }
.alert-info    { background: #eef2fc; color: var(--color-navy); border-color: #c8d4f0; border-left-color: var(--color-navy); }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  background: var(--color-navy);
  color: #fff;
  line-height: 1.25;
  letter-spacing: .01em;
}
.btn:hover { background: var(--color-navy-dark); text-decoration: none; color: #fff; box-shadow: 0 2px 8px rgba(17,30,63,.25); }

.btn-gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #fff;
}
.btn-gold:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { background: var(--color-bg); color: var(--color-navy); border-color: #b8c2d8; }

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--color-bg); color: var(--color-text); }

.btn-danger {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: #fff;
}
.btn-danger:hover { background: #a32422; }

.btn-sm { padding: .3rem .65rem; font-size: .8rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-google { background: #fff; color: #374151; border-color: var(--color-border); font-weight: 500; }
.btn-google:hover { background: var(--color-bg); color: var(--color-navy); }

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.card-header {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f3f0;
}
.card-header h2 { font-size: 1rem; font-weight: 600; color: var(--color-navy); }
.card-body { padding: 1.25rem; }
.card-actions {
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: #fafaf8;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ─── Tables ───────────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th {
  padding: .625rem 1rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--color-border);
  background: #f4f2ef;
}
.table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background: #f0f3fa; cursor: pointer; }
.table-sm th, .table-sm td { padding: .5rem .875rem; }
.actions { white-space: nowrap; width: 1%; }

/* ─── Forms ────────────────────────────────────────────────────────────────── */
.form-card {
  max-width: 900px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Each logical group of fields sits in its own white card */
.form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}

.form-section-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-navy);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--color-gold-light);
  padding-left: .6rem;
  border-left: 3px solid var(--color-gold);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
}
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group--full { grid-column: 1 / -1; }
label { font-size: .8rem; font-weight: 600; color: #374151; letter-spacing: .01em; }
.form-control {
  padding: .65rem .875rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: .875rem;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27,45,94,.12);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-control--inline { width: auto; display: inline-block; }
.form-hint { font-size: .78rem; color: var(--color-muted); margin-top: .1rem; }
.form-actions { display: flex; gap: .75rem; align-items: center; padding: 1.25rem 0 .5rem; }

/* ─── Search toolbar ───────────────────────────────────────────────────────── */
.toolbar { margin-bottom: 1rem; }
.search-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.search-input {
  padding: .5rem .875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-family: var(--font);
  min-width: 260px;
  flex: 1;
  background: var(--color-surface);
}
.search-input:focus { outline: none; border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(27,45,94,.12); }

/* ─── Page headers ─────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--color-navy); }
.header-actions { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }
.breadcrumb { font-size: .8rem; color: var(--color-muted); display: block; margin-bottom: .25rem; }
.breadcrumb:hover { color: var(--color-navy); text-decoration: none; }

/* ─── Detail layout ────────────────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; }
.detail-list dt { font-size: .8rem; color: var(--color-muted); font-weight: 500; align-self: center; text-transform: uppercase; letter-spacing: .04em; }
.detail-list dd { font-size: .9rem; }

/* ─── Stats grid ───────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  border-top: 3px solid var(--color-border);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.stat-card--highlight { border-top-color: var(--color-navy); background: #f0f3fa; }
.stat-card--success   { border-top-color: var(--color-success); background: #f0fdf6; }
.stat-card--danger    { border-top-color: var(--color-danger);  background: #fef4f4; }
.stat-card--gold      { border-top-color: var(--color-gold);    background: #fdf8ef; }
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1; margin-bottom: .25rem; color: var(--color-navy); }
.stat-label { font-size: .8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-link  { font-size: .8rem; color: var(--color-navy); display: inline-block; margin-top: .5rem; }

/* ─── Dashboard grid ───────────────────────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.quick-actions { display: flex; flex-direction: column; gap: .5rem; }

/* ─── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  background: #eef1f8;
  color: var(--color-navy);
  text-transform: capitalize;
  letter-spacing: .02em;
}
.badge-outline  { background: transparent; border: 1px solid var(--color-border); color: var(--color-muted); }
.badge-success  { background: #d4f5e4; color: #1a5c38; }
.badge-muted    { background: #eef1f8; color: var(--color-muted); }
.badge-gold     { background: var(--color-gold-light); color: var(--color-gold-dark); }
.count-badge    { background: var(--color-bg); color: var(--color-muted); border: 1px solid var(--color-border); font-size: .8rem; padding: .15rem .5rem; border-radius: 99px; font-weight: 500; }

/* Stage badges */
.stage-badge { display: inline-block; padding: .2rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 600; text-transform: capitalize; letter-spacing: .02em; }
.stage-prospecting  { background: #eef1f8; color: var(--color-navy); }
.stage-qualified    { background: #dbeafe; color: #1e3a7a; }
.stage-proposal     { background: var(--color-gold-light); color: var(--color-gold-dark); }
.stage-negotiation  { background: #fef3c7; color: #7a4d0a; }
.stage-closed_won   { background: #d4f5e4; color: #1a5c38; }
.stage-closed_lost  { background: #fee2e2; color: #922020; }

/* ─── Misc components ──────────────────────────────────────────────────────── */
.inline-form { display: inline; }
.notes-text  { white-space: pre-wrap; font-size: .9rem; color: #374151; }
.empty-state { padding: 2.5rem; text-align: center; color: var(--color-muted); }
.empty-text  { color: var(--color-muted); font-size: .875rem; }
.text-muted  { color: var(--color-muted); }
.text-mono   { font-family: var(--font-mono); font-size: .8rem; }
.text-nowrap { white-space: nowrap; }
.list-item   { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--color-border); font-size: .875rem; }
.list-item:last-child { border-bottom: none; }
.deal-item   { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--color-border); font-size: .875rem; }
.deal-item:last-child { border-bottom: none; }

/* Info box */
.info-box { background: #eef2fb; border: 1px solid #c8d4f0; border-left: 4px solid var(--color-navy); border-radius: var(--radius); padding: .875rem 1rem; margin-bottom: 1.25rem; font-size: .875rem; color: var(--color-navy); }
.info-box code { background: #dde5f5; padding: .15rem .35rem; border-radius: 3px; font-family: var(--font-mono); font-size: .8rem; display: block; margin-top: .4rem; word-break: break-all; }

/* Instructions */
.instructions { padding-left: 1.25rem; }
.instructions li { padding: .3rem 0; font-size: .9rem; }

/* Error/skipped lists */
.error-list, .skipped-list { padding-left: 1.25rem; font-size: .875rem; }
.error-list li { color: var(--color-danger); padding: .2rem 0; }
.skipped-list li { color: var(--color-muted); padding: .15rem 0; font-family: var(--font-mono); font-size: .8rem; }

/* Badge action colours */
.badge-created      { background: #d4f5e4; color: #1a5c38; }
.badge-updated      { background: #dde5f5; color: var(--color-navy); }
.badge-deleted      { background: #fee2e2; color: #922020; }
.badge-imported     { background: var(--color-gold-light); color: var(--color-gold-dark); }
.badge-login        { background: #eef1f8; color: var(--color-muted); }
.badge-logout       { background: #eef1f8; color: var(--color-muted); }
.badge-role_changed { background: #fef3c7; color: #7a4d0a; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: .75rem; }
.pagination-info { font-size: .8rem; color: var(--color-muted); }
.pagination-links { display: flex; gap: .5rem; }

/* ─── Auth pages ───────────────────────────────────────────────────────────── */

/* Make body navy on login/denied pages so no bleed-through around the card */
body:has(.auth-page) {
  background: #111e3f;
}

.auth-page {
  /* Cover the full viewport regardless of container max-width */
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #111e3f 0%, #1b2d5e 60%, #243570 100%);
  z-index: 50;
  overflow-y: auto;
}
.auth-card {
  background: var(--color-bg);   /* warm off-white — matches brand website bg */
  border: none;
  border-top: 4px solid var(--color-gold);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(17,30,63,.45);
  padding: 2.75rem 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.auth-logo img {
  height: 56px;
  width: auto;
}
.auth-logo .brand-accent { color: var(--color-gold); }
.auth-card h1 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--color-navy); font-weight: 700; }
.auth-subtitle { color: var(--color-muted); font-size: .9rem; margin-bottom: 1.75rem; }
.auth-note { font-size: .78rem; color: var(--color-muted); margin-top: 1.25rem; line-height: 1.5; }

/* ─── Contact Intelligence ──────────────────────────────────────────────────── */
.intel-status-parsed       { background: #e8edf7; color: var(--color-navy); border-radius: 4px; padding: .2rem .55rem; font-size: .78rem; font-weight: 600; }
.intel-status-needs_review { background: #fef3cd; color: #7a5200; border-radius: 4px; padding: .2rem .55rem; font-size: .78rem; font-weight: 600; }
.intel-status-approved     { background: #d4edda; color: #155724; border-radius: 4px; padding: .2rem .55rem; font-size: .78rem; font-weight: 600; }
.intel-status-rejected     { background: #f8d7da; color: #721c24; border-radius: 4px; padding: .2rem .55rem; font-size: .78rem; font-weight: 600; }
.intel-status-exported     { background: var(--color-gold-light); color: var(--color-gold-dark); border-radius: 4px; padding: .2rem .55rem; font-size: .78rem; font-weight: 600; }
.intel-export-pending      { background: #e8edf7; color: var(--color-navy); border-radius: 4px; padding: .2rem .55rem; font-size: .78rem; }
.intel-export-partial      { background: #fef3cd; color: #7a5200; border-radius: 4px; padding: .2rem .55rem; font-size: .78rem; }
.intel-export-completed    { background: #d4edda; color: #155724; border-radius: 4px; padding: .2rem .55rem; font-size: .78rem; }

/* ─── Verdict badges (A/B/C/D) ─────────────────────────────────────────────── */
.verdict-badge        { display:inline-block; border-radius:4px; padding:.2rem .55rem; font-size:.78rem; font-weight:700; letter-spacing:.03em; }
.verdict-A            { background:#d4edda; color:#155724; }
.verdict-B            { background:#cce5ff; color:#004085; }
.verdict-C            { background:#fff3cd; color:#7a5200; }
.verdict-D            { background:#f8d7da; color:#721c24; }

/* ─── Verdict filter chips ──────────────────────────────────────────────────── */
.verdict-chip-A       { border-color:#155724 !important; color:#155724 !important; }
.verdict-chip-B       { border-color:#004085 !important; color:#004085 !important; }
.verdict-chip-C       { border-color:#7a5200 !important; color:#7a5200 !important; }
.verdict-chip-D       { border-color:#721c24 !important; color:#721c24 !important; }
.btn-outline-active   { background:var(--color-navy) !important; color:#fff !important; }

/* ─── Email status badges ───────────────────────────────────────────────────── */
.email-status-verified    { background:#d4edda; color:#155724; border-radius:4px; padding:.2rem .5rem; font-size:.75rem; font-weight:600; }
.email-status-likely      { background:#cce5ff; color:#004085; border-radius:4px; padding:.2rem .5rem; font-size:.75rem; font-weight:600; }
.email-status-catch-all   { background:#fff3cd; color:#7a5200; border-radius:4px; padding:.2rem .5rem; font-size:.75rem; font-weight:600; }
.email-status-unverified  { background:#e2e3e5; color:#383d41; border-radius:4px; padding:.2rem .5rem; font-size:.75rem; font-weight:600; }
.email-status-not_found   { background:#f8d7da; color:#721c24; border-radius:4px; padding:.2rem .5rem; font-size:.75rem; font-weight:600; }

/* ─── Contact detail layout ─────────────────────────────────────────────────── */
.detail-row           { display:flex; gap:1rem; padding:.6rem 0; border-bottom:1px solid var(--border); align-items:flex-start; }
.detail-row:last-child { border-bottom:none; }
.detail-label         { flex:0 0 110px; font-size:.8rem; color:var(--text-muted); padding-top:.1rem; font-weight:500; }
.detail-value         { flex:1; font-size:.875rem; line-height:1.5; }

/* ─── Outreach message blocks ───────────────────────────────────────────────── */
.msg-block            { margin-bottom:1.25rem; padding-bottom:1.25rem; border-bottom:1px solid var(--border); }
.msg-block:last-child { margin-bottom:0; padding-bottom:0; border-bottom:none; }
.msg-label            { font-size:.78rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:.4rem; }
.msg-limit            { font-weight:400; text-transform:none; letter-spacing:0; }
.msg-body             { font-size:.875rem; line-height:1.6; white-space:pre-wrap; background:var(--bg-subtle); padding:.75rem 1rem; border-radius:6px; margin-bottom:.5rem; }
.msg-subject          { font-family:monospace; }
.msg-copy             { font-size:.75rem; }

/* ─── Intelligence panel (contacts + companies detail pages) ────────────────── */
.intel-profile        { margin-bottom: 1rem; }
.bio-text             { font-size: .9rem; line-height: 1.65; color: var(--color-navy); margin-bottom: 1rem; }
.intel-meta-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; margin-bottom: .85rem; }
.intel-meta-item      { display: flex; flex-direction: column; gap: .15rem; }
.intel-meta-label     { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--color-muted); }
.intel-meta-value     { font-size: .875rem; color: var(--color-navy); }
.intel-iata           { font-size: 1.2rem; font-weight: 700; letter-spacing: .05em; }
.score-note           { font-size: .82rem; color: var(--color-muted); line-height: 1.55; margin-top: .5rem; border-top: 1px solid var(--border); padding-top: .75rem; }
.enriched-tag         { font-size: .72rem; color: var(--color-muted); font-weight: 400; }

/* IROPS maturity colouring */
.irops-High           { color: #155724; font-weight: 600; }
.irops-Medium         { color: #7a5200; font-weight: 600; }
.irops-Low            { color: #721c24; font-weight: 600; }

/* Email discovery form */
.input-row            { display: flex; gap: .5rem; align-items: center; }
.input-row .input-sm  { flex: 1; min-width: 0; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 6px; font-size: .875rem; font-family: inherit; background: #fff; }
.intel-email-result   { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; background: var(--bg-subtle); border-radius: 6px; font-size: .9rem; }
.email-status-label   { font-size: .75rem; color: var(--color-muted); }

/* Utility */
.mt-2  { margin-top: .5rem; }
.mt-3  { margin-top: 1rem; }
.small { font-size: .8rem; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-grid     { grid-template-columns: 1fr; gap: 1rem; }
  .form-section  { padding: 1.25rem 1.25rem; }
  .detail-grid   { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .navbar-menu   { gap: 0; }
  .nav-link      { padding: .4rem .5rem; font-size: .85rem; }
  .table         { font-size: .8rem; }
  .table th, .table td { padding: .5rem .625rem; }
}
