:root {
  --ink: #142039;
  --muted: #6f7b91;
  --line: #e1e7f0;
  --surface: #fff;
  --canvas: #f4f6f9;
  --navy: #101c35;
  --navy-soft: #192946;
  --blue: #3164f4;
  --blue-dark: #234dcc;
  --mint: #188660;
  --amber: #c9821a;
  --danger: #c6535c;
  --sidebar-width: 278px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 6px;
  color: #8994a8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.25px;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 28px 18px 20px;
  background: var(--navy);
  color: #fff;
}

.brand,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand {
  padding: 0 10px 29px;
}

.brand > span,
.auth-brand > span {
  display: grid;
  place-items: center;
  border-radius: 10px 10px 10px 4px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 9px 22px rgba(49, 100, 244, 0.32);
  font-weight: 800;
}

.brand > span {
  width: 34px;
  height: 34px;
  font-size: 17px;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  color: #fff;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.55px;
  line-height: 1.05;
}

.brand-copy small {
  color: #8393b1;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.main-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  padding: 11px 12px;
  background: transparent;
  color: #aeb8cd;
  font-size: 14px;
  font-weight: 630;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: var(--navy-soft);
  color: #fff;
}

.nav-item > span {
  width: 20px;
  color: #8fa0bd;
  font-size: 22px;
  text-align: center;
}

.nav-item small {
  margin-left: auto;
  border-radius: 999px;
  padding: 2px 7px;
  background: #263756;
  font-size: 10px;
}

.sidebar-stages {
  margin-top: 29px;
  padding: 0 6px;
}

.sidebar-stages > p {
  margin: 0 0 10px 7px;
  color: #72819c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-stages button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 8px 7px;
  background: transparent;
  color: #aeb8cd;
  font-size: 12px;
  text-align: left;
}

.sidebar-stages button:hover {
  color: #fff;
}

.sidebar-stages button strong {
  margin-left: auto;
  color: #7888a4;
  font-size: 10px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot.new {
  background: #8491a9;
}

.dot.contact {
  background: #e8ad4d;
}

.dot.won {
  background: #42c68d;
}

.dot.lost {
  background: #d86a73;
}

.dot.sold {
  background: #5ad2a0;
}

.sidebar-goal {
  margin-top: 20px;
  padding: 0 6px;
}

.sidebar-goal > p {
  margin: 0 0 10px 7px;
  color: #72819c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.goal-card {
  display: block;
  border: 1px solid #2b3d5c;
  border-radius: 12px;
  padding: 13px 12px;
  background: linear-gradient(180deg, #182743 0%, #14223d 100%);
}

.goal-bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #243554;
}

.goal-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ad2a0 0%, #88e3b6 100%);
  box-shadow: 0 0 18px rgba(90, 210, 160, 0.35);
}

.seller-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  border: 1px solid #2b3d5c;
  border-radius: 10px;
  padding: 10px;
  background: #182743;
}

.seller-card > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #315fe3;
  font-size: 9px;
  font-weight: 800;
}

.seller-card div {
  display: grid;
  gap: 2px;
}

.seller-card strong {
  font-size: 9.5px;
}

.seller-card small {
  color: #8796af;
  font-size: 8px;
}

.sidebar-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.sidebar-actions a,
.sidebar-actions button {
  flex: 1;
  border: 1px solid #2a3b59;
  border-radius: 8px;
  padding: 8px;
  background: #14223d;
  color: #91a0ba;
  font-size: 9px;
  text-align: center;
  text-decoration: none;
}

.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 0 44px 56px;
}

.topbar {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.55px;
}

.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #69758a;
  box-shadow: 0 2px 7px rgba(19, 31, 55, 0.04);
  font-size: 11px;
  text-decoration: none;
}

.connection > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d39b42;
}

.connection.connected > span {
  background: #2ca875;
}

.search-hero {
  overflow: hidden;
  border-radius: 16px;
  padding: 44px 42px 24px;
  background:
    radial-gradient(circle at 88% 8%, rgba(76, 115, 238, 0.28), transparent 26%),
    linear-gradient(135deg, #11203d, #172b53);
  color: #fff;
  box-shadow: 0 20px 50px rgba(20, 35, 65, 0.13);
}

.hero-kicker {
  color: #91aaf1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.search-hero h2 {
  max-width: 720px;
  margin: 10px 0 10px;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -2.2px;
}

.search-hero > div > p {
  max-width: 680px;
  margin: 0;
  color: #b5c1d9;
  font-size: 14px;
  line-height: 1.6;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 11px;
  margin-top: 31px;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.search-form label,
.auth-form label,
.install-form label,
.settings-form label {
  display: grid;
  gap: 6px;
  color: #5c687c;
  font-size: 11px;
  font-weight: 700;
}

.search-form label > span {
  color: #aebbd2;
  font-size: 9px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  outline: 0;
  padding: 0 12px;
  background: #fff;
  color: #26344d;
}

input,
select {
  height: 43px;
}

textarea {
  padding-top: 11px;
  padding-bottom: 11px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #85a2f5;
  box-shadow: 0 0 0 3px rgba(49, 100, 244, 0.1);
}

.search-button,
.primary-button {
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--blue);
  color: #fff;
  font-weight: 720;
}

.search-button {
  min-width: 165px;
  align-self: end;
  height: 43px;
}

.search-button:disabled,
.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.search-suggestions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.suggestion-group {
  display: grid;
  gap: 8px;
}

.suggestion-group > span {
  color: #aebbd2;
  font-size: 9px;
  font-weight: 700;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef3ff;
  font-size: 10px;
  font-weight: 700;
}

.suggestion-chip:hover {
  border-color: rgba(132, 170, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

.suggestion-chip.city-chip {
  color: #cbe6d7;
}

.search-hero > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 17px;
  color: #8fa1c1;
  font-size: 10px;
}

.results-section,
.getting-started {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-heading h3,
.getting-started h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.5px;
}

.section-heading > div > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.secondary-button {
  border: 1px solid #d9e1ef;
  border-radius: 8px;
  padding: 9px 13px;
  background: #fff;
  color: #3557a8;
  font-size: 10px;
  font-weight: 700;
}

.notice {
  margin-bottom: 13px;
  border: 1px solid #eadbb8;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff9eb;
  color: #805e23;
  font-size: 10px;
}

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

.result-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(20, 32, 57, 0.035);
}

.result-title-row,
.result-company,
.card-footer,
.script-person {
  display: flex;
  align-items: center;
}

.result-title-row,
.card-footer {
  justify-content: space-between;
  gap: 15px;
}

.result-company {
  min-width: 0;
  gap: 10px;
}

.company-avatar,
.table-company > span,
.drawer-company > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #e9effd;
  color: #3e5da6;
  font-weight: 800;
}

.company-avatar {
  width: 38px;
  height: 38px;
  font-size: 11px;
}

.tone-1 {
  background: #e7f4ef;
  color: #287659;
}

.tone-2 {
  background: #fff0db;
  color: #9b6418;
}

.tone-3 {
  background: #f2eafa;
  color: #78559a;
}

.result-company h4 {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  letter-spacing: -0.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-company p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.opportunity-score {
  display: grid;
  min-width: 52px;
  place-items: center;
  border-radius: 9px;
  padding: 7px;
  font-size: 15px;
  font-weight: 800;
}

.opportunity-score small {
  margin-top: 1px;
  font-size: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.opportunity-score.high {
  background: #e6f5ee;
  color: #1c7f58;
}

.opportunity-score.medium {
  background: #fff1d9;
  color: #a16a18;
}

.opportunity-score.low {
  background: #eef1f5;
  color: #6d788b;
}

.company-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 15px 0 12px;
  color: #69758a;
  font-size: 9px;
}

.company-facts a {
  color: #33415c;
  text-decoration: none;
}

.sales-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.sales-signals span {
  border: 1px solid #dfe7f5;
  border-radius: 999px;
  padding: 5px 8px;
  background: #f6f8fc;
  color: #56657c;
  font-size: 7.5px;
  font-weight: 650;
}

.sales-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.sales-brief > div {
  border-radius: 8px;
  padding: 10px 11px;
  background: #f6f8fb;
}

.sales-brief .call-opener {
  background: #edf2ff;
}

.sales-brief span,
.script-label {
  display: block;
  margin-bottom: 4px;
  color: #8590a2;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sales-brief p,
.script-step p,
.script-step li,
.objection-grid p,
.script-close p {
  margin: 0;
  color: #4a5870;
  font-size: 8.5px;
  line-height: 1.5;
}

.playbook-disclosure,
.drawer-playbook {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #dce5f5;
  border-radius: 9px;
  background: #fbfcff;
}

.playbook-disclosure > summary,
.drawer-playbook > summary {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  background: linear-gradient(135deg, #f5f8ff, #eef3ff);
  color: #2f4d8f;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.playbook-disclosure > summary > span {
  display: grid;
  gap: 2px;
}

.playbook-disclosure > summary strong,
.drawer-playbook > summary strong {
  font-size: 9px;
}

.playbook-disclosure > summary small {
  color: #7586aa;
  font-size: 7px;
}

.playbook-disclosure > summary b,
.drawer-playbook > summary span {
  flex: 0 0 auto;
  font-size: 7px;
}

.playbook-disclosure[open] > summary,
.drawer-playbook[open] > summary {
  border-bottom: 1px solid #dce5f5;
}

.call-script {
  padding: 13px;
  background: #fff;
}

.script-person {
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e8ecf3;
  padding-bottom: 11px;
}

.script-person > span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #14274b;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.script-person > div {
  display: grid;
  gap: 2px;
}

.script-person strong {
  font-size: 8.5px;
}

.script-person small {
  color: #818ca0;
  font-size: 7px;
  line-height: 1.35;
}

.script-person a {
  margin-left: auto;
  color: #315bd0;
  font-size: 7px;
  font-weight: 700;
  text-decoration: none;
}

.research-brief {
  margin-bottom: 12px;
  border: 1px solid #dce9e3;
  border-radius: 8px;
  padding: 10px 11px;
  background: #f2f8f5;
}

.research-brief ul,
.script-step ul {
  margin: 0;
  padding-left: 15px;
}

.research-brief li {
  margin-bottom: 5px;
  color: #4b596f;
  font-size: 8px;
  line-height: 1.45;
}

.research-brief a {
  color: #26765a;
  font-weight: 700;
  text-decoration: none;
}

.script-flow,
.objection-grid {
  display: grid;
  gap: 7px;
}

.script-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  padding: 10px;
}

.script-step.accent {
  border-color: #d7e1f8;
  background: #f6f8ff;
}

.script-step.offer {
  border-color: #d6e9e0;
  background: #f5faf7;
}

.step-number {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 6px;
  background: #e8eefc;
  color: #315bd0;
  font-size: 7px;
  font-weight: 800;
}

.google-argument {
  margin-top: 8px !important;
  border-top: 1px solid #dce9e2;
  padding-top: 8px;
}

.objection-section,
.case-studies {
  margin-top: 13px;
}

.company-proof {
  display: grid;
  gap: 5px;
  margin-top: 13px;
  border: 1px solid #e6ddc8;
  border-radius: 8px;
  padding: 11px;
  background: #fffaf0;
}

.company-proof strong {
  color: #4a3b20;
  font-size: 9px;
}

.company-proof p {
  margin: 0;
  color: #625943;
  font-size: 8px;
  line-height: 1.5;
}

.company-proof small {
  color: #8c7a50;
  font-size: 7px;
  font-weight: 700;
}

.objection-grid details {
  border: 1px solid #e4e8ef;
  border-radius: 7px;
  background: #fafbfc;
}

.objection-grid summary {
  padding: 9px 10px;
  color: #3f4e66;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.objection-grid p {
  border-top: 1px solid #e4e8ef;
  padding: 9px 10px;
}

.script-close {
  margin-top: 13px;
  border-radius: 8px;
  padding: 10px 11px;
  background: #172a4d;
}

.script-close .script-label {
  color: #9eb0d3;
}

.script-close p {
  color: #f0f4fb;
}

.case-studies > div:first-child {
  display: grid;
  gap: 1px;
  margin-bottom: 7px;
}

.case-studies > div:first-child small {
  color: #8a94a5;
  font-size: 7px;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.case-study-grid a {
  display: grid;
  gap: 4px;
  border: 1px solid #e2e7ef;
  border-radius: 7px;
  padding: 9px;
  color: inherit;
  text-decoration: none;
}

.case-study-grid strong {
  font-size: 8px;
}

.case-study-grid span {
  color: #7a8598;
  font-size: 7px;
  line-height: 1.4;
}

.case-study-grid small {
  color: #315bd0;
  font-size: 7px;
  font-weight: 700;
}

.script-disclaimer {
  margin: 11px 0 0;
  color: #929bab;
  font-size: 6.8px;
  line-height: 1.45;
}

.review-snippet {
  margin-bottom: 10px;
  border: 1px solid #e6e9ef;
  border-left: 3px solid #f2b34c;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fffdfa;
}

.review-snippet strong {
  color: #df9c2c;
  font-size: 8px;
}

.review-snippet p {
  margin: 5px 0;
  color: #586378;
  font-size: 8.5px;
  font-style: italic;
  line-height: 1.5;
}

.review-snippet small {
  color: #8b95a6;
  font-size: 7px;
}

.sales-caution {
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff1dc;
  color: #875f21;
  font-size: 8px;
}

.card-footer {
  border-top: 1px solid #edf0f4;
  padding-top: 12px;
}

.card-footer a {
  color: #315bd0;
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
}

.card-footer button {
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: #315fe3;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.card-footer button:disabled {
  background: #e7ebf1;
  color: #778396;
}

.google-attribution {
  display: flex;
  gap: 11px;
  margin-top: 15px;
  border-top: 1px solid #e1e6ed;
  padding-top: 13px;
  color: #818b9d;
  font-size: 8px;
  line-height: 1.5;
}

.getting-started {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 32px;
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.steps article {
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
  background: #fff;
}

.steps article > span {
  color: #315bd0;
  font-size: 10px;
  font-weight: 800;
}

.steps h4 {
  margin: 20px 0 7px;
  font-size: 13px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 17px;
}

.metric-grid article {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
  background: #fff;
}

.metric-grid span {
  color: var(--muted);
  font-size: 9px;
}

.metric-grid strong {
  font-size: 24px;
}

.crm-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.crm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
}

.status-tabs,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-tabs button {
  min-height: 55px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #7b8698;
  font-size: 9px;
  font-weight: 700;
}

.status-tabs button.active {
  border-color: #315fe3;
  color: #315fe3;
}

.toolbar-actions input {
  width: 235px;
  height: 34px;
  font-size: 9px;
}

.toolbar-actions button {
  height: 34px;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  background: #fff;
  color: #536179;
  font-size: 9px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid #eef1f5;
  padding: 13px 14px;
  color: #536078;
  font-size: 9px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #fafbfd;
  color: #8a94a5;
  font-size: 7px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

td > strong,
td > small {
  display: block;
}

td > small,
.table-company small {
  margin-top: 3px;
  color: #929bac;
  font-size: 7px;
}

td a {
  color: #315bd0;
  text-decoration: none;
}

.table-company {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 9px;
}

.table-company > span {
  width: 32px;
  height: 32px;
  font-size: 8px;
}

.table-company > div {
  display: grid;
}

.table-score {
  color: #2a795d;
  font-weight: 800;
}

.status-select {
  width: auto;
  min-width: 125px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 25px 0 9px;
  font-size: 8px;
  font-weight: 700;
}

.status-select.new {
  background: #edf0f4;
  color: #647087;
}

.status-select.contact {
  background: #fff1da;
  color: #9a6517;
}

.status-select.won {
  background: #e4f4ec;
  color: #277557;
}

.status-select.lost {
  background: #f8e9eb;
  color: #a64e58;
}

.status-select.sold {
  background: #dcf6ea;
  color: #217255;
}

.row-action {
  width: 29px;
  height: 29px;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  background: #fff;
  color: #315bd0;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  color: #8893a5;
  text-align: center;
}

.empty-state > span {
  font-size: 30px;
}

.empty-state h3 {
  margin: 13px 0 5px;
  color: #34425a;
}

.empty-state p {
  margin: 0;
  font-size: 10px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 20, 37, 0.38);
  backdrop-filter: blur(2px);
}

.lead-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(620px, 96vw);
  overflow-y: auto;
  padding: 38px 32px;
  background: #fff;
  box-shadow: -20px 0 60px rgba(13, 25, 48, 0.2);
}

.drawer-open {
  overflow: hidden;
}

.close-button {
  position: absolute;
  top: 18px;
  right: 19px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #dfe5ed;
  border-radius: 50%;
  background: #fff;
  color: #7c8798;
  font-size: 20px;
}

.drawer-company {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0 20px;
}

.drawer-company > span {
  width: 47px;
  height: 47px;
  font-size: 11px;
}

.drawer-company h2 {
  margin: 0;
  font-size: 20px;
}

.drawer-company p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.drawer-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-facts a {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e3e8ef;
  border-radius: 9px;
  padding: 11px;
  color: inherit;
  text-decoration: none;
}

.drawer-facts a > span {
  color: #315bd0;
}

.drawer-facts small,
.drawer-facts strong {
  display: block;
}

.drawer-facts small {
  margin-bottom: 3px;
  color: #8c96a7;
  font-size: 7px;
}

.drawer-facts strong {
  font-size: 9px;
}

.drawer-intelligence {
  margin: 18px 0;
  border: 1px solid #dfe6f3;
  border-radius: 10px;
  padding: 14px;
  background: #f7f9fd;
}

.drawer-intelligence > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-intelligence > div:first-child span {
  color: #8490a3;
  font-size: 8px;
  text-transform: uppercase;
}

.drawer-intelligence > div:first-child strong {
  font-size: 16px;
}

.drawer-intelligence > div:first-child small {
  margin-left: auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: #e5ecfd;
  color: #365bb5;
  font-size: 7px;
}

.score-track {
  height: 5px;
  margin: 11px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4b75f4, #28a879);
}

.drawer-intelligence p {
  margin: 8px 0 0;
  color: #4b5870;
  font-size: 9px;
  line-height: 1.5;
}

.drawer-playbook {
  margin: 0 0 20px;
}

.drawer-playbook > summary {
  padding: 13px 14px;
}

.drawer-playbook .call-script {
  padding: 15px;
}

.drawer-playbook .script-step p,
.drawer-playbook .script-step li,
.drawer-playbook .objection-grid p,
.drawer-playbook .script-close p {
  font-size: 9.5px;
}

.drawer-field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.drawer-field > span {
  color: #6e798d;
  font-size: 9px;
  font-weight: 700;
}

#drawerSave {
  width: 100%;
  height: 43px;
  margin-top: 15px;
}

.contact-cell {
  display: grid;
  gap: 4px;
}

.contact-cell a {
  color: #315bd0;
  font-size: 9px;
  text-decoration: none;
}

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

.drawer-delete {
  width: 100%;
  height: 40px;
  margin-top: 10px;
  border: 1px solid #efcaca;
  border-radius: 8px;
  background: #fff8f8;
  color: #b33f45;
  font-size: 11px;
  font-weight: 700;
}

.drawer-delete:hover {
  background: #ffeded;
}

.drawer-delete:disabled {
  cursor: wait;
  opacity: 0.6;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 23px;
  z-index: 90;
  max-width: 360px;
  border-radius: 9px;
  padding: 12px 15px;
  background: #16233d;
  color: #fff;
  box-shadow: 0 14px 35px rgba(12, 24, 46, 0.22);
  font-size: 10px;
}

.auth-page,
.settings-page {
  min-height: 100vh;
  padding: 30px 16px;
  background:
    radial-gradient(circle at 15% 15%, rgba(69, 104, 214, 0.24), transparent 30%),
    #101c35;
}

.auth-card,
.settings-card {
  width: min(100%, 430px);
  margin: 4vh auto;
  border-radius: 16px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(5, 15, 35, 0.3);
}

.install-card,
.settings-card {
  width: min(100%, 680px);
}

.auth-brand {
  margin-bottom: 28px;
  font-size: 20px;
}

.auth-brand > span {
  width: 36px;
  height: 36px;
}

.auth-card h1,
.settings-card h1 {
  margin: 0;
  font-size: 28px;
}

.auth-intro {
  margin: 10px 0 23px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.requirements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
}

.requirements-list span {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 8px;
  font-weight: 700;
}

.requirements-list .ready {
  background: #e6f5ee;
  color: #277557;
}

.requirements-list .missing {
  background: #f9e8ea;
  color: #a44a55;
}

.auth-form,
.install-form,
.settings-form {
  display: grid;
  gap: 15px;
}

.auth-form .primary-button,
.install-form .primary-button,
.settings-form .primary-button {
  height: 44px;
}

.auth-foot {
  margin: 22px 0 0;
  color: #99a2b0;
  font-size: 9px;
  text-align: center;
}

fieldset {
  display: grid;
  gap: 13px;
  margin: 0;
  border: 1px solid #e2e7ef;
  border-radius: 10px;
  padding: 17px;
}

legend {
  padding: 0 7px;
  color: #374763;
  font-size: 11px;
  font-weight: 800;
}

fieldset > small {
  color: #8993a4;
  font-size: 9px;
  line-height: 1.5;
}

.form-error,
.form-success {
  margin: 15px 0;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 10px;
  line-height: 1.5;
}

.form-error {
  background: #fbeaec;
  color: #99414c;
}

.form-success {
  background: #e7f5ee;
  color: #287357;
}

.back-link {
  display: inline-block;
  margin-bottom: 27px;
  color: #315bd0;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.settings-form {
  margin-top: 25px;
}

.check-label {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px !important;
  font-weight: 500 !important;
}

.check-label input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

@media (max-width: 1000px) {
  .workspace {
    padding-right: 24px;
    padding-left: 24px;
  }

  .getting-started {
    grid-template-columns: 1fr;
  }

  .crm-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .status-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .status-tabs button {
    min-height: 34px;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions input {
    flex: 1;
  }
}

@media (max-width: 820px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 62px;
    flex-direction: row;
    align-items: center;
    padding: 9px 14px;
  }

  .brand {
    padding: 0;
  }

  .brand > span {
    width: 31px;
    height: 31px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .main-nav {
    display: flex;
    margin-left: auto;
  }

  .nav-item {
    width: auto;
    padding: 8px 10px;
    font-size: 11px;
  }

  .nav-item > span,
  .nav-item small,
  .sidebar-stages,
  .sidebar-goal,
  .seller-card,
  .sidebar-actions {
    display: none;
  }

  .workspace {
    margin-left: 0;
    padding: 0 16px 40px;
  }

  .topbar {
    min-height: 76px;
  }

  .connection {
    padding: 8px 10px;
  }

  .connection b {
    display: none;
  }

  .search-hero {
    padding: 30px 22px 21px;
  }

  .search-form,
  .result-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .brand-copy strong,
  .brand-copy small {
    display: none;
  }

  .search-hero h2 {
    font-size: 30px;
    letter-spacing: -1.2px;
  }

  .sales-brief,
  .steps,
  .case-study-grid,
  .drawer-facts {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .card-footer,
  .playbook-disclosure > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .secondary-button,
  .card-footer button {
    width: 100%;
  }

  .script-person {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .script-person a {
    width: 100%;
    margin-left: 37px;
  }

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

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

  .toolbar-actions input,
  .toolbar-actions button {
    width: 100%;
  }

  .lead-drawer {
    padding: 36px 18px;
  }

  .auth-card,
  .settings-card {
    padding: 25px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tryb rozmowy: większa typografia i pełna szerokość otwartego scenariusza. */
.result-card:has(.playbook-disclosure[open]) {
  grid-column: 1 / -1;
}

.result-card:has(.playbook-disclosure[open]) .call-script {
  max-width: 1180px;
}

.result-title-row h4 {
  font-size: 16px;
}

.result-title-row p,
.company-facts {
  font-size: 12px;
}

.sales-signals span {
  font-size: 10.5px;
}

.sales-brief span {
  font-size: 10.5px;
}

.sales-brief p {
  font-size: 13px;
  line-height: 1.58;
}

.playbook-disclosure > summary,
.drawer-playbook > summary {
  padding: 15px 16px;
}

.playbook-disclosure > summary strong,
.drawer-playbook > summary strong {
  font-size: 14px;
}

.playbook-disclosure > summary small,
.playbook-disclosure > summary b,
.drawer-playbook > summary span {
  font-size: 11.5px;
}

.call-script,
.drawer-playbook .call-script {
  padding: 20px;
}

.script-person {
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.script-person > span {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.script-person strong {
  font-size: 14px;
}

.script-person small,
.script-person a {
  font-size: 11.5px;
}

.script-label {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.55px;
}

.research-brief,
.script-step,
.company-proof,
.follow-up-tools > div {
  border-radius: 10px;
  padding: 15px 16px;
}

.script-flow,
.objection-grid {
  gap: 10px;
}

.script-step-grid,
.branch-body-grid,
.objection-answer-grid,
.script-close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.script-step {
  grid-template-columns: 32px 1fr;
  gap: 13px;
}

.script-main-frame,
.script-side-frame {
  border-radius: 10px;
  padding: 14px 15px;
}

.script-main-frame {
  border: 1px solid #d8e3fb;
  background: #f7faff;
}

.script-side-frame {
  border: 1px solid #e3e8f0;
  background: #fff;
}

.inline-frame {
  height: 100%;
}

.dark-frame {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.frame-label {
  display: block;
  margin-bottom: 8px;
  color: #6f7f9c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.dark-frame .frame-label {
  color: #c6d3f0;
}

.script-quote > * + *,
.script-side-frame > * + *,
.inline-frame > * + * {
  margin-top: 12px;
}

.script-side-frame ul {
  margin: 0;
  padding-left: 18px;
}

.script-side-frame li,
.script-side-frame p {
  margin: 0;
  color: #52617b;
  font-size: 13px;
  line-height: 1.58;
}

.dark-frame p {
  color: #eef3fb;
}

.step-number {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.script-step p,
.script-step li,
.research-brief li,
.script-close p,
.objection-grid p,
.drawer-playbook .script-step p,
.drawer-playbook .script-step li,
.drawer-playbook .objection-grid p,
.drawer-playbook .script-close p {
  font-size: 14px;
  line-height: 1.62;
}

.script-step li,
.research-brief li {
  margin-bottom: 8px;
}

.permission-question {
  margin-top: 12px !important;
  border-top: 1px solid #dbe4f8;
  padding-top: 12px;
  color: #294b91 !important;
}

.offer-detail {
  margin-top: 12px !important;
  border-top: 1px solid #dce9e2;
  padding-top: 12px;
}

.offer-detail.market-value {
  border: 1px solid #d5e4fb;
  border-radius: 8px;
  padding: 12px 13px;
  background: #eef4ff;
  color: #2d4f92;
}

.script-step.effortless {
  border-color: #d9e7fa;
  background: #f5f8fd;
}

.conversation-branches {
  margin-top: 20px;
  border: 1px solid #d6e1f7;
  border-radius: 10px;
  padding: 16px;
  background: #f7f9ff;
}

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

.branch-grid details {
  overflow: hidden;
  border: 1px solid #dce3ef;
  border-radius: 9px;
  background: #fff;
}

.branch-grid summary {
  list-style: none;
  padding: 13px 14px;
  color: #2e477d;
  font-size: 13.5px;
  font-weight: 720;
  line-height: 1.4;
  cursor: pointer;
}

.branch-grid details[open] summary {
  border-bottom: 1px solid #dce3ef;
  background: #edf3ff;
}

.branch-body {
  padding: 13px 14px;
}

.branch-body p {
  margin: 0;
  color: #46536a;
  font-size: 13.5px;
  line-height: 1.6;
}

.script-step.proof {
  border-color: #e6ddc8;
  background: #fffaf0;
}

.script-step.proof .step-number {
  background: #f5ead0;
  color: #8a631c;
}

.objection-section,
.case-studies,
.company-proof,
.follow-up-tools {
  margin-top: 20px;
}

.objection-grid summary {
  padding: 13px 14px;
  font-size: 13.5px;
}

.objection-grid p {
  padding: 13px 14px;
}

.script-close {
  margin-top: 20px;
  padding: 16px 17px;
}

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

.follow-up-tools > div {
  border: 1px solid #dfe6f2;
  background: #f7f9fd;
  display: grid;
  gap: 12px;
}

.follow-up-tools p {
  margin: 0;
  color: #46536a;
  font-size: 13.5px;
  line-height: 1.62;
}

.company-proof strong {
  font-size: 14px;
}

.company-proof p {
  font-size: 13.5px;
  line-height: 1.6;
}

.company-proof small {
  font-size: 11.5px;
}

.case-studies > div:first-child small {
  font-size: 11.5px;
}

.case-study-grid strong {
  font-size: 13px;
}

.case-study-grid span {
  font-size: 11.5px;
  line-height: 1.5;
}

.case-study-grid small {
  font-size: 11px;
}

.script-disclaimer {
  font-size: 10.5px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .call-script,
  .drawer-playbook .call-script {
    padding: 14px;
  }

  .follow-up-tools {
    grid-template-columns: 1fr;
  }

  .script-step-grid,
  .branch-body-grid,
  .objection-answer-grid,
  .script-close-grid {
    grid-template-columns: 1fr;
  }

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

  .drawer-contact-grid {
    grid-template-columns: 1fr;
  }

  .script-step p,
  .script-step li,
  .research-brief li,
  .script-close p,
  .objection-grid p {
    font-size: 13.5px;
  }
}
