:root {
  color-scheme: light;
  --deep-green: #0B5D4B;
  --primary-green: #1F8A70;
  --accent-green: #4CAF50;
  --light-bg: #F5F7F4;
  --charcoal: #17211C;
  --muted: #6B7280;
  --line: #DDE5DD;
  --line-strong: #C9D6CB;
  --panel: #FFFFFF;
  --panel-soft: #FAFCF9;
  --success-soft: #EAF7ED;
  --warning-soft: #FFF7E8;
  --danger: #B64035;
  --danger-soft: #FFF1EF;
  --blue: #2D5B86;
  --shadow-sm: 0 1px 2px rgba(23, 33, 28, 0.06);
  --shadow-md: 0 14px 34px rgba(23, 33, 28, 0.10);
  --shadow-lg: 0 24px 70px rgba(11, 93, 75, 0.14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(31, 138, 112, 0.08), transparent 310px),
    linear-gradient(90deg, rgba(11, 93, 75, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 93, 75, 0.045) 1px, transparent 1px),
    var(--light-bg);
  background-size: auto, 56px 56px, 56px 56px, auto;
  color: var(--charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; }
.is-hidden { display: none !important; }

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 56px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}
.brand-block { max-width: 720px; }
.brand-logo { width: min(270px, 72vw); height: auto; margin-bottom: 54px; filter: drop-shadow(0 14px 22px rgba(11, 93, 75, 0.13)); }
.auth-home-link { width: auto; margin-top: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--primary-green); font-size: 0.74rem; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.85rem, 7vw, 5.7rem); line-height: 0.96; letter-spacing: 0; }
h2 { margin: 0; font-size: 1.24rem; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 0.9rem; }
.lede { max-width: 660px; margin: 22px 0 0; color: var(--muted); font-size: 1.16rem; line-height: 1.6; }

.auth-card, .analysis-panel, .results-panel, .history-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 229, 221, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}
.auth-card { padding: 24px; box-shadow: var(--shadow-lg); }
.analysis-panel, .results-panel, .history-panel { padding: 20px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #EDF3EE; }
.segment { min-height: 42px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 780; transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.segment:hover { color: var(--charcoal); }
.segment.is-active { background: var(--panel); color: var(--deep-green); box-shadow: var(--shadow-sm); }

.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field span { color: #52615A; font-size: 0.84rem; font-weight: 780; }
.field input, .field textarea, .field select, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #FCFDFC;
  color: var(--charcoal);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.field input, .field select, select { height: 46px; padding: 0 13px; }
.field textarea { min-height: 96px; resize: vertical; padding: 13px; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus, select:focus { border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(31, 138, 112, 0.15); background: #fff; }

.primary, .ghost { min-height: 44px; border-radius: 8px; font-weight: 850; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.primary { width: 100%; border: 0; background: linear-gradient(135deg, var(--deep-green), var(--primary-green)); color: #fff; box-shadow: 0 10px 22px rgba(11, 93, 75, 0.18); }
.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(11, 93, 75, 0.22); }
.primary:disabled { cursor: wait; opacity: 0.65; transform: none; }
.ghost { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.9); color: var(--charcoal); padding: 0 14px; }
.ghost:hover { border-color: var(--primary-green); color: var(--deep-green); box-shadow: var(--shadow-sm); }
.form-message { min-height: 22px; margin: 12px 0 0; color: var(--danger); font-size: 0.9rem; }
.app-footer { padding: 0 18px 28px; color: var(--muted); font-size: 0.82rem; font-weight: 750; text-align: center; }

.public-site {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 54px;
}
.public-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(221, 229, 221, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  padding: 10px 12px;
}
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  font-size: 0.98rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}
.public-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(11, 93, 75, 0.14);
}
.public-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.public-links button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 11px;
  font-size: 0.86rem;
  font-weight: 850;
}
.public-links button:hover,
.public-links button.is-active {
  background: var(--success-soft);
  color: var(--deep-green);
}
.public-links .launch-button {
  border: 1px solid var(--deep-green);
  background: var(--deep-green);
  color: #fff;
  box-shadow: 0 10px 20px rgba(11, 93, 75, 0.16);
}
.public-links .launch-button:hover {
  background: var(--primary-green);
  color: #fff;
}
.public-page { padding: 72px 0 0; }
.hero-grid {
  display: grid;
  gap: 34px;
  align-items: start;
}
.hero-copy {
  max-width: 900px;
  padding-top: 18px;
}
.hero-copy .lede { max-width: 720px; }
.hero-copy h1,
.page-hero h1,
.content-page h1,
.contact-card h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.98;
  max-width: 1000px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.public-cta {
  width: auto;
  min-width: 150px;
  padding: 0 18px;
}
.hero-panel {
  border: 1px solid rgba(191, 216, 200, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 93, 75, 0.94), rgba(31, 138, 112, 0.88)),
    var(--deep-green);
  color: #fff;
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.hero-panel-head {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.hero-panel-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.hero-score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero-score-row div,
.signal-card,
.signal-list span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.hero-score-row div { padding: 14px; }
.hero-score-row small,
.signal-card span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
}
.hero-score-row strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}
.signal-card {
  margin-top: 12px;
  padding: 16px;
}
.signal-card p {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}
.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.signal-list span {
  padding: 9px 11px;
  font-size: 0.82rem;
  font-weight: 850;
}
.landing-section { margin-top: 82px; }
.section-intro {
  max-width: 760px;
  margin-bottom: 22px;
}
.section-intro h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.03;
}
.landing-grid,
.feature-grid,
.workflow-grid {
  display: grid;
  gap: 12px;
}
.three-up { grid-template-columns: repeat(3, 1fr); }
.four-up { grid-template-columns: repeat(4, 1fr); }
.feature-grid { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.landing-grid article,
.feature-grid article,
.workflow-grid article,
.contact-card,
.content-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}
.landing-grid article,
.feature-grid article,
.workflow-grid article {
  padding: 20px;
}
.landing-grid article p,
.feature-grid article p,
.content-page p,
.contact-card p {
  color: var(--muted);
  line-height: 1.6;
}
.icon-cards article::before {
  content: attr(data-icon);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid #BFD8C8;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--success-soft));
  color: var(--deep-green);
  font-size: 0.72rem;
  font-weight: 950;
}
.icon-cards h3 { font-size: 1rem; }
.workflow-grid {
  grid-template-columns: repeat(3, 1fr);
  counter-reset: workflow;
}
.workflow-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
}
.workflow-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  background: var(--deep-green);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
}
.workflow-grid h3 { margin: 0; font-size: 1rem; }
.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.output-grid span {
  border: 1px solid #BFD8C8;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--success-soft));
  color: var(--deep-green);
  padding: 13px 14px;
  font-size: 0.9rem;
  font-weight: 900;
}
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(191, 216, 200, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(11, 93, 75, 0.96), rgba(31, 138, 112, 0.9));
  color: #fff;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.final-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.08;
}
.final-cta .primary {
  background: #fff;
  color: var(--deep-green);
  box-shadow: none;
}
.page-hero,
.content-page,
.contact-card {
  max-width: 920px;
}
.content-page,
.contact-card {
  padding: 28px;
}
.content-page h2 {
  margin: 26px 0 8px;
  font-size: 1.35rem;
}
.content-page h2:first-of-type { margin-top: 12px; }
.content-page li {
  color: var(--muted);
}
.contact-card {
  margin: 58px auto 0;
  text-align: left;
}
.contact-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.contact-lines div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
}
.contact-lines span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  margin-bottom: 6px;
}
.contact-lines a,
.contact-lines strong {
  color: var(--deep-green);
  font-weight: 900;
  text-decoration: none;
}

.dashboard { width: min(1460px, calc(100% - 36px)); margin: 0 auto; padding: 26px 0 36px; }
.topbar, .section-head, .result-header, .user-strip, .app-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar { margin-bottom: 22px; padding: 14px 16px; border: 1px solid rgba(221, 229, 221, 0.9); border-radius: 8px; background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.app-brand { justify-content: flex-start; }
.app-brand img { width: 46px; height: 46px; border-radius: 8px; box-shadow: 0 12px 22px rgba(11, 93, 75, 0.16); }
.topbar h1 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
.user-strip { color: var(--muted); font-size: 0.92rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.metric { min-height: 104px; padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--primary-green); border-radius: 8px; background: linear-gradient(180deg, #fff, var(--panel-soft)); box-shadow: var(--shadow-sm); }
.metric:nth-child(2) { border-top-color: var(--deep-green); }
.metric:nth-child(3) { border-top-color: var(--accent-green); }
.metric span { display: block; color: var(--muted); font-size: 0.84rem; font-weight: 780; }
.metric strong { display: block; margin-top: 8px; color: var(--charcoal); font-size: 2.05rem; letter-spacing: 0; }
.workspace { display: grid; grid-template-columns: minmax(340px, 0.9fr) minmax(410px, 1.12fr) minmax(300px, 0.72fr); gap: 18px; align-items: start; }
.lead-head { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.lead-form, .profile-form { margin-top: 16px; }
.mode-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mode-selector label { position: relative; display: grid; min-height: 88px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 13px; cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.mode-selector input { position: absolute; opacity: 0; pointer-events: none; }
.mode-selector span { display: grid; gap: 6px; }
.mode-selector strong { color: var(--charcoal); font-size: 0.92rem; }
.mode-selector small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; font-weight: 750; }
.mode-selector label:has(input:checked) { border-color: var(--primary-green); background: linear-gradient(180deg, #fff, var(--success-soft)); box-shadow: 0 0 0 3px rgba(31, 138, 112, 0.11); }
.mode-help { margin: -2px 0 14px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.research-sources { margin: 2px 0 14px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fff, var(--panel-soft)); padding: 10px 12px; }
.research-sources summary { color: var(--deep-green); font-size: 0.88rem; font-weight: 900; cursor: pointer; }
.research-sources[open] summary { margin-bottom: 12px; }
.profile-switcher { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 16px; }
.selected-profile-summary { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fff, #F7FAF6); padding: 12px; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.profile-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.danger-action { border-color: #E5C5C0; background: var(--danger-soft); color: var(--danger); }
.danger-action:disabled { cursor: wait; opacity: 0.65; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status-pill, .category-badge { flex: 0 0 auto; border: 1px solid #BFD8C8; border-radius: 999px; padding: 6px 10px; color: var(--deep-green); background: var(--success-soft); font-size: 0.76rem; font-weight: 900; }
.category-badge { display: inline-flex; width: fit-content; margin-top: 10px; }
.empty-state { display: grid; place-items: center; min-height: 520px; text-align: center; }
.empty-state p { max-width: 360px; color: var(--muted); line-height: 1.45; }
.score-stack { display: grid; justify-items: center; gap: 8px; }
.score-stack span, .inline-message { color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.result-actions { display: flex; align-items: center; gap: 14px; }
.export-pdf { min-width: 116px; color: var(--deep-green); }
.result-actions .ghost { width: auto; }
.export-pdf:disabled, .export-lead-pdf:disabled { cursor: wait; opacity: 0.65; }
.score-ring { display: grid; place-items: center; width: 86px; height: 86px; flex: 0 0 86px; border: 8px solid #DDEBDD; border-top-color: var(--primary-green); border-right-color: var(--accent-green); border-radius: 50%; color: var(--deep-green); background: #fff; font-size: 1.75rem; font-weight: 950; box-shadow: inset 0 0 0 1px var(--line); }
.summary { margin: 18px 0; color: var(--muted); line-height: 1.55; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-grid article, .evidence { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: linear-gradient(180deg, #fff, var(--panel-soft)); box-shadow: var(--shadow-sm); }
.wide-card { grid-column: 1 / -1; }
.compact-action { width: auto; min-width: 140px; margin-top: 10px; padding: 0 16px; }
.outreach-grid { display: grid; gap: 12px; }
.outreach-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; }
.outreach-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.copy-button { min-height: 34px; padding: 0 10px; font-size: 0.78rem; }
.growth-score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.growth-score-card { border: 1px solid #CFE1D2; border-radius: 8px; background: linear-gradient(180deg, #fff, #F2F8F3); padding: 12px; }
.growth-score-card span, .growth-score-card small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.growth-score-card strong { display: inline-block; margin-top: 6px; color: var(--deep-green); font-size: 1.65rem; line-height: 1; }
.growth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.growth-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; }
.growth-card h4 { margin: 0 0 10px; font-size: 0.86rem; color: var(--charcoal); }
.structured-grid { display: grid; gap: 12px; }
.structured-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; }
.structured-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.structured-head h4 { margin: 0; font-size: 0.95rem; color: var(--charcoal); }
.structured-head span { flex: 0 0 auto; border-radius: 999px; background: var(--success-soft); color: var(--deep-green); padding: 5px 8px; font-size: 0.72rem; font-weight: 900; }
.structured-card p { margin: 0 0 9px; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.structured-card p:last-child { margin-bottom: 0; }
.structured-card strong { display: block; margin-bottom: 2px; color: var(--charcoal); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.source-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; }
.source-card-wide { grid-column: 1 / -1; }
.source-card h4 { margin: 0 0 10px; font-size: 0.86rem; color: var(--charcoal); }
.source-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
#lead-notes { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; background: #FCFDFC; color: var(--charcoal); padding: 13px; resize: vertical; outline: none; }
#lead-notes:focus { border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(31, 138, 112, 0.15); }
.breakdown-list { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.breakdown-item { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 0; }
.breakdown-item:last-child { border-bottom: 0; padding-bottom: 0; }
.breakdown-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.breakdown-top strong { font-size: 0.9rem; }
.breakdown-top span { color: var(--deep-green); font-size: 0.85rem; font-weight: 900; }
.progress-track { height: 8px; margin: 9px 0; overflow: hidden; border-radius: 999px; background: #DDEBDD; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-green), var(--accent-green)); }
.breakdown-item p, .detail-grid p { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
ul { margin: 0; padding-left: 18px; }
li { margin-bottom: 8px; line-height: 1.38; }
.evidence { margin-top: 12px; }
.evidence div { display: flex; flex-wrap: wrap; gap: 8px; }
.evidence span { border-radius: 999px; background: var(--success-soft); padding: 7px 10px; color: var(--deep-green); font-size: 0.82rem; font-weight: 800; }
.lead-list { display: grid; gap: 10px; margin-top: 16px; }
.lead-item { display: grid; gap: 10px; width: 100%; border: 1px solid var(--line); border-left: 4px solid var(--primary-green); border-radius: 8px; background: #fff; padding: 12px; text-align: left; box-shadow: var(--shadow-sm); }
.lead-item:hover, .lead-item.is-active { border-color: var(--primary-green); box-shadow: 0 10px 24px rgba(11, 93, 75, 0.10); }
.lead-open { display: grid; gap: 7px; min-width: 0; border: 0; background: transparent; padding: 0; text-align: left; }
.lead-card-title { color: var(--charcoal); font-size: 0.98rem; font-weight: 900; line-height: 1.2; }
.lead-card-model { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 0.8rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lead-card-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lead-card-scores span { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); padding: 7px 8px; color: var(--deep-green); font-size: 0.78rem; font-weight: 900; }
.lead-card-scores b { color: var(--muted); font-weight: 800; }
.lead-card-date { color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.lead-item small { display: inline-flex; width: fit-content; border-radius: 999px; background: var(--success-soft); color: var(--deep-green); padding: 4px 8px; font-size: 0.72rem; font-weight: 900; }
.lead-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; }
.lead-status-select { height: 36px; min-width: 0; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #FCFDFC; color: var(--charcoal); font-size: 0.78rem; font-weight: 800; }
.export-lead-pdf, .share-lead { border: 1px solid #BFD8C8; border-radius: 8px; background: var(--success-soft); color: var(--deep-green); padding: 8px 10px; font-size: 0.78rem; font-weight: 900; }
.share-lead { background: #fff; }
.share-lead:hover, .export-lead-pdf:hover { border-color: var(--primary-green); box-shadow: var(--shadow-sm); }
.delete-lead { border: 1px solid #E5C5C0; border-radius: 8px; background: var(--danger-soft); color: var(--danger); padding: 8px 10px; font-size: 0.78rem; font-weight: 900; }
.delete-lead:disabled { cursor: wait; opacity: 0.65; }

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23, 33, 28, 0.42);
  backdrop-filter: blur(10px);
}
.share-modal {
  width: min(960px, 100%);
  max-height: min(860px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(221, 229, 221, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 247, 244, 0.96), rgba(255, 255, 255, 0.98)),
    var(--panel);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.share-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.share-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.share-type {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 880;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.share-type:hover, .share-type.is-active {
  border-color: var(--primary-green);
  background: var(--success-soft);
  color: var(--deep-green);
  box-shadow: var(--shadow-sm);
}
.share-preview {
  width: 100%;
  min-height: 330px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #FCFDFC;
  color: var(--charcoal);
  padding: 14px;
  resize: vertical;
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}
.share-preview:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(31, 138, 112, 0.15);
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.share-actions .primary, .share-actions .ghost {
  width: auto;
  min-height: 40px;
  font-size: 0.82rem;
}

@media (max-width: 1120px) {
  .three-up, .four-up, .feature-grid, .workflow-grid, .output-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace { grid-template-columns: 1fr 1fr; }
  .history-panel { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .auth-panel, .workspace, .metrics, .detail-grid, .two-col, .profile-switcher, .mode-selector { grid-template-columns: 1fr; }
  .auth-panel { gap: 28px; min-height: auto; padding-top: 34px; }
  .profile-actions { grid-template-columns: 1fr; }
  .growth-score-grid, .growth-grid, .source-grid { grid-template-columns: 1fr; }
  .source-card-wide { grid-column: auto; }
  .lead-card-actions { grid-template-columns: 1fr auto auto auto; }
  .share-type-grid { grid-template-columns: 1fr; }
  .share-header { flex-direction: column; }
  .topbar, .result-header, .user-strip, .result-actions { align-items: flex-start; flex-direction: column; }
  .dashboard { width: min(100% - 24px, 720px); }
  .public-site { width: min(100% - 24px, 720px); padding-top: 12px; }
  .public-nav { position: static; align-items: flex-start; flex-direction: column; }
  .public-links { justify-content: flex-start; width: 100%; }
  .public-links button { flex: 1 1 auto; }
  .public-page { padding-top: 44px; }
  .hero-score-row, .three-up, .four-up, .feature-grid, .workflow-grid, .output-grid, .contact-lines, .final-cta { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .public-cta { width: 100%; }
  .final-cta { padding: 20px; }
  .content-page, .contact-card { padding: 20px; }
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
}
