.invite-only {
  display: flex;
  gap: 11px;
  align-items: center;
  background: #f5f7fb;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 9px;
  margin-top: 22px;
  color: #657189;
}
.invite-only > span { color: #4f6ef7; }
.invite-only p { font-size: 11px !important; margin: 0 !important; }
.invite-only strong { color: #334055; }
.invite-loading {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(13, 23, 40, .94);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.invite-loading[hidden] { display: none; }
.invite-loading div { display: grid; gap: 3px; }
.invite-loading small { color: #a9b5c8; }
.capture-progress {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 16, 29, .9);
  backdrop-filter: blur(5px);
}
.capture-progress[hidden] { display: none; }
.progress-card {
  width: min(440px, 100%);
  padding: 34px;
  text-align: center;
  border-radius: 15px;
  background: white;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .35);
}
.progress-card h2 { margin: 18px 0 7px; }
.progress-card p { color: #768195; font-size: 13px; line-height: 1.6; }
.progress-card small { color: #8993a3; }
.spinner {
  display: inline-block;
  width: 42px;
  height: 42px;
  border: 4px solid #e4e8ff;
  border-top-color: #4f6ef7;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.progress-line {
  height: 5px;
  overflow: hidden;
  margin: 22px 0 13px;
  border-radius: 5px;
  background: #edf0f5;
}
.progress-line i {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: #4f6ef7;
  animation: progress 1.4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(300%); }
}
.lead-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}
.lead-filters label {
  display: grid;
  gap: 4px;
  color: #7c8798;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.lead-filters select {
  min-width: 170px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #354054;
  background: white;
}
.lead-filters a {
  margin: 0 0 9px auto;
  color: #4f6ef7;
  font-size: 12px;
  text-decoration: none;
}
@media (max-width: 600px) {
  .lead-filters { align-items: stretch; flex-direction: column; }
  .lead-filters select { width: 100%; }
  .lead-filters a { margin: 0; }
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.theme-option {
  display: grid;
  gap: 6px;
  cursor: pointer;
}
.theme-option input { position: absolute; opacity: 0; }
.theme-option strong { font-size: 12px; }
.theme-option small { color: #8993a3; font-size: 10px; }
.theme-preview {
  height: 78px;
  display: grid;
  grid-template-columns: 25% 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 5px;
  padding: 9px;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: #f5f7fa;
}
.theme-preview i { border-radius: 3px; background: white; }
.theme-preview i:first-child { grid-row: 1 / -1; background: #162238; }
.theme-preview.dark { background: #151d2a; }
.theme-preview.dark i { background: #263246; }
.theme-preview.dark i:first-child { background: #0b111c; }
.theme-preview.system { background: linear-gradient(110deg, #f5f7fa 50%, #151d2a 50%); }
.theme-option input:checked + .theme-preview { border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79,110,247,.12); }

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { color: #e7ebf2; background: #111824; }
html[data-theme="dark"] .workspace { background: #111824; }
html[data-theme="dark"] .metrics article,
html[data-theme="dark"] .pipeline,
html[data-theme="dark"] .data-card,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .modal-card { color: #e7ebf2; background: #192230; border-color: #2b3748; }
html[data-theme="dark"] th,
html[data-theme="dark"] .lead-filters { background: #141c28; border-color: #2b3748; }
html[data-theme="dark"] td { color: #dce2eb; border-color: #293444; }
html[data-theme="dark"] .pipeline-row a,
html[data-theme="dark"] .search,
html[data-theme="dark"] .stack-form input,
html[data-theme="dark"] .stack-form select,
html[data-theme="dark"] .stack-form textarea,
html[data-theme="dark"] .auth-form input,
html[data-theme="dark"] .lead-filters select { color: #e1e6ee; background: #121a26; border-color: #334053; }
html[data-theme="dark"] .pipeline-row strong,
html[data-theme="dark"] .company div { color: #e3e8ef; }
html[data-theme="dark"] .company > span { color: #b9c4d4; background: #283547; }
html[data-theme="dark"] .button.secondary { color: #e1e6ee; background: #202b3a; border-color: #344154; }
html[data-theme="dark"] .notice,
html[data-theme="dark"] .invite-only { background: #202b3a; border-color: #344154; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] { color-scheme: dark; }
  html[data-theme="system"] body, html[data-theme="system"] .workspace { color: #e7ebf2; background: #111824; }
  html[data-theme="system"] .metrics article, html[data-theme="system"] .pipeline,
  html[data-theme="system"] .data-card, html[data-theme="system"] .settings-card,
  html[data-theme="system"] .modal-card { color:#e7ebf2;background:#192230;border-color:#2b3748; }
  html[data-theme="system"] th, html[data-theme="system"] .lead-filters { background:#141c28;border-color:#2b3748; }
  html[data-theme="system"] td { color:#dce2eb;border-color:#293444; }
}
@media (max-width: 650px) { .theme-options { grid-template-columns: 1fr; } }

/* Dark theme — surfaces and controls share the same neutral blue palette. */
html[data-theme="dark"] {
  --dark-canvas: #0b1018;
  --dark-surface: #121a26;
  --dark-raised: #182231;
  --dark-control: #0e1622;
  --dark-border: #29364a;
  --dark-border-focus: #657cf4;
  --dark-text: #e8edf5;
  --dark-muted: #8e9bb0;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .workspace { background: var(--dark-canvas); color: var(--dark-text); }
html[data-theme="dark"] .sidebar { background: #080d14; border-right: 1px solid #1c2736; }
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .data-card,
html[data-theme="dark"] .pipeline,
html[data-theme="dark"] .metrics article,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .progress-card {
  color: var(--dark-text);
  background: var(--dark-surface);
  border-color: var(--dark-border);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .16);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .search,
html[data-theme="dark"] .lead-filters select {
  color: var(--dark-text) !important;
  background: var(--dark-control) !important;
  border-color: var(--dark-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #66758c; }
html[data-theme="dark"] input:disabled {
  color: #9aa6b8 !important;
  background: #151e2b !important;
  opacity: 1;
  cursor: not-allowed;
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] .search:focus-within {
  border-color: var(--dark-border-focus) !important;
  box-shadow: 0 0 0 3px rgba(101, 124, 244, .16) !important;
  outline: none;
}
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--dark-text);
  -webkit-box-shadow: 0 0 0 1000px var(--dark-control) inset !important;
  caret-color: var(--dark-text);
}
html[data-theme="dark"] .lead-filters,
html[data-theme="dark"] th { background: #0f1722; border-color: var(--dark-border); }
html[data-theme="dark"] td,
html[data-theme="dark"] .security-item { border-color: #243044; }
html[data-theme="dark"] td,
html[data-theme="dark"] .company div,
html[data-theme="dark"] .pipeline-row strong,
html[data-theme="dark"] .settings-card h2 { color: var(--dark-text); }
html[data-theme="dark"] .topbar p,
html[data-theme="dark"] .settings-card > p,
html[data-theme="dark"] .company small,
html[data-theme="dark"] td > small { color: var(--dark-muted); }
html[data-theme="dark"] .pipeline-row a {
  color: var(--dark-muted);
  background: var(--dark-raised);
  border-color: var(--dark-border);
}
html[data-theme="dark"] .pipeline-row a:hover,
html[data-theme="dark"] .pipeline-row a.selected { background: #1d2940; border-color: #596fe3; }
html[data-theme="dark"] .company > span { color: #b9c5d6; background: #233044; }
html[data-theme="dark"] .button.secondary {
  color: #dce3ed;
  background: var(--dark-raised);
  border-color: var(--dark-border);
}
html[data-theme="dark"] .button.secondary:hover { background: #202c3e; border-color: #3b4a60; }
html[data-theme="dark"] .theme-option small,
html[data-theme="dark"] label small { color: var(--dark-muted); }
html[data-theme="dark"] .modal-close {
  color: #c5cfdd;
  background: #202c3d;
  border: 1px solid #34445a;
}
html[data-theme="dark"] .modal-close:hover { color: white; background: #2a384c; }

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --dark-canvas: #0b1018;
    --dark-surface: #121a26;
    --dark-raised: #182231;
    --dark-control: #0e1622;
    --dark-border: #29364a;
    --dark-text: #e8edf5;
    --dark-muted: #8e9bb0;
  }
  html[data-theme="system"] body,
  html[data-theme="system"] .workspace { background: var(--dark-canvas); color: var(--dark-text); }
  html[data-theme="system"] .sidebar { background: #080d14; border-right: 1px solid #1c2736; }
  html[data-theme="system"] .settings-card,
  html[data-theme="system"] .data-card,
  html[data-theme="system"] .pipeline,
  html[data-theme="system"] .metrics article,
  html[data-theme="system"] .modal-card,
  html[data-theme="system"] .progress-card {
    color: var(--dark-text); background: var(--dark-surface); border-color: var(--dark-border);
  }
  html[data-theme="system"] input,
  html[data-theme="system"] select,
  html[data-theme="system"] textarea,
  html[data-theme="system"] .search,
  html[data-theme="system"] .lead-filters select {
    color: var(--dark-text) !important;
    background: var(--dark-control) !important;
    border-color: var(--dark-border) !important;
  }
  html[data-theme="system"] input::placeholder,
  html[data-theme="system"] textarea::placeholder { color: #66758c; }
  html[data-theme="system"] input:disabled {
    color: #9aa6b8 !important; background: #151e2b !important; opacity: 1;
  }
  html[data-theme="system"] input:focus,
  html[data-theme="system"] select:focus,
  html[data-theme="system"] textarea:focus,
  html[data-theme="system"] .search:focus-within {
    border-color: #657cf4 !important;
    box-shadow: 0 0 0 3px rgba(101, 124, 244, .16) !important;
  }
  html[data-theme="system"] input:-webkit-autofill {
    -webkit-text-fill-color: var(--dark-text);
    -webkit-box-shadow: 0 0 0 1000px var(--dark-control) inset !important;
  }
  html[data-theme="system"] .lead-filters,
  html[data-theme="system"] th { background: #0f1722; border-color: var(--dark-border); }
  html[data-theme="system"] td,
  html[data-theme="system"] .security-item { color: var(--dark-text); border-color: #243044; }
  html[data-theme="system"] .company div,
  html[data-theme="system"] .pipeline-row strong,
  html[data-theme="system"] .settings-card h2 { color: var(--dark-text); }
  html[data-theme="system"] .topbar p,
  html[data-theme="system"] .settings-card > p,
  html[data-theme="system"] .company small,
  html[data-theme="system"] td > small { color: var(--dark-muted); }
  html[data-theme="system"] .pipeline-row a {
    color: var(--dark-muted); background: var(--dark-raised); border-color: var(--dark-border);
  }
  html[data-theme="system"] .company > span { color: #b9c5d6; background: #233044; }
  html[data-theme="system"] .button.secondary {
    color: #dce3ed; background: var(--dark-raised); border-color: var(--dark-border);
  }
  html[data-theme="system"] .modal-close {
    color: #c5cfdd; background: #202c3d; border: 1px solid #34445a;
  }
}
.lead-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 18px 0 15px;
}
.lead-details + .quick-links { margin: 0 0 20px; flex-wrap: wrap; }
.detail-item {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}
.detail-item.wide-detail { grid-column: 1 / -1; }
.detail-item small { color: #8a94a5; font-size: 9px; font-weight: 700; letter-spacing: .07em; }
.detail-item strong { color: #354054; font-size: 12px; font-weight: 500; line-height: 1.45; }
html[data-theme="dark"] .detail-item {
  background: #0e1622;
  border-color: #29364a;
}
html[data-theme="dark"] .detail-item strong { color: #dfe6f0; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .detail-item { background: #0e1622; border-color: #29364a; }
  html[data-theme="system"] .detail-item strong { color: #dfe6f0; }
}
@media (max-width: 500px) {
  .lead-details { grid-template-columns: 1fr; }
  .detail-item.wide-detail { grid-column: auto; }
}
.capture-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.capture-modes label { cursor: pointer; }
.capture-modes input { position: absolute; opacity: 0; }
.capture-modes label > span { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.capture-modes small { color: #8993a3; font-size: 10px; font-weight: 400; }
.capture-modes input:checked + span { color: #425de1; border-color: #7183ed; background: #f5f7ff; box-shadow: 0 0 0 3px rgba(79,110,247,.09); }
.review-shell { width: min(900px, 92%); margin: 50px auto 110px; }
.review-head h1 { margin: 8px 0; font-size: 28px; }
.review-head p { color: var(--muted); margin: 0 0 25px; }
.review-list { display: grid; gap: 10px; }
.review-item { display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }
.review-item > input { position: absolute; opacity: 0; }
.checkmark { width: 22px; height: 22px; display: grid; place-items: center; color: transparent; border: 1px solid #b9c2d0; border-radius: 6px; }
.review-item > input:checked + .checkmark { color: white; border-color: #4f6ef7; background: #4f6ef7; }
.review-item:has(input:checked) { border-color: #8493ed; background: #fafbff; }
.company-letter { width: 42px; height: 42px; display: grid; place-items: center; color: #506078; background: #eef1f5; border-radius: 9px; font-weight: 700; }
.review-info { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px; }
.review-info strong,.review-info small { grid-column: 1 / -1; }
.review-info small,.review-info span { color: #8993a3; font-size: 11px; }
.review-item > a { color: #4f6ef7; font-size: 11px; }
.review-actions { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 16px 5%; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.review-actions span { color: #768195; font-size: 12px; }
html[data-theme="dark"] .capture-modes label > span,html[data-theme="dark"] .review-item { color: #e8edf5; background: #121a26; border-color: #29364a; }
html[data-theme="dark"] .capture-modes input:checked + span,html[data-theme="dark"] .review-item:has(input:checked) { color: #9aabff; background: #18243a; border-color: #657cf4; }
html[data-theme="dark"] .company-letter { color: #c1cbd9; background: #233044; }
html[data-theme="dark"] .review-actions { background: rgba(11,16,24,.94); border-color: #29364a; }
@media(prefers-color-scheme:dark){html[data-theme="system"] .capture-modes label>span,html[data-theme="system"] .review-item{color:#e8edf5;background:#121a26;border-color:#29364a}html[data-theme="system"] .review-actions{background:rgba(11,16,24,.94);border-color:#29364a}}
@media(max-width:600px){.capture-modes{grid-template-columns:1fr}.review-item{grid-template-columns:auto auto 1fr}.review-item>a{grid-column:3}.review-info{grid-template-columns:1fr}.review-info strong,.review-info small{grid-column:auto}.review-actions{justify-content:space-between}}

/* Capture review */
.review-page { min-height: 100vh; padding-bottom: 94px; background: #f4f6f9; }
.review-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1080px) / 2));
  background: #0d1728;
  border-bottom: 1px solid #243148;
}
.review-cancel { color: #9ba8bb; font-size: 12px; text-decoration: none; }
.review-cancel:hover { color: white; }
.review-content { width: min(1080px, 92%); margin: 0 auto; padding: 46px 0; }
.review-title { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.review-title h1 { margin: 8px 0 6px; color: #172033; font-size: 30px; }
.review-title p { margin: 0; color: #768195; }
.search-summary {
  min-width: 260px;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  background: white;
  border: 1px solid #e1e6ed;
  border-radius: 10px;
}
.search-summary small { color: #8b96a7; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.search-summary strong { color: #273245; font-size: 13px; }
.search-summary span { color: #8792a3; font-size: 11px; }
.review-page .review-list { gap: 12px; }
.review-page .review-item {
  min-height: 104px;
  padding: 18px 20px;
  border-color: #e1e6ed;
  box-shadow: 0 3px 12px rgba(28, 39, 58, .035);
}
.review-page .review-item:hover { border-color: #a9b4d8; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(28,39,58,.07); }
.review-page .review-info strong { color: #253044; font-size: 14px; }
.review-page .company-letter { width: 48px; height: 48px; background: #edf0ff; color: #5368d8; }
.review-empty { padding: 70px 20px; text-align: center; background: white; border: 1px dashed #d9dfe8; border-radius: 12px; }
.review-empty > span { color: #9aa5b5; font-size: 32px; }
.review-empty h3 { margin: 10px 0 5px; }
.review-empty p { margin: 0 0 20px; color: #8490a2; }
.review-page .review-actions {
  min-height: 76px;
  padding-left: max(28px, calc((100vw - 1080px) / 2));
  padding-right: max(28px, calc((100vw - 1080px) / 2));
  box-shadow: 0 -8px 30px rgba(20,31,48,.06);
}
html[data-theme="dark"] .review-page { background: #0b1018; }
html[data-theme="dark"] .review-title h1 { color: #edf1f7; }
html[data-theme="dark"] .search-summary { background: #121a26; border-color: #29364a; }
html[data-theme="dark"] .search-summary strong { color: #e5ebf3; }
html[data-theme="dark"] .review-page .review-item { background: #121a26; border-color: #29364a; box-shadow: 0 8px 25px rgba(0,0,0,.12); }
html[data-theme="dark"] .review-page .review-item:hover { background: #162131; border-color: #485976; }
html[data-theme="dark"] .review-page .review-info strong { color: #e8edf5; }
html[data-theme="dark"] .review-page .company-letter { background: #22304a; color: #aebcff; }
html[data-theme="dark"] .review-empty { background: #121a26; border-color: #344154; }
@media(prefers-color-scheme:dark){
  html[data-theme="system"] .review-page{background:#0b1018}
  html[data-theme="system"] .review-title h1{color:#edf1f7}
  html[data-theme="system"] .search-summary{background:#121a26;border-color:#29364a}
  html[data-theme="system"] .search-summary strong{color:#e5ebf3}
  html[data-theme="system"] .review-page .review-item{background:#121a26;border-color:#29364a}
  html[data-theme="system"] .review-page .review-info strong{color:#e8edf5}
  html[data-theme="system"] .review-page .company-letter{background:#22304a;color:#aebcff}
}
@media(max-width:700px){
  .review-topbar{padding:0 18px}.review-content{padding-top:30px}.review-title{align-items:stretch;flex-direction:column}.search-summary{min-width:0}
}
.select-cell { width: 42px; text-align: center; }
.lead-checkbox { width: 17px; height: 17px; accent-color: #4f6ef7; cursor: pointer; }
.no-phone { color: #a7b0be; }
.list-selection-bar { position: fixed; z-index: 35; left: calc(244px + 38px); right: 38px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; padding: 13px 16px 13px 20px; color: white; background: #172238; border: 1px solid #31405a; border-radius: 11px; box-shadow: 0 15px 40px rgba(0,0,0,.28); }
.workspace { margin: 0 auto; }
.list-selection-bar[hidden] { display: none; }
.list-selection-bar span { font-size: 12px; font-weight: 600; }
.lists-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.list-card { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: 20px; color: inherit; background: white; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; }
.list-card:hover { border-color: #9aa9ed; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(25,35,52,.07); }
.list-card h2 { margin: 0 0 4px; font-size: 15px; }.list-card p { margin: 0 0 10px; color: #8490a2; font-size: 11px; }.list-card strong { color: #4f6ef7; font-size: 11px; }
.table-action { color: #7185ff; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.list-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; white-space: nowrap; }
.list-row-actions form { margin: 0; }
.table-delete { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; color: #bd5863; background: transparent; border: 0; border-radius: 6px; font-size: 10px; font-weight: 700; cursor: pointer; }
.table-delete span { font-size: 15px; line-height: 10px; font-weight: 400; }
.table-delete:hover { color: #a93d49; background: #fff0f1; }
html[data-theme="dark"] .table-delete:hover { color: #ff9da8; background: #3a2027; }
@media(prefers-color-scheme:dark){html[data-theme="system"] .table-delete:hover{color:#ff9da8;background:#3a2027}}
html[data-theme="dark"] .list-card { background: #121a26; border-color: #29364a; }
@media(prefers-color-scheme:dark){html[data-theme="system"] .list-card{background:#121a26;border-color:#29364a}}
@media(max-width:760px){.list-selection-bar{left:16px;right:16px}.lists-grid{grid-template-columns:1fr}}
.whatsapp-badge { display: inline-flex; width: max-content; margin-top: 5px; padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; font-style: normal; background: #eef1f5; color: #768195; }
.whatsapp-badge.valid { color: #20865a; background: #e7f7ef; }
.whatsapp-badge.invalid { color: #b45560; background: #fff0f1; }
.whatsapp-badge.error { color: #b87a20; background: #fff5df; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
html[data-theme="dark"] .whatsapp-badge.unknown { color:#a4b0c2;background:#253145 }
html[data-theme="dark"] .whatsapp-badge.valid { color:#6ed6a3;background:#173d30 }
html[data-theme="dark"] .whatsapp-badge.invalid { color:#ef9aa3;background:#45242c }
html[data-theme="dark"] .whatsapp-badge.error { color:#edbe71;background:#44351e }
.notebook-shell { min-height: 100vh; display: grid; grid-template-columns: 300px 1fr; background: #f5f7fa; }
.notebook-sidebar { height: 100vh; position: sticky; top: 0; padding: 25px 18px; background: #101a2b; color: white; overflow-y: auto; }
.notebook-sidebar .back { color: #8593a8; }
.notebook-lead { display: flex; gap: 11px; align-items: center; margin: 28px 0 22px; padding-bottom: 20px; border-bottom: 1px solid #29364a; }
.notebook-lead div { min-width: 0; display: grid; }.notebook-lead small { color: #6f7e94; font-size: 8px; letter-spacing: .08em; }.notebook-lead strong { margin: 3px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.notebook-lead span { color: #8491a5; font-size: 10px; }
.page-list { display: grid; gap: 5px; margin-top: 20px; }.page-list > p { color: #748198; font-size: 11px; text-align: center; }
.page-list a { display: grid; grid-template-columns: auto 1fr; gap: 9px; padding: 11px; border-radius: 8px; color: #aeb8c8; text-decoration: none; }
.page-list a:hover,.page-list a.active { color: white; background: #1d2a3f; }.page-list a div { min-width: 0; display: grid; }.page-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.page-list small { color: #748198; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.page-status { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #d79a38; }.page-status.done { background: #3eba7d; }.page-status.archived { background: #718097; }
.notebook-editor { min-width: 0; padding: 45px max(35px,8%); }.notebook-form { display: grid; gap: 20px; max-width: 950px; margin: auto; }.notebook-toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; }
.notebook-form label { display: grid; gap: 7px; color: #536176; font-size: 11px; font-weight: 700; }.notebook-form input,.notebook-form select,.notebook-form textarea { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.notebook-form .page-title { padding: 4px 0; border: 0; background: transparent; font-size: 24px; font-weight: 700; }.page-content { min-height: 410px; line-height: 1.65; resize: vertical; }.notebook-empty { height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; }.notebook-empty>span { font-size: 38px; color: #98a4b5; }.notebook-empty h2 { margin: 10px 0 4px; }.notebook-empty p { color: #7d899b; }
html[data-theme="dark"] .notebook-shell,html[data-theme="dark"] .notebook-editor { background: #0b1018; }.notebook-shell .delete-link { margin-top: 20px; }
@media(prefers-color-scheme:dark){html[data-theme="system"] .notebook-shell,html[data-theme="system"] .notebook-editor{background:#0b1018}}
@media(max-width:750px){.notebook-shell{display:block}.notebook-sidebar{position:relative;width:100%;height:auto}.page-list{max-height:220px}.notebook-editor{padding:25px 16px}.notebook-toolbar{grid-template-columns:1fr}.page-content{min-height:300px}}
.lead-modal-layout { position: relative; z-index: 1; width: min(1040px, 96vw); display: grid; grid-template-columns: minmax(430px, 1.1fr) minmax(390px, .9fr); border-radius: 15px; overflow: hidden; box-shadow: 0 25px 70px rgba(0,0,0,.4); }
.lead-modal-layout > .modal-card { width: auto; max-height: 90vh; border-radius: 15px 0 0 15px; box-shadow: none; }
.notebook-sidecar { min-width: 0; height: 90vh; background: #0c1420; border-left: 1px solid #29364a; }
.notebook-sidecar iframe { width: 100%; height: 100%; display: block; border: 0; }
.embed-notebook { min-height: 100vh; padding: 25px; color: #e8edf5; background: #0c1420; }
.embed-notebook header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #273448; }
.embed-notebook h2 { margin: 4px 0 0; font-size: 17px; }
.embed-pages { display: flex; gap: 6px; padding: 14px 0; overflow-x: auto; }
.embed-pages a { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 7px 9px; color: #8f9caf; background: #121d2c; border: 1px solid #273448; border-radius: 7px; font-size: 10px; text-decoration: none; }
.embed-pages a.active { color: white; border-color: #6077eb; background: #1b2942; }
.embed-pages .page-status { display: inline-block; margin: 0; }
.embed-form { gap: 12px; }.embed-title { padding: 7px 0!important; border: 0!important; background: transparent!important; color: white!important; font-size: 20px; font-weight: 700; }
.embed-content { min-height: 230px!important; }.embed-empty { display: grid; justify-items: center; padding: 70px 10px; color: #8996aa; }
@media(max-width:850px){.lead-modal-layout{display:block;width:min(560px,96vw);max-height:92vh;overflow-y:auto}.lead-modal-layout>.modal-card{max-height:none;border-radius:15px 15px 0 0}.notebook-sidecar{height:620px;border-left:0;border-top:1px solid #29364a}}
.notebook-toolbar { grid-template-columns: 1fr auto; }
.book-pagination { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; padding: 14px 0; text-align: center; }
.book-pagination a { width: 34px; height: 32px; display: grid; place-items: center; color: #cbd4e1; background: #172335; border: 1px solid #2c3a50; border-radius: 7px; text-decoration: none; }
.book-pagination a:hover { border-color: #6077eb; }.book-pagination a.disabled { opacity: .3; pointer-events: none; }.book-pagination span { color: #8795aa; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.test-number-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }.test-number-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; }.test-number-form input { padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.validate-one { width: max-content; padding: 0; color: #7185ff; background: transparent; border: 0; font-size: 9px; cursor: pointer; }
.page-order { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -4px 0 12px; color: #7f8da2; font-size: 9px; }
.page-order form { display: flex; gap: 5px; }.page-order button { padding: 5px 7px; color: #aeb9ca; background: #172335; border: 1px solid #2b394e; border-radius: 5px; font-size: 8px; cursor: pointer; }.page-order button:disabled { opacity: .3; cursor: default; }
.page-tabs { display: flex; gap: 7px; padding: 14px 0 6px; overflow-x: auto; }
.page-tabs a { flex: 0 0 105px; display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: center; padding: 8px; color: #93a0b3; background: #131e2d; border: 1px solid #28364a; border-radius: 7px; text-decoration: none; cursor: grab; }
.page-tabs a b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: #202d40; font-size: 9px; }.page-tabs a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }.page-tabs a.active { color: white; border-color: #6178ec; background: #1a2840; }.page-tabs a.dragging { opacity: .35; }
.drag-hint { display: block; color: #66758b; font-size: 8px; }
.list-settings { margin-bottom: 18px; padding: 16px 18px; background: white; border: 1px solid var(--line); border-radius: 10px; }.list-settings summary { cursor: pointer; font-size: 12px; font-weight: 700; }.list-settings>.stack-form { margin-top: 18px; }.list-settings .delete-link { margin-top: 12px; }
html[data-theme="dark"] .list-settings { background: #121a26; border-color: #29364a; }
.manual-number { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; padding: 16px 18px; background: white; border: 1px solid var(--line); border-radius: 10px; }.manual-number h2 { margin: 0 0 3px; font-size: 14px; }.manual-number p { margin: 0; color: #8490a2; font-size: 10px; }.manual-number form { display: flex; gap: 8px; }.manual-number input { padding: 10px; border: 1px solid var(--line); border-radius: 7px; }.remove-item { color: #d55c68; background: transparent; border: 0; font-size: 10px; cursor: pointer; }
html[data-theme="dark"] .manual-number { background: #121a26; border-color: #29364a; }
@media(prefers-color-scheme:dark){html[data-theme="system"] .list-settings,html[data-theme="system"] .manual-number{background:#121a26;border-color:#29364a}}

/* Identidade visual */
.brand {
  width: 170px;
  height: 42px;
  flex: 0 0 auto;
  background: url("/static/branding/logo-escuro-web.png") left center / contain no-repeat;
  font-size: 0;
}
.brand > * { display: none; }
html[data-theme="dark"] .brand {
  background-image: url("/static/branding/logo-claro-web.png");
}
.sidebar .brand,
.auth-aside .brand,
.review-topbar .brand {
  background-image: url("/static/branding/logo-claro-web.png");
}
.brand-mark {
  background: url("/static/branding/icone-web.png") center / contain no-repeat;
  color: transparent;
  box-shadow: none;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .brand {
    background-image: url("/static/branding/logo-claro-web.png");
  }
}
@media(max-width:700px){.manual-number{align-items:stretch;flex-direction:column}.manual-number form{display:grid}}
.manual-number select { min-width: 320px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.table-pagination { display: flex; justify-content: center; align-items: center; gap: 13px; padding: 12px; border-top: 1px solid var(--line); }.table-pagination button { padding: 6px 9px; color: #8794a7; background: transparent; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; cursor: pointer; }.table-pagination button:disabled { opacity: .35; cursor: default; }.table-pagination span { color: #7f8b9e; font-size: 10px; }.listed-lock { color: #4f6ef7; font-weight: 700; cursor: help; }
.table-pagination { justify-content: space-between; }.table-pagination>div { display:flex;align-items:center;gap:13px }.table-pagination label { display:flex;align-items:center;gap:6px;color:#7f8b9e;font-size:10px }.table-pagination select { padding:5px 7px;border:1px solid var(--line);border-radius:5px;background:transparent;color:inherit }.list-detail-content { width: 100%; margin: 0; padding: 0; }
.list-toolbar { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }.list-toolbar .list-settings { flex: 1; margin: 0; }.add-leads-card { width: min(820px,96vw); }.modal-search { width: 100%; margin: 12px 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }.available-table { max-height: 430px; overflow: auto; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; }.available-table table { min-width: 650px; }
.page-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0 5px; }.page-picker input,.page-picker select { min-width: 0; padding: 9px; color: #dce4ef; background: #111b29; border: 1px solid #2a384d; border-radius: 7px; font-size: 9px; }
.page-organizer { margin: 0 0 13px; padding: 9px 10px; background: #101927; border: 1px solid #273448; border-radius: 7px; }.page-organizer summary { color: #9aa8bb; font-size: 9px; font-weight: 700; cursor: pointer; }.page-organizer>p { margin: 7px 0; color: #68778d; font-size: 8px; }
#page-order-list { display: grid; gap: 4px; max-height: 190px; overflow-y: auto; }#page-order-list>div { display: grid; grid-template-columns: 22px 1fr auto; gap: 7px; align-items: center; padding: 7px; color: #aab5c5; background: #172233; border: 1px solid #29374b; border-radius: 6px; cursor: grab; }#page-order-list b { width: 20px; height: 20px; display: grid; place-items: center; background: #233147; border-radius: 4px; font-size: 8px; }#page-order-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }#page-order-list i { color: #66758b; font-style: normal; }
@media(max-width:500px){.page-picker{grid-template-columns:1fr}}

.integration-heading,.campaign-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.connection-pill { display:inline-flex; align-items:center; gap:6px; flex:0 0 auto; padding:6px 10px; border-radius:999px; font-size:9px; font-weight:800; }
.connection-pill:before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px currentColor; opacity:.8; }
.connection-pill.connected { color:#1f8a5d; background:#e7f7ef; }.connection-pill.offline { color:#a66845; background:#fff4e9; }
.integration-warning { margin-top:18px; padding:12px; color:#9a632b; background:#fff6e8; border:1px solid #f3dfbe; border-radius:8px; font-size:10px; line-height:1.6; }
.whatsapp-connect-form { margin-top:22px; }
.qr-connection { display:grid; grid-template-columns:170px 1fr; align-items:center; gap:22px; margin-top:20px; padding:18px; background:#f8f6ff; border:1px solid #dfd4fa; border-radius:12px; }
.qr-connection[hidden] { display:none; }.qr-image { width:170px; min-height:170px; display:grid; place-items:center; overflow:hidden; color:#667085; background:#fff; border:1px solid #e5e0ef; border-radius:10px; font-size:8px; word-break:break-all; }
.qr-image img { width:100%; height:100%; object-fit:contain; }.qr-connection strong { font-size:14px; }.qr-connection p { margin:7px 0; color:#6f7a8d; font-size:11px; line-height:1.6; }.qr-connection small { color:#8d97a6; font-size:9px; }
.connection-details { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:18px; }.connection-details span { display:grid; gap:4px; padding:11px; color:#8a94a4; background:#f7f8fa; border-radius:8px; font-size:8px; }.connection-details strong { overflow:hidden; color:#344054; font-size:10px; text-overflow:ellipsis; }
.connection-actions { display:flex; align-items:center; gap:12px; margin-top:14px; }.disconnect-button { color:#bc5863; background:transparent; border:0; font-size:10px; cursor:pointer; }
.campaign-card { margin-bottom:18px; padding:24px; background:linear-gradient(145deg,#fff,#fbf9ff); border:1px solid #ded5f2; border-radius:14px; box-shadow:0 12px 35px rgba(64,42,100,.06); }
.campaign-head h2 { margin:5px 0 4px; font-size:18px; }.campaign-head p { margin:0; color:#7d8797; font-size:11px; }.campaign-head code { padding:2px 5px; color:#6740bd; background:#eee8fa; border-radius:4px; }
.campaign-form { display:grid; gap:16px; margin-top:20px; }.campaign-form>label { display:grid; gap:7px; font-size:11px; font-weight:700; }.campaign-form textarea { min-height:145px; padding:14px; border:1px solid #dcd7e7; border-radius:9px; resize:vertical; outline:0; }.campaign-form textarea:focus { border-color:#8468dd; box-shadow:0 0 0 3px rgba(116,74,213,.1); }.campaign-form label>small { justify-self:end; color:#8993a3; font-weight:400; }
.campaign-preview { padding:15px 17px; color:#2d3849; background:#f0ebff; border-left:3px solid #7541d8; border-radius:8px; }.campaign-preview small { color:#7957bd; font-size:7px; font-weight:800; letter-spacing:.1em; }.campaign-preview p { margin:8px 0 0; white-space:pre-wrap; font-size:11px; line-height:1.65; }
.delay-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.delay-fields label { display:grid; grid-template-columns:1fr auto; align-items:center; gap:5px; color:#596579; font-size:9px; }.delay-fields label>input { grid-column:1; grid-row:2; min-width:0; padding:10px; border:1px solid #dce1e9; border-radius:7px; }.delay-fields label>span { grid-column:2; grid-row:2; color:#8a95a5; }
.campaign-submit { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:15px; border-top:1px solid #e9e4f1; }.campaign-submit>div { display:grid; }.campaign-submit strong { font-size:11px; }.campaign-submit small { margin-top:3px; color:#8993a3; font-size:8px; }
.campaign-blocked { display:flex; align-items:center; gap:14px; margin-top:20px; padding:16px; background:#fff7ed; border:1px solid #f3dfc3; border-radius:10px; }.campaign-blocked>span { width:34px; height:34px; display:grid; place-items:center; color:#a66a2e; background:#ffead1; border-radius:9px; }.campaign-blocked>div { display:grid; flex:1; }.campaign-blocked strong { font-size:11px; }.campaign-blocked p { margin:3px 0 0; color:#907d68; font-size:9px; }
.campaign-history { margin-bottom:18px; padding:20px; background:#fff; border:1px solid var(--line); border-radius:12px; }.campaign-history-list { display:grid; gap:8px; margin-top:14px; }.campaign-history-list article { display:grid; grid-template-columns:90px 1fr minmax(100px,1.4fr) 55px; align-items:center; gap:12px; padding:11px; background:#f8f9fb; border-radius:8px; }.campaign-history-list article>div { display:grid; }.campaign-history-list strong { font-size:9px; }.campaign-history-list small { color:#8792a3; font-size:7px; }.campaign-status { width:max-content; padding:4px 7px; border-radius:10px; color:#6a7485; background:#e9edf2; font-size:7px; font-weight:800; }.campaign-status.processing { color:#6243bd; background:#eee9ff; }.campaign-status.completed { color:#21855a; background:#e6f7ef; }.campaign-status.failed { color:#ae4b57; background:#ffebed; }
.campaign-progress { height:5px; overflow:hidden; background:#e2e5eb; border-radius:5px; }.campaign-progress i { display:block; height:100%; background:linear-gradient(90deg,#6840dc,#9368ee); border-radius:inherit; }
html[data-theme="dark"] .qr-connection,html[data-theme="dark"] .campaign-card { background:#151d2a; border-color:#344056; }.qr-connection,.campaign-card { color:inherit; }
html[data-theme="dark"] .connection-details span,html[data-theme="dark"] .campaign-history-list article { background:#182231; }.campaign-history { color:inherit; }
html[data-theme="dark"] .connection-details strong,html[data-theme="dark"] .campaign-preview { color:#dbe3ef; }.campaign-preview { color:inherit; }
html[data-theme="dark"] .campaign-preview { background:#282044; }.campaign-history { background:inherit; }
@media(prefers-color-scheme:dark){html[data-theme="system"] .qr-connection,html[data-theme="system"] .campaign-card{background:#151d2a;border-color:#344056}html[data-theme="system"] .connection-details span,html[data-theme="system"] .campaign-history-list article{background:#182231}html[data-theme="system"] .connection-details strong,html[data-theme="system"] .campaign-preview{color:#dbe3ef}html[data-theme="system"] .campaign-preview{background:#282044}}
@media(max-width:700px){.integration-heading,.campaign-head,.campaign-submit,.campaign-blocked{align-items:stretch;flex-direction:column}.qr-connection{grid-template-columns:1fr}.qr-image{margin:auto}.connection-details,.delay-fields{grid-template-columns:1fr}.campaign-history-list article{grid-template-columns:1fr}.campaign-submit .button,.campaign-blocked .button{width:100%}}
