:root {
  --brand-900: #0B1F3A;
  --brand-800: #123052;
  --brand-700: #1B5E7A;
  --brand-600: #2D7A9E;
  --brand-500: #4A9EC4;
  --brand-400: #7EC4E4;
  --brand-100: #E8F4FA;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #ffffff;
  --red-600: #b42318;
  --red-50: #fef3f2;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 31, 58, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-900);
  background: var(--slate-50);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand-700);
  text-decoration: none;
}

a:hover {
  color: var(--brand-600);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brand-900);
  font-weight: 600;
}

.logo:hover {
  color: var(--brand-900);
}

.logo-svg {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.logo-svg-sm {
  width: 1.75rem;
  height: 1.75rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-tagline {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-admin {
  color: var(--slate-500);
}

.valuation-entry {
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  color: var(--white);
  padding: 2.5rem 0 3rem;
}

.valuation-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
}

.hero-compact h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: var(--white);
  margin-bottom: 0.85rem;
}

.hero-subhead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.hero-badges svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--brand-400);
  flex-shrink: 0;
}

.broker-contact {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.broker-contact-lead {
  margin: 0 0 0.35rem;
  font-weight: 500;
}

.broker-contact-phone-line {
  margin: 0;
}

.broker-contact-phone {
  font-weight: 600;
  white-space: nowrap;
}

.broker-contact-hero {
  max-width: 480px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
}

.broker-contact-hero .broker-contact-lead {
  color: rgba(255, 255, 255, 0.92);
}

.broker-contact-hero .broker-contact-phone {
  color: var(--brand-400);
}

.broker-contact-hero .broker-contact-phone:hover {
  color: var(--white);
}

.broker-contact-section {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  color: var(--slate-700);
}

.broker-contact-section .broker-contact-lead {
  color: var(--slate-700);
}

.broker-contact-section .broker-contact-phone {
  color: var(--brand-700);
}

.broker-contact-section .broker-contact-phone:hover {
  color: var(--brand-600);
}

.form-panel {
  position: relative;
}

.form-panel-header {
  margin-bottom: 0.65rem;
}

.form-panel-header h2 {
  font-size: 1.25rem;
  color: var(--brand-900);
  margin-bottom: 0.2rem;
}

.form-panel-header p {
  color: var(--slate-500);
  font-size: 0.85rem;
  margin: 0;
}

.form-progress {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-600);
}

.results-progress {
  text-align: center;
}

.confidentiality-banner {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  background: var(--brand-100);
  border: 1px solid rgba(74, 158, 196, 0.25);
  border-radius: var(--radius);
}

.confidentiality-banner svg {
  width: 1rem;
  height: 1rem;
  color: var(--brand-700);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.confidentiality-banner p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--brand-800);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-500);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-600);
  color: var(--white);
  border-color: var(--brand-600);
}

.btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.btn-secondary {
  background: var(--white);
  color: var(--brand-800);
  border-color: var(--slate-300);
}

.btn-secondary:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
}

.btn-danger {
  background: var(--red-50);
  color: var(--red-600);
  border-color: #fecdca;
}

.btn-danger:hover {
  background: #fee4e2;
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
}

.form-section,
.results-section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.75rem;
}

.section-header.centered {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  color: var(--slate-500);
}

.eyebrow.dark {
  color: var(--brand-600);
}

.page-section {
  padding: 3.5rem 0;
}

.value-props {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.value-prop-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.value-prop-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--brand-100);
  color: var(--brand-700);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
}

.value-prop-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.value-prop-card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.value-prop-card p {
  color: var(--slate-500);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.55;
}

.comparison-section {
  background: var(--slate-50);
}

.comparison-layout {
  display: grid;
  gap: 2rem;
}

.comparison-intro {
  max-width: 720px;
}

.comparison-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.comparison-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.comparison-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.comparison-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--slate-500);
}

.comparison-card li + li {
  margin-top: 0.65rem;
}

.comparison-card-highlight {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-md);
}

.comparison-card-highlight h3 {
  color: var(--brand-800);
}

.broker-section {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.broker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.broker-content p {
  color: var(--slate-700);
}

.broker-benefits {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.1rem;
  color: var(--slate-700);
}

.broker-benefits li + li {
  margin-top: 0.5rem;
}

.broker-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.broker-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.broker-card-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-900);
  margin: 0 0 0.25rem;
}

.broker-card-org {
  font-size: 0.9rem;
  color: var(--brand-700);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.broker-card-note {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.5;
}

.valuation-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.35rem 1.35rem;
}

.form-group {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.form-group legend {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  padding-bottom: 1rem;
  width: 100%;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field-financial {
  gap: 0.35rem;
}

.field-financial + .field-financial {
  margin-top: -0.15rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-800);
}

.required {
  color: var(--brand-600);
}

.optional {
  color: var(--slate-500);
  font-weight: 500;
}

input,
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font: inherit;
  color: var(--brand-900);
  background: var(--white);
}

input:focus,
select:focus {
  outline: 2px solid rgba(74, 158, 196, 0.35);
  border-color: var(--brand-500);
}

input.invalid,
select.invalid {
  border-color: var(--red-600);
}

.field-error {
  font-size: 0.8rem;
  color: var(--red-600);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin: 0;
}

.field-help-wrap,
.sde-help-wrap {
  position: relative;
  display: inline-block;
  align-self: flex-start;
}

.help-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: help;
}

.help-link:hover,
.help-link:focus-visible {
  color: var(--brand-700);
}

.help-tooltip {
  position: absolute;
  z-index: 20;
  left: 0;
  top: calc(100% + 0.35rem);
  width: min(16rem, 70vw);
  padding: 0.6rem 0.75rem;
  background: var(--brand-900);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.help-tooltip::before {
  content: "";
  position: absolute;
  top: -0.3rem;
  left: 0.75rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brand-900);
  transform: rotate(45deg);
}

.field-help-wrap:hover .help-tooltip,
.field-help-wrap:focus-within .help-tooltip,
.sde-help-wrap:hover .help-tooltip,
.sde-help-wrap:focus-within .help-tooltip,
.help-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.input-prefix:focus-within {
  outline: 2px solid rgba(74, 158, 196, 0.35);
  border-color: var(--brand-500);
}

.input-prefix span {
  padding: 0 0.75rem;
  color: var(--slate-500);
  background: var(--slate-50);
  border-right: 1px solid var(--slate-300);
  font-weight: 500;
}

.input-prefix input {
  border: none;
  outline: none;
}

.form-actions {
  display: flex;
  justify-content: stretch;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.form-actions .btn {
  width: 100%;
}

.results-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.results-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-600);
  margin-bottom: 0.75rem;
}

.results-card h2 {
  font-size: 1.75rem;
}

.results-intro {
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

.value-range {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.value-low,
.value-high {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--brand-800);
}

.value-separator {
  color: var(--slate-500);
  font-size: 1.125rem;
}

.results-ncf,
.results-sde {
  color: var(--slate-500);
  font-size: 0.95rem;
}

.results-cta-inline {
  margin: 0 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  text-align: center;
}

.lead-save-notice {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--brand-100);
  border: 1px solid var(--brand-400);
  border-radius: var(--radius);
  color: var(--brand-800);
  font-size: 0.9rem;
  text-align: center;
}

.lead-save-notice a {
  font-weight: 600;
}

.lead-save-notice-error {
  background: var(--red-50);
  border-color: #fecdca;
  color: var(--red-600);
}

.admin-warning {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius);
  color: #9a3412;
  font-size: 0.9rem;
}

.admin-sheets-banner {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  background: var(--brand-100);
  border: 1px solid var(--brand-400);
  border-radius: var(--radius-lg);
  color: var(--brand-900);
}

.admin-sheets-banner p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-sheets-banner p:last-of-type {
  margin-bottom: 0.85rem;
}

.admin-local-note {
  margin-top: 0.75rem;
}

.admin-warning a {
  font-weight: 600;
}

.results-block {
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.results-block .disclaimer {
  margin-bottom: 0;
}

.readiness-panel {
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  text-align: left;
}

.readiness-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.readiness-note {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin: 0 0 0.85rem;
}

.readiness-header h3 {
  font-size: 1.125rem;
  margin: 0;
}

.readiness-score {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-800);
  margin: 0;
}

.readiness-max {
  font-size: 1rem;
  color: var(--slate-500);
  font-weight: 500;
}

.readiness-meter {
  height: 0.5rem;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.readiness-meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-500));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.readiness-explanation {
  color: var(--slate-700);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.improvements-block h4 {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.improvements-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.improvements-list li {
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.improvements-list strong {
  display: block;
  color: var(--brand-800);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.improvements-list span {
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.5;
}

.disclaimer {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--brand-100);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--brand-700);
}

.results-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.review-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.results-actions .review-cta-wrap {
  width: 100%;
  align-items: center;
}

.results-actions .review-cta-wrap .btn {
  width: 100%;
}

.review-confirmation {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--brand-100);
  border: 1px solid rgba(74, 158, 196, 0.35);
  border-radius: var(--radius);
  color: var(--brand-800);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  max-width: 36rem;
}

.review-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.review-badge.yes {
  background: #e8f5e9;
  color: #2e7d32;
}

.review-badge.no {
  background: var(--slate-100);
  color: var(--slate-500);
}

.thank-you-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.thank-you-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  background: var(--slate-50);
}

.thank-you-main .container {
  width: 100%;
}

.thank-you-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem;
  text-align: center;
}

.thank-you-card h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--brand-900);
  margin-bottom: 0.5rem;
}

.thank-you-lead {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-800);
  margin-bottom: 0.75rem;
}

.thank-you-card p {
  color: var(--slate-700);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 0.75rem;
}

.thank-you-contact {
  margin: 1.25rem auto;
  max-width: 400px;
  text-align: left;
}

.thank-you-card .btn {
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .thank-you-main {
    padding: 1rem 0;
  }

  .thank-you-card {
    padding: 1.5rem 1.25rem;
  }

  .thank-you-card h1 {
    font-size: 1.35rem;
  }
}

.site-footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.footer-logo:hover {
  color: var(--white);
}

.footer-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

.footer-copy {
  margin: 0;
}

.admin-main {
  padding: 2.5rem 0 4rem;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-header h1 {
  font-size: 1.75rem;
}

.admin-subtitle {
  color: var(--slate-500);
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-800);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-toolbar input,
.admin-toolbar select {
  flex: 1 1 240px;
}

.leads-table-wrap {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: auto;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.leads-table th,
.leads-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}

.leads-table th {
  background: var(--slate-50);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  white-space: nowrap;
}

.leads-table tbody tr:hover {
  background: rgba(248, 246, 241, 0.7);
}

.leads-table .contact-cell {
  min-width: 140px;
}

.leads-table .contact-cell a {
  display: block;
  font-size: 0.8rem;
}

.reason-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--brand-100);
  color: var(--brand-700);
  white-space: nowrap;
}

.reason-badge.ready {
  background: #e8f5e9;
  color: #2e7d32;
}

.btn-link {
  background: none;
  border: none;
  color: var(--brand-700);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  color: var(--brand-600);
}

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--slate-500);
}

.lead-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(640px, calc(100% - 2rem));
  box-shadow: var(--shadow-lg);
}

.lead-dialog::backdrop {
  background: rgba(15, 31, 51, 0.45);
}

.dialog-content {
  margin: 0;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.dialog-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.dialog-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--slate-500);
}

.dialog-body {
  padding: 1.5rem;
}

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

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-item.full {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
}

.detail-value {
  font-weight: 500;
  color: var(--brand-800);
}

.dialog-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .valuation-entry-grid {
    grid-template-columns: 1fr;
  }

  .value-props-grid,
  .comparison-columns,
  .broker-layout,
  .admin-stats {
    grid-template-columns: 1fr;
  }

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

  .field-full {
    grid-column: auto;
  }

  .logo-tagline {
    display: none;
  }

  .valuation-form {
    padding: 1rem;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-nav {
    font-size: 0.8rem;
    gap: 0.75rem;
  }

  .admin-header {
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .btn {
    flex: 1;
  }
}
