:root {
  color-scheme: light;
  --ink: #16202a;
  --muted: #66707d;
  --line: #d9e0e7;
  --paper: #ffffff;
  --wash: #f4f7f8;
  --navy: #17324d;
  --teal: #137c7a;
  --amber: #b56b22;
  --green: #4b8b5a;
  --red: #b84f4f;
  --shadow: 0 18px 60px rgba(22, 32, 42, 0.12);
}

[hidden] { display: none !important; }

.cookie-consent {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  padding: 18px 20px;
  color: #eaf7f6;
  background: #082b4c;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(2, 19, 34, 0.28);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__copy {
  max-width: 610px;
}

.cookie-consent__copy strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 17px;
}

.cookie-consent__copy p {
  margin: 0 0 5px;
  color: #d7e6ee;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent__copy a {
  color: #7de1d6;
  font-size: 13px;
  font-weight: 700;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-consent__actions button {
  min-height: 42px;
  white-space: nowrap;
}

.cookie-consent__actions .secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.footer-cookie-settings {
  padding: 0;
  color: inherit;
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-preferences {
  position: fixed;
  z-index: 1250;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 22, 38, 0.62);
}

.cookie-preferences[hidden] {
  display: none;
}

.cookie-preferences__dialog {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 26px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(2, 19, 34, 0.3);
}

.cookie-preferences__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cookie-preferences__heading h2,
.cookie-preferences__heading p {
  margin: 0;
}

.cookie-preferences__heading .icon-button {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cookie-category strong,
.cookie-category span {
  display: block;
}

.cookie-category span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cookie-switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.cookie-switch span {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.cookie-preferences__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.owner-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.owner-insights > section,
.owner-feedback {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.owner-readiness {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.owner-readiness .panel-kicker {
  margin: 0 0 4px;
}

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

.owner-readiness-grid article {
  display: grid;
  min-height: 132px;
  gap: 12px;
  align-content: space-between;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.owner-readiness-grid article > span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.owner-readiness-grid article > span:first-child svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.owner-readiness-grid strong {
  color: var(--navy);
  font-size: 24px;
}

.owner-readiness-grid strong b {
  font: inherit;
}

.owner-readiness-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e5ecef;
}

.owner-readiness-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.owner-readiness-grid article.is-complete {
  border-color: #8ccfc4;
  background: #f1f8f6;
}

.owner-readiness-status {
  color: #176b58;
  font-size: 12px;
  font-weight: 800;
}

.owner-readiness-failures.has-failures {
  border-color: #efb7b7;
  background: #fff7f7;
}

.owner-readiness-failures.has-failures .owner-readiness-status,
.owner-readiness-failures.has-failures > span:first-child svg {
  color: var(--danger);
}

.owner-readiness-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.owner-readiness-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--teal-dark);
}

.owner-funnel,
.owner-feedback-list {
  display: grid;
  gap: 12px;
}

.owner-funnel-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(100px, 1.4fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.owner-funnel-meter {
  height: 8px;
  overflow: hidden;
  background: #e7eef1;
  border-radius: 4px;
}

.owner-funnel-meter > span {
  display: block;
  height: 100%;
  background: #168b87;
}

.owner-feedback {
  margin-top: 18px;
}

.owner-feedback-list article {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.owner-feedback-list article:first-child {
  padding-top: 0;
  border-top: 0;
}

.owner-feedback-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.owner-feedback-meta strong {
  color: var(--ink);
}

.owner-feedback-list p {
  margin: 8px 0;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .cookie-consent__actions,
  .cookie-consent__actions button {
    width: 100%;
  }

  .cookie-consent__actions {
    flex-direction: column-reverse;
  }

  .cookie-preferences {
    align-items: end;
    padding: 10px;
  }

  .cookie-preferences__dialog {
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
  }

  .cookie-category {
    grid-template-columns: 1fr;
  }

  .cookie-preferences__actions,
  .cookie-preferences__actions button {
    width: 100%;
  }

  .cookie-preferences__actions {
    flex-direction: column-reverse;
  }

  .owner-insights {
    grid-template-columns: 1fr;
  }

  .owner-readiness-grid {
    grid-template-columns: 1fr;
  }

  .owner-funnel-row {
    grid-template-columns: 1fr auto;
  }

  .owner-funnel-meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .owner-feedback-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.policy-page { min-height: 100vh; background: #f4f7f8; }
.policy-header, .policy-footer, .policy-document { width: min(820px, calc(100% - 32px)); margin-inline: auto; }
.policy-header { display: flex; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--line); }
.policy-header a, .policy-footer a { color: var(--navy); font-weight: 800; text-decoration: none; }
.policy-document { padding: 54px 0 64px; }
.policy-document h1 { margin: 8px 0 14px; font-size: clamp(34px, 6vw, 54px); line-height: 1.05; letter-spacing: 0; }
.policy-document h2 { margin: 34px 0 8px; color: var(--navy); font-size: 21px; letter-spacing: 0; }
.policy-document p { color: #52616d; font-size: 16px; line-height: 1.7; }
.policy-document a { color: var(--teal); font-weight: 750; }
.policy-lead { max-width: 700px; font-size: 19px !important; }
.policy-footer { display: flex; gap: 20px; flex-wrap: wrap; padding: 24px 0 34px; border-top: 1px solid var(--line); }
.support-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 42px; }
.support-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }

.access-page {
  min-height: 100vh;
  background: #edf2f3;
}

.access-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.access-panel {
  width: min(100%, 440px);
  padding: 34px;
  border: 1px solid #c9d5d8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(21, 48, 67, 0.12);
}

.access-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: #17324d;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.access-panel h1 {
  margin: 5px 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.access-panel > p:not(.panel-kicker) {
  color: #52636d;
  line-height: 1.6;
}

.access-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.access-form label {
  color: #203b4d;
  font-size: 14px;
  font-weight: 700;
}

.access-form input {
  min-height: 48px;
  border: 1px solid #9eb0b7;
  border-radius: 6px;
  padding: 0 13px;
  font: inherit;
}

.access-form input:focus {
  border-color: #137c7a;
  outline: 3px solid rgba(19, 124, 122, 0.16);
}

.access-form .primary-action {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

.access-error {
  padding: 10px 12px;
  border-left: 3px solid #b44343;
  background: #fff2f2;
  color: #8c2d2d !important;
}

.access-note {
  margin: 18px 0 0;
  font-size: 13px;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 10px max(18px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(217, 224, 231, 0.84);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 rgba(22, 32, 42, 0.04);
}

.topbar__brand,
.topbar__nav {
  display: flex;
  align-items: center;
}

.topbar__brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand-wordmark {
  display: block;
  width: 148px;
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.topbar__nav {
  gap: 8px;
}

.topbar__nav a,
.text-link {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.topbar__nav a {
  padding: 9px 10px;
  border-radius: 7px;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.topbar__nav .nav-cta {
  border: 1px solid #b9d9d6;
  background: #eef8f7;
  color: #0f6665;
}

.topbar__nav .nav-verify {
  color: #123f5a;
  background: #edf4f8;
}

.topbar__nav a:hover,
.text-link:hover {
  color: var(--teal);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.brand-symbol {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.hero {
  position: relative;
  min-height: clamp(430px, 58vh, 620px);
  overflow: hidden;
  background: var(--navy);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  animation: hero-settle 900ms ease-out both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 22, 34, 0.88), rgba(9, 22, 34, 0.58) 36%, rgba(9, 22, 34, 0.12));
}

.hero__overlay {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0 104px;
  color: white;
}

.hero__overlay h1 {
  margin: 8px 0 12px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero .hero-wordmark {
  position: static;
  inset: auto;
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin: 8px 0 18px;
  object-fit: contain;
  object-position: left center;
}

.hero__overlay p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.button-link,
button.primary,
button.secondary,
.topbar__nav a,
.verify-nav nav a {
  gap: 8px;
}

.topbar__nav a,
.verify-nav nav a {
  display: inline-flex;
  align-items: center;
}

.button-link svg,
button.primary svg,
button.secondary svg,
.topbar__nav svg,
.verify-nav nav svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.button-link:hover { transform: translateY(-2px); }
.button-link.primary:hover { box-shadow: 0 10px 24px rgba(19, 124, 122, 0.24); }

.button-link.primary {
  background: var(--teal);
  color: white;
}

.button-link.secondary.dark {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: white;
}

.hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-proof span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a8eee4;
}

.intro-band,
.category-band,
.trust-band,
.builder-heading,
.feedback-band,
.policy-band,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 28px;
  align-items: center;
  padding: 44px 0 28px;
}

.intro-copy h2,
.category-band h2,
.trust-band h2,
.builder-heading h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-copy p:not(.panel-kicker),
.builder-heading p,
.trust-band p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

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

.process-grid div,
.category-choice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.process-grid div {
  display: grid;
  gap: 10px;
  min-height: 126px;
  padding: 16px;
}

.process-grid strong {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.process-grid strong svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.process-grid strong small {
  position: absolute;
  top: -6px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 9px;
  line-height: 1;
}

.process-grid span {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
}

.category-band {
  padding: 26px 0 16px;
}

.category-band--summary {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  padding: 34px 0;
}

.category-band--summary p:not(.panel-kicker) {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
}

.category-band--summary .button-link {
  flex: 0 0 auto;
}

.public-heading {
  margin-bottom: 16px;
}

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

.category-choice {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 15px;
  color: inherit;
  text-align: left;
  align-content: start;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(22, 32, 42, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.sale-types-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 680px;
  margin-inline: auto;
  padding: 54px 0 64px;
}

.sale-types-heading {
  margin-bottom: 24px;
}

.sale-types-heading h1 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.sale-types-heading p:not(.panel-kicker) {
  margin: 0;
  color: var(--muted);
}

.category-grid--types .category-choice {
  min-height: 156px;
}

.field-help-link {
  width: fit-content;
  margin-top: 5px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.condition-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.condition-field legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.condition-options {
  display: grid;
  gap: 6px;
}

.condition-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 4px;
  align-items: center;
  min-height: 36px;
  padding: 4px 5px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.condition-option-row:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 124, 122, 0.12);
}

.condition-option-row label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.condition-option-row input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--teal);
}

.condition-help {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.condition-help:hover,
.condition-help:focus-visible {
  background: #e9f5f3;
  color: var(--teal-dark);
  box-shadow: none;
}

.condition-help > svg {
  width: 17px;
  height: 17px;
}

.condition-help [role="tooltip"] {
  position: absolute;
  z-index: 20;
  right: -6px;
  bottom: calc(100% + 8px);
  width: min(260px, 70vw);
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.condition-help:hover [role="tooltip"],
.condition-help:focus [role="tooltip"],
.condition-help:focus-visible [role="tooltip"] {
  opacity: 1;
  transform: translateY(0);
}

.builder-heading--standalone {
  padding-top: 54px;
}

.account-prompt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #cfe0df;
  border-radius: 7px;
  background: #f0f8f7;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.account-prompt svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--teal);
}

.account-prompt span {
  display: grid;
  gap: 3px;
}

.account-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 680px;
  margin-inline: auto;
  padding: 54px 0 64px;
}

.account-heading {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.account-heading h1 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.04;
}

.account-heading p:not(.panel-kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.account-signin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #cfe0df;
  border-radius: 8px;
  background: #f0f8f7;
}

.account-signin[hidden],
#accountDashboard[hidden] {
  display: none;
}

.account-signin > svg {
  width: 38px;
  height: 38px;
  color: var(--teal);
}

.account-signin h2 {
  margin: 5px 0 7px;
  color: var(--ink);
  font-size: 24px;
}

.account-signin p:not(.panel-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 56px;
  align-items: start;
  padding: 48px 0 20px;
}

.account-auth[hidden],
#accountDashboard[hidden] {
  display: none;
}

.account-auth__intro {
  padding-top: 18px;
}

.account-auth__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 1px solid #b9d9d5;
  border-radius: 8px;
  background: #edf8f6;
  color: var(--teal);
}

.account-auth__icon svg {
  width: 24px;
  height: 24px;
}

.account-auth__intro h2 {
  margin: 7px 0 12px;
  color: var(--ink);
  font-size: 32px;
}

.account-auth__intro > p:not(.panel-kicker) {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.account-benefits {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.account-benefits li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.account-benefits svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.auth-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 44px rgba(16, 43, 61, 0.08);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7f8;
}

.auth-tab {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
}

.auth-tab.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(16, 43, 61, 0.1);
}

.auth-social {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.auth-social[hidden] {
  display: none;
}

.auth-google {
  width: 100%;
  border: 1px solid #c9d2da;
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 43, 61, 0.06);
}

.auth-google svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex: 0 0 auto;
}

.auth-social > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.auth-social > p a {
  color: var(--teal-dark);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.auth-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.auth-form[hidden],
.auth-tabs[hidden] {
  display: none;
}

.auth-form h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 21px;
}

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

.auth-form button.primary {
  width: 100%;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #e9f5f3;
  color: var(--teal-dark);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle .password-icon-hide {
  display: none;
}

.password-toggle.is-visible .password-icon-show {
  display: none;
}

.password-toggle.is-visible .password-icon-hide {
  display: block;
}

.auth-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.auth-consent input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
}

.auth-consent a {
  color: var(--teal-dark);
}

.text-button {
  min-height: auto;
  padding: 3px 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-message {
  min-height: 22px;
  margin-top: 14px;
  color: #176b58;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-message.error {
  color: var(--danger);
}

.account-summary {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) repeat(2, minmax(180px, 0.35fr));
  gap: 12px;
  margin-top: 28px;
}

.account-profile,
.account-stat {
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.account-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.account-profile > div,
.account-stat {
  display: grid;
  gap: 5px;
}

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

.account-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #e7f5f3;
  color: var(--teal);
}

.account-stat strong {
  color: var(--navy);
  font-size: 30px;
}

.account-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
}

.account-toolbar h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 26px;
}

.account-toolbar p {
  margin: 0;
  color: var(--muted);
}

.account-notice {
  min-height: 22px;
  margin-top: 12px;
  color: #176b58;
  font-size: 14px;
  font-weight: 800;
}

.account-notice.error {
  color: var(--danger);
}

.owner-panel {
  margin-top: 30px;
}

.owner-heading,
.owner-controls,
.owner-section-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.owner-heading h2,
.owner-section-heading h3,
.owner-privacy h3 {
  margin: 0;
  color: var(--ink);
}

.owner-heading > div:first-child > p:last-child,
.owner-privacy p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.owner-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.owner-controls select {
  min-width: 150px;
}

.owner-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.owner-metrics article {
  display: grid;
  min-height: 112px;
  gap: 14px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.owner-metrics span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.owner-metrics span svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.owner-metrics strong {
  color: var(--navy);
  font-size: 30px;
}

.owner-breakdown {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  margin-top: 22px;
}

.owner-breakdown > section {
  padding: 18px;
  border-top: 1px solid var(--line);
}

.owner-section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.owner-category-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.owner-category-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.owner-category-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8eef0;
}

.owner-category-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.owner-category-empty {
  margin: 0;
  color: var(--muted);
}

.owner-privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f1f8f6;
}

.owner-privacy > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: white;
  color: var(--teal-dark);
}

.account-records {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}

.account-record-group,
.record-group {
  display: grid;
  gap: 10px;
}

.account-record-group > h3,
.record-group > h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-record {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.account-record__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: #eef6f2;
  color: var(--teal);
}

.account-record__body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.account-record__body p {
  margin: 4px 0;
  color: var(--ink);
  font-size: 14px;
}

.account-record__body span {
  color: var(--muted);
  font-size: 12px;
}

.account-record__body .signing-state {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 700;
}

.account-record__body .signing-state.completed {
  border-color: #8bc9b3;
  color: #155e49;
  background: #eefaf5;
}

.account-record__body .signing-state.pending {
  border-color: #e0bd72;
  color: #72510c;
  background: #fff9e9;
}

.account-record__body .transaction-state,
.record-state {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 7px;
  border: 1px solid #d4dee2;
  border-radius: 6px;
  background: #f6f8f9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.account-record__body .transaction-state.completed,
.record-state.completed {
  border-color: #8bc9b3;
  background: #eefaf5;
  color: #155e49;
}

.account-record__body .transaction-state.awaiting,
.record-state.awaiting {
  border-color: #e0bd72;
  background: #fff9e9;
  color: #72510c;
}

.account-record__actions {
  display: flex;
  gap: 8px;
}

.account-empty {
  display: grid;
  justify-items: center;
  padding: 58px 20px;
  border: 1px dashed #b8cbce;
  border-radius: 8px;
  text-align: center;
}

.account-empty > svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.account-empty h3 {
  margin: 12px 0 5px;
  color: var(--ink);
  font-size: 20px;
}

.account-empty p {
  max-width: 540px;
  margin: 0 0 18px;
  color: var(--muted);
}

.category-icon {
  width: 25px;
  height: 25px;
  color: var(--teal);
  stroke-width: 1.8;
}

.category-choice:hover,
.category-choice:focus-visible {
  filter: none;
  transform: translateY(-3px);
  border-color: #88beba;
  background: white;
  box-shadow: 0 12px 26px rgba(22, 50, 64, 0.1);
}

.category-grid strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
}

.category-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.category-grid .category-action {
  align-self: end;
  margin-top: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #d9e5d7;
  border-radius: 8px;
  background: #f7faf5;
}

.trust-band h2 {
  font-size: 24px;
}

.trust-band p {
  margin: 0;
  font-size: 14px;
}

.policy-band {
  padding: 8px 0 38px;
}

.policy-band--compact {
  padding: 28px 0 38px;
}

.policy-band--compact h2 {
  margin: 6px 0 14px;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 34px);
}

.limits-list {
  display: grid;
  gap: 7px;
  max-width: 760px;
  margin: 0;
  padding: 14px 0 14px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.policy-grid article {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.policy-grid h3 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.policy-grid p:not(.panel-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--ink);
}

.footer-wordmark {
  width: 132px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}

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

.site-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal);
}

.feedback-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: -22px;
  margin-bottom: 32px;
  padding: 22px;
  border: 1px solid #cfe0df;
  border-radius: 8px;
  background: #f0f8f7;
}

.feedback-copy h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.feedback-copy p:not(.panel-kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.privacy-hint {
  padding: 12px;
  border: 1px solid #d9e5d7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-form button {
  justify-self: start;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.builder-heading {
  padding: 42px 0 0;
}

.builder-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.builder-heading p {
  max-width: 700px;
}

.builder-assurances {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.builder-assurances span {
  padding: 7px 10px;
  border: 1px solid #cddddd;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #456064;
  font-size: 12px;
  font-weight: 800;
}

.workspace {
  width: min(1400px, calc(100% - 32px));
  margin: 18px auto 56px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: start;
}

.panel,
.form-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 224, 231, 0.92);
  box-shadow: var(--shadow);
}

.panel {
  border-radius: 8px;
  padding: 18px;
}

.progress-panel,
.records-panel {
  position: sticky;
  top: 84px;
}

.form-panel {
  border-radius: 8px;
  overflow: hidden;
}

.smart-start-band {
  display: grid;
  gap: 16px;
  padding: 24px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid #cfe0df;
  background: #f0f8f7;
}

.smart-start-copy {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.smart-start-copy h2 { margin: 3px 0 6px; font-size: 23px; }
.smart-start-copy p:not(.panel-kicker) { margin: 0; color: var(--muted); line-height: 1.5; }
.smart-start-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 8px; background: var(--navy); color: white; }
.smart-start-icon svg { width: 21px; height: 21px; }
.smart-start-actions { display: flex; gap: 14px; align-items: center; }
.smart-start-actions span { color: var(--muted); font-size: 12px; font-weight: 700; }

.intake-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #c9dcdb;
  border-radius: 8px;
  background: #e5f1f0;
}

.intake-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #36505a;
  font-weight: 850;
  cursor: pointer;
}

.intake-tabs button[aria-selected="true"] {
  background: white;
  color: var(--navy);
  box-shadow: 0 2px 7px rgba(18, 63, 90, 0.1);
}

.intake-tabs svg {
  width: 17px;
  height: 17px;
}

.intake-panel {
  display: grid;
  gap: 12px;
}

.intake-panel[hidden] {
  display: none;
}

.intake-panel .primary {
  justify-self: start;
}

.intake-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.screenshot-drop {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px dashed #79aaa8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  cursor: pointer;
}

.screenshot-drop > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
}

.screenshot-drop svg {
  width: 21px;
  height: 21px;
  color: var(--teal);
}

.screenshot-drop small {
  color: var(--muted);
  line-height: 1.45;
}

.screenshot-drop input {
  min-height: auto;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
}

.screenshot-preview {
  width: min(100%, 520px);
  max-height: 280px;
  border: 1px solid var(--line);
  border-radius: 7px;
  object-fit: contain;
  background: white;
}

.guided-builder .section-band { display: none; }
.guided-builder .section-band.is-active-step { display: block; animation: step-in 180ms ease-out; }
.guided-builder .actions-band { display: none; }
.guided-builder.is-final-step .actions-band { display: grid; }

.builder-save-tools {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dbe5e8;
}

.builder-save-tools button { width: 100%; }
.builder-save-tools small { color: var(--muted); font-size: 11px; line-height: 1.4; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

.panel h2,
.section-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

.meter {
  height: 9px;
  margin: 18px 0;
  border-radius: 999px;
  background: #e9eef2;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 180ms ease;
}

.readiness-card {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #cfe0df;
  border-radius: 8px;
  background: #f0f8f7;
}

.readiness-card strong {
  color: var(--navy);
  font-size: 13px;
}

.readiness-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.readiness-card .is-ready {
  color: var(--green);
}

.step-list {
  display: grid;
  gap: 6px;
  counter-reset: packet-step;
}

.step-link {
  counter-increment: packet-step;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.step-link::before {
  content: counter(packet-step);
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #d2dce2;
  border-radius: 50%;
  background: white;
  color: #6d7883;
  font-size: 11px;
  font-weight: 900;
}

.step-link.is-active,
.step-link:hover {
  background: #eaf5f4;
  color: var(--teal);
  transform: translateX(2px);
}

.step-link.is-active::before { border-color: var(--teal); background: var(--teal); color: white; }

.mini-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mini-summary strong {
  max-width: 130px;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-align: right;
}

.section-band {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  transition: background-color 220ms ease;
}

.section-band.is-current { background: #fcfefe; box-shadow: inset 0 1px 0 rgba(19, 124, 122, 0.04); }
.section-band.is-current::before { background: var(--teal); }
.section-band.section-has-errors::before { background: #b42318; }

.step-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.step-navigation .primary { margin-left: auto; }

.step-link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

.completed-packet #checklist .step-navigation {
  display: none;
}

.completed-packet .generated-header {
  border-color: #78b9b1;
  box-shadow: 0 10px 28px rgba(19, 124, 122, 0.1);
}

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

.section-heading.compact {
  display: block;
}

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

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

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

label {
  display: grid;
  gap: 7px;
  color: #3d4854;
  font-size: 13px;
  font-weight: 800;
  transition: color 150ms ease;
}

label:focus-within { color: #0f6968; }

label span small {
  margin-left: 6px;
  color: #75818b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

label span small:first-letter { text-transform: uppercase; }

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9d3dc;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 124, 122, 0.14);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid,
label.is-invalid input[type="checkbox"] {
  border-color: #b42318;
  background-color: #fff8f7;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

label.is-invalid { color: #8f1d16; }
.field-error { margin: -2px 0 0; color: #b42318; font-size: 12px; font-weight: 750; line-height: 1.35; }

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

.party-fields {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.party-fields legend {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 7px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.party-fields legend svg { width: 18px; height: 18px; color: var(--teal); }
.name-grid { display: grid; grid-template-columns: 1fr 0.8fr 1fr; gap: 10px; }
.address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.party-contact {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.party-contact-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 13px;
}

.party-contact-heading strong { color: var(--teal-dark); font-size: 12px; font-weight: 850; }
.party-contact-heading span { color: var(--muted); font-size: 12px; }
.party-contact > label { margin-top: 10px; }

.text-action {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: auto;
  min-height: 36px;
  margin-top: 8px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 850;
  cursor: pointer;
}

.text-action svg { width: 16px; height: 16px; }

.wide-label {
  margin-top: 14px;
}

.condition-addendum {
  padding: 14px;
  border: 1px solid #b9d8d6;
  border-radius: 8px;
  background: #f4faf9;
}

.condition-addendum > span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.smart-helper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.smart-helper button {
  margin-bottom: 0;
}

.template-summary {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #cfe0df;
  border-radius: 8px;
  background: #f0f8f7;
  color: #36505a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.context-fields {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dce7e7;
  border-radius: 7px;
  background: #f7faf9;
}

.identifier-note {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--teal);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.identifier-field {
  font-weight: 750;
}

.identifier-field input {
  border-color: #79aaa8;
}

.dynamic-fields:empty {
  display: none;
}

.vin-field {
  position: relative;
}

.vin-field .vin-decode-button {
  justify-self: start;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #126f70;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.vin-field .vin-decode-button:disabled {
  color: #879499;
  cursor: wait;
}

.vin-decode-result {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  background: #f0f8f7;
  color: #36505a;
  font-size: 12px;
  line-height: 1.45;
}

.vin-decode-result.is-error {
  border-left-color: #b95d46;
  background: #fff5f2;
  color: #753f33;
}

.lien-guidance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #c9dcdb;
  border-radius: 8px;
  background: #f7faf9;
}

.lien-guidance__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: var(--navy);
  color: white;
}

.lien-guidance__icon svg {
  width: 19px;
  height: 19px;
}

.lien-guidance h3 {
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 17px;
}

.lien-guidance p:not(.panel-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.lien-guidance__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.lien-guidance__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #126f70;
  font-size: 12px;
  font-weight: 850;
}

.lien-guidance__links svg {
  width: 14px;
  height: 14px;
}

.toggle-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.toggle-row label,
.checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
  color: var(--ink);
}

.toggle-row input,
.checklist input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

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

.signature-intro { margin: -4px 0 16px; color: var(--muted); line-height: 1.5; }
.signature-review { display: grid; gap: 16px; margin: 0 0 22px; padding: 20px; border: 1px solid #bddbd7; border-radius: 8px; background: #f2f9f8; }
.signature-review h3,
.signature-choice-heading h3 { margin: 3px 0 5px; font-size: 20px; }
.signature-review p:not(.panel-kicker) { margin: 0; color: var(--muted); line-height: 1.5; }
.signature-review__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid #d4e3e2; border-radius: 6px; background: #d4e3e2; }
.signature-review__facts div { min-width: 0; padding: 12px; background: white; }
.signature-review__facts dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.signature-review__facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 750; }
.review-confirmation { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid #c8dcda; border-radius: 6px; background: white; font-weight: 750; line-height: 1.4; }
.review-confirmation input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--teal);
}

.final-review-confirmation {
  margin-top: 22px;
  border-color: #84bbb5;
  background: #eef8f7;
}

.signature-upload-status { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }

.generated-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border: 1px solid #b9d9d5;
  border-radius: 8px;
  background: #eef8f7;
}

.generated-header > span {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
}

.generated-header h2 { margin: 3px 0 7px; font-size: 24px; }
.generated-header p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }

.generated-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 14px 0 24px;
}
.signature-choice-heading { margin: 0 0 8px; }
.party-signing-card { display: grid; gap: 14px; align-content: start; }
.signature-card-heading { display: flex; gap: 10px; align-items: center; }
.signature-card-heading > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: #eaf5f4; color: var(--teal-dark); }
.signature-card-heading > span svg { width: 18px; height: 18px; }
.signature-card-heading div { display: grid; gap: 2px; }
.signature-card-heading strong { color: var(--navy); font-size: 16px; }
.signature-card-heading small { color: var(--muted); font-weight: 750; }
.signature-card-heading small.is-signed { color: var(--green); }

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border: 1px solid #d3dde3;
  border-radius: 7px;
  background: #eef2f4;
}

.segmented-control button {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #596875;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.segmented-control button.is-selected { background: white; color: var(--teal-dark); box-shadow: 0 1px 3px rgba(16, 43, 61, 0.12); }
.signature-method { margin-bottom: 12px; }
.drawn-signature { margin-top: 2px; }
.remote-sign-choice { padding: 14px; border: 1px solid #cfe0df; border-radius: 7px; background: #f0f8f7; }
.remote-sign-choice p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.signature-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.signature-consents { display: grid; gap: 10px; margin-top: 16px; }
.signature-consents label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; color: var(--ink); font-size: 14px; line-height: 1.45; }
.signature-consents input { flex: 0 0 auto; width: 18px; height: 18px; min-height: 18px; margin-top: 1px; accent-color: var(--teal); }

.signature-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.signature-head button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 31 / 9;
  border: 1px dashed #aeb9c4;
  border-radius: 7px;
  background:
    linear-gradient(transparent 83%, rgba(19, 124, 122, 0.2) 84%, transparent 85%),
    white;
  touch-action: none;
  margin-bottom: 12px;
}

.checklist {
  display: grid;
  gap: 10px;
}

.next-steps-intro {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--teal);
  background: #eef7f6;
}

.next-steps-intro > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.next-steps-intro small {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #b9d4d3;
  border-radius: 4px;
  background: #ffffff;
  color: #246866;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.next-steps-intro strong {
  color: var(--navy);
  font-size: 15px;
}

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

.next-step-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 138px;
  padding: 18px;
  border: 1px solid #d6e1e3;
  border-left: 4px solid var(--teal);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(24, 50, 69, 0.06);
}

.next-step-card.is-attention {
  border-left-color: var(--amber);
  background: #fffaf5;
}

.next-step-content {
  min-width: 0;
}

.next-step-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.next-step-meta span {
  padding: 3px 7px;
  border: 1px solid #d4e2e2;
  border-radius: 4px;
  background: #f3f8f7;
  color: #436160;
  font-size: 11px;
  font-weight: 800;
}

.next-step-card h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 16px;
  letter-spacing: 0;
}

.next-step-card p {
  max-width: 760px;
  margin: 0;
  color: #52636d;
  font-size: 13px;
  line-height: 1.55;
}

.official-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.official-link:hover,
.official-link:focus-visible {
  text-decoration: underline;
}

.official-link svg {
  width: 14px;
  height: 14px;
}

.checklist .next-step-check {
  align-self: center;
  min-width: 134px;
  justify-content: center;
  border-color: #cbd8dc;
  background: #f7fafb;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.next-step-card:has(.next-step-check input:checked) {
  border-color: #9dc5b0;
  border-left-color: var(--green);
  background: #f7fbf8;
}

@media (max-width: 680px) {
  .next-steps-intro > div,
  .next-step-card {
    grid-template-columns: 1fr;
  }

  .next-steps-intro > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .checklist .next-step-check {
    width: 100%;
  }
}

.actions-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(20px, 3vw, 32px);
  background: #f9fbfc;
}

.legal-note {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.action-notes {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.receipt-note {
  margin: 0;
  color: #315d5b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

button.primary {
  background: var(--teal);
  color: white;
}

button.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
}

button.danger {
  border-color: #e1c4c4;
  color: var(--red);
}

button:hover {
  filter: brightness(0.97);
}

button:active { transform: translateY(1px); }
button.primary:hover { box-shadow: 0 8px 18px rgba(19, 124, 122, 0.2); }

.reveal-section {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-section.is-visible { opacity: 1; transform: none; }

@keyframes hero-settle {
  from { opacity: 0.86; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1.015); }
}

.records-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.records-privacy {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid #d9e5d7;
  border-radius: 8px;
  background: #f7faf5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.42;
}

.records-clear {
  width: 100%;
  margin-top: 10px;
}

.record-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.record-item strong {
  overflow-wrap: anywhere;
}

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

.record-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.record-actions button,
.record-actions a {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.record-receipt {
  overflow-wrap: anywhere;
  color: #315d5b !important;
  font-weight: 800;
}

.record-verify {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.record-qr {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: min(100%, 360px);
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #c9dfe0;
  border-radius: 7px;
  background: #f4fbfa;
}

.record-qr img {
  width: 76px;
  height: 76px;
  background: white;
  image-rendering: pixelated;
}

.record-qr strong,
.record-qr span {
  display: block;
}

.record-qr span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.verify-page {
  min-height: 100vh;
  background: #f4f7f8;
}

.verify-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 0 max(20px, calc((100vw - 960px) / 2));
  border-bottom: 1px solid var(--line);
  background: white;
}

.verify-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.verify-nav .brand-wordmark {
  width: 148px;
  height: 34px;
}

.verify-nav nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.verify-main {
  width: min(760px, calc(100% - 32px));
  margin: 64px auto;
}

.verify-panel {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.verify-panel h1 {
  margin: 8px 0 14px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.verify-panel > p:not(.panel-kicker) {
  color: var(--muted);
  line-height: 1.6;
}

.verify-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.verify-scan-prompt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #a9d1ce;
  border-radius: 8px;
  background: #eff9f8;
}

.verify-scan-prompt strong,
.verify-scan-prompt span,
.qr-scanner__header strong,
.qr-scanner__header span {
  display: block;
}

.verify-scan-prompt strong {
  color: var(--ink);
  font-size: 17px;
}

.verify-scan-prompt span,
.qr-scanner__header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.qr-scanner {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.qr-scanner__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.qr-scanner__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: #101820;
}

.qr-scanner__viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-scanner__target {
  position: absolute;
  inset: 18%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(5, 17, 27, 0.3);
}

.scanner-status {
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.qr-upload {
  display: inline-flex;
  cursor: pointer;
}

.qr-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.verify-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.verify-divider::before,
.verify-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.verify-result {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  overflow-wrap: anywhere;
}

.verify-result:empty {
  display: none;
}

.verify-result p {
  margin: 0;
  line-height: 1.5;
}

.verify-result.success {
  border-color: #a8d2bf;
  background: #f1faf5;
}

.verify-result.warning {
  border-color: #dfc18c;
  background: #fff9ed;
}

.verify-result h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.verify-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.verify-details > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.verify-details > div:nth-child(even) {
  border-right: 0;
}

.verify-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.verify-details dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.verify-result.error {
  border-color: #e1c4c4;
  background: #fff6f6;
  color: var(--red);
}

.verify-boundary {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 800;
}

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

.account-view-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2f4;
}

.account-view-tabs.has-owner {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.account-view-tab[hidden] {
  display: none !important;
}

.account-view-tab {
  background: transparent;
  color: var(--muted);
}

.account-view-tab.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(16, 43, 61, 0.09);
}

.settings-panel[hidden],
#transactionsPanel[hidden],
#ownerPanel[hidden] {
  display: none;
}

.settings-panel {
  margin-top: 28px;
}

.settings-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.settings-heading h2 {
  margin: 4px 0 7px;
  color: var(--ink);
  font-size: 28px;
}

.settings-heading p:not(.panel-kicker) {
  margin: 0;
  color: var(--muted);
}

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

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

.settings-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 12px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.settings-card > label,
.settings-card > button,
.settings-card > .settings-actions,
.settings-card > .settings-footnote {
  grid-column: 1 / -1;
}

.settings-card__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: #e9f5f3;
  color: var(--teal);
}

.settings-card__icon svg {
  width: 18px;
  height: 18px;
}

.settings-card h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 18px;
}

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

.settings-card--wide {
  grid-column: 1 / -1;
}

.settings-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7faf9;
}

.settings-toggle input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.settings-toggle span {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.settings-toggle strong {
  color: var(--ink);
}

.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-footnote {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.settings-danger {
  border-color: #e8c9c8;
  background: #fffafa;
}

.settings-danger .settings-card__icon {
  background: #f9e9e8;
  color: var(--danger);
}

.settings-legal {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px;
  border-left: 3px solid var(--teal);
  background: #f0f7f6;
  color: var(--muted);
}

.settings-legal svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--teal);
}

.settings-legal p {
  margin: 0;
  line-height: 1.55;
}

.signing-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.signing-dialog::backdrop {
  background: rgba(7, 25, 38, 0.64);
  backdrop-filter: blur(3px);
}

.signing-dialog__surface {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 70px rgba(7, 25, 38, 0.3);
}

.signing-dialog__surface h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
}

.signing-dialog__surface > p:not(.panel-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.signing-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.signing-dialog__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.signing-dialog__actions {
  display: flex;
  gap: 10px;
}

.signing-dialog__email {
  width: 100%;
}

.signing-dialog__share-label {
  margin-bottom: -6px !important;
  color: var(--ink) !important;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.signing-share-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}

.signing-share-option {
  display: grid;
  min-height: 74px;
  gap: 6px;
  place-items: center;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.signing-share-option:hover,
.signing-share-option:focus-visible {
  border-color: var(--teal);
  background: #edf8f6;
}

.signing-share-option svg {
  width: 22px;
  height: 22px;
  color: var(--teal-dark);
}

.signing-dialog__expiry {
  font-size: 12px;
}

.signing-dialog__delivery {
  margin: 14px 0 0;
  color: var(--teal-dark);
  font-weight: 700;
}

.signing-dialog__delivery[data-state="error"] {
  color: var(--danger);
}

.transaction-timeline {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.transaction-timeline summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.transaction-timeline summary svg,
.transaction-timeline li > svg { width: 16px; height: 16px; flex: 0 0 16px; }
.transaction-timeline ol { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.transaction-timeline li { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); }
.transaction-timeline li span { display: grid; gap: 2px; }
.transaction-timeline li strong { color: var(--ink); font-size: 0.86rem; }
.transaction-timeline li time { font-size: 0.78rem; }

.remote-sign-page {
  background: #f4f7f8;
}

.remote-sign-secure {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #176b58;
  font-size: 13px;
  font-weight: 900;
}

.remote-sign-secure svg {
  width: 17px;
  height: 17px;
}

.remote-sign-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 54px 0 76px;
}

.remote-sign-heading {
  max-width: 720px;
}

.remote-sign-heading__icon,
.remote-sign-complete > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.remote-sign-heading h1 {
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.remote-sign-heading > p:not(.panel-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.remote-sign-status {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
  padding: 16px;
  border: 1px solid #cfe0df;
  border-radius: 8px;
  background: #edf8f6;
  color: #176b58;
  font-weight: 800;
}

.remote-sign-status.error {
  border-color: #e4c0be;
  background: #fff4f3;
  color: var(--danger);
}

.remote-sign-status[hidden],
.remote-sign-complete[hidden],
#signingExperience[hidden] {
  display: none;
}

.remote-sign-summary,
.remote-sign-form {
  margin-top: 28px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.signing-verification {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid #c8d9df;
  border-radius: 8px;
  background: #f7fafb;
}

.signing-verification > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e7f3f2;
  color: var(--teal);
}

.signing-verification h2 { margin: 3px 0 6px; font-size: 21px; }
.signing-verification p { margin: 0; color: var(--muted); line-height: 1.5; }
.signing-verification__actions { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.signing-verification__actions label { flex: 1 1 180px; margin: 0; }
.signing-verification__status { margin-top: 9px !important; min-height: 18px; font-size: 12px; font-weight: 800; }
.signing-verification.is-verified { border-color: #91c8a7; background: #f1f9f4; }
.signing-verification.is-verified > span { background: #dff2e6; color: #197044; }

.remote-sign-summary__head {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
}

.remote-sign-summary__head h2,
.remote-sign-form h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 26px;
}

.remote-sign-summary__head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.remote-sign-facts,
.remote-sign-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.remote-sign-facts > div,
.remote-sign-details dl > div {
  padding: 13px;
  background: white;
}

.remote-sign-facts dt,
.remote-sign-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.remote-sign-facts dd,
.remote-sign-details dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.remote-sign-terms {
  margin-top: 22px;
}

.remote-sign-terms h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.remote-sign-terms p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.remote-sign-details {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.remote-sign-details summary {
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}

.remote-sign-form {
  display: grid;
  gap: 18px;
}

.remote-signature-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.remote-sign-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid #bddbd7;
  border-radius: 7px;
  background: #eff8f7;
  line-height: 1.5;
}

.remote-sign-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.remote-sign-caution {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  border-left: 3px solid #c59428;
  background: #fff9e9;
  color: #66511d;
}

.remote-sign-caution svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.remote-sign-caution p {
  margin: 0;
  line-height: 1.5;
}

.remote-sign-submit {
  min-height: 50px;
}

.remote-sign-complete {
  margin-top: 34px;
  padding: 34px;
  border: 1px solid #bddbd7;
  border-radius: 8px;
  background: white;
}

.remote-sign-complete > span {
  background: #176b58;
}

.remote-sign-complete h2 {
  margin: 5px 0 10px;
  color: var(--ink);
  font-size: 30px;
}

.remote-sign-complete p:not(.panel-kicker) {
  max-width: 660px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .records-panel {
    grid-column: 1 / -1;
    position: static;
  }

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

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

@media (max-width: 820px) {
  .owner-readiness-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: sticky;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
  }

  .topbar__nav {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .topbar__nav::-webkit-scrollbar { display: none; }

  .topbar__nav a {
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
  }

  .hero {
    min-height: 520px;
  }

  .intro-band,
  .trust-band,
  .feedback-band,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .category-band--summary {
    display: grid;
    align-items: start;
  }

  .owner-heading,
  .owner-breakdown {
    display: grid;
    grid-template-columns: 1fr;
  }

  .owner-controls {
    justify-content: flex-start;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

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

  .workspace {
    width: min(100% - 20px, 760px);
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .progress-panel {
    position: static;
    display: block;
    padding: 12px;
  }

  .progress-panel > .brand-row,
  .progress-panel > .meter,
  .progress-panel > .readiness-card,
  .progress-panel > .mini-summary { display: none; }

  .progress-panel .step-list { margin-top: 0; }
  .builder-save-tools { grid-template-columns: 1fr 1fr; margin-top: 10px; padding-top: 10px; }
  .builder-save-tools small { grid-column: 1 / -1; }

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

  .field-grid.two,
  .field-grid.three,
  .signature-grid,
  .party-grid {
    grid-template-columns: 1fr;
  }

  .signature-review__facts {
    grid-template-columns: 1fr 1fr;
  }

  .name-grid { grid-template-columns: 1fr 1fr; }
  .name-grid label:last-child { grid-column: 1 / -1; }

  .section-heading,
  .actions-band {
    display: grid;
  }

  .generated-header { padding: 16px; }
  .generated-header h2 { font-size: 21px; }
  .generated-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .generated-actions button { width: 100%; }

  .action-row {
    justify-content: stretch;
  }

  .action-row button {
    flex: 1 1 150px;
  }

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

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

  .account-profile {
    grid-column: 1 / -1;
  }

  .account-signin,
  .account-record {
    grid-template-columns: 1fr;
  }

  .account-auth {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .account-record__actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal-section { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .topbar {
    gap: 10px;
    padding-inline: 12px;
  }

  .topbar .brand-wordmark {
    width: 126px;
  }

  .topbar__nav {
    gap: 6px;
    overflow: visible;
  }

  .topbar__nav a:not(.nav-verify):not(.nav-cta) {
    display: none;
  }

  .topbar__nav a {
    padding: 8px;
    font-size: 12px;
  }

  .topbar__nav svg {
    width: 16px;
    height: 16px;
  }

  .hero__overlay {
    width: calc(100% - 24px);
    padding-bottom: 68px;
  }

  .hero__overlay h1 {
    font-size: 48px;
  }

  .hero .hero-wordmark {
    width: min(100%, 390px);
  }

  .hero-actions,
  .button-link {
    width: 100%;
  }

  .hero-proof span {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .topbar__nav,
  .process-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .feedback-form button {
    width: 100%;
  }

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

  .verify-form button {
    width: 100%;
  }

  .verify-scan-prompt {
    align-items: stretch;
    flex-direction: column;
  }

  .verify-scan-prompt button,
  .qr-upload {
    width: 100%;
    justify-content: center;
  }

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

  .section-band {
    padding: 18px 14px;
  }

  .smart-start-band { padding: 18px 14px; }
  .smart-start-copy { align-items: center; }
  .smart-start-actions, .step-navigation { align-items: stretch; flex-direction: column; }
  .smart-start-actions button, .step-navigation button { width: 100%; }
  .intake-tabs { grid-template-columns: 1fr; }
  .intake-panel .primary { width: 100%; }
  .lien-guidance { grid-template-columns: 1fr; }
  .step-navigation .primary { margin-left: 0; }
  .name-grid, .address-grid { grid-template-columns: 1fr; }
  .name-grid label:last-child { grid-column: auto; }
  .party-fields { padding: 13px; }

  .account-shell {
    padding-top: 36px;
  }

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

  .owner-metrics,
  .owner-category-row {
    grid-template-columns: 1fr;
  }

  .owner-category-row strong {
    justify-self: start;
  }

  .account-profile,
  .account-stat {
    grid-column: auto;
  }

  .account-profile {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-profile .text-link {
    grid-column: 2;
  }

  .account-record__actions,
  .account-record__actions .button-link,
  .account-record__actions button {
    width: 100%;
  }

  .account-view-tabs,
  .settings-grid,
  .remote-sign-facts,
  .remote-sign-details dl {
    grid-template-columns: 1fr;
  }

  .account-view-tabs,
  .account-view-tabs.has-owner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .settings-heading,
  .remote-sign-summary__head,
  .signing-dialog__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-actions,
  .settings-actions button,
  .signing-dialog__actions button {
    width: 100%;
  }

  .settings-card--wide {
    grid-column: auto;
  }

  .signing-dialog__surface {
    padding: 24px 18px;
  }

  .remote-sign-shell {
    width: min(100% - 20px, 920px);
    padding-top: 34px;
  }

  .remote-sign-secure {
    font-size: 11px;
  }

  .verify-details {
    grid-template-columns: 1fr;
  }

  .verify-details > div,
  .verify-details > div:nth-child(even) {
    border-right: 0;
  }
}
