:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9dee8;
  --brand: #1463ff;
  --brand-strong: #0d47c4;
  --ok: #0f8a5f;
  --warn: #b35b00;
  --bad: #bc2727;
  --soft-blue: #eaf1ff;
  --soft-green: #e8f7f0;
  --soft-yellow: #fff6d8;
  --soft-red: #ffebeb;
  --shadow: 0 12px 32px rgba(20, 34, 66, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--text);
  font-weight: 700;
}

.check-row input {
  width: auto;
  min-height: auto;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: inherit;
}

.landing-page {
  min-height: 100vh;
  background: #f7f9fc;
  color: #101828;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e4e9f2;
  backdrop-filter: blur(12px);
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.landing-logo img {
  display: block;
  width: 156px;
  height: auto;
}

.landing-links,
.landing-actions,
.landing-cta,
.landing-proof {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-links {
  flex-wrap: wrap;
  justify-content: center;
  color: #344054;
  font-weight: 800;
  font-size: 14px;
}

.landing-links a {
  padding: 8px 10px;
  text-decoration: none;
}

.landing-hero {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 64px) 42px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 249, 252, 0.98)),
    url("/assets/callpro-logo.png") center 42% / min(940px, 92vw) auto no-repeat;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.84);
  pointer-events: none;
}

.landing-hero > * {
  position: relative;
  z-index: 1;
}

.landing-hero-logo {
  width: min(460px, 82vw);
  height: auto;
  margin-bottom: 16px;
}

.landing-kicker,
.section-heading p {
  margin: 0 0 10px;
  color: #1263f1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}

.landing-hero h1,
.landing-section h2 {
  max-width: 920px;
  margin: 0;
  color: #061b3a;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-section h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.landing-lede,
.landing-copy {
  max-width: 760px;
  margin: 18px auto 0;
  color: #475467;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.62;
}

.landing-copy {
  margin-left: 0;
  font-size: 17px;
}

.landing-cta {
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 26px;
}

.landing-proof {
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.landing-proof span {
  padding: 9px 12px;
  border: 1px solid #d9e5fb;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.landing-dashboard-band {
  padding: 0 clamp(16px, 5vw, 70px) 56px;
  background: #f7f9fc;
}

.dashboard-preview {
  width: min(1060px, 100%);
  margin: -28px auto 0;
  padding: 18px;
  border: 1px solid #d9e5fb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.12);
}

.preview-bar {
  display: flex;
  gap: 7px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e9f2;
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1463ff;
}

.preview-bar span:nth-child(2) {
  background: #12b76a;
}

.preview-bar span:nth-child(3) {
  background: #f79009;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-grid article,
.feature-card,
.pricing-card,
.report-stack div {
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #fff;
}

.preview-grid article {
  padding: 16px;
}

.preview-grid strong {
  display: block;
  color: #1263f1;
  font-size: 34px;
  line-height: 1;
}

.preview-grid span,
.preview-queue span,
.report-stack span {
  color: #667085;
  font-size: 14px;
}

.preview-queue {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.preview-queue div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f4f7fb;
}

.preview-queue b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #061b3a;
  color: #fff;
  font-size: 13px;
}

.landing-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 72px clamp(16px, 4vw, 30px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.feature-grid,
.pricing-grid,
.workflow-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.workflow-card,
.info-card {
  padding: 22px;
}

.feature-card h3,
.pricing-card h3,
.workflow-card h3,
.info-card h3 {
  margin: 0 0 10px;
  color: #061b3a;
  font-size: 20px;
}

.feature-card p,
.pricing-card p,
.workflow-card p,
.info-card p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.workflow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-card,
.info-card {
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #fff;
}

.workflow-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #1463ff;
  color: #fff;
  font-weight: 900;
}

.info-section {
  padding-top: 24px;
}

.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
}

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

.report-stack div {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.report-stack strong {
  color: #061b3a;
}

.comparison-section {
  width: 100%;
  max-width: none;
  background: #ffffff;
}

.comparison-section .section-heading,
.comparison-table {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid #d9e5fb;
  border-radius: 8px;
}

.comparison-head,
.comparison-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
}

.comparison-head span,
.comparison-row span {
  padding: 15px;
  border-right: 1px solid #e4e9f2;
}

.comparison-head span:last-child,
.comparison-row span:last-child {
  border-right: 0;
}

.comparison-head {
  background: #061b3a;
  color: #fff;
  font-weight: 900;
}

.comparison-row {
  border-top: 1px solid #e4e9f2;
  background: #fff;
}

.comparison-row span:first-child {
  color: #061b3a;
  font-weight: 850;
}

.comparison-row span:nth-child(2) {
  color: #0f7a55;
  font-weight: 800;
}

.comparison-row span:nth-child(3) {
  color: #667085;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.pricing-card.featured {
  border-color: #1463ff;
  box-shadow: 0 16px 40px rgba(20, 99, 255, 0.16);
}

.price-badge {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1263f1;
  font-size: 12px;
  font-weight: 900;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-line strong {
  color: #061b3a;
  font-size: 36px;
}

.price-line span {
  color: #667085;
  font-weight: 800;
}

.register-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
}

.login-only-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.login-choice-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid #d9e5fb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.1);
}

.login-choice-panel .btn {
  width: 100%;
}

.login-choice-panel p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.faq-section {
  padding-top: 24px;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 16px 18px;
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  color: #061b3a;
  font-weight: 900;
}

.faq-item p {
  margin: 10px 0 0;
  color: #667085;
  line-height: 1.55;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
  border-top: 1px solid #e4e9f2;
}

.safety-section {
  padding-top: 24px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.safety-grid article {
  padding: 20px;
  border: 1px solid #d9e5fb;
  border-radius: 8px;
  background: #fff;
}

.safety-grid h3 {
  margin: 0 0 8px;
  color: #061b3a;
}

.safety-grid p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #12b76a;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(18, 183, 106, 0.32);
}

.landing-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr) minmax(180px, 0.8fr);
  align-items: start;
  gap: 22px;
  padding: 28px clamp(16px, 4vw, 52px);
  border-top: 1px solid #e4e9f2;
  background: #ffffff;
  color: #061b3a;
}

.landing-footer img {
  display: block;
  width: 150px;
  height: auto;
  margin-bottom: 8px;
}

.landing-footer p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.footer-safety h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.footer-safety ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #475467;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-links a {
  color: #1263f1;
  font-weight: 800;
  text-decoration: none;
}

.registration-form {
  padding: 22px;
  border: 1px solid #d9e5fb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.1);
}

.registration-form .wide {
  grid-column: 1 / -1;
}

.form-note {
  margin: 12px 0 0;
  color: #667085;
  font-weight: 750;
}

.form-note.success {
  color: #0f7a55;
}

.form-note.error {
  color: #bc2727;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.brand-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px clamp(14px, 4vw, 30px) 48px;
}

.login-wrap {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(20, 99, 255, 0.08), transparent 40%),
    linear-gradient(315deg, rgba(15, 138, 95, 0.08), transparent 38%),
    var(--bg);
}

.login-panel {
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 0;
  font-size: 26px;
}

.login-panel p {
  margin: 8px 0 20px;
  color: var(--muted);
  line-height: 1.45;
}

.demo-logins {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  background: var(--brand);
  color: #fff;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.toolbar-stack {
  display: grid;
  gap: 4px;
}

.toolbar h2 {
  margin: 0;
  font-size: 24px;
}

.toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.panel-title h3 {
  margin: 0;
  font-size: 17px;
}

.stat {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  font-size: 26px;
}

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

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subadmin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.superadmin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.account-layout {
  align-items: start;
}

.account-create-card {
  align-content: start;
  gap: 10px;
  border-color: #cfd8ea;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.account-create-card .panel-title {
  margin-bottom: 4px;
}

.account-create-card .field {
  display: grid;
  gap: 5px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.form-actions span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.auto-stats {
  margin-bottom: 14px;
}

.auto-stats .stat {
  border-color: #c9d8ff;
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

.auto-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.auto-panel {
  border-color: #b9cdfd;
  box-shadow: 0 14px 34px rgba(20, 99, 255, 0.08);
}

.caller-pick {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

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

.caller-pick-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.caller-pick-item input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.caller-pick-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.caller-pick-item small,
.load-row span,
.repo-row span {
  color: var(--muted);
}

.load-list {
  display: grid;
  gap: 8px;
}

.load-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.load-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.data-repository .panel-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.repo-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.repo-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(220px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.repo-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.repo-assignee {
  color: #344054;
  font-weight: 800;
}

.repo-actions {
  justify-content: flex-end;
}

.repo-row .inline-edit {
  grid-column: 1 / -1;
}

.target-user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.target-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.lead-pagination {
  justify-content: space-between;
}

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-size-control select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.pagination-hidden {
  display: none !important;
}

.module-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 2px;
  padding: 12px 14px;
  border: 1px solid #dfe8f4;
  border-radius: 14px;
  background: linear-gradient(135deg, #f9fbff 0%, #ffffff 100%);
  box-shadow: 0 7px 22px rgba(27, 50, 86, .06);
}

.module-pagination.existing-pagination {
  width: 100%;
}

.lead-pagination.module-pagination .page-size-control {
  margin-right: auto;
}

.lead-pagination.module-pagination .module-pagination-summary {
  margin-left: auto;
}

.panel > .module-pagination:last-child {
  margin: 14px 14px 16px;
}

.module-pagination-summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: max-content;
  color: #66758b;
  font-size: 13px;
}

.module-pagination-summary strong {
  color: #15233a;
  font-size: 14px;
}

.module-page-size {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.module-page-size select {
  width: auto;
  min-width: 64px;
  height: 36px;
  padding: 6px 28px 6px 10px;
  border: 1px solid #d8e2ef;
  border-radius: 9px;
  background-color: #fff;
  color: #24344e;
  font-weight: 800;
}

.module-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.module-page-number,
.module-page-arrow {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  background: #fff;
  color: #40516c;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, color .14s ease;
}

.module-page-arrow {
  font-size: 21px;
  line-height: 1;
}

.module-page-number:hover,
.module-page-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #8eb1ef;
  color: #1d5fd2;
}

.module-page-number.active {
  border-color: var(--brand, #2563eb);
  background: var(--brand, #2563eb);
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
}

.module-page-arrow:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.module-page-ellipsis {
  width: 24px;
  color: #8794a7;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 720px) {
  .module-pagination {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    padding: 11px;
  }

  .module-pagination-summary {
    width: 100%;
  }

  .module-page-size {
    margin-left: 0;
  }

  .module-page-nav {
    margin-left: auto;
    max-width: 100%;
    overflow-x: auto;
  }

  .module-page-number,
  .module-page-arrow {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }
}

.info-manager {
  margin-bottom: 14px;
}

.info-list {
  margin-top: 12px;
}

.caller-help-layout {
  align-items: start;
}

.caller-help-create {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.caller-help-create > .panel-title,
.caller-help-create > .language-fields,
.caller-help-create > .target-box,
.caller-help-create > .form-actions {
  grid-column: 1 / -1;
}

.caller-help-create > .field:nth-of-type(3),
.caller-help-create > .field:nth-of-type(4) {
  grid-column: 1 / -1;
}

.caller-help-create textarea {
  min-height: 78px;
}

.caller-help-create .language-fields textarea {
  min-height: 72px;
}

.inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.inline-checks .check-row {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.caller-help-create > .check-row {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.subadmin-create,
.superadmin-create {
  position: sticky;
  top: 12px;
}

.subadmin-list-panel {
  min-width: 0;
}

.subadmin-card-head {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 120px;
  gap: 12px;
  align-items: end;
}

.admin-credential-head {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) 120px;
}

.permission-field {
  min-width: 0;
}

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

.permission-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 40px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  line-height: 1.25;
}

.permission-grid .permission-item input,
.subadmin-active input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin-top: 2px;
  accent-color: var(--brand);
}

.permission-item span {
  min-width: 0;
}

.permission-select-all {
  background: #eef4ff;
  border-color: var(--brand, #2563eb);
  margin-bottom: 8px;
  font-weight: 600;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 132px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 112px;
  height: 34px;
  padding: 0 10px 0 32px;
  border: none;
  background: transparent;
  color: #667085;
  cursor: pointer;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.password-toggle:hover {
  background: #eef2f7;
  color: #344054;
}

.password-toggle .eye-icon {
  position: absolute;
  left: 9px;
  transition: opacity 0.1s ease;
}

.password-toggle-label {
  line-height: 1;
}

.password-field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.password-toggle .eye-closed {
  opacity: 0;
}

.password-toggle.is-showing .eye-open {
  opacity: 0;
}

.password-toggle.is-showing .eye-closed {
  opacity: 1;
}

@media (max-width: 480px) {
  .password-input-wrap input {
    padding-right: 122px;
  }

  .password-toggle {
    min-width: 104px;
    padding-left: 30px;
    padding-right: 7px;
    font-size: 11px;
  }
}

.subadmin-active {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.super-summary {
  margin-top: 14px;
}

.super-admin-summary {
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.4fr) auto;
  align-items: center;
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-stats span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
}

.permission-chip {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #667085;
  font-size: 13px;
}

.permission-chip.on {
  border-color: #9bd4b4;
  background: #ecfdf3;
  color: #027a48;
}

.readonly-permissions {
  margin-top: 10px;
}

.danger-badge {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b42318;
}

.danger-text {
  color: #b42318;
  font-weight: 700;
}

.danger-zone {
  margin: 14px 0;
  border-color: #fda29b;
  background: #fff7f6;
}

.danger-confirm {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.danger-confirm input {
  min-width: 0;
}

.user-delete-confirm {
  margin-top: 0;
}

.super-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.reminder-panel {
  margin-bottom: 14px;
  border-color: #f6c56b;
  background: #fff8e7;
  color: #7a4b00;
}

.caller-help-panel {
  margin-bottom: 14px;
  background: #f7fbff;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-switch .btn {
  min-height: 34px;
  padding: 6px 10px;
}

.language-fields {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #b8d5f2;
  border-radius: 8px;
  background: #f5faff;
}

.language-fields .panel-title {
  margin-bottom: 0;
}

[lang="hi"] {
  line-height: 1.55;
}

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

.help-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.help-head {
  display: grid;
  gap: 3px;
}

.help-head strong {
  color: #101828;
}

.help-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.help-card p {
  margin: 0;
  color: #344054;
  line-height: 1.45;
  white-space: pre-wrap;
}

.info-category {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.info-category h3 {
  margin: 0;
  font-size: 15px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e9f5ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 700;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.danger-badge {
  background: #fee4e2;
  color: #b42318;
}

.blocked-card {
  border-color: #fecdca;
  background: #fffbfa;
}

.mapping-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #98a2b3;
  border-radius: 8px;
  background: #f8fafc;
}

.import-wizard {
  display: grid;
  gap: 22px;
}

.import-step {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.import-step + .import-step {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.import-step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.import-step-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.import-step-head h3 {
  margin: 0 0 2px;
}

.import-step-head p {
  margin: 0;
}

.import-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.import-source-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.import-source-tab.active {
  border-color: var(--brand, #2563eb);
  background: #eef4ff;
  color: var(--brand, #2563eb);
}

.import-source-icon {
  font-size: 16px;
}

.import-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 16px;
  border: 2px dashed #98a2b3;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
}

.import-dropzone:hover {
  border-color: var(--brand, #2563eb);
  background: #eef4ff;
}

.import-dropzone-icon {
  font-size: 26px;
}

.import-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.import-empty-hint {
  text-align: center;
  padding: 18px;
}

.dup-strategy-row {
  display: grid;
  gap: 8px;
}

.dup-strategy-row .check-row {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.btn.large {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
}

.import-advanced {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 14px;
  background: #fafbfc;
}

.import-advanced summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  color: #344054;
  list-style: none;
}

.import-advanced summary::-webkit-details-marker {
  display: none;
}

.import-advanced summary::before {
  content: "\25B8  ";
  color: var(--brand, #2563eb);
}

.import-advanced[open] summary::before {
  content: "\25BE  ";
}

.import-advanced-body {
  padding-bottom: 16px;
  display: grid;
  gap: 14px;
}

.audit-outcome-success {
  background: #ecfdf3;
  color: #067647;
}

.audit-outcome-denied {
  background: #fff7ed;
  color: #b93815;
}

.audit-outcome-failed {
  background: #fef3f2;
  color: #b42318;
}

.log-page-header {
  align-items: flex-end;
  margin-bottom: 14px;
}

.log-page-header .eyebrow {
  color: var(--brand, #2563eb);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.log-control-panel {
  padding: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f7faff 100%);
  border-color: #dbe7f7;
}

.log-control-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(180px, 1fr) minmax(190px, 1fr);
  gap: 14px;
  align-items: end;
}

.log-control-grid.audit-controls {
  grid-template-columns: minmax(250px, 1.7fr) repeat(3, minmax(160px, 1fr));
}

.log-control-grid .field {
  margin: 0;
}

.log-module-overview {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5edf8;
  overflow-x: auto;
  scrollbar-width: thin;
}

.log-module-chip {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px 9px 13px;
  border: 1px solid #d9e4f2;
  border-radius: 999px;
  color: #41516b;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.log-module-chip:hover {
  border-color: #9ebcf2;
  transform: translateY(-1px);
}

.log-module-chip strong {
  min-width: 25px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf3fb;
  color: #35506f;
  font-size: 12px;
  text-align: center;
}

.log-module-chip.active {
  border-color: var(--brand, #2563eb);
  background: var(--brand, #2563eb);
  color: #fff;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .18);
}

.log-module-chip.active strong {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.log-results-meta {
  margin: 15px 2px 10px;
  color: #66758d;
  font-size: 13px;
}

.log-results-meta strong {
  color: #152238;
}

.log-module-stack {
  display: grid;
  gap: 16px;
}

.log-module-section {
  padding: 0;
  overflow: hidden;
  border-color: #dfe7f1;
}

.log-section-title {
  min-height: 64px;
  padding: 13px 17px;
  margin: 0;
  background: linear-gradient(90deg, #f8fbff, #fff);
  border-bottom: 1px solid #e8eef6;
}

.log-section-title > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.log-section-title h3 {
  margin: 0;
  font-size: 16px;
}

.log-module-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  color: #1d5fd2;
  background: #eaf2ff;
  font-size: 14px;
  font-weight: 900;
}

.log-table {
  min-width: 860px;
}

.log-table th {
  padding-top: 11px;
  padding-bottom: 11px;
  background: #fbfcfe;
  color: #65748b;
  font-size: 11px;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.log-table td {
  vertical-align: middle;
}

.log-table tbody tr:hover {
  background: #f8fbff;
}

.log-date {
  white-space: nowrap;
  color: #47556b;
  font-size: 13px;
}

.log-action-pill {
  display: inline-block;
  max-width: 260px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eef4ff;
  color: #2456a8;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.log-detail {
  max-width: 330px;
  color: #536176;
  line-height: 1.45;
}

.log-empty {
  margin-top: 14px;
  border: 1px dashed #cad8ea;
  border-radius: 14px;
  background: #f9fbfe;
}

@media (max-width: 980px) {
  .log-control-grid,
  .log-control-grid.audit-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .log-page-header {
    align-items: stretch;
  }

  .log-page-header .btn {
    width: 100%;
  }

  .log-control-panel {
    padding: 14px;
  }

  .log-control-grid,
  .log-control-grid.audit-controls {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .log-module-overview {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .log-section-title {
    min-height: 58px;
    padding: 11px 13px;
  }
}

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

.plan-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card.current {
  border-color: var(--brand, #2563eb);
  box-shadow: 0 0 0 1px var(--brand, #2563eb);
}

.plan-price {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

.plan-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #344054;
  flex: 1;
}

.plan-features li::before {
  content: "✓ ";
  color: #067647;
  font-weight: 700;
}

.mapping-preview {
  max-height: 260px;
}

.import-valid,
.import-errors {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.import-valid strong {
  color: #067647;
}

.import-errors strong {
  color: #b42318;
}

.import-check-card,
.import-result-card {
  margin-top: 14px;
}

.import-ready-summary,
.import-result-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.import-ready-summary h3,
.import-result-card h3 {
  margin: 0 0 4px;
}

.import-ready-summary p,
.import-result-card p {
  margin: 0 0 8px;
  color: #475467;
}

.import-ready-icon,
.import-result-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dcfae6;
  color: #067647;
  font-size: 22px;
  font-weight: 800;
}

.import-result-card.success {
  border-color: #75e0a7;
  background: #ecfdf3;
}

.import-result-card.processing {
  border-color: #b2ccff;
  background: #eff4ff;
}

.import-result-card.processing .import-result-icon {
  background: #d1e0ff;
  color: #175cd3;
}

.import-check-failed {
  border-color: #fda29b;
  background: #fef3f2;
}

.import-preview-details,
.import-skipped,
.import-history {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}

.import-preview-details summary,
.import-skipped summary,
.import-history summary,
.optional-section-summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
  color: #344054;
}

.import-skipped {
  border-color: #fedf89;
  background: #fffaeb;
}

.import-skipped summary {
  color: #93370d;
}

.import-skipped summary span,
.optional-section-summary span {
  margin-left: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.import-skipped p {
  color: #7a2e0e;
}

.optional-section-summary {
  list-style: none;
}

.optional-section-summary::-webkit-details-marker {
  display: none;
}

.optional-section-summary::before {
  content: "▸ ";
  color: var(--brand, #2563eb);
}

.scheduled-import-panel[open] > .optional-section-summary::before {
  content: "▾ ";
}

.optional-section-body {
  padding-top: 8px;
}

.scheduled-import-panel {
  margin-top: 14px;
}

.warning-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  padding: 10px 12px;
}

.warning-note code {
  background: #ffedd5;
  border-radius: 4px;
  padding: 2px 5px;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-strip span {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
}

.sample-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
  padding: 12px;
}

.sample-box pre {
  margin: 8px 0 0;
  overflow: auto;
  white-space: pre-wrap;
}

.compact-title {
  margin-top: 12px;
}

.success-text {
  color: #067647;
  font-weight: 700;
}

.whatsapp-render-preview {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef8f1;
  color: #102a1d;
  font-size: 14px;
  line-height: 1.45;
}

.whatsapp-render-preview::before {
  content: "Preview";
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reminder-due {
  color: #b42318;
  font-weight: 700;
}

.lead-action-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #a6f4c5;
  border-radius: 10px;
  background: #ecfdf3;
  color: #05603a;
}

.lead-action-confirmation span {
  color: #067647;
  font-size: 13px;
}

.inline-editor-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inline-editor-title > div {
  display: grid;
  gap: 4px;
}

.inline-editor-title span {
  color: var(--muted);
  font-size: 13px;
}

.followup-presets .btn.primary {
  background: var(--brand);
  color: #fff;
}

.followup-form-error:empty {
  display: none;
}

[aria-busy="true"] {
  cursor: progress;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 99, 255, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-sort-field {
  min-width: 190px;
}

.btn-row .date-sort-field {
  align-self: flex-end;
}

.btn-row .date-sort-field select {
  min-height: 40px;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 8px;
  background: #eef2f7;
  color: #1d2939;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.btn.compact {
  width: auto;
  min-width: 96px;
  min-height: 36px;
  padding: 0 14px;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-strong);
}

.btn.success {
  background: var(--soft-green);
  color: var(--ok);
}

.btn.warning {
  background: var(--soft-yellow);
  color: var(--warn);
}

.btn.danger {
  background: var(--soft-red);
  color: var(--bad);
}

.btn.ghost {
  background: #fff;
  border: 1px solid var(--line);
}

.lead-list {
  display: grid;
  gap: 8px;
}

.lead-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

/* Compact lead directory with an on-demand detail drawer. */
.lead-card.lead-list-item {
  display: block;
  padding: 0;
  overflow: visible;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lead-card.lead-list-item:hover,
.lead-card.lead-list-item:focus-within {
  border-color: #b7c8e6;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.07);
}

.lead-summary-row {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 8px 10px;
  gap: 8px;
}

.lead-summary-row > .lead-check {
  flex: 0 0 auto;
  margin: 0 2px 0 4px;
}

.lead-summary-button {
  display: grid;
  grid-template-columns: 42px minmax(190px, 1fr) minmax(105px, 0.45fr) auto minmax(145px, auto) 18px;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 12px;
  padding: 4px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.lead-summary-button:hover { background: #f8faff; }

.lead-avatar {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(145deg, #e7efff, #d8e5ff);
  color: #175cd3;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.lead-avatar.large {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  font-size: 15px;
}

.lead-summary-main { display: grid; min-width: 0; gap: 3px; }
.lead-summary-main .lead-name { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.lead-summary-main .attempt-badge { justify-self: start; margin-top: 1px; }
.lead-summary-contact,
.lead-summary-owner,
.lead-summary-date {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-summary-owner { font-weight: 700; }
.lead-summary-date { text-align: right; }
.lead-row-chevron { color: #98a2b3; font-size: 25px; font-weight: 400; line-height: 1; transition: transform 160ms ease; }
.lead-list-item:hover .lead-row-chevron { color: var(--brand); transform: translateX(2px); }

.lead-drawer-open { overflow: hidden; }

.lead-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
  animation: lead-overlay-in 160ms ease-out;
}

.lead-detail-drawer {
  width: min(560px, 94vw);
  height: 100%;
  overflow: auto;
  background: #f8fafc;
  box-shadow: -22px 0 55px rgba(15, 23, 42, 0.2);
  animation: lead-drawer-in 220ms ease-out;
}

@keyframes lead-overlay-in { from { background: rgba(15, 23, 42, 0); } }
@keyframes lead-drawer-in { from { opacity: 0; transform: translateX(42px); } }

.lead-detail-overlay.no-animate { animation: none; }
.lead-detail-drawer.no-animate { animation: none; }

.lead-detail-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.lead-detail-identity { display: flex; align-items: center; min-width: 0; gap: 12px; }
.lead-detail-identity > div { min-width: 0; }
.lead-detail-identity p { margin: 0 0 2px; color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.lead-detail-identity h2 { overflow: hidden; margin: 0; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.lead-detail-identity span:last-child { color: var(--muted); font-size: 13px; }

.lead-drawer-close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #475467;
  font-size: 25px;
  line-height: 1;
}

.lead-drawer-close:hover { border-color: #b7c8e6; color: var(--brand); }
.lead-detail-body { display: grid; gap: 14px; padding: 18px 22px 32px; }
.lead-detail-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.lead-detail-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.lead-detail-section > h3 { margin: 0; color: #344054; font-size: 13px; letter-spacing: 0.02em; }
.lead-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.lead-detail-grid > div { min-width: 0; padding: 10px 11px; border-radius: 9px; background: #f8fafc; }
.lead-detail-grid dt { margin-bottom: 4px; color: #667085; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.lead-detail-grid dd { overflow-wrap: anywhere; margin: 0; color: #1d2939; font-size: 13px; font-weight: 700; }
.lead-detail-note { padding: 12px; border-left: 3px solid #b7cdfc; border-radius: 0 9px 9px 0; background: #f8faff; }
.lead-detail-note strong { color: #344054; font-size: 12px; }
.lead-detail-note p { margin: 5px 0 0; color: #475467; line-height: 1.5; }
.lead-detail-section .lead-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-detail-section .secondary-actions .btn { min-height: 38px; font-size: 13px; }

@media (max-width: 860px) {
  .lead-summary-button { grid-template-columns: 40px minmax(130px, 1fr) auto 16px; gap: 9px; }
  .lead-summary-owner,
  .lead-summary-date { display: none; }
}

@media (max-width: 620px) {
  .lead-summary-row { min-height: 66px; padding: 6px; }
  .lead-summary-button { grid-template-columns: 38px minmax(0, 1fr) auto 14px; padding: 5px; }
  .lead-avatar { width: 38px; height: 38px; border-radius: 10px; }
  .lead-summary-main .lead-name { font-size: 14px; }
  .lead-summary-contact { max-width: 50vw; }
  .lead-detail-drawer { width: 100vw; max-width: none; }
  .lead-detail-header { padding: 15px 14px; }
  .lead-detail-body { padding: 14px 12px 26px; }
  .lead-detail-grid { grid-template-columns: 1fr; }
  .lead-detail-section .lead-actions { grid-template-columns: 1fr 1fr; }
}

.field:has(> input[required]) > label::after,
.field:has(> select[required]) > label::after,
.field:has(> textarea[required]) > label::after {
  content: " *";
  color: var(--bad);
  font-weight: 800;
}

.validation-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.validation-message {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

/* Professional Block List and Archive workspaces */
.blocklist-hero,
.archive-hero {
  padding: 22px 24px;
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #f5f8ff 58%, #eef6ff 100%);
  box-shadow: 0 16px 38px -30px rgba(15, 23, 42, .45);
}

.blocklist-summary,
.archive-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blocklist-summary > span,
.archive-summary > span {
  display: grid;
  min-width: 92px;
  padding: 10px 14px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  color: var(--muted);
  font-size: 12px;
}

.blocklist-summary strong,
.archive-summary strong { color: var(--ink); font-size: 20px; line-height: 1; }
.blocklist-summary .safe strong { color: #b42318; }

.blocklist-create { margin-top: 14px; border-left: 4px solid #dc2626; }
.blocklist-register { margin-top: 14px; overflow: hidden; }
.blocklist-controls,
.archive-controls {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.archive-controls { grid-template-columns: minmax(250px, 2fr) repeat(4, minmax(130px, 1fr)) auto; }
.blocklist-controls .field,
.archive-controls .field { gap: 5px; }
.blocklist-controls label,
.archive-controls label { font-size: 12px; color: #475569; }

.blocklist-list,
.archive-list { display: grid; gap: 9px; }

.blocklist-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(220px, 1.4fr) minmax(155px, .8fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.blocklist-row:hover,
.archive-row:hover { border-color: #b8c8dc; box-shadow: 0 12px 24px -22px rgba(15,23,42,.65); transform: translateY(-1px); }
.blocklist-person { display: flex; gap: 11px; align-items: center; min-width: 0; }
.blocklist-person > div { min-width: 0; display: grid; gap: 3px; }
.blocklist-person strong,
.blocklist-person a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blocklist-person a { color: #2563eb; font-size: 13px; text-decoration: none; }
.blocklist-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; color: #fff; background: linear-gradient(145deg,#dc2626,#991b1b); font-weight: 850; }
.blocklist-reason { min-width: 0; }
.blocklist-reason > span { color: #334155; font-size: 12px; font-weight: 750; }
.blocklist-reason p { margin: 3px 0 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blocklist-date { display: grid; gap: 6px; justify-items: start; color: var(--muted); font-size: 12px; }
.blocklist-actions { justify-content: flex-end; flex-wrap: nowrap; }
.blocklist-editor { padding: 18px; border: 1px solid #bfdbfe; border-radius: 14px; background: #f8fbff; box-shadow: inset 4px 0 #2563eb; }
.blocklist-empty,
.archive-empty { min-height: 160px; display: grid; place-content: center; gap: 5px; text-align: center; }
.blocklist-empty span,
.archive-empty span { color: var(--muted); }

.archive-workspace { margin-top: 14px; }
.archive-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 12px; }
.archive-result-head > div { display: grid; gap: 2px; }
.archive-result-head span { color: var(--muted); font-size: 12px; }
.archive-row { border: 1px solid #e2e8f0; border-radius: 13px; background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.archive-row-main { width: 100%; display: grid; grid-template-columns: 42px minmax(220px,1.5fr) minmax(120px,.8fr) auto minmax(145px,.8fr) 20px; gap: 12px; align-items: center; padding: 13px 14px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.archive-identity { min-width: 0; display: grid; gap: 3px; }
.archive-identity strong,
.archive-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-identity span,
.archive-owner,
.archive-date { color: var(--muted); font-size: 12px; }
.archive-row-actions { padding: 0 14px 13px 68px; justify-content: flex-start; }
.archive-details { margin: 0 14px 13px 68px; padding: 13px; border-radius: 11px; background: #f8fafc; }
.archive-details dl { display: grid; grid-template-columns: repeat(4,minmax(110px,1fr)); gap: 10px; margin: 0; }
.archive-details dl > div { display: grid; gap: 3px; }
.archive-details dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.archive-details dd { margin: 0; font-weight: 700; }
.archive-note { margin-top: 11px; padding-top: 10px; border-top: 1px solid #e2e8f0; }
.archive-note p { margin: 4px 0 0; color: var(--muted); }
.archive-row > .lead-edit-form { margin: 0 14px 14px 68px; border-radius: 12px; }

@media (max-width: 1180px) {
  .blocklist-controls,
  .archive-controls { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .blocklist-search,
  .archive-search { grid-column: 1 / -1; }
  .blocklist-row { grid-template-columns: 1fr 1fr; }
  .blocklist-actions { justify-content: flex-start; }
  .archive-row-main { grid-template-columns: 42px minmax(180px,1fr) auto 20px; }
  .archive-owner,
  .archive-date { display: none; }
}

@media (max-width: 700px) {
  .blocklist-hero,
  .archive-hero { padding: 17px; }
  .blocklist-summary,
  .archive-summary { width: 100%; }
  .blocklist-summary > span { flex: 1; }
  .blocklist-controls,
  .archive-controls,
  .blocklist-row { grid-template-columns: 1fr; }
  .blocklist-search,
  .archive-search { grid-column: auto; }
  .blocklist-row { gap: 10px; }
  .blocklist-actions .btn { flex: 1; }
  .archive-row-main { grid-template-columns: 38px minmax(0,1fr) auto; }
  .archive-row-main > .badge,
  .archive-row-main > .lead-row-chevron { display: none; }
  .archive-row-actions,
  .archive-details,
  .archive-row > .lead-edit-form { margin-left: 10px; margin-right: 10px; padding-left: 10px; }
  .archive-row-actions .btn { flex: 1; }
  .archive-details dl { grid-template-columns: 1fr 1fr; }
}

.lead-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lead-name {
  margin: 0;
  font-size: 18px;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.badge.new,
.badge.pending {
  background: var(--soft-blue);
  color: var(--brand-strong);
}

.badge.follow-up {
  background: var(--soft-yellow);
  color: var(--warn);
}

.badge.hot {
  background: #ffe8cc;
  color: #9a3412;
}

.badge.converted,
.badge.done {
  background: var(--soft-green);
  color: var(--ok);
}

.badge.not-interested,
.badge.unanswered,
.badge.not-received {
  background: var(--soft-red);
  color: var(--bad);
}

.lead-details {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

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

.lead-actions .btn {
  width: 100%;
  padding-inline: 8px;
  white-space: normal;
}

.inline-edit {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.manager-alerts {
  margin: 14px 0;
}

.alert-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
}

.alert-card strong {
  color: #92400e;
  font-size: 15px;
  line-height: 1.25;
}

.alert-card span {
  color: #78350f;
  font-size: 12px;
}

.pitch-assistant {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.pitch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.pitch-row p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

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

th {
  color: #344054;
  background: #f3f6fb;
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.notice {
  margin: 12px 0;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--brand-strong);
  font-weight: 700;
}

.error {
  background: var(--soft-red);
  color: var(--bad);
}

.csv-box {
  width: 100%;
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-links,
  .landing-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .feature-grid,
  .pricing-grid,
  .workflow-grid,
  .info-grid,
  .safety-grid,
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .register-section,
  .login-only-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .subadmin-layout,
  .superadmin-layout,
  .auto-layout {
    grid-template-columns: 1fr;
  }

  .subadmin-create,
  .superadmin-create {
    position: static;
  }
}

@media (max-width: 860px) {
  .landing-hero {
    min-height: auto;
    padding-top: 30px;
  }

  .landing-dashboard-band {
    padding-bottom: 30px;
  }

  .comparison-table {
    display: grid;
    gap: 12px;
    border: 0;
    border-radius: 0;
  }

  .comparison-head {
    display: none;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    border: 1px solid #e4e9f2;
    border-radius: 8px;
  }

  .comparison-row span {
    border-right: 0;
    border-bottom: 1px solid #e4e9f2;
  }

  .comparison-row span:last-child {
    border-bottom: 0;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .grid.five,
  .help-grid,
  .form-grid.two,
  .form-grid.three,
  .form-grid.four {
    grid-template-columns: 1fr;
  }

  .subadmin-card-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .super-admin-summary {
    grid-template-columns: 1fr;
  }

  .super-user-row {
    grid-template-columns: 1fr;
  }

  .caller-pick-grid,
  .target-user-grid,
  .repo-row {
    grid-template-columns: 1fr;
  }

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

  .danger-confirm {
    grid-template-columns: 1fr;
  }

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

  .toolbar .btn-row,
  .toolbar .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .landing-logo img {
    width: 138px;
  }

  .landing-links {
    display: none;
  }

  .landing-actions,
  .landing-actions .btn,
  .landing-cta .btn {
    width: 100%;
  }

  .landing-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-hero-logo {
    width: min(330px, 90vw);
  }

  .landing-hero h1,
  .landing-section h2 {
    overflow-wrap: anywhere;
  }

  .feature-grid,
  .pricing-grid,
  .workflow-grid,
  .info-grid,
  .safety-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    margin-top: 0;
  }

  .landing-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .registration-form .wide {
    grid-column: auto;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    min-height: 44px;
    max-width: calc(100vw - 24px);
    padding: 0 14px;
    font-size: 13px;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    padding-bottom: 74px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions,
  .top-actions .btn,
  .user-pill {
    width: 100%;
  }

  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .main {
    padding-top: 14px;
  }

  .tabs {
    margin-inline: -2px;
  }

  .lead-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-actions {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions .btn {
    width: auto;
  }

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

/* Release-completion interaction states */
.notice.info { background:#e8f1ff; color:#174ea6; border-color:#b9d2ff; }
.notice.success { background:#e9f8ef; color:#146c3a; border-color:#b9e4c8; }
.notice.warning { background:#fff7df; color:#7a4d00; border-color:#f1d28a; }
.notice.loading::before { content:""; width:14px; height:14px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.modal-open { overflow:hidden; }
.modal-overlay { position:fixed; inset:0; z-index:10000; display:grid; place-items:center; padding:20px; background:rgba(10,20,40,.58); }
.modal-card { width:min(520px,100%); max-height:calc(100vh - 40px); overflow:auto; background:var(--panel); color:var(--ink); border-radius:16px; padding:24px; box-shadow:0 24px 70px rgba(0,0,0,.3); }
.modal-card:focus { outline:none; }
.modal-actions,.row-actions,.check-cluster { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.modal-actions { justify-content:flex-end; margin-top:20px; }
.btn.danger { background:#b42318; color:white; border-color:#b42318; }
.field-definition,.connection-card { border:1px solid var(--line); border-radius:12px; padding:12px; margin:10px 0; }
.field-definition.disabled { opacity:.68; }
.field-editor { border-top:1px solid var(--line); margin-top:12px; padding-top:12px; }
.credential-row { display:flex; gap:10px; align-items:end; border-top:1px solid var(--line); padding-top:10px; }
.credential-row label { flex:1; }
.credential-reveal { margin-top:12px; padding:12px; border:1px solid #e0b74b; background:#fff8dd; border-radius:10px; display:grid; gap:8px; }
.credential-reveal textarea { min-height:90px; width:100%; }
.usage-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.usage-grid div { padding:12px; background:var(--soft-blue); border-radius:10px; }
.usage-grid dt { color:var(--muted); text-transform:capitalize; }
.usage-grid dd { font-size:1.35rem; font-weight:700; margin:4px 0 0; }
pre { max-width:100%; overflow:auto; padding:14px; background:#101828; color:#eef4ff; border-radius:10px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible { outline:3px solid #73a7ff; outline-offset:2px; }
@media (max-width: 900px) {
  .two-col,.form-grid.two { grid-template-columns:1fr; }
  .tabs { overflow-x:auto; scroll-snap-type:x proximity; }
  .tab { scroll-snap-align:start; flex:0 0 auto; }
}

/* Caller directory: compact list with an on-demand, independently scrolling drawer. */
.caller-directory-panel { padding: 0; overflow: hidden; }
.caller-directory-panel > .panel-title { margin: 0; padding: 18px 20px; border-bottom: 1px solid #e8eef7; }
.caller-directory-panel > .panel-title h3 { margin: 0 0 3px; }
.caller-directory-panel > .panel-title p { margin: 0; color: var(--muted); font-size: 13px; }
.caller-directory-list { display: grid; }
.caller-directory-row { border-bottom: 1px solid #edf1f7; background: #fff; }
.caller-directory-row:last-child { border-bottom: 0; }
.caller-directory-main { width: 100%; display: grid; grid-template-columns: 44px minmax(190px,1.4fr) minmax(180px,1fr) auto 20px; align-items: center; gap: 14px; padding: 14px 20px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.caller-directory-main:hover { background: #f7faff; }
.caller-directory-main:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(37,99,235,.25); outline-offset: -3px; }
.caller-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: linear-gradient(135deg,#e8f0ff,#dce8ff); color: #1d5fe9; font-size: 16px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(37,99,235,.1); }
.caller-directory-identity { min-width: 0; display: grid; gap: 3px; }
.caller-directory-identity strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.caller-directory-identity small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.caller-directory-tags { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badge.subtle { max-width: 170px; overflow: hidden; background: #f3f5f9; color: #596579; text-overflow: ellipsis; white-space: nowrap; }
.caller-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.caller-status::before { width: 8px; height: 8px; border-radius: 50%; content: ""; }
.caller-status.active { color: #067647; }
.caller-status.active::before { background: #12b76a; box-shadow: 0 0 0 3px #d1fadf; }
.caller-status.inactive { color: #667085; }
.caller-status.inactive::before { background: #98a2b3; box-shadow: 0 0 0 3px #eaecf0; }
.caller-row-arrow { color: #98a2b3; font-size: 26px; line-height: 1; transition: transform .16s ease; }
.caller-directory-main:hover .caller-row-arrow { color: #2563eb; transform: translateX(3px); }
.caller-directory-panel > .module-pagination { margin: 0; padding: 15px 20px; border-top: 1px solid #edf1f7; background: #fbfcfe; }

.caller-detail-overlay { position: fixed; inset: 0; z-index: 9000; display: flex; justify-content: flex-end; background: rgba(15,23,42,.42); backdrop-filter: blur(2px); animation: caller-overlay-in .18s ease-out; }
.caller-detail-drawer { width: min(620px,100vw); height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: -20px 0 55px rgba(15,23,42,.22); animation: caller-drawer-in .22s ease-out; }
@keyframes caller-overlay-in { from { opacity: 0; } }
@keyframes caller-drawer-in { from { transform: translateX(44px); opacity: .75; } }
.caller-detail-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #e7edf6; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.caller-detail-header > div { min-width: 0; }
.caller-detail-header p { margin: 0 0 4px; color: #2563eb; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.caller-detail-header h2 { overflow: hidden; margin: 0; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.caller-detail-header span { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.caller-drawer-close { flex: 0 0 auto; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #dce4ef; border-radius: 11px; background: #fff; color: #526176; font-size: 25px; line-height: 1; cursor: pointer; }
.caller-drawer-close:hover { border-color: #b8c8df; background: #f7f9fc; color: #1d4ed8; }
.caller-detail-body { padding: 22px 22px 34px; }
.caller-drawer-actions,.caller-primary-actions { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 10px; margin: 4px -22px -34px; padding: 15px 22px; border-top: 1px solid #e7edf6; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.caller-primary-actions { position: static; margin: 2px 0 0; padding: 0; border: 0; background: transparent; }
.caller-danger-zone { display: grid; gap: 13px; margin-top: 8px; padding: 15px; border: 1px solid #fecaca; border-radius: 13px; background: #fffafa; }
.revealed-password { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f1f5f9; font-family: monospace; font-size: 14px; word-break: break-all; }
.caller-danger-zone > div:first-child { display: grid; gap: 3px; }
.caller-danger-zone strong { color: #b42318; font-size: 13px; }
.caller-danger-zone span { color: #7a4c47; font-size: 12px; }
.caller-danger-zone .btn-row { margin: 0; }

@media (max-width: 760px) {
  .caller-directory-main { grid-template-columns: 40px minmax(0,1fr) auto; gap: 11px; padding: 13px 14px; }
  .caller-directory-tags { grid-column: 2 / 4; }
  .caller-status { grid-column: 2; }
  .caller-row-arrow { grid-column: 3; grid-row: 1; }
  .caller-detail-drawer { width: 100vw; }
  .caller-detail-header { padding: 16px 14px; }
  .caller-detail-body { padding: 16px 14px 28px; }
  .caller-detail-body .form-grid.two { grid-template-columns: 1fr; }
  .caller-drawer-actions { margin: 4px -14px -28px; padding: 13px 14px; }
  .caller-primary-actions { flex-direction: column; }
  .caller-primary-actions .btn,.caller-drawer-actions .btn { flex: 1; }
}
@media (max-width: 620px) {
  .topbar,.toolbar,.mapping-row,.credential-row { align-items:stretch; flex-direction:column; }
  .top-actions,.row-actions,.modal-actions { width:100%; }
  .row-actions .btn,.modal-actions .btn { flex:1; }
  .plan-grid,.usage-grid { grid-template-columns:1fr; }
  .main { padding-inline:12px; }
  table { min-width:680px; }
}

/* ============================================================================
   Added components: search, toasts, filters, bulk bar, history timeline,
   WhatsApp picker, archive tag, attempt badge, selection state
   ============================================================================ */

.search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
}

.search-bar input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}

.search-bar input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 99, 255, 0.15);
}

.toasts {
  position: fixed;
  top: 78px;
  right: 20px;
  z-index: 10000;
  width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  pointer-events: none;
}

.toasts:empty {
  display: none;
}

.toasts .notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.18);
  pointer-events: auto;
}

.signup-shell { width:min(1180px,calc(100% - 32px)); margin:0 auto; padding:64px 0 96px; display:grid; grid-template-columns:minmax(0,.8fr) minmax(520px,1.2fr); gap:56px; align-items:start; }
.signup-copy { position:sticky; top:120px; padding:38px 0; }
.signup-copy h1 { font-size:clamp(2.3rem,5vw,4.4rem); line-height:1.02; letter-spacing:-.045em; margin:12px 0 22px; }
.signup-copy p,.signup-copy li { color:#475467; font-size:1.05rem; line-height:1.75; }
.signup-form { padding:clamp(22px,4vw,42px); }
.signup-form .btn[type="submit"] { width:100%; min-height:50px; margin-top:18px; }
.check-row { display:flex; gap:10px; align-items:flex-start; margin-top:18px; color:#344054; }
.field-error { color:#b42318; font-size:.83rem; margin:6px 0 0; font-weight:650; }
.field:has(.field-error) input,.field:has(.field-error) select { border-color:#d92d20; }
.honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; opacity:0!important; }
.billing-toggle { display:flex; width:max-content; padding:4px; margin:18px auto 28px; border:1px solid #d0d5dd; border-radius:999px; background:#fff; }
.billing-toggle button { border:0; background:transparent; color:#475467; border-radius:999px; padding:9px 18px; font-weight:700; cursor:pointer; }
.billing-toggle button.active { background:#1463ff; color:#fff; }
.onboarding-shell { max-width:1100px; }
.onboarding-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.onboarding-step { position:relative; min-height:160px; }
.onboarding-step.complete { background:#f0fdf4; border-color:#86efac; }
.step-number { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#e8f0ff; color:#1463ff; font-weight:800; }
.progress-track { height:10px; border-radius:999px; overflow:hidden; background:#eaecf0; }
.progress-track span { display:block; height:100%; background:linear-gradient(90deg,#1463ff,#12b76a); transition:width .25s ease; }
.legal-page { width:min(780px,calc(100% - 32px)); margin:0 auto; padding:72px 0 120px; }
.legal-page h1 { font-size:clamp(2.4rem,5vw,4rem); letter-spacing:-.04em; }
.legal-page section { padding:20px 0; border-bottom:1px solid #eaecf0; }
.legal-page p { color:#475467; line-height:1.75; }

:focus-visible { outline:3px solid rgba(20,99,255,.4); outline-offset:3px; }

@media (max-width: 760px) {
  .toasts { top:12px; left:12px; right:12px; width:auto; }
  .signup-shell { grid-template-columns:1fr; gap:18px; padding-top:28px; }
  .signup-copy { position:static; padding:12px 0; }
  .signup-form .form-grid,.onboarding-grid { grid-template-columns:1fr; }
}

.toast-close {
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  padding: 0 6px;
  border-radius: 6px;
  opacity: 0.6;
}

.toast-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

.filter-panel {
  padding: 14px 16px;
  margin: 0 0 14px 0;
}

.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--soft-blue);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 14px 0;
  flex-wrap: wrap;
}

.bulk-count {
  font-size: 14px;
  color: var(--ink);
}

.bulk-count strong {
  color: var(--brand-strong);
  font-size: 18px;
  margin-right: 4px;
}

.bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.bulk-actions select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.lead-head-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.lead-check {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--brand);
}

.lead-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(20, 99, 255, 0.18), var(--shadow);
}

.attempt-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--soft-yellow);
  color: var(--warn);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.archived-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(102, 112, 133, 0.12);
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

/* WhatsApp template picker */
.whatsapp-picker {
  display: grid;
  gap: 14px;
}

.whatsapp-list {
  display: grid;
  gap: 8px;
}

.whatsapp-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 10px 12px;
  background: var(--soft-green);
  border: 1px solid #c8e7d8;
  border-radius: 10px;
  color: var(--ink);
  white-space: normal;
  width: 100%;
}

.whatsapp-option:hover {
  background: #d6f0e2;
}

.whatsapp-option strong {
  font-weight: 600;
  color: var(--ok);
  font-size: 13px;
}

.whatsapp-preview {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.whatsapp-custom {
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  background: var(--panel);
  color: var(--ink);
  margin-bottom: 8px;
}

/* Per-lead history timeline */
.history-loading {
  padding: 16px;
  color: var(--muted);
  font-style: italic;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.history-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px;
  background: var(--soft-blue);
  border-radius: 10px;
  border: 1px solid #d8e3fa;
}

.history-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.history-text {
  font-size: 14px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-text strong {
  font-weight: 600;
}

.history-meta {
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
  font-weight: 400;
}

.history-note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
}

@media (max-width: 620px) {
  .history-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bulk-actions {
    width: 100%;
  }

  .bulk-actions .btn,
  .bulk-actions select {
    flex: 1;
    min-width: 100px;
  }
}
