:root {
  --font-text: "Google Sans Text", "Google Sans", "Product Sans", "Outfit", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-display: "Google Sans Display", "Google Sans", "Product Sans", "Outfit", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --bg: #f5f7fa;
  --bg-alt: #eef2f7;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-strong: #ffffff;
  --surface-soft: #f7f9fc;
  --sidebar: #111318;
  --sidebar-soft: rgba(255, 255, 255, 0.06);
  --text: #111827;
  --muted: #667085;
  --muted-strong: #475467;
  --line: #e5e7eb;
  --line-strong: #d7dde5;
  --primary: #ccff00;
  --primary-text: #111318;
  --accent: #ccff00;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b42318;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
  --shell-max: 1460px;
  --sidebar-width: 284px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  font-family: var(--font-text);
  color: var(--text);
  background:
    linear-gradient(rgba(229, 231, 235, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 231, 235, 0.55) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 46%, #f6f8fb 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-frame {
  width: min(var(--shell-max), calc(100vw - 28px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 0 24px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.app-sidebar {
  position: fixed;
  top: 16px;
  height: calc(100vh - 32px);
  width: var(--sidebar-width);
  padding: 18px 16px 16px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 100%),
    var(--sidebar);
  color: #f5f7fa;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  overflow: hidden;
  left: max(14px, calc((100vw - min(var(--shell-max), calc(100vw - 28px))) / 2));
  z-index: 20;
}

.app-sidebar::-webkit-scrollbar {
  display: none;
}

.brand-block {
  display: grid;
  gap: 10px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f0ff 0%, #cfe0ff 100%);
  color: #163160;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-family: var(--font-display);
}

.brand-copy {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 247, 250, 0.74);
}

.nav-group {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.16) transparent;
}

.nav-group-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.5);
  padding: 0 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 14px;
  color: rgba(245, 247, 250, 0.76);
  background: transparent;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-link.active {
  background: #ffffff;
  color: #111318;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
}

.nav-link-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.nav-link.active .nav-link-badge {
  background: var(--accent);
  border: 1px solid #111318;
  box-shadow: 0 0 0 4px rgba(204, 255, 0, 0.16);
}

.sidebar-meta {
  margin-top: 0;
  padding: 14px;
  border-radius: 18px;
  background: #2c313a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.sidebar-meta-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.52);
}

.sidebar-meta-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.sidebar-meta-copy {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 247, 250, 0.72);
}

.sidebar-logout {
  width: 100%;
  justify-content: center;
}

.app-main {
  min-width: 0;
  overflow-x: hidden;
  grid-column: 2;
}

.page-header {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 21, 28, 0.04);
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(17, 21, 28, 0.05);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-family: var(--font-display);
}

.page-subtitle {
  margin: 10px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-header-right {
  display: grid;
  gap: 12px;
  justify-items: end;
  min-width: 260px;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(17, 21, 28, 0.06);
  text-align: right;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.user-chip strong {
  color: var(--text);
}

.page-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.panel,
.card,
.table-card,
.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(17, 21, 28, 0.04);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel {
  padding: 22px;
}

.card {
  padding: 18px;
}

.table-card {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 36, 45, 0.28) transparent;
  -webkit-overflow-scrolling: touch;
}

.table-card table {
  min-width: 1120px;
}

.table-card::-webkit-scrollbar,
.nav-group::-webkit-scrollbar {
  height: 10px;
  width: 8px;
}

.table-card::-webkit-scrollbar-track,
.nav-group::-webkit-scrollbar-track {
  background: transparent;
}

.table-card::-webkit-scrollbar-thumb,
.nav-group::-webkit-scrollbar-thumb {
  background: rgba(32, 36, 45, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.table-card::-webkit-scrollbar-thumb:hover,
.nav-group::-webkit-scrollbar-thumb:hover {
  background: rgba(32, 36, 45, 0.3);
  background-clip: padding-box;
}

.panel-header,
.compact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.compact-title,
.panel-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
}

.compact-subtitle,
.panel-subtitle,
.muted,
.helper-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(17, 21, 28, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.metric-card:hover,
.campaign-card:hover,
.task-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.metric-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-family: var(--font-display);
}

.metric-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.button-row,
.actions-row,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn,
button,
input[type="submit"] {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 42px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #d8ff4d 0%, #ccff00 100%);
  color: #111827;
  border-color: rgba(17, 21, 28, 0.08);
  box-shadow: 0 10px 20px rgba(204, 255, 0, 0.24);
}

.btn-soft {
  background: rgba(255, 252, 246, 0.96);
  color: var(--text);
  border: 1px solid rgba(17, 21, 28, 0.08);
}

.btn-dark,
.btn-secondary {
  background: #111827;
  color: #ffffff;
}

.btn-danger {
  background: #fff7f6;
  color: #b42318;
  border-color: #edd5d2;
}

.btn-table {
  min-height: 38px;
  padding: 8px 12px;
}

.status-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-active,
.badge-ok {
  background: #dcfce7;
  color: #166534;
}

.status-paused,
.badge-warn {
  background: #ffedd5;
  color: #9a3412;
}

.status-complete {
  background: #f4efe7;
  color: #5f3732;
}

.status-draft,
.badge-gray {
  background: #ecebe6;
  color: #4b5563;
}

.status-scheduled {
  background: #e7efff;
  color: #1d4ed8;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(44, 92, 255, 0.26);
  box-shadow: 0 0 0 4px rgba(44, 92, 255, 0.1);
  background: #ffffff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

td {
  white-space: nowrap;
}

td.name,
td.status,
.analytics-activity-table td:first-child,
.analytics-activity-table td:nth-child(3) {
  white-space: normal;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.7);
}

tbody tr {
  transition: background-color 0.16s ease;
}

tbody tr:hover {
  background: rgba(17, 21, 28, 0.02);
}

.flash-stack {
  display: grid;
  gap: 12px;
}

.flash-message,
.message-box,
.alert {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: #1e40af;
  font-size: 14px;
  font-weight: 700;
}

.empty-state {
  padding: 44px 18px;
  color: var(--muted);
  text-align: center;
}

code {
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(17, 21, 28, 0.06);
  font-size: 0.92em;
}

.campaign-list {
  display: grid;
  gap: 14px;
}

.campaign-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(250, 251, 252, 0.98);
  border: 1px solid rgba(17, 21, 28, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.day.selected-day {
  background: #15181f;
  color: #ffffff;
  border-color: #15181f;
}

.progress-track,
.progress-wrapper {
  height: 12px;
  background: #ece8df;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill,
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #15181f 0%, #2d313b 100%);
  border-radius: 999px;
}

.progress-text {
  font-size: 12px;
  color: var(--muted);
}

.step-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(17, 21, 28, 0.04);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.campaign-flow-panel {
  overflow: visible;
}

.campaign-flow-header {
  position: static;
  margin: -22px -22px 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fafbfd);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.actions .button-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.actions .button-row > a,
.actions .button-row > button,
.actions .button-row > form {
  width: auto;
}

.actions .button-row form {
  display: inline-flex !important;
  margin: 0;
}

.actions .button-row form button,
.actions .button-row a,
.actions .button-row > button {
  min-width: 58px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 11px;
  text-align: center;
  justify-content: center;
}

.actions .button-row .btn-soft {
  background: #ffffff;
  border-color: #dfe6ef;
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.actions .button-row .btn-soft:hover {
  background: #f8fafc;
  border-color: #cfd8e3;
}

.actions .button-row .btn-danger {
  background: #fff6f5;
  border-color: #efc9c2;
  color: #c2412d;
  box-shadow: 0 1px 2px rgba(194, 65, 45, 0.06);
}

.actions .button-row .btn-danger:hover {
  background: #ffeceb;
  border-color: #e8b8b0;
}

.actions .button-row .btn-primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
}

.actions .button-row .btn-primary:hover {
  background: #0f172a;
  border-color: #0f172a;
}

td.actions {
  min-width: 250px;
}

.progress-cell {
  min-width: 120px;
}

.progress-inline {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) auto;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  width: 100%;
}

.progress-cell .progress-wrapper,
.progress-inline .progress-wrapper {
  min-width: 82px;
  width: 100%;
}

.progress-cell .progress-text,
.progress-inline .progress-text {
  min-width: 46px;
  text-align: right;
}

.prospecting-dashboard {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.prospecting-top-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.prospecting-card {
  padding: 18px;
}

.prospecting-card-header {
  margin-bottom: 12px;
}

.prospecting-task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: block;
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 21, 28, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.task-card-active {
  background: #15181f;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(17, 21, 28, 0.14);
}

.task-card-title {
  font-size: 14px;
  font-weight: 800;
}

.prospecting-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
  align-items: end;
}

.prospecting-create-actions {
  justify-content: space-between;
}

.prospecting-table-card {
  padding-bottom: 0;
}

.prospecting-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 16px;
}

.prospecting-status {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.prospecting-status-found {
  color: var(--success);
}

.prospecting-status-pending {
  color: var(--warning);
}

.prospecting-status-not_found {
  color: var(--danger);
}

.email-finder-shell {
  background:
    linear-gradient(rgba(17, 21, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 21, 28, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 248, 244, 0.94));
  background-size: 52px 52px, 52px 52px, auto;
}

.email-finder-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.email-finder-hero-copy {
  max-width: 760px;
}

.email-finder-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 21, 28, 0.06);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.email-finder-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.email-finder-subtitle {
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.email-finder-status-card {
  min-width: 260px;
}

.email-finder-settings-card {
  margin-bottom: 24px;
}

.email-finder-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.email-finder-workspace {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.email-finder-search-tabs {
  display: inline-flex;
  margin-bottom: 22px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.email-finder-tab {
  padding: 14px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  cursor: default;
}

.email-finder-tab:last-child {
  border-right: 0;
}

.email-finder-tab-active {
  background: #ffffff;
  color: var(--text);
}

.email-finder-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px minmax(0, 1fr) 140px;
  margin-bottom: 24px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.email-finder-search-input {
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 20px 22px !important;
  background: transparent !important;
  font-size: 18px !important;
  box-shadow: none !important;
}

.email-finder-search-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: #98a0ac;
  font-size: 28px;
  font-weight: 800;
}

.email-finder-search-button {
  border-radius: 0 !important;
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: none;
  font-size: 16px;
}

.email-finder-result-card {
  padding: 28px;
}

.email-finder-result-header {
  display: flex;
  gap: 18px;
  align-items: center;
}

.email-finder-avatar {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 32px;
  font-weight: 800;
}

.email-finder-result-name {
  font-size: 18px;
  font-weight: 800;
}

.email-finder-result-email {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.email-finder-result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.email-finder-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}

.email-finder-result-summary {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.email-finder-candidate-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.email-finder-candidate-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 160px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.email-finder-candidate-source,
.email-finder-candidate-status {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.email-finder-candidate-email {
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.analytics-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.analytics-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 21, 28, 0.05);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analytics-title {
  font-size: 32px;
}

.analytics-subtitle {
  margin-top: 10px;
}

.analytics-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.analytics-filter-field {
  display: grid;
  gap: 8px;
}

.analytics-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.analytics-activity-panel {
  padding-bottom: 20px;
  overflow: hidden;
}

.analytics-activity-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.analytics-activity-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.analytics-activity-filter {
  min-width: 220px;
}

.analytics-activity-table td:first-child,
.analytics-activity-table th:first-child {
  min-width: 220px;
}

.analytics-activity-table td:nth-child(3),
.analytics-activity-table th:nth-child(3) {
  min-width: 180px;
}

.analytics-activity-table td:nth-child(7),
.analytics-activity-table th:nth-child(7) {
  min-width: 180px;
}

.analytics-activity-table {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px 2px;
  color: var(--muted);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 21, 28, 0.42);
}

.modal-card {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(17, 21, 28, 0.18);
}

.app-footer {
  margin-top: 8px;
  padding: 10px 4px 2px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.app-footer strong {
  color: var(--text);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(560px, 100%);
  padding: 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.auth-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.auth-title {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  gap: 16px;
}

.auth-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    width: auto;
    left: auto;
    height: auto;
    overflow: visible;
  }

  .app-main {
    grid-column: auto;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .page-header-right {
    justify-items: start;
    min-width: 0;
  }

  .page-actions {
    justify-content: flex-start;
  }

  .user-chip {
    text-align: left;
  }

  .prospecting-dashboard,
  .analytics-hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .prospecting-top-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-frame {
    width: min(100%, calc(100vw - 16px));
    padding: 8px 0 18px;
  }

  .app-sidebar {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .nav-group {
    grid-template-columns: 1fr 1fr;
  }

  .nav-group-label {
    grid-column: 1 / -1;
  }

  .page-header,
  .panel {
    padding: 18px;
  }

  .campaign-flow-header {
    margin: -18px -18px 18px;
    padding: 18px;
  }

  .prospecting-top-stats,
  .prospecting-create-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .email-finder-hero,
  .email-finder-settings-row,
  .email-finder-candidate-row,
  .email-finder-search-form {
    grid-template-columns: 1fr;
  }

  .email-finder-search-divider {
    min-height: 52px;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .email-finder-search-button {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .app-footer {
    flex-direction: column;
  }

  .actions .button-row {
    gap: 8px;
  }
}
