:root {
  color-scheme: light;
  --brand-navy: #0e1f33;
  --brand-green: #4caf2f;
  --brand-green-soft: #eef8ea;
  --text: #172033;
  --muted: #667085;
  --page: #f4f7f6;
  --line: #d9e2df;
  --warning: #b76e00;
  --warning-bg: #fff7e6;
  --error: #b42318;
  --error-bg: #fff1f0;
  --info: #2563eb;
  --info-bg: #eef4ff;
  --panel: #ffffff;
  --shadow: 0 22px 60px rgba(14, 31, 51, 0.08);
  font-family:
    Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
}

/* Incomplete-project intake section. Scoped replacement for upload_sources only. */
.public-home-layout .incomplete-intake-section,
.public-main-focus .incomplete-intake-section {
  --intake-green: #76d33c;
  --intake-green-soft: #132817;
  --intake-amber: #f0b51d;
  --intake-red: #ef5350;
  --intake-line: #2a3941;
  position: relative;
  width: calc(100% + 56px);
  margin-inline: -28px;
  margin-bottom: 24px;
  padding: 28px 34px 22px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #071015;
  color: #f5f7f6;
}

.incomplete-intake-grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) 24px minmax(0, 1fr) 24px minmax(0, .8fr);
  gap: 10px;
  align-items: stretch;
}

.incomplete-flow-arrow {
  align-self: center;
  color: var(--intake-green);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.incomplete-intake-intro {
  display: flex;
  align-self: stretch;
  min-height: 0;
  min-width: 0;
}

.incomplete-intake-head {
  width: 100%;
  margin-bottom: 24px;
}

.public-main.public-home-layout .incomplete-intake-head > .eyebrow,
.public-main.public-home-layout .incomplete-intake-head > h2,
.public-main.public-home-layout .incomplete-intake-head > p,
.public-main.public-home-layout .incomplete-intake-head > .incomplete-intake-gate {
  max-width: none;
}

/* Compact source-and-change example on the public audit section. */
.public-main.public-home-layout .audit-section {
  display: block;
}

.public-main.public-home-layout .audit-intro {
  max-width: 780px;
  margin-bottom: 24px;
}

.public-main.public-home-layout .audit-example {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 14px 20px;
  max-width: 920px;
  padding: 18px;
  border: 1px solid var(--public-line);
  border-radius: 10px;
  background: var(--public-surface);
}

.public-main.public-home-layout .audit-example-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.public-main.public-home-layout .audit-example-head > span,
.public-main.public-home-layout .audit-history > span,
.public-main.public-home-layout .audit-state small,
.public-main.public-home-layout .audit-state em,
.public-main.public-home-layout .audit-history small,
.public-main.public-home-layout .audit-history-meta {
  color: var(--public-muted);
}

.public-main.public-home-layout .audit-example-head > span,
.public-main.public-home-layout .audit-history > span {
  font-size: 12px;
  font-weight: 700;
}

.public-main.public-home-layout .audit-example-head > strong {
  color: var(--public-text);
  font-size: 18px;
}

.public-main.public-home-layout .audit-state-list {
  display: grid;
  gap: 8px;
}

.public-main.public-home-layout .audit-state {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  background: #111a1f;
}

.public-main.public-home-layout .audit-state > svg { width: 18px; color: #82c95c; }
.public-main.public-home-layout .audit-state-system > svg { color: #79bce0; }
.public-main.public-home-layout .audit-state-user > svg { color: #edbd37; }

.public-main.public-home-layout .audit-state > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: baseline;
}

.public-main.public-home-layout .audit-state small,
.public-main.public-home-layout .audit-state em { font-size: 11px; font-style: normal; }
.public-main.public-home-layout .audit-state strong { color: var(--public-text); font-size: 14px; }

.public-main.public-home-layout .audit-history {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 11px 12px;
  border-left: 1px solid var(--public-line);
}

.public-main.public-home-layout .audit-history-row {
  display: grid;
  grid-template-columns: auto auto 18px auto auto;
  gap: 5px 7px;
  align-items: center;
}

.public-main.public-home-layout .audit-history-row strong { color: var(--public-text); font-size: 14px; }
.public-main.public-home-layout .audit-history-row svg { width: 15px; color: #82c95c; }

.public-main.public-home-layout .audit-history-meta {
  display: grid;
  gap: 4px;
  font-size: 11px;
}

.public-main.public-home-layout .audit-history-meta strong { color: var(--public-text); font-weight: 600; }

.public-main.public-home-layout .audit-retained-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--public-line);
  color: #b9c8bf;
  font-size: 12px;
  line-height: 1.4;
}

.public-main.public-home-layout .audit-retained-note svg { width: 17px; flex: 0 0 auto; color: #82c95c; }

@media (max-width: 760px) {
  .public-main.public-home-layout .audit-example { grid-template-columns: 1fr; }
  .public-main.public-home-layout .audit-history { border-top: 1px solid var(--public-line); border-left: 0; }
}

/* Keep the final public-home sections on the same outer grid as Hero and product blocks. */
.public-main.public-home-layout :is(
  .audit-section,
  .tariff-section,
  .faq-section,
  .final-cta-redesign
) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* The audit example is a primary product proof, not a compact aside. */
.public-main.public-home-layout .audit-section-inner {
  max-width: none;
}

.public-main.public-home-layout .audit-example {
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 28px 32px;
  padding: 28px 32px;
}

.public-main.public-home-layout .audit-example-head {
  gap: 12px;
}

.public-main.public-home-layout .audit-example-head > span,
.public-main.public-home-layout .audit-history > span {
  font-size: 13px;
}

.public-main.public-home-layout .audit-example-head > strong {
  font-size: 20px;
}

.public-main.public-home-layout .audit-state {
  gap: 12px;
  padding: 14px 16px;
}

.public-main.public-home-layout .audit-state small,
.public-main.public-home-layout .audit-state em,
.public-main.public-home-layout .audit-history small,
.public-main.public-home-layout .audit-history-meta {
  font-size: 13px;
}

.public-main.public-home-layout .audit-state strong,
.public-main.public-home-layout .audit-history-row strong {
  font-size: 17px;
}

.public-main.public-home-layout .audit-history {
  gap: 14px;
  padding: 14px 20px;
}

.public-main.public-home-layout .audit-retained-note {
  padding-top: 16px;
  font-size: 14px;
}

@media (max-width: 760px) {
  .public-main.public-home-layout .audit-example {
    gap: 20px;
    padding: 20px;
  }
}

/* Home editor: keep the current landing readable beside a usable drawer. */
.landing-editor-drawer { width: min(480px, 100vw); }

.landing-editor-canvas-fit.public-main { padding-right: 500px; }

/* Ready estimate: full-width workspace below an independent section header. */
.public-main.public-home-layout .ready-estimate-container {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.public-main.public-home-layout .ready-estimate-head {
  width: 100%;
}

.public-main.public-home-layout .ready-estimate-intro {
  display: block;
  width: 100%;
  max-width: 1000px;
  padding-top: 0;
}

.public-main.public-home-layout .ready-estimate-intro p {
  max-width: 900px;
  margin-top: 14px;
}

.public-main.public-home-layout .ready-estimate-callout {
  width: min(100%, 560px);
  margin-top: 20px;
  padding: 14px 16px;
  font-size: 15px;
}

.public-main.public-home-layout .ready-estimate-callout svg {
  width: 28px;
  height: 28px;
}

.public-main.public-home-layout .ready-estimate-product {
  width: 100%;
  margin-top: 32px;
}

.public-main.public-home-layout .ready-estimate-financials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.public-main.public-home-layout .ready-financial-categories,
.public-main.public-home-layout .ready-financial-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-main.public-home-layout .ready-financial-categories {
  border-bottom: 1px solid #d6dcda;
}

.public-main.public-home-layout .ready-financial-categories > span,
.public-main.public-home-layout .ready-financial-summary > span {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

.public-main.public-home-layout .ready-financial-categories > span + span,
.public-main.public-home-layout .ready-financial-summary > span + span {
  border-left: 1px solid #d6dcda;
}

.public-main.public-home-layout .ready-financial-categories small,
.public-main.public-home-layout .ready-financial-summary small {
  color: #262c29;
  font-size: 12px;
  font-weight: 700;
}

.public-main.public-home-layout .ready-financial-categories strong {
  color: #5b9f29;
  font-size: 18px;
}

.public-main.public-home-layout .ready-financial-categories .works strong { color: #507bb6; }
.public-main.public-home-layout .ready-financial-categories .delivery strong { color: #d79500; }
.public-main.public-home-layout .ready-financial-categories .equipment strong { color: #805bad; }

.public-main.public-home-layout .ready-financial-summary.is-internal > span {
  border-top: 0;
}

.public-main.public-home-layout .ready-financial-summary .cost strong,
.public-main.public-home-layout .ready-financial-summary .client-price strong,
.public-main.public-home-layout .ready-financial-summary .profit strong {
  color: #0d100e;
  font-size: 20px;
}

.public-main.public-home-layout .ready-financial-summary .margin strong {
  color: #5b9f29;
  font-size: 22px;
}

.public-main.public-home-layout .ready-financial-summary.is-client {
  grid-template-columns: 1fr;
}

@media (max-width: 760px) {
  .public-main.public-home-layout .ready-financial-categories,
  .public-main.public-home-layout .ready-financial-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.incomplete-intake-intro > .eyebrow {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid #62bf31;
  border-radius: 999px;
  background: transparent;
  color: var(--intake-green);
  font-size: 14px;
  font-weight: 800;
}

.incomplete-intake-head > .eyebrow {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid #62bf31;
  border-radius: 999px;
  color: var(--intake-green);
  font-size: 14px;
  font-weight: 800;
}

.public-main :is(.incomplete-intake-intro) h2 {
  max-width: 610px;
  margin: 22px 0 14px;
  color: #f7f8f7;
  font-size: clamp(36px, 2.75vw, 44px);
  line-height: 1.04;
  white-space: pre-line;
}

.public-main :is(.incomplete-intake-head) h2 {
  max-width: 760px;
  margin: 22px 0 14px;
  color: #f7f8f7;
  font-size: clamp(36px, 2.75vw, 44px);
  line-height: 1.04;
  white-space: pre-line;
}

@media (min-width: 1281px) {
  .public-main :is(.incomplete-intake-intro) h2 {
    width: 620px;
    max-width: 620px;
  }
}

.public-main :is(.incomplete-intake-intro) h2::first-line {
  color: #f7f8f7;
}

.public-main :is(.incomplete-intake-intro) h2 em {
  display: block;
  color: var(--intake-green);
  font-style: normal;
}

.incomplete-intake-intro > p {
  max-width: 560px;
  margin: 0;
  color: #c4cdca;
  font-size: 17px;
  line-height: 1.55;
}

.incomplete-intake-head > p {
  max-width: 760px;
  margin: 0;
  color: #c4cdca;
  font-size: 17px;
  line-height: 1.55;
}

.incomplete-intake-gate {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 12px 0 22px;
  padding: 11px 20px;
  border: 1px solid var(--intake-line);
  border-radius: 10px;
  background: #101920;
}

.incomplete-intake-head .incomplete-intake-gate {
  max-width: 760px;
}

.incomplete-intake-gate svg {
  width: 38px;
  height: 38px;
  color: var(--intake-green);
}

.incomplete-intake-gate strong {
  font-size: 16px;
  line-height: 1.45;
}

.incomplete-source-panel {
  width: 100%;
  height: 100%;
  padding: 14px 16px 16px;
  border: 1px solid var(--intake-line);
  border-radius: 12px;
  background: #0d161c;
}

.incomplete-source-panel > h3 {
  margin: 0 0 14px;
  color: #f3f6f4;
  font-size: 17px;
}

.incomplete-source-list {
  display: grid;
  gap: 9px;
}

.incomplete-source-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 7px;
  border: 1px solid #26353d;
  border-radius: 10px;
  background: #111b21;
}

.incomplete-source-card .source-mock,
.incomplete-source-card .landing-managed-media {
  width: 112px;
  height: 58px;
  min-height: 58px;
  border: 1px solid #33444d;
  border-radius: 7px;
  background-color: #172228;
}

.incomplete-source-card .landing-managed-media img {
  width: 100%;
  height: 100%;
  object-fit: inherit;
  object-position: inherit;
}

.incomplete-source-card > div:nth-child(2) {
  min-width: 0;
}

.incomplete-source-card > div:nth-child(2) strong {
  display: block;
  margin-bottom: 4px;
  color: #f0f3f1;
  font-size: 16px;
}

.incomplete-source-card > div:nth-child(2) p {
  margin: 0;
  color: #aeb9b5;
  font-size: 13px;
  line-height: 1.45;
}

.incomplete-source-card > span {
  justify-self: end;
  max-width: 82px;
  padding: 6px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.incomplete-source-card.tone-success > span { color: var(--intake-green); }
.incomplete-source-card.tone-warning > span { color: var(--intake-amber); }
.incomplete-source-card.tone-danger > span { color: var(--intake-red); }

.incomplete-extraction-card,
.incomplete-questions-card {
  min-width: 0;
  border: 1px solid var(--intake-line);
  border-radius: 12px;
  background: #0d161c;
}

.incomplete-extraction-card {
  height: 100%;
  padding: 22px;
}

.incomplete-extraction-card > header,
.incomplete-questions-card > header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.incomplete-extraction-card > header svg {
  width: 24px;
  color: var(--intake-green);
}

.incomplete-extraction-card h3,
.incomplete-questions-card h3 {
  margin: 0;
  color: #f3f6f4;
  font-size: 19px;
}

.incomplete-card-kicker {
  margin: 20px 0 10px;
  color: var(--intake-green);
  font-size: 13px;
  font-weight: 800;
}

.incomplete-found-list {
  display: grid;
  gap: 6px;
}

.incomplete-found-list > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #25343c;
  border-radius: 7px;
  background: #111b21;
}

.incomplete-found-list svg {
  width: 19px;
  color: var(--intake-green);
}

.incomplete-found-list .origin-derived svg { color: #45a9d9; }
.incomplete-found-list .origin-user svg { color: #c2cbd0; }

.incomplete-found-list strong {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: normal;
}

.incomplete-found-list span {
  color: #98a5a0;
  font-size: 11px;
  white-space: nowrap;
}

.incomplete-insufficient {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding: 18px 0;
  border-block: 1px solid #27363e;
}

.incomplete-insufficient svg {
  color: var(--intake-amber);
}

.incomplete-insufficient strong {
  font-size: 14px;
  line-height: 1.4;
}

.incomplete-readiness {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 13px 0 16px;
}

.incomplete-readiness > span {
  color: #c8d0cd;
  font-size: 13px;
}

.incomplete-readiness > div {
  display: grid;
  grid-template-columns: repeat(var(--intake-segments, 6), minmax(0, 1fr));
  gap: 4px;
}

.incomplete-readiness > div i {
  height: 12px;
  border-radius: 4px;
  background: #35434b;
}

.incomplete-readiness > div i.active { background: #70bd43; }

.incomplete-readiness p {
  margin: 0;
  color: #abb6b1;
  font-size: 12px;
  line-height: 1.4;
}

.incomplete-origin-legend {
  display: grid;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid #27363e;
}

.incomplete-origin-legend span {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #c1cac6;
  font-size: 11px;
}

.incomplete-origin-legend svg { width: 17px; }
.incomplete-origin-legend .tone-success svg { color: var(--intake-green); }
.incomplete-origin-legend .tone-info svg { color: #45a9d9; }

.incomplete-questions-card {
  align-self: stretch;
  height: 100%;
  padding: 22px 24px;
}

.incomplete-questions-card > header {
  justify-content: space-between;
}

.incomplete-questions-card > header svg {
  width: 22px;
  color: #aeb8b4;
}

.incomplete-question-progress {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 24px;
  align-items: center;
  margin: 20px 0 14px;
  color: var(--intake-green);
  font-size: 13px;
}

.incomplete-question-progress > span {
  display: grid;
  grid-template-columns: repeat(var(--question-segments, 1), minmax(0, 1fr));
  gap: 4px;
}

.incomplete-question-progress i {
  height: 4px;
  border-radius: 999px;
  background: #314048;
}

.incomplete-question-progress i.active { background: #73ca43; }

.incomplete-current-question {
  padding: 16px;
  border: 1px solid #2a3941;
  border-radius: 10px;
  background: #111b21;
}

.incomplete-current-question > strong {
  display: block;
  color: #f4f6f5;
  font-size: 16px;
}

.incomplete-current-question > p {
  margin: 8px 0 14px;
  color: #b7c0bc;
  font-size: 13px;
}

.incomplete-answer-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.incomplete-answer-options > span {
  display: grid;
  min-height: 52px;
  place-items: center;
  padding: 8px;
  border: 1px solid #35454d;
  border-radius: 9px;
  color: #f0f3f1;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.incomplete-answer-options > span.selected {
  border-color: var(--intake-green);
  background: #162a18;
}

.incomplete-blocked-state,
.incomplete-ready-state {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 10px;
}

.incomplete-blocked-state {
  border: 1px solid #c58d08;
  background: #171811;
}

.incomplete-blocked-state > div,
.incomplete-ready-state > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.incomplete-blocked-state svg { color: var(--intake-amber); }
.incomplete-ready-state svg { color: var(--intake-green); }

.incomplete-blocked-state strong,
.incomplete-ready-state strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.incomplete-blocked-state p,
.incomplete-ready-state p {
  margin: 0;
  color: #b8c1bd;
  font-size: 13px;
  line-height: 1.4;
}

.incomplete-blocked-state > button,
.incomplete-ready-state > button {
  width: calc(100% - 50px);
  min-height: 45px;
  margin: 14px 0 0 50px;
  border-radius: 8px;
  font-weight: 800;
}

.incomplete-blocked-state > button:disabled {
  border-color: #354047;
  background: #303a40;
  color: #9aa4a8;
  opacity: 1;
}

.incomplete-blocked-state > small {
  display: block;
  margin: 10px 0 0 50px;
  color: #899691;
  font-size: 11px;
}

.incomplete-next-state-label {
  margin: 12px 0 6px;
  color: #aeb8b4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.incomplete-ready-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 0;
  border: 1px solid #61c52d;
  background: #102116;
  padding: 10px 12px;
}

.incomplete-ready-state > div {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.incomplete-ready-state > div > svg { width: 24px; height: 24px; }

.incomplete-ready-state strong { margin-bottom: 2px; font-size: 14px; }
.incomplete-ready-state p { font-size: 12px; }

.incomplete-ready-state > button:disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: #4ea926;
  background: #2e7f22;
  color: #ffffff;
  opacity: 1;
}

.incomplete-ready-state > button,
.incomplete-ready-state > button:disabled {
  width: auto;
  min-height: 36px;
  margin: 0;
  padding-inline: 12px;
  white-space: nowrap;
}

.incomplete-ready-state > button svg { width: 18px; color: #ffffff; }

@media (min-width: 1281px) {
  .incomplete-questions-card {
    align-self: center;
  }
}

.incomplete-intake-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  border: 1px solid var(--intake-line);
  border-radius: 12px;
  background: #0d161c;
}

.incomplete-intake-benefits > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 16px 28px;
  border-right: 1px solid #2a3941;
}

.incomplete-intake-benefits > div:last-child { border-right: 0; }

.incomplete-intake-benefits > div > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--intake-green);
}

.incomplete-intake-benefits svg { width: 38px; height: 38px; }

.incomplete-intake-benefits strong {
  display: block;
  margin-bottom: 4px;
  color: #f2f5f3;
  font-size: 15px;
}

.incomplete-intake-benefits p {
  margin: 0;
  color: #aeb8b4;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1280px) {
  .incomplete-intake-grid {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1.08fr);
    gap: 8px;
  }

  .incomplete-flow-arrow { font-size: 30px; }
  .incomplete-source-card { grid-template-columns: 94px minmax(0, 1fr) 70px; }
  .incomplete-source-card .source-mock,
  .incomplete-source-card .landing-managed-media { width: 94px; }
  .incomplete-intake-benefits > div { padding-inline: 18px; }
}

@media (max-width: 1040px) {
  .incomplete-intake-grid { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 18px; }
  .incomplete-intake-intro { grid-column: 1 / -1; }
  .incomplete-flow-arrow { display: none; }
  .incomplete-source-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .incomplete-source-card { grid-template-columns: 1fr; }
  .incomplete-source-card .source-mock,
  .incomplete-source-card .landing-managed-media { width: 100%; }
  .incomplete-source-card > span { justify-self: start; max-width: none; }
  .incomplete-intake-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .incomplete-intake-benefits > div:nth-child(2) { border-right: 0; }
  .incomplete-intake-benefits > div:nth-child(-n + 2) { border-bottom: 1px solid #2a3941; }
}

@media (max-width: 720px) {
  .public-home-layout .incomplete-intake-section,
  .public-main-focus .incomplete-intake-section {
    width: 100%;
    margin-inline: 0;
    padding: 26px 18px;
  }
  .incomplete-intake-grid { grid-template-columns: 1fr; }
  .incomplete-source-list { grid-template-columns: 1fr; }
  .incomplete-source-card { grid-template-columns: 104px minmax(0, 1fr) 78px; }
  .incomplete-source-card .source-mock,
  .incomplete-source-card .landing-managed-media { width: 104px; }
  .incomplete-intake-benefits { grid-template-columns: 1fr; }
  .incomplete-intake-benefits > div { border-right: 0; border-bottom: 1px solid #2a3941; }
  .incomplete-intake-benefits > div:last-child { border-bottom: 0; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 7%, rgba(76, 175, 47, 0.09), transparent 27%),
    var(--page);
  color: var(--text);
}

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

button,
.button-link {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 720;
}

button:hover,
.button-link:hover {
  border-color: #aab8b4;
}

button:disabled,
.disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.primary,
.success {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(76, 175, 47, 0.2);
}

.ghost {
  border-color: transparent;
  background: transparent;
}

.danger {
  border-color: #f0b7b1;
  color: var(--error);
}

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

.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--brand-navy);
  color: #f8fafc;
  padding: 22px 16px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-logo {
  display: block;
  width: 164px;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 1;
  object-fit: contain;
  object-position: left center;
}

.sidebar .brand-logo {
  width: 168px;
  filter: brightness(0) invert(1);
}

.brand-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--brand-green);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(76, 175, 47, 0.24);
}

.brand strong {
  display: block;
  color: inherit;
  font-weight: 800;
}

.brand small,
.muted,
.meta,
.status-label {
  color: var(--muted);
}

.sidebar .muted,
.sidebar .field span,
.sidebar .brand small {
  color: #c9d3df;
}

.nav {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

.nav button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
}

.nav button.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.main {
  min-width: 0;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px clamp(28px, 3vw, 48px);
}

.public-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 24px clamp(18px, 3vw, 44px) 42px;
  overflow-x: hidden;
}

.public-main-focus {
  width: min(100%, 1360px);
  margin: 0;
}

.public-main.landing-capture-fit1440 {
  width: 849px;
  max-width: none;
  margin: 0;
  transform: none;
}

.public-main.landing-capture-fit1440 .public-header {
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
}

.public-main.landing-capture-fit1440 .mobile-menu-toggle {
  display: none;
}

.public-main.landing-capture-fit1440 .public-nav {
  position: static;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.public-main.landing-capture-fit1440 .public-nav a,
.public-main.landing-capture-fit1440 .public-nav button {
  width: auto;
  font-size: 10px;
  white-space: nowrap;
}

.public-main.landing-capture-fit1024 {
  width: 849px;
  max-width: none;
  margin: 0;
  transform: none;
}

.public-main.landing-capture-editor {
  width: 849px;
  max-width: none;
  margin: 0;
}

.public-main.landing-capture-editor .landing-editor-toolbar {
  margin-right: 0;
}

.public-main.landing-capture-editor .landing-editor-drawer {
  right: 0;
  left: auto;
  width: min(460px, 100vw);
}

.public-main.landing-capture-fit1440 .landing-hero-redesign {
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: 24px;
}

.public-main.landing-capture-fit1440 .landing-hero-redesign .hero-copy h1 {
  font-size: 38px;
}

.public-main.landing-capture-fit1440 .landing-hero-redesign .hero-copy p {
  font-size: 15px;
}

.public-main.landing-capture-fit1440 .product-preview {
  gap: 8px;
  padding: 14px;
}

.public-main.landing-capture-fit1440 .preview-visuals,
.public-main.landing-capture-fit1440 .preview-money,
.public-main.landing-capture-fit1440 .choice-row {
  grid-template-columns: 1fr;
}

.public-main.landing-capture-fit1440 .source-mock {
  min-height: 74px;
}

.public-main.landing-capture-fit1440 .preview-files,
.public-main.landing-capture-fit1440 .preview-grid {
  grid-template-columns: 1fr 1fr;
}

.public-main.landing-capture-fit1440 .upload-grid-redesign,
.public-main.landing-capture-fit1440 .tariff-section .grid-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-main.landing-capture-fit1440 .tariff-section .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-main.landing-capture-fit1440 .landing-tariff:last-child {
  grid-column: auto;
  width: auto;
  max-width: none;
}

.public-main.landing-capture-fit1440 .landing-tariff {
  min-width: 0;
}

.public-main.landing-capture-fit1440 .showcase-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.public-main.landing-capture-fit1440 .showcase-row {
  grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr) !important;
}

.public-main.landing-capture-fit1440 .showcase-row em {
  grid-column: 1 / -1;
}

/* Landing inline editor UX prototype. Frontend-only, local draft state. */
.landing-editor-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  height: 54px;
  margin: 0;
  padding: 7px clamp(16px, 3vw, 44px);
  border-bottom: 1px solid rgba(76, 175, 47, 0.24);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 26px rgba(14, 31, 51, 0.08);
  backdrop-filter: blur(10px);
}

.public-main.landing-editor-active:not(.landing-editor-preview) {
  padding-top: 74px;
}

.public-main.landing-editor-active [data-section-id="upload_sources"] {
  scroll-margin-top: 74px;
}

.public-main.landing-editor-active:not(.landing-editor-preview) [data-section-id="upload_sources"] .incomplete-intake-section {
  padding-top: 34px;
}

.public-main.landing-editor-active [data-section-id="product_showcase"] {
  scroll-margin-top: 112px;
}

.public-main.landing-editor-active:not(.landing-editor-preview) [data-section-id="product_showcase"] .ready-estimate-section {
  padding-top: calc(54px + clamp(34px, 3vw, 54px));
}

.home-editor-entry {
  border-color: rgba(76, 175, 47, 0.36);
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.landing-editor-toolbar-title strong,
.landing-editor-toolbar-title span {
  display: block;
  white-space: nowrap;
}

.landing-editor-toolbar-title {
  flex: 1 1 260px;
  min-width: 210px;
}

.landing-editor-toolbar-title strong {
  font-size: 14px;
}

.landing-editor-toolbar-title span {
  font-size: 12px;
}

.landing-editor-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.landing-editor-toolbar-meta code {
  overflow: hidden;
  color: #657568;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-editor-build-marker {
  display: block;
  max-width: 210px;
  overflow: hidden;
  color: #718078;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-editor-toolbar-title .warn {
  color: #9a5b00;
}

.landing-editor-toolbar-title .success {
  color: var(--brand-green);
}

.landing-editor-toolbar-title .error {
  color: #b42318;
}

.landing-editor-validation-summary {
  margin-top: 6px;
}

.landing-editor-validation-summary button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ffcbc2;
  border-radius: 8px;
  background: #fff3f0;
  color: #9f1d12;
  font: inherit;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
}

.landing-editor-validation-summary button:hover {
  background: #ffe9e4;
}

.landing-editor-field.validation-focus input,
.landing-editor-field.validation-focus textarea,
.landing-editor-field.validation-focus select {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.16);
}

.notice-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.notice-actions span {
  font-size: 12px;
}

.landing-editor-toolbar-actions {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.landing-editor-toolbar-actions button,
.landing-editor-more summary {
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.landing-editor-more {
  position: relative;
}

.landing-editor-more summary {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.landing-editor-more summary::-webkit-details-marker {
  display: none;
}

.landing-editor-more div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(14, 31, 51, 0.14);
}

.landing-editable-section {
  position: relative;
  border-radius: 16px;
  transition: outline-color 0.16s ease, background-color 0.16s ease;
}

.landing-editor-active:not(.landing-editor-preview) .landing-editable-section:hover,
.landing-editable-section.selected {
  outline: 2px dashed rgba(76, 175, 47, 0.65);
  outline-offset: 8px;
  background: rgba(76, 175, 47, 0.025);
}

.landing-pencil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 38px;
  padding: 0 12px;
  border-color: rgba(76, 175, 47, 0.55);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(14, 31, 51, 0.14);
}

.landing-section-edit-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(260px, calc(100% - 24px));
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(76, 175, 47, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(14, 31, 51, 0.14);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-2px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.landing-section-edit-toolbar span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-editor-active:not(.landing-editor-preview) .landing-editable-section:hover .landing-section-edit-toolbar,
.landing-editable-section.selected .landing-section-edit-toolbar {
  opacity: 1;
  transform: translateY(0);
}

.landing-editor-drawer {
  position: fixed;
  top: 54px;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(460px, 100vw);
  height: calc(100vh - 54px);
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: -24px 0 60px rgba(14, 31, 51, 0.18);
}

.landing-recovery-prompt {
  position: fixed;
  top: 66px;
  right: 18px;
  z-index: 96;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid #f0d28c;
  border-radius: 10px;
  background: #fff9e8;
  box-shadow: 0 16px 36px rgba(14, 31, 51, 0.16);
}

.landing-recovery-prompt > div:first-child {
  display: grid;
  gap: 3px;
}

.landing-recovery-prompt .actions {
  justify-content: flex-end;
}

.landing-recovery-prompt span {
  color: #6f5a2f;
  font-size: 12px;
}

.landing-history-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(14, 31, 51, 0.42);
}

.landing-version-history {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(460px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -24px 0 60px rgba(14, 31, 51, 0.24);
}

.landing-version-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfa;
}

.landing-version-row > div:first-child,
.landing-version-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landing-version-row p {
  margin: 0;
}

.landing-version-meta {
  color: var(--muted);
  font-size: 11px;
}

.landing-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 31, 51, 0.56);
  backdrop-filter: blur(3px);
}

.landing-confirm-dialog {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid rgba(76, 175, 47, 0.28);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(14, 31, 51, 0.28);
}

.landing-confirm-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #eaf6e5;
  color: var(--brand-green);
  font-size: 22px;
  font-weight: 900;
}

.landing-confirm-icon.danger {
  background: #fff0ed;
  color: #b42b1e;
}

.landing-confirm-copy {
  display: grid;
  gap: 5px;
}

.landing-confirm-copy > span {
  color: var(--brand-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-confirm-copy h2,
.landing-confirm-copy p {
  margin: 0;
}

.landing-confirm-copy h2 {
  color: var(--text);
  font-size: 21px;
}

.landing-confirm-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.landing-confirm-dialog form {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.landing-confirm-media {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf8;
}

.landing-confirm-media-preview {
  display: grid;
  min-height: 82px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #e9efeb;
  color: var(--muted);
  font-size: 28px;
}

.landing-confirm-media-preview img {
  width: 100%;
  height: 100%;
  min-height: 82px;
  object-fit: cover;
}

.landing-confirm-media-copy {
  align-content: center;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.landing-confirm-media-copy > span {
  color: var(--muted);
  font-size: 11px;
}

.landing-confirm-media-copy > strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-confirm-media-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.landing-confirm-media-copy > em {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eaf6e5;
  color: #2e7020;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.landing-confirm-note {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f2f6f3;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.landing-confirm-dialog .actions {
  justify-content: flex-end;
}

.landing-editor-unused-media {
  display: grid;
  gap: 6px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.landing-editor-unused-media > strong {
  font-size: 12px;
}

.landing-editor-unused-media > button {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .landing-confirm-dialog {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .landing-confirm-dialog form {
    grid-column: 1;
  }

  .landing-confirm-media {
    grid-column: 1;
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

.landing-editor-forbidden {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.landing-editor-forbidden > div {
  width: min(620px, 100%);
}

.landing-editor-drawer-head,
.landing-editor-drawer-foot {
  position: sticky;
  z-index: 2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.landing-editor-drawer-head {
  top: 0;
}

.landing-editor-drawer-foot {
  bottom: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.landing-editor-drawer-body {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  overflow: auto;
}

.landing-editor-field {
  display: grid;
  gap: 6px;
}

.landing-editor-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.landing-editor-field input,
.landing-editor-field textarea,
.landing-editor-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fbfdfc;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.landing-editor-field.invalid input {
  border-color: #c33;
  background: #fff6f4;
}

.landing-editor-field.warn-length input,
.landing-editor-field.warn-length textarea {
  border-color: #f4b740;
  background: #fffaf0;
}

.landing-editor-field small,
.landing-editor-helper,
.landing-editor-local-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.landing-editor-field textarea {
  min-height: 84px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
}

.landing-editor-group,
.landing-editor-image-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfa;
}

.landing-editor-image-box {
  gap: 8px;
  padding: 10px;
}

.landing-editor-managed-object {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfa;
}

.landing-editor-field.readonly input {
  color: var(--muted);
  background: #f1f4f3;
}

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

.landing-editor-panel summary {
  padding: 12px;
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

.landing-editor-panel-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.landing-editor-repeated-list,
.landing-editor-repeated-item {
  display: grid;
  gap: 10px;
}

.landing-editor-repeated-head,
.landing-editor-repeated-actions,
.landing-editor-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.landing-editor-repeated-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfa;
}

.landing-editor-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.landing-editor-validation-note {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #f4d28a;
  border-radius: 8px;
  background: #fff9e8;
  color: #7a4f00;
  font-size: 12px;
  font-weight: 750;
}

.landing-editor-validation-note.error,
.landing-editor-error {
  border-color: #ffcbc2;
  background: #fff3f0;
  color: #9f1d12;
}

.landing-editor-validation-note p {
  margin: 0 0 4px;
}

.landing-editor-current-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #eef8ea;
  font-size: 12px;
}

.landing-editor-original-thumb {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  width: 72px;
  height: 48px;
  padding: 8px;
  border: 1px solid rgba(76, 175, 47, 0.28);
  border-radius: 6px;
  background: linear-gradient(145deg, #f4faF1, #e4f2df);
}

.landing-editor-original-thumb i {
  display: block;
  border-radius: 2px 2px 0 0;
  background: #4caf2f;
}

.landing-editor-original-thumb i:nth-child(1) { height: 45%; }
.landing-editor-original-thumb i:nth-child(2) { height: 75%; }
.landing-editor-original-thumb i:nth-child(3) { height: 58%; }

.landing-editor-image-choose {
  width: 100%;
  min-height: 42px;
  box-shadow: 0 8px 18px rgba(76, 175, 47, 0.18);
  font-weight: 850;
}

.landing-editor-image-formats,
.landing-editor-selected-file {
  margin: 0;
  font-size: 12px;
}

.landing-editor-image-formats {
  color: var(--muted);
  font-weight: 750;
}

.landing-editor-selected-file {
  overflow-wrap: anywhere;
  color: var(--text);
}

.landing-editor-image-box > .landing-editor-local-note {
  padding: 8px 9px;
  border: 1px solid #f0d28c;
  border-radius: 8px;
  background: #fff9e8;
  color: #7a4f00;
}

.landing-editor-native-file {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.landing-editor-current-image div {
  display: grid;
  gap: 2px;
}

.landing-editor-current-image em {
  color: var(--muted);
  font-style: normal;
}

.landing-editor-current-thumb {
  width: 72px;
  height: 48px;
  border: 1px solid rgba(76, 175, 47, 0.28);
  border-radius: 6px;
  object-fit: cover;
}

.landing-editor-image-preview {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px dashed rgba(76, 175, 47, 0.5);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.landing-editor-image-preview img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.landing-editor-image-preview.cover img {
  object-fit: cover;
}

.landing-editor-image-preview.top img {
  object-position: center top;
}

.landing-editor-image-preview.center img {
  object-position: center center;
}

.landing-editor-image-preview.bottom img {
  object-position: center bottom;
}

.landing-editor-original-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 280px);
  padding: 18px;
  border: 1px solid #dce8d8;
  border-radius: 12px;
  background: #f8fbf7;
  color: var(--text);
}

.landing-editor-original-preview strong,
.landing-editor-original-preview span,
.landing-editor-original-preview b {
  grid-column: 1 / -1;
}

.landing-editor-original-preview span {
  color: var(--muted);
  font-size: 11px;
}

.landing-editor-original-preview i {
  display: block;
  height: 38px;
  border-radius: 6px;
  background: #e5f2e1;
}

.landing-editor-original-preview b {
  padding-top: 8px;
  border-top: 1px solid #dce8d8;
  color: var(--brand-green);
  font-size: 13px;
}

.landing-editor-return {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  border-color: rgba(76, 175, 47, 0.42);
  background: #fff;
  color: var(--brand-green);
  box-shadow: 0 14px 34px rgba(14, 31, 51, 0.16);
}

.landing-editor-repeated-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.landing-editor-repeated-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.landing-editor-repeated-actions {
  align-items: start;
  justify-content: flex-end;
}

.landing-editor-repeated-actions button {
  min-width: 32px;
  padding: 6px 8px;
}

.drag-handle {
  padding-top: 10px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: -2px;
}

.landing-live-image-preview {
  position: relative;
  grid-column: 1 / -1;
  height: 160px;
  overflow: hidden;
  border: 1px solid rgba(76, 175, 47, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(76, 175, 47, 0.26), rgba(14, 31, 51, 0.16)),
    repeating-linear-gradient(45deg, rgba(76, 175, 47, 0.18) 0 12px, rgba(255, 255, 255, 0.72) 12px 24px);
}

.landing-live-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-live-image-preview.cover img {
  object-fit: cover;
}

.landing-live-image-preview.top img {
  object-position: center top;
}

.landing-live-image-preview.center img {
  object-position: center center;
}

.landing-live-image-preview.bottom img {
  object-position: center bottom;
}

.landing-live-image-preview span {
  position: absolute;
  left: 10px;
  top: 10px;
  right: auto;
  bottom: auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-green);
  font-size: 11px;
  font-weight: 850;
}

.tariff-price.invalid {
  color: #b42318;
  font-size: 22px;
}

/* Simplified two-level public-home editor. */
.landing-editor-drawer {
  width: min(480px, 100vw);
}

.landing-editor-drawer-context {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.landing-editor-drawer-context > strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-editor-back-link {
  justify-self: start;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--brand-green);
  font-size: 12px;
}

.landing-editor-section-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.landing-editor-section-select select {
  min-width: 190px;
  max-width: 300px;
  padding: 6px 28px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfa;
  color: var(--text);
  font: inherit;
}

.landing-editor-canvas-switch,
.landing-editor-tabs,
.landing-editor-media-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f3f6f4;
}

.landing-editor-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: sticky;
  top: -14px;
  z-index: 3;
  margin: -2px 0 2px;
  background: #fff;
}

.landing-editor-media-selector {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-editor-canvas-switch button,
.landing-editor-tabs button,
.landing-editor-media-selector button {
  min-height: 34px;
  padding: 6px 8px;
  border-color: transparent;
  background: transparent;
  font-size: 12px;
}

.landing-editor-canvas-switch button.active,
.landing-editor-tabs button.active,
.landing-editor-media-selector button.active {
  border-color: rgba(76, 175, 47, 0.3);
  background: #fff;
  color: var(--brand-green);
  box-shadow: 0 3px 10px rgba(14, 31, 51, 0.08);
}

.landing-editor-section-stack,
.landing-editor-item-screen,
.landing-editor-subsection,
.landing-editor-inline-list {
  display: grid;
  gap: 12px;
}

.landing-editor-subsection {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfa;
}

.landing-editor-financial-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.landing-editor-financial-summary > div:last-of-type b {
  color: var(--brand-green);
  font-size: 16px;
}

.landing-editor-repeated-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.landing-editor-repeated-head > div > span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #edf3ef;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.landing-editor-compact-list {
  display: grid;
  gap: 7px;
}

.landing-editor-compact-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.landing-editor-compact-item.disabled {
  opacity: 0.62;
}

.landing-editor-compact-item .drag-handle {
  padding: 0;
}

.landing-editor-compact-thumb {
  display: grid;
  width: 52px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f8f6;
}

.landing-editor-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-editor-compact-thumb .source-mock {
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 3px;
  border: 0;
  border-radius: 0;
  font-size: 5px;
}

.landing-editor-compact-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.landing-editor-compact-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-editor-compact-copy span {
  color: var(--muted);
  font-size: 10px;
}

.landing-editor-item-edit {
  min-height: 32px;
  padding: 6px 9px;
  color: var(--brand-green);
}

.landing-editor-item-menu {
  position: relative;
}

.landing-editor-item-menu summary {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  list-style: none;
}

.landing-editor-item-menu summary::-webkit-details-marker {
  display: none;
}

.landing-editor-item-menu > div {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 8;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(14, 31, 51, 0.16);
}

.landing-editor-item-menu button {
  justify-content: flex-start;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
}

.landing-editor-image-box {
  padding: 12px;
  background: #fff;
}

.landing-editor-image-preview {
  min-height: 230px;
}

.landing-editor-image-preview img {
  height: 260px;
}

.landing-editor-structured-preview {
  display: grid;
  width: 100%;
  min-height: 230px;
  place-items: center;
  padding: 16px;
}

.landing-editor-structured-preview .source-mock {
  width: min(100%, 360px);
  min-height: 190px;
}

.landing-editor-media-settings {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.landing-editor-media-settings summary {
  padding: 10px 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.landing-editor-media-settings > div {
  display: grid;
  gap: 10px;
  padding: 0 11px 11px;
}

.landing-editor-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.landing-editor-inline-row > div {
  display: flex;
  gap: 3px;
  padding-bottom: 1px;
}

.landing-editor-inline-row button {
  min-width: 30px;
  min-height: 36px;
  padding: 5px;
}

.landing-editor-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.landing-editor-canvas-fit.public-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: 500px;
  overflow: hidden;
}

.landing-editor-canvas-fit .landing-editor-canvas {
  width: 1180px;
  zoom: var(--landing-editor-canvas-scale);
}

.landing-editor-canvas-fit .landing-editor-drawer {
  zoom: 1;
}

@media (max-height: 800px) {
  .landing-editor-image-preview,
  .landing-editor-structured-preview {
    min-height: 100px;
  }

  .landing-editor-image-preview img {
    height: 110px;
  }

  .landing-editor-structured-preview .source-mock {
    height: 76px;
    min-height: 0;
    max-height: 76px;
    overflow: hidden;
  }

  .landing-editor-structured-preview {
    padding: 8px;
  }
}

@media (max-width: 900px) {
  .landing-editor-toolbar {
    gap: 6px;
    padding-inline: 10px;
  }

  .landing-editor-toolbar-title {
    flex-basis: 210px;
    min-width: 180px;
  }

  .landing-editor-toolbar-title strong {
    font-size: 12px;
  }

  .landing-editor-toolbar-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 5px;
  }

  .landing-editor-toolbar-actions button,
  .landing-editor-more summary {
    padding: 7px 9px;
    font-size: 12px;
  }
}

.public-main.landing-capture-fit1440 .landing-editor-drawer {
  right: 0;
  left: auto;
}

@media (max-width: 760px) {
  .landing-editor-toolbar {
    min-height: 54px;
    height: 54px;
  }

  .landing-editor-toolbar-title {
    min-width: 0;
  }

  .landing-editor-toolbar-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .landing-editor-toolbar-title span {
    font-size: 10px;
  }

  .landing-editor-toolbar-meta code {
    display: none;
  }

  .landing-editor-toolbar-actions button,
  .landing-editor-more summary {
    min-height: 32px;
    padding: 6px 7px;
    font-size: 11px;
  }
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-steps {
  min-height: 0;
  padding: 14px 0 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-head {
  max-width: 690px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-head .eyebrow {
  min-height: 20px;
  margin-bottom: 5px;
  padding: 3px 8px;
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-head h2 {
  max-width: 690px;
  margin: 0;
  font-size: 24px;
  line-height: 1.06;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-head > p {
  max-width: 690px;
  margin-top: 6px;
  font-size: 7px;
  line-height: 1.35;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-rail,
.public-main.public-home-layout.landing-capture-fit1440 .process-five-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-rail {
  margin: 8px 0 -15px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-node > span {
  width: 34px;
  height: 34px;
  box-shadow: 0 0 0 3px #071116;
  font-size: 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-node > svg {
  right: -5px;
  width: 11px;
  height: 11px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-grid {
  gap: 6px;
  margin-top: 0;
  border-radius: 8px;
  padding: 3px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-card,
.public-main.public-home-layout.landing-capture-fit1440 .process-five-card:last-child {
  min-height: 250px;
  grid-column: auto;
  border-radius: 6px;
  padding: 20px 6px 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-card-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-card-icon svg {
  width: 22px;
  height: 22px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-card h3 {
  min-height: 24px;
  font-size: 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-card > p {
  min-height: 34px;
  margin: 3px 0 5px;
  font-size: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-card-body {
  min-height: 80px;
}

.public-main.public-home-layout.landing-capture-fit1440 :is(.process-file-list, .process-data-list, .process-question-list, .process-answer-list, .process-financial-list) {
  border-radius: 4px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-file-list > div {
  grid-template-columns: 14px minmax(0, 1fr) 10px;
  gap: 4px;
  padding: 3px 4px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-file-list svg {
  width: 10px;
  height: 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-file-list strong,
.public-main.public-home-layout.landing-capture-fit1440 .process-file-list small {
  font-size: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-data-list > div,
.public-main.public-home-layout.landing-capture-fit1440 .process-financial-list > div {
  min-height: 16px;
  gap: 3px;
  padding: 3px 4px;
  font-size: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-data-list b,
.public-main.public-home-layout.landing-capture-fit1440 .process-financial-list b {
  font-size: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-data-list svg {
  width: 7px;
  height: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-question-list > div {
  min-height: 58px;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 4px;
  padding: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-question-list svg {
  width: 10px;
  height: 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-question-list span strong,
.public-main.public-home-layout.landing-capture-fit1440 .process-question-list b {
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-question-list span small {
  font-size: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-answer-list {
  padding: 4px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-answer-question {
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-answer-question small {
  font-size: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-answer-options {
  gap: 3px;
  margin-top: 5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-answer-options span {
  min-height: 16px;
  border-radius: 3px;
  font-size: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-status {
  min-height: 20px;
  gap: 4px;
  padding-top: 4px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-status svg {
  width: 11px;
  height: 11px;
  flex-basis: 11px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-status strong {
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  border-radius: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-benefits > div {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  min-height: 55px;
  border-right: 1px solid #34434a;
  border-bottom: 0;
  padding: 7px 12px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-benefits > div:last-child {
  border-right: 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-benefits > div > span {
  width: 31px;
  height: 31px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-benefits svg {
  width: 25px;
  height: 25px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-benefits strong {
  font-size: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .process-five-benefits p {
  margin-top: 3px;
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440.landing-editor-active [data-section-id="process"] .landing-section-edit-toolbar {
  opacity: 1;
  pointer-events: auto;
}

/* Round 3 screenshot guard: keep 1440 pricing in one row in the constrained in-app capture viewport. */
.public-main.landing-capture-fit1440 .tariff-section .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.preview-money small {
  display: block;
  margin-top: 4px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.78;
}

@media (max-width: 1024px) and (min-width: 721px) {
  .tariff-section .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .landing-tariff:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 720px) {
  .public-main-focus .upload-grid,
  .public-main-focus .upload-grid-redesign,
  .upload-grid-redesign {
    grid-template-columns: 1fr !important;
  }
}

/* Landing visual polish round 3. Keep last to override legacy landing blocks above. */
.public-header {
  min-height: 56px;
  margin-bottom: 16px;
  padding: 6px 0;
}

.public-brand {
  transform: scale(1.06);
  transform-origin: left center;
}

.public-nav {
  gap: 12px;
}

.public-nav a,
.public-nav button {
  font-size: 16px;
}

.public-nav .header-cta {
  width: auto;
  min-width: 0;
  padding-inline: 16px;
}

.landing-hero-redesign {
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: clamp(36px, 4vw, 52px);
  align-items: center;
  padding-top: 14px;
}

.landing-hero-redesign .hero-copy h1 {
  max-width: 570px;
  font-size: clamp(44px, 3.6vw, 54px);
  line-height: 1.04;
}

.landing-hero-redesign .hero-copy p {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.48;
}

.hero-value-list {
  margin-top: 14px;
}

.hero-value-list span {
  font-size: 15px;
  line-height: 1.25;
}

.risk-reversal {
  font-size: 13px;
}

.product-preview {
  gap: 10px;
  border-color: #d8e4df;
  padding: clamp(15px, 1.5vw, 20px);
}

.preview-files {
  gap: 8px;
}

.preview-files div {
  border: 0;
  background: #f5f8f6;
  padding: 10px 12px;
}

.preview-files strong {
  font-size: 15px;
}

.preview-visuals {
  gap: 8px;
}

.preview-grid div {
  border-color: #e5ece8;
  background: #ffffff;
  padding: 10px;
}

.preview-grid div.warn-cell {
  border: 1px solid #e9b84f !important;
  background: #fff7e4 !important;
}

.preview-questions {
  border: 1px solid #e8b74c;
  background: #fff5df;
  padding: 12px;
}

.preview-questions strong {
  color: #8a5c00;
  font-size: 16px;
}

.preview-questions span {
  background: rgba(255, 255, 255, 0.72);
}

.preview-money {
  gap: 8px;
}

.preview-money div {
  min-height: 76px;
  border: 0;
  background: #edf8ea;
  padding: 12px;
}

.preview-money .preview-client-price {
  background: linear-gradient(180deg, #4caf2f, #2c7d1e);
  color: #ffffff;
}

.preview-money .preview-client-price span,
.preview-money .preview-client-price strong {
  color: #ffffff;
}

.preview-money .preview-client-price strong {
  font-size: clamp(23px, 2vw, 30px);
}

.ai-trust-section,
.pain-editorial,
.product-showcase,
.team-strip,
.audit-section,
.final-cta-redesign {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.process-section,
.upload-section,
.tariff-section,
.faq-section {
  box-shadow: none;
}

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

.landing-tariff {
  grid-template-rows: auto auto 1fr auto;
}

.landing-tariff button {
  align-self: end;
}

.faq-section {
  padding-block: 22px;
}

.faq-accordion {
  gap: 7px;
}

.faq-item button {
  min-height: 60px;
  padding: 11px 15px;
  align-items: flex-start;
}

.faq-item button strong {
  font-size: 15px;
  line-height: 1.25;
}

.faq-item p {
  max-width: 760px;
  padding: 0 15px 13px;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .landing-hero-redesign {
    grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
    gap: 24px;
  }

  .landing-hero-redesign .hero-copy h1 {
    font-size: clamp(36px, 3.7vw, 42px);
  }

  .landing-hero-redesign .hero-copy p,
  .hero-value-list span {
    font-size: 14px;
  }

  .product-preview {
    gap: 8px;
    padding: 13px;
  }

  .source-mock {
    min-height: 76px;
  }

  .preview-visuals,
  .preview-money {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 721px) {
  .tariff-section .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-tariff:last-child {
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 900px) {
  .landing-hero-redesign {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .public-header {
    min-height: 58px;
    margin-bottom: 8px;
  }

  .public-brand {
    transform: none;
  }

  .landing-hero-redesign .hero-copy h1 {
    font-size: clamp(31px, 8.3vw, 38px);
  }

  .landing-hero-redesign .hero-copy p {
    font-size: 15px;
    line-height: 1.42;
  }

  .hero-value-list {
    gap: 6px;
  }

  .hero-value-list span {
    font-size: 14px;
  }

  .upload-grid-redesign {
    grid-template-columns: 1fr;
  }

  .upload-card {
    gap: 10px;
  }

  .upload-card .source-mock {
    min-height: 118px;
  }

  .faq-section {
    padding: 16px;
  }

  .faq-item button {
    min-height: 52px;
    padding: 10px 12px;
    gap: 10px;
  }

  .faq-item button strong {
    font-size: 14px;
  }

  .faq-item button span {
    align-self: flex-start;
    font-size: 18px;
  }

  .faq-item p {
    padding: 0 12px 11px;
    font-size: 13px;
  }
}

.public-main.landing-capture-fit1440 .landing-hero-redesign {
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
}

.public-main.landing-capture-fit1440 .landing-hero-redesign .hero-copy h1 {
  font-size: 35px;
}

.public-main.landing-capture-fit1440 .landing-hero-redesign .hero-copy p {
  font-size: 14px;
}

.public-main.landing-capture-fit1440 .hero-value-list span {
  font-size: 13px;
}

.public-main.landing-capture-fit1440 .tariff-section .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-main-focus .landing-hero,
.public-main-focus .workflow-strip,
.public-main-focus .money-grid,
.public-main-focus .faq-grid {
  grid-template-columns: 1fr;
}

.public-main-focus .upload-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-main-focus .grid-3 {
  grid-template-columns: 1fr;
}

.public-main-focus .upload-card {
  padding: 14px;
  gap: 10px;
}

.public-main-focus .upload-card .source-mock {
  min-height: 96px;
}

.public-main-focus .preview-files,
.public-main-focus .preview-grid,
.public-main-focus .preview-money {
  grid-template-columns: 1fr;
}

.public-main-focus .landing-hero {
  gap: 14px;
  padding: 20px;
}

@media (min-width: 1280px) {
  .public-main-focus .landing-hero-redesign {
    grid-template-columns: minmax(0, 0.47fr) minmax(0, 0.53fr);
    gap: clamp(40px, 4vw, 56px);
    padding: clamp(18px, 2vw, 28px) 0 clamp(28px, 3vw, 40px);
  }
}

.public-main-focus .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 54px);
}

.public-main-focus .hero-copy p {
  max-width: 760px;
  font-size: 17px;
}

.public-main-focus .hero-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.public-main-focus .hero-actions {
  margin-top: 14px;
}

.public-main-focus .product-preview {
  padding: 16px;
}

.public-main-focus .preview-head {
  margin-bottom: 12px;
}

.public-main-focus .preview-files {
  gap: 8px;
}

.public-main-focus .preview-visuals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.public-main-focus .source-mock {
  min-height: 90px;
}

.public-main-focus .preview-grid,
.public-main-focus .preview-money {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.public-main-focus .preview-questions {
  gap: 8px;
  padding: 12px;
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 30px;
  padding: 12px 0;
}

.public-brand {
  margin-bottom: 0;
}

.public-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.public-nav a {
  color: var(--brand-navy);
  font-weight: 720;
  text-decoration: none;
}

.button-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--brand-navy);
  padding: 9px 14px;
  font-weight: 800;
  text-decoration: none;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
}

.landing-focus {
  display: grid;
  gap: 24px;
}

.hero-copy,
.hero-panel,
.public-section,
.page,
.panel,
.card,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.hero-copy,
.hero-panel,
.public-section {
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
  min-height: 500px;
  padding: clamp(28px, 3.6vw, 46px);
  background:
    linear-gradient(135deg, rgba(238, 248, 234, 0.95), rgba(255, 255, 255, 0.98) 46%),
    #ffffff;
}

.hero-copy h1 {
  max-width: 740px;
  margin: 18px 0 16px;
  color: var(--brand-navy);
  font-size: clamp(36px, 3.25vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 660px;
  color: #405063;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-actions button {
  min-width: 154px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-facts span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid #bfe5b5;
  border-radius: 999px;
  background: #ffffff;
  color: #2d7c1f;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

.hero-facts.compact {
  margin-top: 22px;
}

.hero-panel {
  display: grid;
  padding: 20px;
  background: var(--brand-navy);
}

.landing-hero .hero-panel {
  background: transparent;
  padding: 0;
}

.product-preview {
  display: grid;
  gap: 16px;
  min-height: 100%;
  border-radius: 10px;
  background: #ffffff;
  padding: clamp(18px, 2.4vw, 28px);
}

.preview-head,
.tariff-top,
.topbar,
.section-head,
.actions,
.status-row,
.inline-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.preview-head h2 {
  margin: 3px 0 0;
  color: var(--brand-navy);
  font-size: 32px;
}

.preview-files,
.preview-questions,
.preview-money {
  display: grid;
  gap: 10px;
}

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

.preview-visuals {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 10px;
}

.preview-files div,
.preview-questions,
.preview-money div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
  padding: 13px;
  min-width: 0;
}

.source-mock {
  position: relative;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
}

.landing-managed-media {
  position: relative;
  min-width: 0;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
}

.landing-managed-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.landing-managed-media.contain img { object-fit: contain; }
.landing-managed-media.cover img { object-fit: cover; }
.landing-managed-media.top img { object-position: center top; }
.landing-managed-media.bottom img { object-position: center bottom; }
.landing-managed-media.left img { object-position: left center; }
.landing-managed-media.right img { object-position: right center; }

.source-mock-pdf {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px;
}

.source-mock-pdf span,
.source-mock-file span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #cdd8d4;
}

.source-mock-pdf span:nth-child(1) {
  width: 72%;
}

.source-mock-pdf span:nth-child(2) {
  width: 86%;
}

.source-mock-pdf span:nth-child(3) {
  width: 54%;
}

.mock-plan-lines {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, 16px);
  gap: 4px;
}

.mock-plan-lines i {
  display: block;
  height: 22px;
  border: 2px solid #9fb2ac;
  border-radius: 3px;
}

.source-mock-plan {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  grid-template-rows: 1fr 0.8fr;
  gap: 4px;
  padding: 10px;
}

.mock-room {
  border: 2px solid #95aaa3;
  border-radius: 5px;
  background: #ffffff;
}

.room-a {
  grid-row: span 2;
}

.room-c {
  background: var(--brand-green-soft);
}

.mock-door {
  position: absolute;
  left: 45%;
  bottom: 12px;
  width: 28px;
  height: 16px;
  border-bottom: 2px solid #95aaa3;
  border-radius: 0 0 18px 18px;
}

.source-mock-sketch {
  display: grid;
  place-items: center;
  background: #fff8e7;
}

.source-mock-sketch svg {
  width: 88%;
  height: 78%;
}

.source-mock-sketch path {
  fill: none;
  stroke: #7b5b19;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-mock-file {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
}

.preview-files strong,
.preview-questions strong,
.preview-questions span,
.preview-money strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.preview-total {
  border-radius: 10px;
  background: var(--brand-green-soft);
  padding: 18px;
}

.preview-total span,
.preview-grid span,
.preview-files span,
.preview-money span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.preview-total strong {
  display: block;
  margin-top: 8px;
  color: #2d7c1f;
  font-size: 34px;
  line-height: 1;
}

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

.preview-grid div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}

.preview-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-navy);
}

.warn-cell {
  border-color: #f1c26b !important;
  background: #fff8e7 !important;
}

.preview-questions {
  border-color: #f1c26b;
  background: #fff8e7;
}

.preview-questions span {
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
  color: var(--brand-navy);
  font-weight: 760;
}

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

.preview-money div {
  background: var(--brand-green-soft);
}

.preview-money strong {
  margin-top: 5px;
  color: #2d7c1f;
}

.preview-lines {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.preview-lines span {
  height: 10px;
  border-radius: 999px;
  background: #edf2f0;
}

.preview-lines span:nth-child(2) {
  width: 82%;
}

.preview-lines span:nth-child(3) {
  width: 64%;
}

.feature-list {
  display: grid;
  gap: 12px;
}

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

.feature-card {
  position: relative;
  border: 1px solid #cfe8c8;
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, var(--brand-green-soft));
}

.feature-card strong {
  display: block;
  color: var(--brand-navy);
  font-size: 15px;
}

.feature-card p {
  margin: 9px 0 0;
  line-height: 1.45;
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.public-section {
  margin-bottom: 24px;
  padding: 26px;
}

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

.workflow-step,
.upload-card,
.money-chip,
.faq-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 16px;
}

.upload-card {
  display: grid;
  gap: 12px;
}

.upload-card .source-mock {
  min-height: 112px;
}

.workflow-step {
  display: grid;
  align-content: start;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff, var(--brand-green-soft));
}

.workflow-step span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 900;
}

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

.upload-card strong,
.money-chip strong,
.faq-item strong,
.workflow-step strong {
  display: block;
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.upload-card p,
.faq-item p {
  margin-top: 8px;
}

.landing-note {
  margin-top: 14px;
}

.money-section {
  background: var(--brand-navy);
  color: #ffffff;
}

.money-section h2,
.money-section .muted {
  color: #ffffff;
}

.money-section .muted {
  opacity: 0.84;
}

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

.money-chip {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.money-chip strong {
  color: #ffffff;
}

.money-chip span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: center;
}

.trust-section .feature-index {
  background: var(--brand-navy);
}

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

.tariff-section {
  background: #ffffff;
}

.topbar {
  margin-bottom: 20px;
}

.topbar h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  color: var(--brand-navy);
  font-size: 28px;
}

h2 {
  margin-bottom: 12px;
  color: var(--brand-navy);
  font-size: 20px;
}

h3 {
  margin-bottom: 10px;
  color: var(--brand-navy);
  font-size: 16px;
}

.page,
.panel {
  width: 100%;
  padding: 20px;
  min-width: 0;
}

.stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.stack > *,
.ai-flow > * {
  min-width: 0;
}

.estimate-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.estimate-workspace > * {
  min-width: 0;
}

.estimate-overview {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.estimate-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 28px;
  align-items: end;
}

.estimate-overview-hero h2,
.estimate-sections-overview h2 {
  margin: 6px 0 8px;
  color: var(--workspace-text);
  font-size: clamp(24px, 2.2vw, 34px);
}

.estimate-overview-hero p,
.estimate-sections-overview .section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--workspace-muted);
  line-height: 1.55;
}

.estimate-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.estimate-overview-metrics > div {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--workspace-line);
  border-radius: 7px;
  background: var(--workspace-surface-hover);
}

.estimate-overview-metrics span,
.estimate-section-overview-grid span {
  color: var(--workspace-muted);
  font-size: 12px;
}

.estimate-overview-metrics strong {
  color: var(--workspace-text);
  font-size: 19px;
  line-height: 1.2;
}

.estimate-sections-overview .section-head {
  align-items: end;
  gap: 24px;
}

.estimate-sections-overview .section-head > button {
  flex: 0 0 auto;
}

.estimate-section-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.estimate-section-overview-grid article {
  display: grid;
  gap: 18px;
  min-height: 118px;
  padding: 15px;
  border: 1px solid var(--workspace-line);
  border-radius: 7px;
  background: var(--workspace-surface-hover);
}

.estimate-section-overview-grid article > div {
  display: grid;
  gap: 4px;
}

.estimate-section-overview-grid strong {
  color: var(--workspace-text);
  line-height: 1.3;
}

.estimate-section-overview-grid b {
  align-self: end;
  color: #8ad35e;
  font-size: 18px;
}

.estimate-result-back {
  margin-bottom: 14px;
}

.estimate-result-back button {
  width: auto;
}

.estimate-history-empty {
  min-height: min(560px, calc(100vh - 180px));
  display: grid;
  place-items: center;
}

.estimate-empty-copy {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(100%, 720px);
}

.estimate-empty-copy h2,
.estimate-selection-empty h2,
.calculation-history-panel h2,
.estimate-detail-panel h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}

.estimate-empty-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.estimate-empty-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--brand-navy);
  font-weight: 700;
}

.estimate-empty-steps b {
  color: var(--brand-green);
}

.calculation-history-panel .section-head {
  align-items: center;
}

.calculation-history-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calculation-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.calculation-history-item.selected {
  border-color: #7ab997;
  box-shadow: inset 3px 0 0 var(--brand-green);
}

.calculation-history-primary {
  min-width: 0;
}

.calculation-history-primary strong,
.calculation-history-primary span {
  display: block;
  overflow-wrap: anywhere;
}

.calculation-history-item dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.calculation-history-item dl div {
  min-width: 0;
}

.calculation-history-item dt {
  color: var(--muted);
  font-size: 11px;
}

.calculation-history-item dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.calculation-history-item button {
  align-self: start;
  width: 100%;
}

.workspace-main .calculation-history-item {
  border-color: var(--workspace-line);
  background: var(--workspace-surface-hover);
  color: var(--workspace-text);
}

.workspace-main .calculation-history-item.selected {
  border-color: #4e8c31;
  background: #102017;
}

.estimate-detail-status,
.estimate-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.estimate-detail-actions {
  justify-content: flex-end;
  margin: -4px 0 16px;
}

.estimate-selection-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
}

.estimate-selection-empty > div {
  max-width: 520px;
}

.view-workspace form,
.view-legal form {
  max-width: 900px;
}

.workspace-main .panel > p {
  max-width: 920px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  min-width: 0;
}

.card {
  padding: 16px;
  min-width: 0;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 11px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b9e2ae;
  border-color: var(--brand-green);
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  padding-right: 46px;
}

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

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  background: rgba(98, 183, 70, 0.12);
  color: var(--brand-green);
}

.password-visibility-toggle:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 1px;
}

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

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.remember-me input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-green);
}

textarea {
  min-height: 150px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.entry-hero {
  min-height: 300px;
  padding: 30px;
  background:
    linear-gradient(135deg, var(--brand-green-soft), #ffffff 62%),
    #ffffff;
}

.entry-hero h1 {
  margin-top: 16px;
  font-size: 38px;
  line-height: 1.12;
}

/* Entry and account-access screens use the same dark green visual system as Public Home. */
.public-main.public-auth-layout .auth-layout {
  padding-top: 24px;
}

.public-main.public-auth-layout .entry-hero.page,
.public-main.public-auth-layout .auth-layout > .panel {
  border: 1px solid var(--public-line);
  background: var(--public-surface);
  color: var(--public-text);
  box-shadow: none;
}

.public-main.public-auth-layout .entry-hero.page {
  background-color: var(--public-surface);
  background:
    radial-gradient(circle at 12% 10%, rgba(98, 183, 70, 0.13), transparent 42%),
    linear-gradient(145deg, #101b14, var(--public-surface) 68%),
    var(--public-surface);
}

.public-main.public-auth-layout :is(h1, h2, h3, strong),
.public-main.public-auth-layout .field span {
  color: var(--public-text);
}

.public-main.public-auth-layout :is(input, select, textarea) {
  border-color: var(--public-line-strong);
  background: var(--public-surface-raised);
  color: var(--public-text);
}

.public-main.public-auth-layout .password-visibility-toggle {
  color: var(--public-muted);
}

.public-main.public-auth-layout .password-visibility-toggle:hover,
.public-main.public-auth-layout .password-visibility-toggle:focus-visible {
  background: rgba(116, 198, 83, 0.14);
  color: var(--public-green);
}

.public-main.public-auth-layout .remember-me {
  color: var(--public-muted);
}

.public-main.public-auth-layout :is(input, textarea)::placeholder {
  color: #7f8d87;
}

.public-main.public-auth-layout :is(input, select, textarea):focus {
  outline-color: rgba(116, 198, 83, 0.34);
  border-color: var(--public-green);
}

.public-main.public-auth-layout .auth-layout button:not(.primary) {
  border-color: var(--public-line-strong);
  background: var(--public-surface-raised);
  color: #dce5e0;
}

.public-main.public-auth-layout .auth-layout button:not(.primary):hover {
  border-color: #4c704a;
  background: #152019;
  color: #ffffff;
}

.public-main.public-auth-layout .badge {
  border-color: #345b30;
  background: var(--public-green-soft);
  color: #82cf66;
}

.public-main.public-auth-layout .mini-preview {
  border-color: #345b30;
  background: #101912;
}

.public-main.public-auth-layout :is(.mini-preview span, .mvp-note, .muted) {
  color: var(--public-muted);
}

.mini-preview {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  border: 1px solid #cfe8c8;
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
}

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

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

.step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
}

.step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-green-soft);
  color: #2d7c1f;
  font-weight: 800;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge {
  background: var(--brand-green-soft);
  color: #2d7c1f;
}

.badge.warn {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge.error {
  background: var(--error-bg);
  color: var(--error);
}

.pill {
  border: 1px solid var(--line);
  background: #f7f9f8;
}

.notice {
  padding: 14px;
}

.notice.warn {
  background: var(--warning-bg);
  border-color: #f3d08c;
}

.notice.error {
  background: var(--error-bg);
  border-color: #f5b5ae;
}

.public-main.public-auth-layout .notice.error {
  color: #7f1d1d;
}

.public-main.public-auth-layout .notice.warn {
  color: #713f12;
}

.notice.success {
  background: var(--brand-green-soft);
  border-color: #b9e2ae;
  color: #174b2e;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1ef;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #f8faf9;
  color: #405063;
  font-weight: 760;
}

tr:last-child td {
  border-bottom: 0;
}

.summary-card strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-navy);
  font-size: 20px;
}

.tariff-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 280px;
  border-color: #cfe0dc;
}

.tariff-card.recommended {
  border-color: #b9e2ae;
  background: linear-gradient(180deg, #ffffff, var(--brand-green-soft));
  box-shadow: 0 18px 38px rgba(76, 175, 47, 0.13);
}

.tariff-price {
  display: block;
  color: var(--brand-navy);
  font-size: 24px;
}

.tariff-payment-form,
.payment-history-list,
.payment-refund form {
  display: grid;
  gap: 10px;
}

.tariff-payment-form {
  margin-top: auto;
}

.payment-note {
  margin: 0;
}

.payment-note a,
.payment-history-item a {
  color: var(--brand-green);
  font-weight: 760;
}

.payment-history-list {
  margin-top: 14px;
}

.payment-history-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.workspace-main .tariff-card .tariff-price {
  color: var(--workspace-green);
}

.workspace-main .tariff-card .clean-list li,
.workspace-main .payment-history-item .muted {
  color: var(--workspace-muted);
}

.workspace-main .payment-history-item {
  border-color: var(--workspace-line);
  background: var(--workspace-surface-hover);
  color: var(--workspace-text);
}

.workspace-main .payment-history-item > strong,
.workspace-main .payment-history-main > strong {
  color: var(--workspace-text);
}

.payment-history-main {
  display: grid;
  gap: 3px;
}

.payment-refund {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.payment-refund summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-weight: 720;
}

.payment-refund form {
  max-width: 620px;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .payment-history-item {
    grid-template-columns: 1fr;
  }
}

.clean-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: #405063;
  font-size: 14px;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand-green);
}

.footer-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px -20px -20px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}

.ai-flow .panel {
  scroll-margin-top: 18px;
}

.ai-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
  max-width: 100%;
  min-width: 0;
}

.ai-step {
  min-width: 0;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  overflow-wrap: anywhere;
}

.ai-step span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #edf2f0;
  color: #405063;
  font-size: 12px;
  font-weight: 800;
}

.ai-step.active {
  border-color: #f3d08c;
  background: var(--warning-bg);
}

.ai-step.ready {
  border-color: #b9e2ae;
  background: var(--brand-green-soft);
}

.ai-step.ready span {
  background: var(--brand-green);
  color: #ffffff;
}

.ai-upload-grid {
  align-items: stretch;
  margin-top: 14px;
}

.ai-start-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.clean-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #405063;
}

.ai-sketch-row {
  background: #fffaf0;
}

.question-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.question-card {
  background: #fbfdfc;
}

.question-card.answered {
  border-color: #b9e2ae;
  background: var(--brand-green-soft);
}

.ai-assistant-dialog {
  background: linear-gradient(180deg, #fbfdfc 0%, #f4f8f5 100%);
}

.ai-dialog-messages {
  max-width: 920px;
}

.ai-dialog-thread {
  display: grid;
  gap: 12px;
}

.ai-dialog-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ai-dialog-message.user {
  justify-content: flex-end;
}

.ai-dialog-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ai-dialog-bubble {
  width: min(100%, 760px);
  padding: 12px 14px;
  border: 1px solid #dce7df;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  color: #17202a;
}

.ai-dialog-bubble .muted {
  color: #596979;
}

.ai-dialog-message.user .ai-dialog-bubble {
  width: auto;
  max-width: min(82%, 680px);
  border-color: #b9e2ae;
  border-radius: 16px 4px 16px 16px;
  background: var(--brand-green-soft);
}

.question-form,
.inline-form,
.compact-edit-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.question-form {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.question-form[data-ai-structured-editor-required] {
  grid-template-columns: minmax(0, 1fr);
}

[data-ai-opening-row-questions] {
  margin: 0;
  padding-left: 24px;
  line-height: 1.5;
}

.question-form[data-ai-structured-editor-required] > button {
  justify-self: start;
}

@media (max-width: 680px) {
  .question-form input,
  .question-form select,
  .question-form button {
    min-height: 44px;
  }
}

.inline-form {
  grid-template-columns: minmax(160px, 220px) minmax(180px, 1fr) minmax(160px, auto);
  align-items: end;
}

.compact-edit-form {
  min-width: 320px;
}

.compact-edit-form .field {
  margin-bottom: 0;
}

.compact-edit-form input {
  min-width: 0;
}

.editable-line-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.editable-line-create-grid .field {
  min-width: 0;
  margin-bottom: 0;
}

.editable-line-create-grid input,
.editable-line-create-grid select {
  width: 100%;
  min-width: 0;
}

.estimate-version-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.estimate-accountability {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.estimate-accountability > div,
.participant-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.estimate-accountability > div {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

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

.participant-avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 800px) {
  .estimate-version-bar {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 1100px) {
  .editable-line-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .editable-line-create-grid {
    grid-template-columns: 1fr;
  }

  .estimate-accountability {
    grid-template-columns: 1fr;
  }
}

.line-actions {
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.muted-row {
  opacity: 0.82;
  background: var(--surface-soft);
}

.estimate-history-list {
  display: grid;
  gap: 8px;
}

.estimate-section-list {
  display: grid;
  gap: 18px;
}

.estimate-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.estimate-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.estimate-section-header h3 {
  margin: 0 0 3px;
}

.estimate-section-total {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.estimate-section-total span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.estimate-section-total strong {
  font-size: 1.08rem;
}

.estimate-section .table-wrap {
  border: 0;
  border-radius: 0;
}

.estimate-lines-table th:first-child,
.estimate-lines-table td:first-child {
  width: 130px;
}

@media (max-width: 760px) {
  .estimate-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .estimate-section-total {
    justify-items: start;
  }
}

.estimate-history-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(260px, 1.4fr);
  gap: 10px 16px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.estimate-history-item > div:first-child {
  display: grid;
  gap: 3px;
}

@media (max-width: 900px) {
  .estimate-history-item {
    grid-template-columns: 1fr;
  }
}

.source-trace {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0;
}

.source-trace span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9f8;
  padding: 4px 8px;
  color: #405063;
  font-size: 12px;
  font-weight: 720;
}

.alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.hidden {
  display: none;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mini {
  font-size: 12px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .landing-hero,
  .layout,
  .auth-layout,
  .grid,
  .grid-3,
  .feature-grid,
  .workflow-strip,
  .upload-grid,
  .money-grid,
  .faq-grid,
  .final-cta,
  .ai-start-guide,
  .ai-progress,
  .question-form,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .public-header,
  .public-nav {
    align-items: flex-start;
  }

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

  .public-nav {
    flex-wrap: wrap;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 1180px) {
  .calculation-history-list { grid-template-columns: 1fr; }
  .estimate-overview-hero { grid-template-columns: 1fr; }
  .estimate-section-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .calculation-history-item {
    grid-template-columns: 1fr;
  }

  .calculation-history-item dl {
    grid-template-columns: 1fr;
  }

  .calculation-history-item button {
    width: 100%;
  }

  .estimate-overview-metrics,
  .estimate-section-overview-grid {
    grid-template-columns: 1fr;
  }

  .estimate-sections-overview .section-head {
    align-items: stretch;
  }

  .public-main {
    padding: 18px 12px 28px;
  }

  .public-nav {
    width: 100%;
  }

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

  .hero-copy {
    min-height: 0;
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .preview-files,
  .preview-grid,
  .preview-visuals,
  .preview-money {
    grid-template-columns: 1fr;
  }

  .public-section {
    padding: 20px;
  }
}

/* Landing redesign: scoped to public landing only. */
.public-main {
  width: min(100%, 1280px);
}

.public-header {
  margin-bottom: 36px;
}

.header-cta {
  min-height: 38px;
  padding: 8px 13px;
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  border: 1px solid #c7d8c2;
  border-radius: 999px;
  background: #ffffff;
  color: #2d7c1f;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 850;
}

.landing-hero-redesign {
  grid-template-columns: minmax(0, 0.48fr) minmax(440px, 0.52fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.landing-hero-redesign .hero-copy {
  min-height: 0;
  padding: clamp(26px, 3vw, 40px);
  background: #ffffff;
}

.landing-hero-redesign .hero-copy h1 {
  max-width: 680px;
  margin: 18px 0;
  font-size: clamp(52px, 4.1vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.landing-hero-redesign .hero-copy p {
  max-width: 660px;
  font-size: 18px;
  line-height: 1.52;
}

.hero-value-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.hero-value-list span {
  position: relative;
  padding-left: 26px;
  color: #26364c;
  font-weight: 760;
}

.hero-value-list span::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--brand-green);
  content: "";
}

.secondary-link {
  background: #ffffff;
}

.risk-reversal {
  display: block;
  margin-top: 12px;
  color: #4a5a6f;
  font-size: 14px;
  font-weight: 700;
}

.product-preview {
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 28px 80px rgba(14, 31, 51, 0.14);
}

.product-preview .badge.warn,
.badge.warn {
  border-color: #f4d08c;
  background: var(--warning-bg);
  color: var(--warning);
}

.source-mock {
  min-height: 116px;
  border-radius: 12px;
}

.source-mock-pdf,
.source-mock-file {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  background: #fbfcfc;
}

.source-mock-pdf strong,
.source-mock-file strong {
  color: var(--brand-navy);
  font-size: 18px;
}

.source-mock-pdf span,
.source-mock-file span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #45556a;
  font-size: 12px;
  font-weight: 760;
}

.source-mock-drawing {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 14px;
  background: #f8fbff;
}

.source-mock-drawing span,
.source-mock-drawing em {
  color: #35506e;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.source-mock-drawing i {
  display: block;
  height: 2px;
  background: #8fa5b8;
}

.source-mock-drawing i:nth-of-type(1) {
  width: 90%;
}

.source-mock-drawing i:nth-of-type(2) {
  width: 64%;
}

.source-mock-drawing i:nth-of-type(3) {
  width: 46%;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.choice-row button {
  min-height: 34px;
  padding: 7px 8px;
}

.choice-row button.active {
  border-color: var(--brand-green);
  background: #eef8ea;
  color: #2d7c1f;
}

.demo-input {
  display: grid;
  gap: 5px;
  color: #59687b;
  font-size: 12px;
  font-weight: 760;
}

.demo-input input {
  width: 100%;
  border: 1px solid #f1d391;
  border-radius: 8px;
  padding: 8px;
  color: var(--brand-navy);
  font-weight: 800;
}

.confirmed-cell {
  border-color: #b7d9aa;
  background: #f4fbf2;
}

.ai-trust-section,
.pain-editorial,
.margin-control-light,
.audit-section,
.final-cta-redesign {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.ai-trust-section h2,
.pain-editorial h2,
.process-section h2,
.product-showcase h2,
.margin-control-light h2,
.team-strip h2,
.audit-section h2,
.tariff-section h2,
.faq-section h2,
.final-cta-redesign h2 {
  margin: 12px 0;
  color: var(--brand-navy);
  font-size: clamp(36px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.trust-principles {
  display: grid;
  gap: 12px;
}

.principle-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
}

.principle-item span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 900;
}

.principle-item p,
.role-item p {
  margin: 0;
  color: var(--muted);
}

.pain-editorial {
  background: #ffffff;
}

.pain-list {
  display: grid;
  gap: 12px;
}

.pain-list div {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--brand-navy);
  background: #f8faf9;
  padding: 15px 16px;
}

.pain-list span {
  color: var(--muted);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.process-step {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 156px;
  border-right: 1px solid var(--line);
  padding: 18px;
}

.process-step:last-child {
  border-right: 0;
}

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand-green);
  color: #ffffff;
  font-weight: 900;
}

.upload-grid-redesign {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-showcase {
  background: #ffffff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  gap: 16px;
}

.source-column,
.showcase-main,
.showcase-state {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfc;
  padding: 16px;
}

.source-pill {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.source-pill span,
.source-pill em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.showcase-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}

.showcase-row span,
.showcase-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.showcase-row.confirmed {
  border-color: #c7d8c2;
}

.showcase-row.conflict,
.showcase-row.missing {
  border-color: #f1d391;
  background: #fffaf0;
}

.showcase-row.edited {
  border-color: #bfd3ec;
  background: #f4f8ff;
}

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

.annotation-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 9px 12px;
  color: #35465c;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.margin-control-light {
  background: #f3f8f5;
  color: var(--brand-navy);
}

.margin-control-light h2,
.margin-control-light .eyebrow {
  color: var(--brand-navy);
}

.margin-control-light p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.margin-control-light .eyebrow {
  border-color: #cdded4;
  background: #ffffff;
}

.team-strip {
  background: #ffffff;
}

.team-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.audit-section {
  grid-template-columns: 0.8fr 1.2fr;
}

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

.audit-list span {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  font-weight: 800;
}

.period-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 5px;
}

.period-switcher button {
  border-color: transparent;
  background: transparent;
}

.period-switcher button.active {
  background: var(--brand-navy);
  color: #ffffff;
}

.landing-tariff.recommended {
  border: 2px solid var(--brand-green);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(14, 31, 51, 0.1);
}

.tariff-price span {
  color: var(--muted);
  font-size: 14px;
}

.faq-accordion {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.faq-item button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 16px 18px;
  text-align: left;
}

.faq-item button span {
  color: var(--brand-green);
  font-size: 22px;
  line-height: 1;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
}

.final-cta-redesign {
  background: #ffffff;
}

@media (max-width: 1180px) {
  .landing-hero-redesign,
  .ai-trust-section,
  .pain-editorial,
  .margin-control-light,
  .audit-section,
  .final-cta-redesign,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .upload-grid-redesign,
  .process-line,
  .annotation-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .landing-hero-redesign .hero-copy h1 {
    font-size: clamp(42px, 10vw, 56px);
  }

  .hero-value-list,
  .upload-grid-redesign,
  .team-roles,
  .audit-list,
  .margin-board,
  .preview-visuals,
  .choice-row,
  .showcase-row {
    grid-template-columns: 1fr;
  }

  .process-line {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .landing-hero-redesign .hero-copy {
    padding: 22px;
  }

  .landing-hero-redesign .hero-copy h1 {
    font-size: 36px;
  }

  .ai-trust-section h2,
  .pain-editorial h2,
  .process-section h2,
  .product-showcase h2,
  .margin-control-light h2,
  .team-strip h2,
  .audit-section h2,
  .tariff-section h2,
  .faq-section h2,
  .final-cta-redesign h2 {
    font-size: 30px;
  }
}

/* Landing visual correction round 2. Keep this scoped to the public landing. */
.public-main {
  width: min(100%, 1360px);
  padding: 20px clamp(16px, 3vw, 44px) 44px;
  overflow-x: clip;
}

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

.public-main :is(section, div, article, header, nav, h1, h2, h3, p, span, strong, em, button, a, ul, li) {
  min-width: 0;
}

.public-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin-bottom: 22px;
  padding: 8px 0;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-navy);
}

.landing-hero-redesign {
  display: grid;
  grid-template-columns: minmax(0, 0.47fr) minmax(0, 0.53fr);
  gap: clamp(40px, 4vw, 56px);
  align-items: center;
  margin-bottom: 30px;
  padding: clamp(18px, 2vw, 28px) 0 clamp(28px, 3vw, 40px);
}

.landing-hero-redesign .hero-copy,
.landing-hero-redesign .hero-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-hero-redesign .hero-copy {
  display: grid;
  align-content: center;
  padding: 0;
}

.landing-hero-redesign .hero-copy h1 {
  max-width: 600px;
  margin: 16px 0 14px;
  font-size: clamp(46px, 4vw, 58px);
  line-height: 1.04;
}

.landing-hero-redesign .hero-copy p {
  max-width: 590px;
  font-size: 17px;
  line-height: 1.48;
}

.hero-value-list {
  gap: 7px;
  margin-top: 16px;
}

.hero-value-list span {
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.hero-actions button {
  width: auto;
  min-width: 0;
}

.secondary-link {
  border-color: #cfdad6;
  color: var(--brand-navy);
  white-space: nowrap;
}

.risk-reversal {
  margin-top: 10px;
}

.product-preview {
  gap: 12px;
  border: 1px solid #dfe9e4;
  border-radius: 20px;
  background: #ffffff;
  padding: clamp(16px, 1.8vw, 22px);
  box-shadow: 0 26px 70px rgba(14, 31, 51, 0.13);
}

.product-preview .preview-head {
  align-items: flex-start;
}

.preview-head h2 {
  font-size: clamp(25px, 2vw, 32px);
}

.preview-files,
.preview-grid,
.preview-money,
.preview-visuals,
.choice-row {
  gap: 8px;
}

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

.source-mock {
  min-height: 96px;
}

.source-mock-pdf,
.source-mock-file,
.source-mock-drawing {
  padding: 12px;
}

.preview-questions {
  gap: 7px;
  padding: 11px;
}

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

.preview-money div {
  display: grid;
  align-content: center;
  min-height: 72px;
  border: 0;
  background: linear-gradient(180deg, #eef8ea, #ffffff);
}

.preview-money strong {
  color: #216f19;
  font-size: clamp(18px, 1.5vw, 22px);
}

.public-section {
  margin-bottom: 28px;
  padding: clamp(22px, 2.6vw, 34px);
}

.ai-trust-section,
.pain-editorial,
.product-showcase,
.team-strip,
.audit-section,
.final-cta-redesign {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.process-section,
.upload-section,
.tariff-section,
.faq-section {
  box-shadow: none;
}

.section-head {
  align-items: flex-end;
  gap: 18px;
}

.section-head > span,
.section-head .muted {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.section-head h2,
.ai-trust-section h2,
.pain-editorial h2,
.process-section h2,
.product-showcase h2,
.margin-control-light h2,
.team-strip h2,
.audit-section h2,
.tariff-section h2,
.faq-section h2,
.final-cta-redesign h2 {
  max-width: 820px;
  font-size: clamp(32px, 3.1vw, 44px);
  overflow-wrap: anywhere;
}

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

.upload-card {
  overflow: hidden;
}

.upload-card .source-mock {
  width: 100%;
  min-height: 104px;
}

.landing-note {
  width: 100%;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 0.7fr);
  gap: 16px;
  align-items: stretch;
}

.showcase-state {
  grid-column: 2;
  grid-template-columns: 1fr;
  align-items: start;
}

.showcase-state strong,
.showcase-state p {
  margin: 0;
  overflow-wrap: anywhere;
}

.showcase-state button {
  width: fit-content;
  max-width: 100%;
}

.showcase-main {
  gap: 9px;
}

.showcase-row {
  grid-template-columns: minmax(92px, 0.9fr) minmax(130px, 1.2fr) minmax(150px, 1fr);
  gap: 10px;
  padding: 10px 12px;
}

.showcase-row strong,
.showcase-row em,
.source-pill strong,
.source-pill em,
.annotation-row span {
  overflow-wrap: anywhere;
}

.annotation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.annotation-row span {
  flex: 1 1 220px;
}

.tariff-section .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.landing-tariff {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100%;
}

.landing-tariff button {
  align-self: end;
  width: 100%;
}

.landing-tariff.recommended {
  border-width: 1px;
  box-shadow: 0 18px 44px rgba(76, 175, 47, 0.13);
}

.period-switcher {
  justify-self: end;
}

.faq-section {
  padding-top: 24px;
}

.faq-accordion {
  gap: 8px;
}

.faq-item button {
  min-height: 64px;
  padding: 12px 16px;
}

.faq-item p {
  max-width: 820px;
  padding: 0 16px 14px;
}

.final-cta-redesign {
  margin-bottom: 0;
}

@media (max-width: 1279px) {
  .public-main {
    width: min(100%, 1160px);
  }

  .landing-hero-redesign {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .landing-hero-redesign .hero-copy h1,
  .landing-hero-redesign .hero-copy p {
    max-width: 820px;
  }

  .product-preview {
    max-width: 880px;
  }

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

  .showcase-state {
    grid-column: auto;
  }
}

@media (max-width: 1024px) {
  .public-main {
    padding-inline: 20px;
  }

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

  .tariff-section .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .period-switcher {
    justify-self: start;
  }

  .showcase-row {
    grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
  }

  .showcase-row em {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .public-main {
    padding: 0 12px 28px;
  }

  .public-header {
    min-height: 60px;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .public-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 20px 48px rgba(14, 31, 51, 0.16);
  }

  .public-nav.open {
    display: grid;
  }

  .public-nav a,
  .public-nav button {
    width: 100%;
    justify-content: center;
  }

  .landing-hero-redesign {
    gap: 18px;
    padding: 8px 0 22px;
  }

  .landing-hero-redesign .hero-copy h1 {
    font-size: clamp(34px, 9vw, 42px);
  }

  .landing-hero-redesign .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .preview-files,
  .preview-grid,
  .preview-money,
  .preview-visuals,
  .choice-row,
  .showcase-row,
  .showcase-state,
  .upload-grid-redesign,
  .team-roles,
  .audit-list,
  .margin-board {
    grid-template-columns: 1fr;
  }

  .public-section {
    padding: 18px;
  }

  .process-line {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .section-head h2,
  .ai-trust-section h2,
  .pain-editorial h2,
  .process-section h2,
  .product-showcase h2,
  .margin-control-light h2,
  .team-strip h2,
  .audit-section h2,
  .tariff-section h2,
  .faq-section h2,
  .final-cta-redesign h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .period-switcher {
    width: 100%;
  }

  .period-switcher button {
    flex: 1 1 90px;
  }
}

@media (max-width: 430px) {
  .public-brand span {
    font-size: 14px;
  }

  .product-preview {
    padding: 14px;
  }

  .preview-head {
    display: grid;
    align-items: start;
  }

  .landing-hero-redesign .hero-copy h1 {
    font-size: 34px;
  }

  .source-mock {
    min-height: 86px;
  }
}

/* Final capture-safe overrides must stay last. */
.public-main.landing-capture-fit1440 {
  width: 849px;
  max-width: none;
  margin: 0;
  transform: none;
}

.public-main.landing-capture-fit1440 .landing-hero-redesign {
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: 24px;
  align-items: start;
}

.public-main.landing-capture-fit1440 .landing-hero-redesign .hero-copy h1 {
  font-size: 38px;
}

.public-main.landing-capture-fit1440 .landing-hero-redesign .hero-copy p {
  font-size: 15px;
}

.public-main.landing-capture-fit1440 .product-preview {
  gap: 8px;
  padding: 14px;
}

.public-main.landing-capture-fit1440 .preview-visuals,
.public-main.landing-capture-fit1440 .preview-money,
.public-main.landing-capture-fit1440 .choice-row {
  grid-template-columns: 1fr;
}

.public-main.landing-capture-fit1440 .preview-files,
.public-main.landing-capture-fit1440 .preview-grid {
  grid-template-columns: 1fr 1fr;
}

.public-main.landing-capture-fit1440 .source-mock {
  min-height: 74px;
}

.public-main.landing-capture-fit1440 .upload-grid-redesign,
.public-main.landing-capture-fit1440 .tariff-section .grid-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-main.landing-capture-fit1440 .showcase-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.public-main.landing-capture-fit1440 .source-column,
.public-main.landing-capture-fit1440 .showcase-main,
.public-main.landing-capture-fit1440 .showcase-state {
  width: 100%;
}

.public-main.landing-capture-fit1440 .showcase-state {
  grid-column: auto !important;
}

.public-main.landing-capture-fit1440 .showcase-row {
  grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr) !important;
}

.public-main.landing-capture-fit1440 .showcase-row em {
  grid-column: 1 / -1;
}
/* Product-value landing proof sections */
.estimate-proof-section { background: #fff; border: 1px solid #dfe7e2; padding: 34px; }
.estimate-proof-section .section-head { align-items: flex-end; gap: 24px; }
.estimate-proof-section .section-head > div { max-width: 760px; }
.estimate-dataset-note { max-width: 280px; color: #476158; font-size: 12px; text-align: right; }
.estimate-view-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 22px 0 12px; background: #eef3f0; border-radius: 6px; }
.estimate-view-tabs button { width: auto; min-height: 0; padding: 8px 14px; border: 0; color: #52645d; background: transparent; font-size: 13px; font-weight: 700; }
.estimate-view-tabs .active { color: #123c2e; background: #fff; box-shadow: 0 1px 3px rgba(18,60,46,.12); }
.estimate-summary-panel { display: grid; gap: 12px; margin-top: 20px; padding: 16px 18px; color: #173f31; background: #eef7f1; border-left: 4px solid #2d8a5d; }
.estimate-summary-panel > div { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.estimate-summary-panel span { display: grid; gap: 3px; min-width: 0; }
.estimate-summary-panel small { color: #61766e; font-size: 10px; font-weight: 600; }
.estimate-summary-panel .verified { color: #12643f; font-weight: 800; }
.estimate-proof-table-wrap { overflow-x: auto; border: 1px solid #dce6e0; border-radius: 6px; }
.estimate-proof-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 12px; }
.estimate-proof-table th { padding: 10px 12px; color: #587068; background: #f4f7f5; text-align: left; font-size: 10px; text-transform: uppercase; }
.estimate-proof-table td { padding: 9px 12px; border-top: 1px solid #e7ede9; vertical-align: middle; }
.estimate-proof-table td:nth-last-child(-n+4), .estimate-proof-table th:nth-last-child(-n+4) { text-align: right; white-space: nowrap; }
.estimate-proof-table .estimate-section-row td { color: #174b38; background: #eaf5ee; font-weight: 800; text-align: left; }
.estimate-proof-client { min-width: 720px; }
.estimate-proof-table .internal-section-total td,
.estimate-proof-table .client-section-total td { color: #173f31; background: #f0f5f2; }
.estimate-proof-table .internal-section-total td:last-child { text-align: right; white-space: nowrap; }
.line-kind { display: inline-block; padding: 3px 7px; color: #17623f; background: #e9f7ee; border-radius: 4px; font-size: 10px; font-weight: 700; }
.line-kind.work { color: #26589a; background: #edf4ff; }
.estimate-proof-footer { display: flex; justify-content: space-between; gap: 18px; padding: 13px 14px; color: #38554a; background: #eef7f1; font-size: 12px; }
.estimate-proof-footer strong { text-align: right; }
.estimate-export-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #dfe8e3; }
.estimate-export-row > span { color: #536a61; font-size: 12px; }
.estimate-export-row > div { display: flex; gap: 8px; }
.estimate-export-format { width: auto; min-height: 34px; padding: 7px 14px; border-color: #a9c7b7; color: #17583b; background: #f1f8f4; font-size: 12px; font-weight: 800; }
.trace-proof-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.trace-proof-strip > div { min-width: 0; padding: 12px; background: #f7f9f8; border-left: 3px solid #6b8a7e; }
.trace-proof-strip .conflict { border-color: #d89522; background: #fff8e9; }
.trace-proof-strip .missing { border-color: #bd5a43; background: #fff3ef; }
.trace-proof-strip span,.trace-proof-strip small { display: block; color: #697b75; font-size: 10px; }
.trace-proof-strip strong { display: block; margin: 4px 0; font-size: 13px; }

.supplier-update-section { padding: 36px; color: #173b30; background: #eaf2ee; }
.supplier-update-section .section-head { align-items: flex-end; gap: 30px; }
.supplier-update-section .section-head > div:first-child { max-width: 760px; }
.supplier-source { display: grid; gap: 3px; min-width: 230px; padding-left: 16px; border-left: 2px solid #5c8d77; }
.supplier-source span,.supplier-source small { color: #5c6e67; }
.supplier-selection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.supplier-selection-toolbar button { width: auto; min-height: 34px; padding: 7px 12px; }
.supplier-price-table { margin-top: 10px; background: #fff; border: 1px solid #d2ded8; border-radius: 6px; overflow: hidden; }
.supplier-price-head,.supplier-price-row { display: grid; grid-template-columns: 34px minmax(220px,1.35fr) .58fr .58fr .85fr 1.2fr; gap: 12px; align-items: center; padding: 11px 16px; }
.supplier-price-head { color: #60736b; background: #f5f8f6; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.supplier-price-row { border-top: 1px solid #e4ebe7; font-size: 12px; }
.supplier-price-row.selected { background: #f4fbf7; }
.supplier-check { display: grid; place-items: center; }
.supplier-check input { width: 17px; height: 17px; accent-color: #18764c; }
.supplier-price-row .new-price { color: #12643f; font-weight: 800; }
.supplier-price-row .price-delta { color: #a55716; font-weight: 700; }
.supplier-price-row small,.supplier-price-row em { display: block; color: #64766f; font-style: normal; }
.supplier-price-preview-card { margin-top: 14px; padding: 18px; border: 1px solid #cfe0d7; border-radius: 8px; background: #f5faf7; color: #16352b; }
.supplier-price-preview-card h3,
.supplier-price-preview-card strong { color: #16352b !important; }
.supplier-price-preview-card .field > span,
.supplier-price-preview-card .muted { color: #5d746b !important; }
.supplier-price-preview-form { display: grid; grid-template-columns: 1.2fr .8fr .6fr 1.6fr auto; gap: 10px; align-items: end; }
.supplier-price-preview-form button { min-height: 42px; }
.supplier-price-preview-result { display: grid; grid-template-columns: 1.4fr .55fr .7fr 1.2fr auto; gap: 14px; align-items: center; margin-top: 14px; padding: 14px; border: 1px solid #d6e3dc; border-radius: 6px; background: #fff; color: #16352b; }
.supplier-price-preview-result > div { display: grid; gap: 3px; }
.supplier-price-preview-result .notice { grid-column: 1 / -1; }
.supplier-price-preview-source span:nth-child(2) { overflow-wrap: anywhere; font-size: 11px; }
.supplier-impact-heading { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; }
.supplier-impact-heading span { max-width: 620px; color: #5f716a; font-size: 12px; }
.supplier-impact { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 8px; }
.supplier-impact > div:first-child { display: flex; gap: 8px; flex-wrap: wrap; }
.supplier-impact span { display: grid; gap: 2px; min-width: 145px; padding: 10px 12px; background: rgba(255,255,255,.8); }
.supplier-impact s { color: #7b8a85; font-size: 11px; }
.supplier-impact b { display: flex; gap: 8px; align-items: baseline; }
.supplier-impact em { color: #a55716; font-size: 11px; font-style: normal; font-weight: 800; }
.supplier-impact button:disabled { cursor: not-allowed; opacity: .48; }

.margin-control-light { display: block; background: #f8faf9; }
.margin-category-intro { max-width: 820px; }
.margin-category-intro p { max-width: 780px; margin-bottom: 8px; color: #526860; }
.margin-category-intro > strong { color: #526860; font-size: 12px; }
.margin-category-table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid #d9e5de; border-radius: 6px; background: #fff; }
.margin-category-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.margin-category-table th,
.margin-category-table td { padding: 14px 18px; border-top: 1px solid #e4ebe7; text-align: right; white-space: nowrap; }
.margin-category-table th { border-top: 0; color: #5d7169; background: #f1f5f3; font-size: 10px; text-transform: uppercase; }
.margin-category-table th:first-child,
.margin-category-table td:first-child { text-align: left; }
.margin-category-table td:first-child { color: #263f36; font-weight: 800; }
.margin-category-table .client-price { color: #17623f; font-weight: 800; }
.margin-category-table .positive { color: #18704a; font-weight: 800; }
.margin-category-table .negative { color: #b14f38; font-weight: 800; }
.margin-category-table tr.total td { border-top: 2px solid #72a98d; color: #173f31; background: #eaf5ee; font-weight: 900; }
.margin-category-table tr.total .client-price,
.margin-category-table tr.total .positive { color: #12643f; }
.margin-category-note { margin: 10px 0 0; color: #687a73; font-size: 11px; }

.preview-financial-blocked {
  display: grid;
  gap: 4px;
  border: 1px solid #e5c878;
  border-radius: 10px;
  background: #fff8e8;
  padding: 12px;
  color: #684e10;
}

.preview-financial-blocked span {
  color: #77622b;
  font-size: 12px;
  line-height: 1.45;
}

.audit-list span { display: grid; gap: 3px; }
.audit-list small,.audit-list em { color: #687a74; font-size: 10px; font-style: normal; }
.audit-list strong { font-size: 13px; }
.faq-section { display: grid; grid-template-columns: minmax(220px,.65fr) 1.35fr; gap: 48px; align-items: start; }
.faq-intro { position: sticky; top: 90px; }
.faq-intro h2 { margin-top: 0; }
.faq-intro strong { display: block; margin-top: 18px; color: #1e6549; }
.faq-accordion .faq-item { margin: 0; border: 0; border-top: 1px solid #dfe7e2; border-radius: 0; }
.faq-accordion .faq-item button { min-height: 58px; padding: 14px 4px; align-items: flex-start; }
.faq-accordion .faq-item p { max-width: 680px; margin: 0; padding: 0 36px 16px 4px; }

@media (max-width: 980px) {
  .estimate-summary-panel > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trace-proof-strip { grid-template-columns: repeat(2, 1fr); }
  .supplier-price-head { display: none; }
  .supplier-price-row { grid-template-columns: 34px 1.3fr .6fr .6fr; }
  .supplier-price-row > :nth-child(5),.supplier-price-row > :nth-child(6) { grid-column: 2 / -1; }
  .supplier-price-preview-form { grid-template-columns: 1fr 1fr; }
  .supplier-price-preview-form .supplier-price-url { grid-column: 1 / -1; }
  .supplier-price-preview-result { grid-template-columns: 1fr 1fr; }
  .supplier-price-preview-result .supplier-price-preview-source,
  .supplier-price-preview-result .notice { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .estimate-proof-section,.supplier-update-section { padding: 22px 16px; }
  .estimate-proof-section .section-head,.supplier-update-section .section-head,.supplier-impact { align-items: stretch; flex-direction: column; }
  .estimate-dataset-note { max-width: none; text-align: left; }
  .trace-proof-strip { grid-template-columns: 1fr; }
  .supplier-selection-toolbar,.supplier-impact-heading { align-items: stretch; flex-direction: column; }
  .supplier-price-row { grid-template-columns: 30px 1fr 1fr; }
  .supplier-price-row strong,.supplier-price-row > :nth-child(5),.supplier-price-row > :nth-child(6) { grid-column: 2 / -1; }
  .supplier-price-preview-form,.supplier-price-preview-result { grid-template-columns: 1fr; }
  .supplier-price-preview-form .supplier-price-url,
  .supplier-price-preview-result .supplier-price-preview-source,
  .supplier-price-preview-result .notice { grid-column: 1; }
  .faq-section { grid-template-columns: 1fr; gap: 16px; }
  .faq-intro { position: static; }
}

/* Public-home secondary proof compaction: layout only, factual content stays source-backed. */
@media (min-width: 1181px) {
  .public-main .margin-control-light,
  .public-main .faq-section {
    margin-bottom: 24px;
    padding: 22px 28px;
  }

  .public-main .margin-control-light {
    display: block;
  }

  .public-main .margin-category-intro h2 {
    max-width: 760px;
    margin: 7px 0 6px;
    font-size: clamp(27px, 2vw, 32px);
  }

  .public-main .margin-category-intro p {
    max-width: 760px;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
  }

  .public-main .margin-category-intro > strong {
    display: block;
    max-width: 760px;
    margin-top: 6px;
    color: #526860;
    font-size: 11px;
    line-height: 1.35;
  }

  .public-main .faq-section {
    width: min(100%, 1240px);
    grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    padding-block: 4px;
  }

  .public-main .faq-intro {
    position: static;
  }

  .public-main .faq-intro h2 {
    max-width: 340px;
    margin: 0 0 10px;
    font-size: clamp(28px, 2.25vw, 36px);
  }

  .public-main .faq-intro p {
    max-width: 300px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .public-main .faq-intro strong {
    margin-top: 14px;
    font-size: 13px;
  }

  .public-main .faq-accordion {
    gap: 4px;
  }

  .public-main .faq-accordion .faq-item {
    border: 0;
    border-top: 1px solid #dfe7e2;
    border-radius: 0;
    padding: 0;
  }

  .public-main .faq-accordion .faq-item:last-child {
    border-bottom: 1px solid #dfe7e2;
  }

  .public-main .faq-accordion .faq-item button {
    min-height: 56px;
    max-height: none;
    padding: 16px 4px;
    align-items: flex-start;
  }

  .public-main .faq-accordion .faq-item button strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .public-main .faq-accordion .faq-item p {
    max-width: 720px;
    padding: 0 36px 16px 4px;
    font-size: 13px;
    line-height: 1.45;
  }
}

/* Public-home five-block semantic alignment. Scoped to the requested sections. */
.hero-proof-flow {
  display: grid;
  gap: 8px;
}

.hero-proof-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #dce7e1;
  border-radius: 7px;
  background: #ffffff;
  padding: 9px 10px;
}

.hero-proof-step > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.hero-proof-step small {
  color: #5d7068;
  font-size: 11px;
  font-weight: 850;
}

.hero-proof-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7f3e9;
  color: #17623e;
  font-size: 12px;
  font-weight: 900;
}

.hero-proof-step .preview-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.hero-proof-step .preview-files > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 0;
  background: #f4f7f5;
  padding: 7px 9px;
}

.hero-proof-step .preview-files b {
  color: #60736b;
  font-size: 10px;
}

.hero-proof-step .preview-files strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-proof-step .preview-visuals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.hero-proof-step .source-mock {
  min-height: 64px;
  border-radius: 6px;
  padding: 8px;
}

.hero-proof-step .source-mock-pdf strong,
.hero-proof-step .source-mock-file strong {
  font-size: 12px;
}

.hero-proof-step .source-mock-pdf span,
.hero-proof-step .source-mock-file span {
  font-size: 9px;
}

.hero-proof-step .ai-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.hero-proof-step .ai-preview-grid > span {
  display: grid;
  gap: 2px;
  border-left: 2px solid #78a38d;
  padding-left: 8px;
}

.hero-proof-step .ai-preview-grid b {
  color: #60736b;
  font-size: 10px;
}

.hero-proof-step .ai-preview-grid strong {
  font-size: 12px;
}

.hero-proof-step.conflict {
  border-color: #e6c778;
  background: #fff9e8;
}

.hero-proof-step.confirmation .choice-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-proof-step.result {
  border-color: #9ac9aa;
  background: #edf7ef;
}

/* Hero-only factual Stage61 input form preview. */
.hero-input-preview {
  gap: 14px;
  border-radius: 12px;
}

.hero-input-preview .preview-head {
  display: block;
}

.hero-input-preview .preview-head h2 {
  margin: 5px 0 4px;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.08;
}

.hero-input-preview .preview-head p {
  max-width: 520px;
  margin: 0;
  color: #52655d;
  font-size: 13px;
  line-height: 1.4;
}

.hero-input-block-label {
  color: #27714d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-input-table {
  overflow: hidden;
  border: 1px solid #dbe5df;
  border-radius: 7px;
  background: #fff;
}

.hero-input-table-head,
.hero-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.58fr);
  gap: 16px;
  align-items: center;
  padding: 7px 12px;
}

.hero-input-table-head {
  color: #60736b;
  background: #f1f5f3;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-input-row {
  min-height: 34px;
  border-top: 1px solid #e7ede9;
  color: #43574f;
  font-size: 12px;
}

.hero-input-row:nth-child(odd) {
  background: #fbfcfb;
}

.hero-input-row strong {
  color: #162e25;
  font-size: 12px;
  font-weight: 850;
}

.hero-input-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.hero-input-footer > span {
  color: #496158;
  font-size: 12px;
}

.hero-input-footer > span b {
  color: #17623e;
}

.hero-input-footer button {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero-input-table-head,
  .hero-input-row {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 0.62fr);
    gap: 10px;
    padding-inline: 10px;
  }

  .hero-input-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-input-footer button {
    width: 100%;
  }
}

.audit-intro p {
  max-width: 720px;
  margin: 0;
}

.audit-source-chain {
  counter-reset: audit-step;
}

.audit-source-chain .audit-chain-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  border-radius: 7px;
  padding: 14px;
}

.audit-chain-step > b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e6f2e8;
  color: #17623e;
  font-size: 11px;
}

.audit-chain-step small {
  color: #60736b;
}

.audit-chain-step em {
  color: #60736b;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

@media (min-width: 1181px) {
  .public-main .audit-section {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .public-main .audit-section h2 {
    margin: 8px 0;
    font-size: clamp(28px, 2.25vw, 36px);
  }

  .public-main .audit-source-chain {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .public-main .audit-chain-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -9px;
    z-index: 2;
    color: #6d8a7c;
    font-weight: 900;
    transform: translateY(-50%);
  }
}

@media (max-width: 1180px) {
  .hero-proof-step .preview-files,
  .hero-proof-step .preview-visuals {
    grid-template-columns: 1fr;
  }

  .audit-source-chain {
    grid-template-columns: 1fr;
  }
}

/* Public home visual system: owner-selected Product Design direction 1. */
body:has(.public-main) {
  background: #070b0e;
}

.public-main {
  width: min(100%, 1540px);
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 52px) 56px;
  overflow-x: clip;
  background: #070b0e;
  color: #f4f7f5;
  --public-bg: #070b0e;
  --public-surface: #0b1115;
  --public-surface-raised: #10181e;
  --public-surface-soft: #141e24;
  --public-line: #27343a;
  --public-line-strong: #35464d;
  --public-text: #f4f7f5;
  --public-muted: #a9b5b0;
  --public-green: #62b746;
  --public-green-bright: #74c653;
  --public-green-soft: #182a1b;
  --public-amber: #e4b75f;
  --public-amber-soft: #2d2616;
}

.public-main .muted,
.public-main .meta {
  color: var(--public-muted);
}

.public-header {
  min-height: 74px;
  margin: 0;
  border-bottom: 1px solid #1b252a;
  padding: 12px 0;
}

.public-header .public-brand {
  margin: 0;
}

.public-header .brand-logo {
  width: 186px;
  filter: none;
}

.public-nav {
  gap: 8px;
  flex-wrap: nowrap;
}

.public-nav a,
.public-nav button {
  min-height: 42px;
  border-radius: 5px;
  color: #d8e0dc;
  font-size: 14px;
}

.public-nav a {
  padding: 11px 13px;
}

.public-nav a:hover,
.public-nav .ghost:hover {
  border-color: transparent;
  background: #11191e;
  color: #ffffff;
}

.public-nav .ghost {
  border-color: transparent;
  background: transparent;
}

.public-main .primary {
  border-color: var(--public-green);
  border-radius: 5px;
  background: var(--public-green);
  color: #071006;
  box-shadow: 0 12px 30px rgba(98, 183, 70, 0.16);
}

.public-main .primary:hover {
  border-color: var(--public-green-bright);
  background: var(--public-green-bright);
}

.public-nav .header-cta {
  min-height: 44px;
  padding-inline: 18px;
  white-space: nowrap;
}

.public-main .eyebrow {
  width: fit-content;
  border: 1px solid #345b30;
  border-radius: 999px;
  background: #101b12;
  padding: 7px 12px;
  color: #7bc95e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.landing-hero-redesign {
  grid-template-columns: minmax(0, 0.49fr) minmax(520px, 0.51fr);
  gap: clamp(34px, 4vw, 66px);
  min-height: 680px;
  margin: 0;
  padding: clamp(56px, 7vw, 104px) 0 58px;
}

.landing-hero-redesign .hero-copy h1 {
  max-width: 690px;
  margin: 20px 0 20px;
  color: #ffffff;
  font-size: clamp(52px, 4.4vw, 70px);
  font-weight: 820;
  line-height: 1.01;
  letter-spacing: 0;
}

.landing-hero-redesign .hero-copy > p:not(.risk-reversal) {
  max-width: 650px;
  color: #b4bfba;
  font-size: 17px;
  line-height: 1.6;
}

.hero-value-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.hero-value-list span {
  position: relative;
  padding-left: 28px;
  color: #dce4df;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.hero-value-list span::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--public-green);
  color: #071006;
  font-size: 11px;
  font-weight: 900;
}

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

.hero-actions button {
  min-height: 48px;
  padding: 12px 20px;
}

.public-main .secondary-link,
.public-main .hero-input-footer .secondary {
  border-color: #3b4b52;
  border-radius: 5px;
  background: transparent;
  color: #e1e8e4;
}

.public-main .secondary-link:hover,
.public-main .hero-input-footer .secondary:hover {
  border-color: var(--public-green);
  color: #8ed46f;
}

.public-main .risk-reversal {
  color: #84928c;
  font-size: 12px;
}

.product-preview.hero-input-preview {
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--public-line-strong);
  border-radius: 7px;
  background: #0b1115;
  padding: clamp(20px, 2vw, 28px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.hero-input-preview .preview-head h2 {
  margin: 7px 0 6px;
  color: #ffffff;
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.1;
}

.hero-input-preview .preview-head p {
  color: #a8b4af;
}

.hero-input-block-label {
  color: #72c654;
}

.hero-input-table {
  border-color: #29363c;
  border-radius: 4px;
  background: #0c1317;
}

.hero-input-table-head {
  color: #899792;
  background: #151e23;
}

.hero-input-row {
  border-color: #253137;
  color: #aab6b1;
}

.hero-input-row:nth-child(odd) {
  background: #10181d;
}

.hero-input-row strong {
  color: #f3f7f4;
}

.hero-input-footer {
  border-top: 1px solid #243137;
  padding-top: 14px;
}

.hero-input-footer > span {
  color: #a9b5b0;
}

.hero-input-footer > span b {
  color: #76c95a;
}

.public-section {
  margin: 0;
  border: 0;
  border-top: 1px solid #1b252a;
  border-radius: 0;
  background: transparent;
  padding: clamp(62px, 7vw, 100px) 0;
  box-shadow: none;
}

.public-section:nth-of-type(odd) {
  background: #090f13;
}

.public-section > * {
  position: relative;
}

.section-head,
.trust-copy,
.audit-intro,
.margin-category-intro,
.faq-intro {
  margin-bottom: 28px;
}

.public-main :is(.section-head h2, .ai-trust-section h2, .pain-editorial h2, .process-section h2, .product-showcase h2, .estimate-proof-section h2, .margin-control-light h2, .team-strip h2, .audit-section h2, .tariff-section h2, .faq-section h2, .final-cta-redesign h2) {
  max-width: 900px;
  margin-top: 10px;
  color: #f5f8f6;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.ai-trust-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.trust-principles,
.pain-list,
.team-roles,
.audit-list {
  gap: 10px;
}

.trust-principles > *,
.pain-list > div,
.team-roles > *,
.audit-list > * {
  border: 1px solid var(--public-line);
  border-radius: 5px;
  background: var(--public-surface);
  color: var(--public-text);
}

.trust-principles p,
.pain-list span,
.team-roles p,
.audit-chain-step em,
.audit-chain-step small {
  color: var(--public-muted);
}

.pain-editorial {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.pain-list > div {
  padding: 20px;
}

.process-line {
  overflow: hidden;
  border: 1px solid var(--public-line);
  border-radius: 5px;
  background: var(--public-surface);
}

.process-step {
  min-height: 120px;
  border-color: var(--public-line);
  background: transparent;
  color: #eef3f0;
}

.process-step span,
.audit-chain-step > b {
  background: #1a301b;
  color: #78ca5c;
}

.upload-grid-redesign {
  gap: 12px;
}

.upload-card {
  border: 1px solid var(--public-line);
  border-radius: 5px;
  background: var(--public-surface);
  padding: 14px;
  color: var(--public-text);
}

.upload-card .source-mock,
.upload-card .landing-managed-media {
  border-color: #34434a;
  border-radius: 4px;
  background-color: #131d22;
}

.public-main .upload-card > strong,
.public-main .source-mock :is(strong, span, em) {
  color: #e8efeb;
}

.public-main .source-mock :is(span, em) {
  color: #9eaca6;
}

.public-main .source-mock-drawing i {
  background: #668075;
}

.public-main .notice.warn,
.public-main .landing-note {
  border: 1px solid #59491f;
  border-radius: 4px;
  background: var(--public-amber-soft);
  color: #e7c77f;
}

.estimate-proof-section {
  border-top: 1px solid #1b252a;
  background: #090f13;
}

.estimate-dataset-note,
.estimate-export-row > span {
  color: #8f9d97;
}

.estimate-summary-panel {
  border: 1px solid #294634;
  border-left: 3px solid var(--public-green);
  border-radius: 4px;
  background: #111d16;
  color: #e9f2ec;
}

.estimate-summary-panel small {
  color: #8ea097;
}

.estimate-summary-panel .verified {
  color: #7bcd5f;
}

.estimate-view-tabs,
.period-switcher {
  border: 1px solid var(--public-line);
  border-radius: 4px;
  background: #11191e;
}

.estimate-view-tabs button,
.period-switcher button {
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #aeb9b4;
  box-shadow: none;
}

.estimate-view-tabs .active,
.period-switcher .active {
  background: #243a28;
  color: #8fd572;
  box-shadow: none;
}

.estimate-proof-table-wrap,
.margin-category-table-wrap {
  border-color: var(--public-line);
  border-radius: 4px;
  background: #0b1216;
}

.estimate-proof-table,
.margin-category-table {
  color: #dce4e0;
}

.estimate-proof-table th,
.margin-category-table th {
  border-color: var(--public-line);
  background: #151e23;
  color: #98a69f;
}

.estimate-proof-table td,
.margin-category-table td {
  border-color: #222e34;
}

.estimate-proof-table tbody tr:not(.estimate-section-row):not(.internal-section-total):not(.client-section-total):hover,
.margin-category-table tbody tr:not(.total):hover {
  background: #111a1f;
}

.estimate-proof-table .estimate-section-row td,
.estimate-proof-table .internal-section-total td,
.estimate-proof-table .client-section-total td {
  background: #14231a;
  color: #8ed070;
}

.line-kind {
  border: 1px solid #315a3a;
  background: #14261a;
  color: #83cf67;
}

.line-kind.work {
  border-color: #314d63;
  background: #15232d;
  color: #8ab9db;
}

.estimate-proof-footer {
  border: 1px solid #294634;
  border-top: 0;
  background: #111d16;
  color: #bac8c0;
}

.estimate-export-row {
  border-color: var(--public-line);
}

.estimate-export-format {
  border-color: #3b5b49;
  background: #14231a;
  color: #8ed070;
}

.margin-control-light {
  background: transparent;
}

.margin-category-intro p {
  color: var(--public-muted);
}

.margin-category-table td:first-child,
.margin-category-table .client-price,
.margin-category-table .positive {
  color: #dce5e0;
}

.margin-category-table tr.total td {
  border-color: #446b4a;
  background: #16261a;
  color: #f3f7f4;
}

.margin-category-table tr.total .client-price,
.margin-category-table tr.total .positive {
  color: #83d067;
}

.team-roles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-roles > * {
  min-height: 170px;
}

.audit-source-chain .audit-chain-step {
  border-color: var(--public-line);
  background: var(--public-surface);
}

.audit-chain-step strong {
  color: #eef3f0;
}

.public-main .audit-chain-step:not(:last-child)::after {
  color: #5d7467;
}

.tariff-section .grid-3 {
  gap: 12px;
}

.landing-tariff {
  border: 1px solid var(--public-line);
  border-radius: 5px;
  background: var(--public-surface);
  color: #eef3f0;
  padding: 24px;
  box-shadow: none;
}

.landing-tariff.recommended {
  border-color: #4d8642;
  background: #0d1710;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.landing-tariff :is(p, li, small) {
  color: var(--public-muted);
}

.landing-tariff h3,
.landing-tariff .price,
.landing-tariff .tariff-price {
  color: #ffffff;
}

.landing-tariff .tariff-price span {
  color: #a9b5b0;
}

.public-main .landing-tariff > button:not(.primary) {
  border-color: #3b4b52;
  background: transparent;
  color: #e6ede9;
  box-shadow: none;
}

.public-main .landing-tariff > button:not(.primary):hover {
  border-color: var(--public-green);
  color: #8ed46f;
}

.landing-tariff .badge,
.landing-tariff .recommended-label {
  background: #223b24;
  color: #8bd26e;
}

.faq-section {
  border-top: 1px solid #1b252a;
}

.faq-intro strong {
  color: #85d168;
}

.faq-accordion .faq-item {
  border-color: var(--public-line);
  background: transparent;
}

.faq-item button {
  color: #edf3ef;
  background: transparent;
}

.public-main .faq-item button strong {
  color: #edf3ef;
}

.public-main .faq-item button span {
  color: #78ca5c;
}

.faq-item button:hover {
  border-color: transparent;
  color: #8bd26e;
}

.faq-item p {
  color: #aab6b0;
}

.final-cta-redesign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  margin-top: 22px;
  border: 1px solid #324738;
  border-radius: 6px;
  background: #0f1912;
  padding: clamp(36px, 5vw, 64px);
}

.final-cta-redesign .hero-actions {
  margin-top: 0;
}

.public-main.landing-capture-fit1440 .estimate-proof-table {
  min-width: 0;
  font-size: 9px;
}

.public-main.landing-capture-fit1440 .estimate-proof-table :is(th, td) {
  padding: 6px 7px;
}

.public-main.landing-capture-fit1440 .estimate-proof-table th {
  font-size: 8px;
}

.public-main.landing-capture-fit1440 .tariff-section .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-main.landing-capture-fit1440 .team-roles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Final review-capture sizing for the first-screen AI intake proof. */
.public-main.landing-capture-fit1440 .landing-hero-ai-intake {
  padding-top: 18px;
}

.public-main.landing-capture-fit1440 .hero-ai-stage {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  min-height: 0;
  padding-bottom: 16px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy h1 {
  margin-block: 9px 10px;
  font-size: 30px;
  line-height: 1.03;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > .hero-lead {
  margin-bottom: 9px;
  font-size: 9px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > p:not(.risk-reversal, .hero-lead) {
  font-size: 9px;
  line-height: 1.45;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-actions {
  margin-top: 12px;
}

.public-main.landing-capture-fit1440 .hero-workspace-proof {
  padding-top: 12px;
}

.public-main.landing-capture-fit1440 .hero-workspace-shell {
  height: 310px;
}

.public-main.landing-capture-fit1440 .hero-workspace-toolbar {
  min-height: 48px;
  padding-top: 18px;
}

.public-main.landing-capture-fit1440 .hero-workspace-grid {
  height: 250px;
}

.public-main.landing-capture-fit1440 .hero-workspace-parameters > div {
  padding-block: 5px;
}

.public-main.landing-capture-fit1440 .hero-workspace-questions > div p {
  min-height: 36px;
}

/* Reference-faithful first screen. Scope is limited to the public home header and Hero. */
.public-home-layout .public-header {
  display: flex;
  align-items: center;
  min-height: 90px;
  padding: 0;
  border-bottom-color: #172127;
}

.public-home-layout .public-header .public-brand {
  display: block;
  flex: 0 0 238px;
  width: 238px;
  height: auto;
  margin: 0;
}

.public-home-layout .public-header .brand-logo {
  width: 180px;
}

.public-home-layout .public-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 29px;
  min-width: 0;
}

.public-home-layout .public-nav a,
.public-home-layout .public-nav button {
  min-height: 44px;
  padding: 10px 0;
  font-size: 15px;
  white-space: nowrap;
}

.public-home-layout .public-nav .ghost {
  margin-left: 12px;
}

.public-home-layout .public-nav .header-cta {
  margin-left: 4px;
  padding-inline: 24px;
}

.public-home-layout .landing-hero-ai-intake {
  position: relative;
  min-height: 996px;
  margin: 0;
  padding: 32px 0 0;
  overflow: hidden;
}

.public-home-layout .hero-ai-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1.1fr);
  gap: clamp(58px, 6.1vw, 92px);
  align-items: start;
  min-height: 558px;
  padding: 0;
}

.public-home-layout .landing-hero-ai-intake .hero-copy {
  padding-top: 4px;
}

.public-home-layout .landing-hero-ai-intake .hero-copy .eyebrow {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 15px;
  line-height: 1.2;
}

.public-home-layout .landing-hero-ai-intake .hero-copy h1 {
  max-width: 650px;
  margin: 18px 0 17px;
  font-size: clamp(50px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.public-home-layout .landing-hero-ai-intake .hero-copy > .hero-lead {
  margin-bottom: 23px;
  font-size: 18px;
  line-height: 1.45;
}

.public-home-layout .landing-hero-ai-intake .hero-copy > p:not(.risk-reversal, .hero-lead) {
  max-width: 625px;
  font-size: 16px;
  line-height: 1.55;
}

.public-home-layout .landing-hero-ai-intake .hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-top: 29px;
}

.public-home-layout .landing-hero-ai-intake .hero-actions button {
  min-height: 56px;
  padding-inline: 27px;
  font-size: 15px;
}

.public-home-layout .landing-hero-ai-intake .risk-reversal {
  margin-top: 17px;
  font-size: 13px;
}

.public-home-layout .hero-analysis-card {
  height: 558px;
  border-color: #28353c;
  border-radius: 12px;
  background: linear-gradient(145deg, #121c22 0%, #0e171c 100%);
}

.public-home-layout .hero-analysis-head {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 104px;
  padding: 22px 24px;
}

.public-home-layout .hero-file-icon {
  width: 50px;
  height: 58px;
  font-size: 25px;
}

.public-home-layout .hero-analysis-head > div:nth-child(2) > span,
.public-home-layout .hero-analysis-head > div:nth-child(2) > small {
  display: none;
}

.public-home-layout .hero-analysis-head h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.public-home-layout .hero-analysis-head p {
  font-size: 13px;
}

.public-home-layout .hero-analysis-status {
  padding: 10px 14px;
  font-size: 13px;
}

.public-home-layout .hero-analysis-metrics > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 76px;
  padding: 16px 18px;
}

.public-home-layout .hero-analysis-metrics > div::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #56bd43;
  border-radius: 50%;
  color: #66cb53;
  font-weight: 800;
}

.public-home-layout .hero-analysis-metrics > .warn::before {
  content: "?";
  border-color: #dfad2a;
  color: #efbd37;
}

.public-home-layout .hero-analysis-metrics span {
  align-self: end;
  font-size: 12px;
}

.public-home-layout .hero-analysis-metrics strong {
  grid-column: 2;
  align-self: start;
  font-size: 15px;
}

.public-home-layout .hero-analysis-parameters {
  margin: 13px 20px 0;
}

.public-home-layout .hero-analysis-parameters > div {
  min-height: 42px;
  padding: 8px 14px;
}

.public-home-layout .hero-analysis-question {
  display: block;
  margin: 15px 20px 0;
  padding: 13px 15px 10px;
}

.public-home-layout .hero-analysis-question-actions {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}

.public-home-layout .hero-analysis-question-actions button {
  min-height: 33px;
  padding: 6px 13px;
}

.public-home-layout .hero-analysis-note {
  padding: 13px 20px 15px;
}

.public-home-layout .hero-workspace-proof {
  position: relative;
  z-index: 1;
  width: calc(100% - 192px);
  margin: 27px auto 0;
  padding-top: 0;
}

.public-home-layout .hero-workspace-markers {
  position: absolute;
  z-index: 3;
  top: -12px;
  left: 50%;
  display: block;
  width: calc(100% + 118px);
  height: 74px;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.public-home-layout .hero-workspace-markers span {
  position: absolute;
  top: 0;
  width: 220px;
  min-height: 62px;
  padding: 11px 15px;
  font-size: 13px;
}

.public-home-layout .hero-workspace-markers span:nth-child(1) { left: -58px; }
.public-home-layout .hero-workspace-markers span:nth-child(2) { left: 50%; transform: translateX(-50%); }
.public-home-layout .hero-workspace-markers span:nth-child(3) { right: -58px; }

.public-home-layout .hero-workspace-markers span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 26px;
  background: #56b943;
}

.public-home-layout .hero-workspace-shell {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  height: 390px;
  padding-top: 35px;
  border-radius: 9px 9px 0 0;
}

.public-home-layout .hero-workspace-sidebar {
  border-right: 1px solid #27343a;
  padding: 18px 12px;
  background: #0b1318;
}

.public-home-layout .hero-workspace-sidebar > strong {
  display: block;
  margin-bottom: 16px;
  color: #f2f6f3;
  font-size: 14px;
}

.public-home-layout .hero-workspace-sidebar nav {
  display: grid;
  gap: 3px;
}

.public-home-layout .hero-workspace-sidebar span {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border-radius: 5px;
  padding: 7px 8px;
  color: #a4b0aa;
  font-size: 10px;
}

.public-home-layout .hero-workspace-sidebar span.active {
  background: #15251a;
  color: #70cf5d;
}

.public-home-layout .hero-workspace-sidebar b {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 8px;
}

.public-home-layout .hero-workspace-main {
  min-width: 0;
}

.public-home-layout .hero-workspace-toolbar {
  min-height: 74px;
  padding: 12px 18px;
}

.public-home-layout .hero-workspace-toolbar > strong {
  display: none;
}

.public-home-layout .hero-workspace-toolbar > div span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.public-home-layout .hero-workspace-toolbar > div b {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
}

.public-home-layout .hero-workspace-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(220px, .78fr) minmax(235px, .82fr);
  gap: 9px;
  padding: 10px;
}

.public-home-layout .hero-workspace-grid > article {
  padding: 12px;
}

.public-home-layout .hero-workspace-table-head,
.public-home-layout .hero-workspace-parameters > div {
  grid-template-columns: minmax(0, 1.2fr) minmax(72px, .55fr) minmax(80px, .62fr);
}

.public-home-layout .hero-workspace-table-head {
  display: grid;
  gap: 8px;
  padding: 5px 0 7px;
  color: #74827b;
  font-size: 8px;
  text-transform: uppercase;
}

.public-home-layout .hero-workspace-parameters > div em {
  color: #6cbf5d;
  font-size: 8px;
  white-space: nowrap;
}

@media (max-width: 1099px) {
  .public-home-layout .public-header .public-brand { flex-basis: auto; }
  .public-home-layout .public-nav { gap: 12px; }
  .public-home-layout .landing-hero-ai-intake { min-height: 0; }
  .public-home-layout .hero-ai-stage { grid-template-columns: 1fr; }
  .public-home-layout .hero-analysis-card { height: auto; }
  .public-home-layout .hero-workspace-proof { width: 100%; }
}

/* Same 1448:1086 composition, scaled to the 849px Codex review canvas. */
.public-main.public-home-layout.landing-capture-fit1440 {
  width: 849px;
  min-width: 849px;
  padding-inline: 33px;
}

.public-main.public-home-layout.landing-capture-fit1440 .public-header {
  min-height: 53px;
  height: 53px;
}

.public-main.public-home-layout.landing-capture-fit1440 .public-header .public-brand {
  flex-basis: 139px;
  width: 139px;
}

.public-main.public-home-layout.landing-capture-fit1440 .public-header .brand-logo {
  width: 106px;
  margin: 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .public-nav {
  gap: 0;
  margin-left: 45px;
}

.public-main.public-home-layout.landing-capture-fit1440 .public-nav a,
.public-main.public-home-layout.landing-capture-fit1440 .public-nav button {
  min-height: 28px;
  padding: 5px 0;
  font-size: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .public-nav .ghost { margin-left: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .public-nav .header-cta { padding-inline: 14px; }

.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake {
  min-height: 584px;
  height: 584px;
  padding-top: 19px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-ai-stage {
  grid-template-columns: minmax(0, 351px) minmax(0, 381px);
  gap: 51px;
  min-height: 327px;
  padding-bottom: 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy { padding-top: 2px; }
.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy .eyebrow { font-size: 9px; }
.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy h1 {
  max-width: 380px;
  margin: 10px 0;
  font-size: 31px;
}
.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > .hero-lead {
  margin-bottom: 13px;
  font-size: 10px;
}
.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > p:not(.risk-reversal, .hero-lead) {
  font-size: 9px;
  line-height: 1.52;
}
.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-actions {
  gap: 9px;
  margin-top: 16px;
}
.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-actions button {
  min-height: 33px;
  padding-inline: 16px;
  font-size: 9px;
}
.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .risk-reversal {
  margin-top: 10px;
  font-size: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-card {
  height: 327px;
  border-radius: 7px;
}
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-head {
  grid-template-columns: 33px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 61px;
  padding: 12px 14px;
}
.public-main.public-home-layout.landing-capture-fit1440 .hero-file-icon { width: 29px; height: 34px; font-size: 15px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-head h2 { margin-bottom: 2px; font-size: 12px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-head p { font-size: 8px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-status { padding: 6px 8px; font-size: 8px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-metrics > div { gap: 6px; min-height: 45px; padding: 8px 10px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-metrics > div::before { width: 15px; height: 15px; font-size: 8px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-metrics span { font-size: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-metrics strong { font-size: 9px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-parameters { margin: 8px 11px 0; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-parameters > div { min-height: 25px; padding: 4px 8px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-parameters span { font-size: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-parameters strong { font-size: 8px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-question { margin: 8px 11px 0; padding: 7px 9px 6px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-question strong { font-size: 8px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-question p { margin-top: 2px; font-size: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-question-actions { gap: 5px; margin-top: 5px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-question-actions button { min-height: 19px; padding: 3px 7px; font-size: 6px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-note { padding: 7px 11px 8px; font-size: 7px; }

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-proof {
  width: 667px;
  margin-top: 9px;
  padding-top: 0;
}
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers {
  top: -7px;
  width: 736px;
  height: 43px;
}
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span {
  width: 129px;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 7px;
}
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span:nth-child(1) { left: -34px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span:nth-child(3) { right: -34px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers b { width: 14px; height: 14px; flex-basis: 14px; font-size: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span::after { height: 15px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-shell {
  grid-template-columns: 77px minmax(0, 1fr);
  height: 229px;
  padding-top: 20px;
}
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-sidebar { padding: 10px 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-sidebar > strong { margin-bottom: 8px; font-size: 8px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-sidebar nav { gap: 2px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-sidebar span { gap: 4px; min-height: 20px; padding: 3px 4px; font-size: 6px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-sidebar b { width: 10px; height: 10px; font-size: 5px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-toolbar { min-height: 43px; padding: 7px 10px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-toolbar > span { font-size: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-toolbar > div { gap: 10px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-toolbar > div span { font-size: 6px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-toolbar > div b { width: 11px; height: 11px; font-size: 5px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(124px, .78fr) minmax(134px, .82fr);
  gap: 5px;
  height: auto;
  padding: 6px;
}
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid > article { padding: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid article > header { margin-bottom: 5px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid article > header strong { font-size: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid article > header span { padding: 2px 4px; font-size: 5px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-table-head { padding: 2px 0 3px; font-size: 5px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-parameters > div { gap: 4px; padding: 3px 0; font-size: 6px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-parameters > div strong { font-size: 6px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-parameters > div em { font-size: 5px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-questions > div { padding: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-questions > div strong { font-size: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-questions > div p { min-height: 31px; margin: 3px 0 6px; font-size: 6px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-questions button { min-height: 18px; font-size: 5px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-result > p { margin-bottom: 4px; font-size: 6px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-result > div { gap: 5px; padding: 5px 0; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-result > div span { font-size: 6px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-result > div strong { font-size: 6px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-result > .client strong { font-size: 8px; }

.public-main.landing-capture-fit1440 .hero-workspace-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.82fr) minmax(0, 0.78fr);
}

.public-main.landing-capture-fit1440 .hero-workspace-result {
  grid-column: auto;
}

/* First-screen AI intake composition. Intentionally scoped to Hero only. */
.landing-hero-ai-intake {
  display: block;
  padding: 40px 0 0;
}

.hero-ai-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(520px, 1.04fr);
  gap: clamp(38px, 4.4vw, 72px);
  align-items: center;
  min-height: 520px;
  padding-bottom: 38px;
}

.landing-hero-ai-intake .hero-copy {
  min-width: 0;
}

.landing-hero-ai-intake .hero-copy .eyebrow {
  color: #57c646;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.landing-hero-ai-intake .hero-copy h1 {
  max-width: 720px;
  margin: 16px 0 18px;
  color: #f7faf8;
  font-size: clamp(48px, 4.35vw, 66px);
  line-height: 1.02;
  white-space: pre-line;
}

.landing-hero-ai-intake .hero-copy > .hero-lead {
  max-width: 680px;
  margin: 0 0 22px;
  color: #bac5bf;
  font-size: 18px;
  line-height: 1.5;
}

.landing-hero-ai-intake .hero-copy > p:not(.risk-reversal, .hero-lead) {
  max-width: 680px;
  margin: 0;
  color: #d5dcd8;
  font-size: 16px;
  line-height: 1.6;
}

.landing-hero-ai-intake .hero-actions {
  margin-top: 27px;
}

.landing-hero-ai-intake .hero-actions button {
  min-height: 50px;
  padding-inline: 22px;
}

.landing-hero-ai-intake .risk-reversal {
  margin-top: 14px;
  color: #8f9d96;
  font-size: 13px;
}

.hero-analysis-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2b393f;
  border-radius: 8px;
  background: #10191e;
  color: #eef3f0;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.28);
}

.hero-analysis-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
}

.hero-file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  border: 1px solid #435059;
  border-radius: 6px;
  background: #263138;
  color: #d9e2dd;
  font-size: 22px;
}

.hero-analysis-head span,
.hero-analysis-head p {
  color: #8f9c96;
  font-size: 11px;
}

.hero-analysis-head small {
  display: block;
  margin-top: 4px;
  color: #aeb9b3;
  font-size: 10px;
  line-height: 1.35;
}

.hero-analysis-head h2 {
  margin: 2px 0 3px;
  color: #f4f7f5;
  font-size: 19px;
  line-height: 1.2;
}

.hero-analysis-head p {
  margin: 0;
}

.hero-analysis-status {
  border: 1px solid #295d2c;
  border-radius: 5px;
  background: #152719;
  padding: 9px 11px;
  color: #72d55e;
  font-size: 12px;
  white-space: nowrap;
}

.hero-analysis-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid #29363c;
}

.hero-analysis-metrics > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 70px;
  padding: 14px 16px;
}

.hero-analysis-metrics > div + div {
  border-left: 1px solid #29363c;
}

.hero-analysis-metrics span {
  color: #abb6b0;
  font-size: 11px;
  line-height: 1.3;
}

.hero-analysis-metrics strong {
  color: #f5f7f6;
  font-size: 21px;
}

.hero-analysis-metrics .warn strong {
  color: #f1bd3b;
}

.hero-analysis-parameters {
  margin: 14px 18px 0;
  overflow: hidden;
  border: 1px solid #26343a;
  border-radius: 6px;
}

.hero-analysis-parameters > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 39px;
  padding: 8px 13px;
}

.hero-analysis-parameters > div + div {
  border-top: 1px solid #26343a;
}

.hero-analysis-parameters span {
  color: #aeb9b3;
  font-size: 12px;
}

.hero-analysis-parameters strong {
  color: #eef3f0;
  font-size: 13px;
}

.hero-analysis-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 14px 18px 0;
  border: 1px solid #7d6424;
  border-radius: 6px;
  background: #262315;
  padding: 13px 14px;
}

.hero-analysis-question strong {
  color: #f0bd3e;
  font-size: 13px;
}

.hero-analysis-question p {
  margin: 4px 0 0;
  color: #e2dfd5;
  font-size: 12px;
  line-height: 1.4;
}

.hero-analysis-question button {
  min-height: 36px;
  border-color: #786321;
  background: #342e18;
  color: #f5f1e2;
  padding: 7px 12px;
  font-size: 11px;
}

.hero-analysis-note {
  margin: 0;
  padding: 13px 18px 17px;
  color: #87958e;
  font-size: 11px;
}

.hero-workspace-proof {
  position: relative;
  padding-top: 20px;
}

.hero-workspace-markers {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: calc(100% - 96px);
  margin: 0 auto -22px;
}

.hero-workspace-markers span {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border: 1px solid #3a474d;
  border-radius: 6px;
  background: #111a1f;
  padding: 10px 14px;
  color: #e1e7e3;
  font-size: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.hero-workspace-markers b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid #54bd42;
  border-radius: 50%;
  color: #65ce52;
}

.hero-workspace-markers span:nth-child(2) b {
  border-color: #d8a925;
  color: #edbd37;
}

.hero-workspace-shell {
  overflow: hidden;
  border: 1px solid #2d3b42;
  border-radius: 8px 8px 0 0;
  background: #0e171c;
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.34);
}

.hero-workspace-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid #2a373d;
  padding: 28px 24px 12px;
}

.hero-workspace-toolbar > strong {
  color: #f5f7f6;
  font-size: 17px;
}

.hero-workspace-toolbar > span {
  color: #9eaaa4;
  font-size: 11px;
}

.hero-workspace-toolbar > div {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.hero-workspace-toolbar > div span {
  color: #839089;
  font-size: 10px;
}

.hero-workspace-toolbar > div .done {
  color: #65c954;
}

.hero-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.82fr) minmax(270px, 0.78fr);
  gap: 10px;
  padding: 12px;
}

.hero-workspace-grid > article {
  min-width: 0;
  border: 1px solid #29373d;
  border-radius: 6px;
  background: #121d22;
  padding: 14px;
}

.hero-workspace-grid article > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.hero-workspace-grid article > header strong {
  color: #f1f5f2;
  font-size: 13px;
}

.hero-workspace-grid article > header span {
  border-radius: 999px;
  background: #27352e;
  padding: 3px 7px;
  color: #77cc67;
  font-size: 9px;
}

.hero-workspace-parameters > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #253238;
  color: #9da9a3;
  font-size: 10px;
}

.hero-workspace-parameters > div strong {
  color: #f0f4f1;
  font-size: 10px;
}

.hero-workspace-parameters > div em {
  color: #5bc54a;
  font-style: normal;
}

.hero-workspace-questions > div {
  border: 1px solid #755e21;
  border-radius: 5px;
  background: #262315;
  padding: 12px;
}

.hero-workspace-questions > div strong {
  color: #f0bd3e;
  font-size: 11px;
}

.hero-workspace-questions > div p {
  min-height: 54px;
  margin: 6px 0 12px;
  color: #d5d3c9;
  font-size: 10px;
  line-height: 1.45;
}

.hero-workspace-questions button {
  min-height: 30px;
  width: 100%;
  border-color: #755e21;
  color: #e8e2d0;
  font-size: 9px;
}

.hero-workspace-result > p {
  margin: 0 0 8px;
  color: #89968f;
  font-size: 10px;
}

.hero-workspace-result > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #27343a;
}

.hero-workspace-result > div span {
  color: #a4afa9;
  font-size: 10px;
}

.hero-workspace-result > div strong {
  color: #f2f5f3;
  font-size: 11px;
  text-align: right;
}

.hero-workspace-result > .client {
  margin-top: 3px;
  border-radius: 4px;
  background: #17271b;
  padding-inline: 9px;
}

.hero-workspace-result > .client strong {
  color: #77d365;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .hero-ai-stage {
    grid-template-columns: 1fr;
  }

  .hero-workspace-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-workspace-result {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .landing-hero-ai-intake {
    padding-top: 24px;
  }

  .hero-ai-stage {
    gap: 28px;
    padding-bottom: 22px;
  }

  .landing-hero-ai-intake .hero-copy h1 {
    font-size: 38px;
  }

  .hero-analysis-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .hero-analysis-status {
    grid-column: 1 / -1;
  }

  .hero-analysis-metrics,
  .hero-workspace-markers,
  .hero-workspace-grid {
    grid-template-columns: 1fr;
  }

  .hero-analysis-metrics > div + div {
    border-top: 1px solid #29363c;
    border-left: 0;
  }

  .hero-analysis-question {
    grid-template-columns: 1fr;
  }

  .hero-workspace-markers {
    width: calc(100% - 24px);
    margin-bottom: 12px;
  }

  .hero-workspace-toolbar {
    grid-template-columns: 1fr;
  }

  .hero-workspace-toolbar > div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-workspace-result {
    grid-column: auto;
  }
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake {
  padding-top: 24px;
}

.public-main.landing-capture-fit1440 .hero-ai-stage {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  min-height: 390px;
  padding-bottom: 24px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy h1 {
  margin-block: 10px 12px;
  font-size: 36px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy .eyebrow {
  font-size: 9px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > .hero-lead {
  margin-bottom: 12px;
  font-size: 11px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > p:not(.risk-reversal, .hero-lead) {
  font-size: 10px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-actions {
  margin-top: 16px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-actions button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 9px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .risk-reversal {
  margin-top: 8px;
  font-size: 8px;
}

.public-main.landing-capture-fit1440 .hero-analysis-head {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 11px 12px;
}

.public-main.landing-capture-fit1440 .hero-file-icon {
  width: 30px;
  height: 34px;
  font-size: 15px;
}

.public-main.landing-capture-fit1440 .hero-analysis-head h2 {
  font-size: 13px;
}

.public-main.landing-capture-fit1440 .hero-analysis-head :is(span, p),
.public-main.landing-capture-fit1440 .hero-analysis-head small,
.public-main.landing-capture-fit1440 .hero-analysis-status,
.public-main.landing-capture-fit1440 .hero-analysis-metrics span,
.public-main.landing-capture-fit1440 .hero-analysis-parameters span,
.public-main.landing-capture-fit1440 .hero-analysis-question p,
.public-main.landing-capture-fit1440 .hero-analysis-note {
  font-size: 7px;
}

.public-main.landing-capture-fit1440 .hero-analysis-status {
  padding: 6px 7px;
}

.public-main.landing-capture-fit1440 .hero-analysis-metrics > div {
  min-height: 48px;
  padding: 8px 9px;
}

.public-main.landing-capture-fit1440 .hero-analysis-metrics strong {
  font-size: 15px;
}

.public-main.landing-capture-fit1440 .hero-analysis-parameters {
  margin: 8px 10px 0;
}

.public-main.landing-capture-fit1440 .hero-analysis-parameters > div {
  min-height: 25px;
  padding: 4px 8px;
}

.public-main.landing-capture-fit1440 .hero-analysis-parameters strong,
.public-main.landing-capture-fit1440 .hero-analysis-question strong {
  font-size: 8px;
}

.public-main.landing-capture-fit1440 .hero-analysis-question {
  margin: 8px 10px 0;
  padding: 7px 8px;
}

.public-main.landing-capture-fit1440 .hero-analysis-question button {
  min-height: 26px;
  padding: 4px 7px;
  font-size: 7px;
}

.public-main.landing-capture-fit1440 .hero-analysis-note {
  padding: 7px 10px 9px;
}

.public-main.landing-capture-fit1440 .hero-workspace-markers {
  gap: 10px;
  width: calc(100% - 52px);
  margin-bottom: -15px;
}

.public-main.landing-capture-fit1440 .hero-workspace-markers span {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 7px;
}

.public-main.landing-capture-fit1440 .hero-workspace-markers b {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.public-main.landing-capture-fit1440 .hero-workspace-toolbar {
  min-height: 54px;
  padding: 20px 14px 8px;
}

.public-main.landing-capture-fit1440 .hero-workspace-toolbar > strong {
  font-size: 11px;
}

.public-main.landing-capture-fit1440 .hero-workspace-toolbar :is(span, div span) {
  font-size: 7px;
}

.public-main.landing-capture-fit1440 .hero-workspace-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.82fr) minmax(0, 0.78fr);
  gap: 6px;
  padding: 8px;
}

.public-main.landing-capture-fit1440 .hero-workspace-grid > article {
  padding: 9px;
}

.public-main.landing-capture-fit1440 .hero-workspace-grid article > header strong {
  font-size: 8px;
}

.public-main.landing-capture-fit1440 .hero-workspace-grid article > header span,
.public-main.landing-capture-fit1440 .hero-workspace-parameters > div,
.public-main.landing-capture-fit1440 .hero-workspace-parameters > div strong,
.public-main.landing-capture-fit1440 .hero-workspace-questions > div :is(strong, p),
.public-main.landing-capture-fit1440 .hero-workspace-result :is(p, span, strong) {
  font-size: 7px;
}

/* Owner-reference composition: dark value proposition over a factual product canvas. */
.landing-hero-redesign {
  display: block;
  min-height: 0;
  padding: 54px 0 0;
}

.hero-topline {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
  gap: clamp(58px, 6vw, 104px);
  align-items: center;
  min-height: 510px;
  padding-bottom: 58px;
}

.hero-topline .hero-copy h1 {
  max-width: 850px;
  margin: 16px 0 20px;
  font-size: clamp(54px, 5.2vw, 78px);
  line-height: 0.98;
}

.hero-topline .hero-copy > p:not(.risk-reversal) {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.55;
}

.hero-topline .hero-value-list {
  display: none;
}

.hero-topline .hero-actions {
  margin-top: 28px;
}

.hero-topline .hero-actions button {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 15px;
}

.hero-topline .risk-reversal {
  margin-top: 12px;
  color: #899991;
}

.hero-benefits {
  display: grid;
  gap: 0;
  border-left: 1px solid #334149;
  padding-left: clamp(34px, 4vw, 64px);
}

.hero-benefit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 21px 0;
}

.hero-benefit + .hero-benefit {
  border-top: 1px solid #1e2b31;
}

.hero-benefit > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #4bb53c;
  border-radius: 50%;
  color: #6fd45c;
  font-size: 23px;
  font-weight: 800;
}

.hero-benefit strong {
  display: block;
  color: #f4f7f5;
  font-size: 21px;
  line-height: 1.25;
}

.hero-benefit p {
  max-width: 500px;
  margin: 7px 0 0;
  color: #9daaa4;
  font-size: 15px;
  line-height: 1.55;
}

.hero-demo-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d7dfda;
  border-radius: 8px 8px 0 0;
  background: #f7f9f8;
  color: #17212b;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.3);
}

.hero-demo-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  border-bottom: 1px solid #dbe2de;
  padding: 14px 26px;
  background: #ffffff;
}

.hero-demo-progress > span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #58656f;
  font-size: 14px;
  font-style: normal;
  white-space: nowrap;
}

.hero-demo-progress > span:not(:nth-child(3))::after {
  content: "";
  position: absolute;
  left: calc(100% + 10px);
  width: 38px;
  height: 1px;
  background: #b9c3bd;
}

.hero-demo-progress b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid #9ca9a2;
  border-radius: 50%;
  color: #5f6b65;
}

.hero-demo-progress .done b,
.hero-demo-progress .active b {
  border-color: #3ca536;
  background: #3ca536;
  color: #fff;
}

.hero-demo-progress .active {
  color: #17212b;
  font-weight: 800;
}

.hero-demo-progress em {
  color: #358f33;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.hero-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
  gap: 0;
  align-items: stretch;
}

.hero-demo-grid .hero-panel {
  min-width: 0;
  padding: 22px;
}

.hero-demo-grid .product-preview.hero-input-preview {
  height: 100%;
  gap: 10px;
  border: 1px solid #d7dfda;
  border-radius: 6px;
  background: #fff;
  padding: 18px;
  color: #17212b;
  box-shadow: none;
}

.hero-demo-grid .hero-input-block-label {
  color: #378f34;
}

.hero-demo-grid .hero-input-preview .preview-head h2,
.hero-result-head h2 {
  margin: 4px 0 3px;
  color: #17212b;
  font-size: 22px;
  line-height: 1.2;
}

.hero-demo-grid .hero-input-preview .preview-head p {
  color: #68756e;
}

.hero-demo-grid .hero-input-table {
  border-color: #d8dfdb;
  background: #fff;
}

.hero-demo-grid .hero-input-table-head {
  border-color: #d8dfdb;
  background: #eef2f0;
  color: #68756e;
}

.hero-demo-grid .hero-input-row {
  min-height: 31px;
  border-color: #e1e6e3;
  color: #33413a;
  font-size: 12px;
}

.hero-demo-grid .hero-input-row:nth-child(odd) {
  background: #f8faf9;
}

.hero-demo-grid .hero-input-row strong {
  color: #17212b;
  font-size: 12px;
}

.hero-demo-grid .hero-input-footer {
  border-color: #d8dfdb;
}

.hero-demo-grid .hero-input-footer > span {
  color: #58665f;
}

.hero-demo-grid .hero-input-footer button {
  border-color: #3ca536;
  background: #3ca536;
  color: #fff;
}

.hero-result-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid #d7dfda;
  padding: 22px;
  background: #fbfcfb;
}

.hero-result-money {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #d8dfdb;
  border-radius: 6px;
  background: #fff;
}

.hero-result-money > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 18px;
  align-items: center;
  padding: 15px 16px;
}

.hero-result-money > div + div {
  border-top: 1px solid #e0e6e2;
}

.hero-result-money span {
  color: #17212b;
  font-size: 15px;
  font-weight: 800;
}

.hero-result-money small {
  color: #78847e;
  font-size: 11px;
}

.hero-result-money strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #17212b;
  font-size: 17px;
  text-align: right;
  white-space: nowrap;
}

.hero-result-money .client {
  background: #eef8ed;
}

.hero-result-money .client strong {
  color: #267b2b;
  font-size: 23px;
}

.hero-result-export {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid #d8dfdb;
  border-radius: 6px;
  padding: 13px 14px;
  background: #fff;
}

.hero-result-export > span {
  color: #66736c;
  font-size: 11px;
  line-height: 1.35;
}

.hero-result-export > div {
  display: flex;
  gap: 8px;
}

.hero-result-export .estimate-export-format {
  min-width: 72px;
  border-color: #c7d2cc;
  background: #fff;
  color: #24422b;
}

.hero-result-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hero-result-benefits span {
  border: 1px solid #dce3df;
  border-radius: 5px;
  padding: 11px;
  color: #405048;
  font-size: 10px;
  line-height: 1.35;
}

.hero-result-status {
  margin: auto 0 0;
  border: 1px solid #cee0cf;
  border-radius: 5px;
  background: #f2f9f2;
  padding: 12px 14px;
  color: #3b7240;
  font-size: 12px;
}

.estimate-proof-section .estimate-export-row {
  display: none;
}

/* Public-home section 6: owner-reference ready-estimate fragment. */
.public-main .ready-estimate-section {
  width: 100vw;
  max-width: none;
  margin: 0 0 0 calc(50% - 50vw);
  border: 0;
  border-radius: 0;
  padding: clamp(34px, 3vw, 54px) clamp(28px, 2.4vw, 44px) 34px;
  background:
    radial-gradient(circle at 74% 42%, rgba(45, 105, 59, 0.1), transparent 38%),
    #050b0f;
  color: #f5f7f6;
}

.ready-estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 27fr) minmax(0, 73fr);
  gap: clamp(36px, 3vw, 48px);
  align-items: center;
}

.ready-estimate-intro {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 12px;
}

.ready-estimate-intro .eyebrow {
  margin: 0 0 22px;
  color: #78c940;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-main .ready-estimate-intro h2 {
  max-width: 100%;
  margin: 0;
  color: #f7f8f7;
  font-size: clamp(46px, 3.3vw, 50px);
  line-height: 0.98;
  letter-spacing: 0;
  white-space: pre-line;
}

.ready-estimate-intro h2::first-line {
  color: #f7f8f7;
}

.ready-estimate-intro h2 > span {
  display: block;
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
}

.ready-estimate-intro h2 em {
  color: #79c83f;
  font-style: normal;
}

.ready-estimate-intro p {
  max-width: 100%;
  margin: 24px 0 0;
  color: #c5cbc8;
  font-size: 18px;
  line-height: 1.7;
}

.ready-estimate-callout {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  width: min(100%, 320px);
  margin-top: 72px;
  border: 1px solid #35434a;
  border-radius: 8px;
  padding: 22px;
  background: #0b141a;
  color: #eef2ef;
  font-size: 17px;
  line-height: 1.5;
}

.ready-estimate-callout::after {
  content: none;
}

.ready-estimate-callout svg {
  width: 38px;
  height: 38px;
  color: #77cf3f;
}

.ready-estimate-callout span::first-line {
  color: #fff;
}

.ready-estimate-product {
  min-width: 0;
}

.ready-estimate-statusbar {
  display: grid;
  grid-template-columns: 46px minmax(180px, 1.5fr) minmax(96px, 0.6fr) minmax(96px, 0.55fr) minmax(125px, 0.8fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  border: 1px solid #39454b;
  border-radius: 12px;
  padding: 16px 24px;
  background: #0b141a;
}

.ready-estimate-status-icon {
  display: grid;
  place-items: center;
  color: #78cf3d;
}

.ready-estimate-status-icon svg {
  width: 44px;
  height: 44px;
}

.ready-estimate-statusbar > strong {
  max-width: 220px;
  color: #f5f7f6;
  font-size: 18px;
  line-height: 1.35;
}

.ready-estimate-statusbar > span:not(.ready-estimate-status-icon) {
  display: grid;
  gap: 5px;
  border-left: 1px solid #344047;
  padding-left: 20px;
}

.ready-estimate-statusbar small {
  color: #c8cfcb;
  font-size: 13px;
}

.ready-estimate-statusbar b {
  color: #80d33f;
  font-size: 16px;
}

.ready-estimate-statusbar em {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid #477c22;
  border-radius: 10px;
  padding: 0 20px;
  background: linear-gradient(135deg, #315f17, #426f1f);
  color: #f4f7f2;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.ready-estimate-statusbar em svg {
  width: 22px;
  height: 22px;
}

.ready-estimate-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid #36434b;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #111a20;
}

.ready-estimate-tabs button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 82px;
  border: 0;
  border-radius: 0;
  padding: 14px 28px;
  background: transparent;
  color: #aeb8b4;
  text-align: left;
  box-shadow: none;
}

.ready-estimate-tabs button + button {
  border-left: 1px solid #36434b;
}

.ready-estimate-tabs button.active {
  background: linear-gradient(90deg, rgba(56, 109, 27, 0.28), rgba(17, 26, 32, 0.85));
  color: #86d344;
  box-shadow: inset 0 0 0 1px #68b92d;
}

.ready-estimate-tabs button svg {
  width: 30px;
  height: 30px;
}

.ready-estimate-tabs button span {
  display: grid;
  gap: 4px;
}

.ready-estimate-tabs button strong {
  color: #f3f5f4;
  font-size: 17px;
}

.ready-estimate-tabs button small {
  color: inherit;
  font-size: 13px;
}

.ready-estimate-table-wrap {
  overflow: hidden;
  border: 1px solid #d8ddda;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

.ready-estimate-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: #171b19;
  font-size: 13px;
}

.ready-estimate-table th {
  height: 52px;
  padding: 0 18px;
  color: #303532;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.ready-estimate-table th:nth-child(n + 3),
.ready-estimate-table td:nth-child(n + 3) {
  text-align: right;
  white-space: nowrap;
}

.ready-estimate-table td {
  height: 40px;
  border-top: 1px solid #dde2df;
  padding: 0 18px;
}

.ready-estimate-table col:nth-child(1) { width: 5%; }
.ready-estimate-table col:nth-child(2) { width: 41%; }
.ready-estimate-table col:nth-child(3) { width: 8%; }
.ready-estimate-table col:nth-child(4) { width: 12%; }
.ready-estimate-table col:nth-child(5) { width: 17%; }
.ready-estimate-table col:nth-child(6) { width: 17%; }

.ready-estimate-group td {
  height: 44px;
  border-top: 1px solid #d8e2d6;
  border-left: 4px solid #5eac2d;
  background: #f1f7ee;
  color: #1f2922;
  text-align: left !important;
}

.ready-estimate-group td svg {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  color: #5cad2d;
  vertical-align: middle;
}

.ready-estimate-group.works td {
  border-left-color: #4c80c8;
  background: #f0f4f9;
}

.ready-estimate-group.works td svg { color: #4c80c8; }

.ready-estimate-group.delivery td {
  border-left-color: #e3a100;
  background: #fff8e9;
}

.ready-estimate-group.delivery td svg { color: #e3a100; }

.ready-estimate-financials {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr)) minmax(150px, 1.35fr) minmax(86px, 0.7fr);
  gap: 0;
  margin-top: -1px;
  border: 1px solid #d8ddda;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  background: #fff;
  color: #18201b;
}

.ready-estimate-financials span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 17px 16px;
}

.ready-estimate-financials span + span {
  border-left: 1px solid #d6dcda;
}

.ready-estimate-financials small {
  color: #262c29;
  font-size: 12px;
  font-weight: 700;
}

.ready-estimate-financials strong {
  color: #5b9f29;
  font-size: 18px;
  white-space: nowrap;
}

.ready-estimate-financials .work strong { color: #507bb6; }
.ready-estimate-financials .delivery strong { color: #d79500; }
.ready-estimate-financials .equipment strong { color: #805bad; }
.ready-estimate-financials .total strong { color: #0d100e; font-size: 25px; }
.ready-estimate-financials .margin strong { color: #5b9f29; font-size: 22px; }

.ready-estimate-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
  border: 1px solid #35434a;
  border-radius: 12px;
  background: #0b141a;
}

.ready-estimate-benefits > div {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 102px;
  padding: 24px 28px;
}

.ready-estimate-benefits > div + div {
  border-left: 1px solid #35434a;
}

.ready-estimate-benefits > div > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #3b4b53;
  border-radius: 10px;
  color: #7ed044;
}

.ready-estimate-benefits svg { width: 29px; height: 29px; }
.ready-estimate-benefits strong { display: block; margin-bottom: 5px; color: #f2f4f3; font-size: 15px; }
.ready-estimate-benefits p { margin: 0; color: #b9c2be; font-size: 13px; line-height: 1.5; }

@media (max-width: 1180px) {
  .ready-estimate-layout { grid-template-columns: 1fr; gap: 28px; }
  .ready-estimate-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.7fr); gap: 24px; }
  .ready-estimate-intro .eyebrow, .ready-estimate-intro h2, .ready-estimate-intro p { grid-column: 1; }
  .ready-estimate-callout { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-top: 0; }
  .ready-estimate-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ready-estimate-benefits > div:nth-child(3) { border-left: 0; border-top: 1px solid #35434a; }
  .ready-estimate-benefits > div:nth-child(4) { border-top: 1px solid #35434a; }
}

@media (max-width: 760px) {
  .public-main .ready-estimate-section { padding-inline: 16px; }
  .ready-estimate-intro { display: block; }
  .public-main .ready-estimate-intro h2 { font-size: 44px; }
  .ready-estimate-callout { margin-top: 24px; }
  .ready-estimate-statusbar { grid-template-columns: 38px 1fr; }
  .ready-estimate-statusbar > span:not(.ready-estimate-status-icon), .ready-estimate-statusbar em { grid-column: 1 / -1; }
  .ready-estimate-tabs { grid-template-columns: 1fr; }
  .ready-estimate-tabs button + button { border-left: 0; border-top: 1px solid #36434b; }
  .ready-estimate-table-wrap { overflow-x: auto; }
  .ready-estimate-table { min-width: 780px; }
  .ready-estimate-financials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ready-estimate-financials span + span { border-left: 0; border-top: 1px solid #d6dcda; }
  .ready-estimate-financials span:nth-child(even) { border-left: 1px solid #d6dcda; }
  .ready-estimate-benefits { grid-template-columns: 1fr; }
  .ready-estimate-benefits > div + div { border-left: 0; border-top: 1px solid #35434a; }
}

@media (min-width: 1280px) {
  .public-header,
  .landing-hero,
  .public-section {
    width: min(100%, 1480px);
  }

  .public-section {
    padding-block: clamp(78px, 7vw, 112px);
  }

  .process-step {
    min-height: 142px;
  }

  .upload-card {
    padding: 18px;
  }

  .team-roles > * {
    min-height: 190px;
  }
}

@media (min-width: 1280px) and (max-height: 1000px) {
  .landing-hero-redesign {
    padding-top: 34px;
  }

  .hero-topline {
    min-height: 430px;
    padding-bottom: 42px;
  }

  .hero-topline .hero-copy h1 {
    margin-block: 12px 16px;
    font-size: clamp(52px, 4.4vw, 68px);
  }

  .hero-topline .hero-copy > p:not(.risk-reversal) {
    font-size: 16px;
  }

  .hero-benefit {
    padding-block: 16px;
  }
}

@media (max-width: 1279px) {
  .landing-hero-redesign {
    display: block;
    padding-top: 40px;
  }

  .hero-topline {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 42px;
    min-height: 0;
  }

  .hero-topline .hero-copy h1 {
    font-size: clamp(46px, 5.3vw, 62px);
  }

  .hero-demo-progress {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .hero-demo-progress em {
    grid-column: 1 / -1;
  }

  .hero-demo-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr);
  }
}

@media (max-width: 1020px) {
  .hero-topline,
  .hero-demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-topline {
    padding-bottom: 42px;
  }

  .hero-benefits {
    border-top: 1px solid #334149;
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }

  .hero-result-panel {
    border-top: 1px solid #d7dfda;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .hero-topline .hero-copy h1 {
    font-size: 39px;
    line-height: 1.02;
  }

  .hero-demo-progress {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hero-demo-progress > span:not(:nth-child(3))::after {
    display: none;
  }

  .hero-demo-grid .hero-panel,
  .hero-result-panel {
    padding: 12px;
  }

  .hero-result-money > div,
  .hero-result-export {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-result-money strong {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .hero-result-benefits {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Review capture keeps the 1440 composition legible inside the in-app canvas. */
.public-main.landing-capture-fit1440 .public-header {
  position: static;
}

.public-main.landing-capture-fit1440 .landing-hero-redesign {
  display: block;
  min-height: 0;
  padding: 28px 0 0;
}

.public-main.landing-capture-fit1440 .hero-topline {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 34px;
  min-height: 360px;
  padding-bottom: 30px;
}

.public-main.landing-capture-fit1440 .hero-topline .hero-copy h1 {
  margin-block: 10px 12px;
  font-size: 42px;
}

.public-main.landing-capture-fit1440 .hero-topline .hero-copy > p:not(.risk-reversal) {
  font-size: 11px;
}

.public-main.landing-capture-fit1440 .hero-benefits {
  display: grid;
  border-top: 0;
  border-left: 1px solid #334149;
  padding: 0 0 0 24px;
}

.public-main.landing-capture-fit1440 .hero-benefit {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
}

.public-main.landing-capture-fit1440 .hero-benefit > span {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.public-main.landing-capture-fit1440 .hero-benefit strong {
  font-size: 13px;
}

.public-main.landing-capture-fit1440 .hero-benefit p {
  margin-top: 3px;
  font-size: 9px;
}

.public-main.landing-capture-fit1440 .hero-demo-progress {
  grid-template-columns: repeat(3, minmax(90px, 1fr)) auto;
  min-height: 52px;
  gap: 12px;
  padding: 10px 16px;
}

.public-main.landing-capture-fit1440 .hero-demo-progress > span,
.public-main.landing-capture-fit1440 .hero-demo-progress em {
  grid-column: auto;
  font-size: 9px;
}

.public-main.landing-capture-fit1440 .hero-demo-progress b {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.public-main.landing-capture-fit1440 .hero-demo-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
}

.public-main.landing-capture-fit1440 .hero-result-panel {
  border-top: 0;
  border-left: 1px solid #d7dfda;
  padding: 14px;
}

.public-main.landing-capture-fit1440 .hero-result-head h2 {
  font-size: 15px;
}

.public-main.landing-capture-fit1440 .hero-result-money > div {
  padding: 9px;
}

.public-main.landing-capture-fit1440 .hero-result-money span,
.public-main.landing-capture-fit1440 .hero-result-money strong {
  font-size: 10px;
}

.public-main.landing-capture-fit1440 .hero-result-money .client strong {
  font-size: 14px;
}

.public-main.landing-capture-fit1440 .hero-result-export {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px;
}

.public-main.landing-capture-fit1440 .hero-result-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-editor-active:not(.landing-editor-preview) .landing-editable-section:hover,
.landing-editable-section.selected {
  outline-color: var(--public-green);
}

@media (min-width: 1280px) {
  .public-main {
    padding-inline: clamp(32px, 4vw, 64px);
  }

  .public-header,
  .landing-hero,
  .public-section {
    width: min(100%, 1440px);
    margin-inline: auto;
  }
}

@media (min-width: 1280px) and (max-height: 1000px) {
  .landing-hero-redesign {
    min-height: 0;
    padding-block: 22px 18px;
  }

  .landing-hero-redesign .hero-copy h1 {
    margin-block: 12px;
    font-size: clamp(46px, 3.8vw, 58px);
  }

  .landing-hero-redesign .hero-copy > p:not(.risk-reversal) {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-value-list {
    gap: 6px;
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .product-preview.hero-input-preview {
    gap: 6px;
    padding: 12px;
  }

  .hero-input-preview .preview-head h2 {
    font-size: 22px;
  }

  .hero-input-row {
    min-height: 24px;
    padding-block: 3px;
    font-size: 11px;
  }

  .hero-input-row strong {
    font-size: 11px;
  }
}

@media (max-width: 1279px) {
  .landing-hero-redesign {
    grid-template-columns: minmax(0, 0.46fr) minmax(480px, 0.54fr);
    gap: 26px;
    min-height: 0;
  }

  .landing-hero-redesign .hero-copy h1 {
    font-size: clamp(44px, 5vw, 58px);
  }

  .public-nav a,
  .public-nav button {
    font-size: 13px;
  }
}

@media (max-width: 1099px) {
  .landing-hero-redesign,
  .ai-trust-section,
  .pain-editorial {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .public-main {
    padding-inline: 12px;
  }

  .public-header {
    border-bottom: 0;
  }

  .public-nav {
    border-color: var(--public-line);
    background: #0f171c;
  }

  .mobile-menu-toggle {
    border-color: var(--public-line);
    background: #10181d;
  }

  .mobile-menu-toggle span {
    background: #edf3ef;
  }

  .landing-hero-redesign {
    padding-top: 24px;
  }

  .landing-hero-redesign .hero-copy h1 {
    font-size: 38px;
  }

  .public-section {
    padding-block: 52px;
  }

  .final-cta-redesign {
    grid-template-columns: 1fr;
  }
}

/* Desktop reference capture is scaled into the Codex in-app browser canvas. */
.public-main.landing-capture-fit1440 {
  width: 849px;
  padding-inline: 24px;
  background: #070b0e;
}

.public-main.landing-capture-fit1440 .public-header {
  min-height: 58px;
}

.public-main.landing-capture-fit1440 .public-header .brand-logo {
  width: 142px;
}

.public-main.landing-capture-fit1440 .public-nav {
  gap: 4px;
  flex-wrap: nowrap;
}

.public-main.landing-capture-fit1440 .public-nav a,
.public-main.landing-capture-fit1440 .public-nav button {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 10px;
}

.public-main.landing-capture-fit1440 .landing-hero-redesign {
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: 22px;
  min-height: 540px;
  padding: 44px 0 38px;
}

.public-main.landing-capture-fit1440 .landing-hero-redesign .hero-copy h1 {
  margin-block: 14px;
  font-size: 39px;
}

.public-main.landing-capture-fit1440 .landing-hero-redesign .hero-copy > p:not(.risk-reversal) {
  font-size: 12px;
}

.public-main.landing-capture-fit1440 .hero-value-list {
  gap: 6px;
  margin-top: 12px;
}

.public-main.landing-capture-fit1440 .hero-value-list span {
  padding-left: 23px;
  font-size: 10px;
}

.public-main.landing-capture-fit1440 .hero-actions {
  margin-top: 15px;
}

.public-main.landing-capture-fit1440 .hero-actions button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 10px;
}

.public-main.landing-capture-fit1440 .product-preview {
  gap: 9px;
  padding: 15px;
}

.public-main.landing-capture-fit1440 .hero-input-preview .preview-head h2 {
  font-size: 21px;
}

.public-main.landing-capture-fit1440 .hero-input-row {
  min-height: 27px;
  padding-block: 5px;
  font-size: 9px;
}

.public-main.landing-capture-fit1440 .hero-input-row strong {
  font-size: 9px;
}

.public-main.landing-capture-fit1440 .public-section {
  padding-block: 52px;
}

.public-main.landing-capture-fit1440 .tariff-section .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-main.landing-capture-fit1440 .team-roles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Hero AI intake: final desktop review-capture overrides. */
.public-main.landing-capture-fit1440 .landing-hero-ai-intake {
  padding-top: 18px;
}

.public-main.landing-capture-fit1440 .hero-ai-stage {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  min-height: 0;
  padding-bottom: 16px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy h1 {
  margin-block: 9px 10px;
  font-size: 30px;
  line-height: 1.03;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > .hero-lead {
  margin-bottom: 9px;
  font-size: 9px;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > p:not(.risk-reversal, .hero-lead) {
  font-size: 9px;
  line-height: 1.45;
}

.public-main.landing-capture-fit1440 .landing-hero-ai-intake .hero-actions {
  margin-top: 12px;
}

.public-main.landing-capture-fit1440 .hero-workspace-proof {
  padding-top: 12px;
}

.public-main.landing-capture-fit1440 .hero-workspace-shell {
  height: 310px;
}

.public-main.landing-capture-fit1440 .hero-workspace-toolbar {
  min-height: 48px;
  padding-top: 18px;
}

.public-main.landing-capture-fit1440 .hero-workspace-grid {
  height: 250px;
}

.public-main.landing-capture-fit1440 .hero-workspace-parameters > div {
  padding-block: 5px;
}

.public-main.landing-capture-fit1440 .hero-workspace-questions > div p {
  min-height: 36px;
}

/* Owner-reference capture corrections, kept last intentionally. */
.public-main.public-home-layout.landing-capture-fit1440 .public-header {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  height: 53px;
  min-height: 53px;
  margin-bottom: 0;
  padding: 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .public-header .public-brand {
  display: block;
  flex: 0 0 184px;
  width: 184px;
  height: 45px;
  margin: 0;
  transform: none;
}

.public-main.public-home-layout.landing-capture-fit1440 .public-header .brand-logo {
  width: 180px;
  margin: 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .mobile-menu-toggle { display: none; }

.public-main.public-home-layout.landing-capture-fit1440 .public-nav {
  position: static;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0;
  width: auto;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.public-main.public-home-layout.landing-capture-fit1440 .public-nav a,
.public-main.public-home-layout.landing-capture-fit1440 .public-nav button {
  width: auto;
  min-height: 28px;
  padding: 5px 0;
  font-size: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .public-nav .ghost { margin-left: 7px; }
.public-main.public-home-layout.landing-capture-fit1440 .public-nav .header-cta { padding-inline: 14px; }

.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake {
  display: block;
  min-height: 584px;
  height: 584px;
  padding: 19px 0 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-ai-stage {
  display: grid;
  grid-template-columns: minmax(0, 351px) minmax(0, 381px);
  gap: 51px;
  align-items: start;
  min-height: 327px;
  padding: 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy h1 {
  width: 373px;
  max-width: 373px;
  margin: 10px 0;
  font-size: 30.5px;
  line-height: 1.02;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-proof {
  width: 667px;
  margin-top: 18px;
  padding-top: 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-shell { height: 229px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-toolbar { min-height: 43px; padding: 7px 10px; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid { height: auto; }

/* Hero final visual refinement. Content, factual values and following sections stay unchanged. */
@media (min-width: 1100px) {
  .public-home-layout .landing-hero-ai-intake .hero-copy h1 {
    width: 760px;
    max-width: 760px;
    margin-block: 18px 20px;
    font-size: 62px;
    line-height: 1.01;
  }

  .public-home-layout .landing-hero-ai-intake .hero-copy > .hero-lead {
    margin-bottom: 24px;
    font-size: 20px;
    line-height: 1.45;
  }

  .public-home-layout .landing-hero-ai-intake .hero-copy > p:not(.risk-reversal, .hero-lead) {
    max-width: 625px;
    font-size: 17.5px;
    line-height: 1.58;
  }

  .public-home-layout .landing-hero-ai-intake .risk-reversal {
    font-size: 14px;
  }

  .public-home-layout .hero-analysis-head {
    min-height: 110px;
    padding: 24px 26px;
  }

  .public-home-layout .hero-analysis-head h2 {
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.2;
  }

  .public-home-layout .hero-analysis-head p {
    font-size: 14px;
  }

  .public-home-layout .hero-analysis-status {
    padding: 11px 15px;
    font-size: 13px;
  }

  .public-home-layout .hero-analysis-metrics > div {
    min-height: 82px;
    padding: 16px 18px;
  }

  .public-home-layout .hero-analysis-metrics span {
    font-size: 13px;
  }

  .public-home-layout .hero-analysis-metrics strong {
    font-size: 20px;
  }

  .public-home-layout .hero-analysis-parameters {
    margin: 14px 20px 0;
  }

  .public-home-layout .hero-analysis-parameters > div {
    min-height: 46px;
    padding: 10px 15px;
  }

  .public-home-layout .hero-analysis-parameters span {
    font-size: 13px;
  }

  .public-home-layout .hero-analysis-parameters strong {
    font-size: 14px;
  }

  .public-home-layout .hero-analysis-question {
    margin: 14px 20px 0;
    padding: 15px 16px 12px;
  }

  .public-home-layout .hero-analysis-question strong {
    font-size: 14px;
  }

  .public-home-layout .hero-analysis-question p {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.45;
  }

  .public-home-layout .hero-analysis-question-actions {
    gap: 10px;
    margin-top: 12px;
  }

  .public-home-layout .hero-analysis-question-actions button {
    min-height: 35px;
    font-size: 11px;
  }

  .public-home-layout .hero-analysis-note {
    padding: 13px 20px 15px;
    font-size: 12px;
  }

  .public-home-layout .hero-workspace-proof {
    width: calc(100% - 192px);
    margin-top: -5px;
  }

  .public-home-layout .hero-workspace-proof::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -34px -54px 0;
    background: linear-gradient(180deg, rgba(22, 35, 41, .28), rgba(7, 11, 14, 0) 78%);
    pointer-events: none;
  }

  .public-home-layout .hero-workspace-markers {
    top: -21px;
    width: calc(100% + 80px);
    height: 86px;
  }

  .public-home-layout .hero-workspace-markers span {
    top: 0;
    width: 260px;
    min-height: 70px;
    gap: 12px;
    padding: 13px 17px;
    font-size: 15px;
    line-height: 1.3;
  }

  .public-home-layout .hero-workspace-markers span:nth-child(1) {
    left: 0;
  }

  .public-home-layout .hero-workspace-markers span:nth-child(2) {
    left: 56%;
  }

  .public-home-layout .hero-workspace-markers span:nth-child(3) {
    right: 10px;
  }

  .public-home-layout .hero-workspace-markers span::after {
    left: 50%;
    height: 37px;
  }

  .public-home-layout .hero-workspace-markers b {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .public-home-layout .hero-workspace-shell {
    height: 460px;
    padding-top: 44px;
    border-color: #34444b;
    box-shadow: 0 38px 88px rgba(0, 0, 0, .42);
  }

  .public-home-layout .hero-workspace-sidebar {
    padding: 22px 14px;
  }

  .public-home-layout .hero-workspace-sidebar > strong {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .public-home-layout .hero-workspace-sidebar span {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 11px;
  }

  .public-home-layout .hero-workspace-toolbar {
    min-height: 82px;
    padding: 16px 22px;
  }

  .public-home-layout .hero-workspace-toolbar > span {
    font-size: 12px;
  }

  .public-home-layout .hero-workspace-toolbar > div span {
    font-size: 11px;
  }

  .public-home-layout .hero-workspace-grid {
    gap: 12px;
    padding: 14px;
  }

  .public-home-layout .hero-workspace-grid > article {
    padding: 16px;
  }

  .public-home-layout .hero-workspace-grid article > header strong {
    font-size: 14px;
  }

  .public-home-layout .hero-workspace-table-head {
    padding-block: 7px 9px;
    font-size: 9px;
  }

  .public-home-layout .hero-workspace-parameters > div {
    padding-block: 8px;
    font-size: 11px;
  }

  .public-home-layout .hero-workspace-parameters > div strong {
    font-size: 11px;
  }

  .public-home-layout .hero-workspace-parameters > div em {
    font-size: 9px;
  }

  .public-home-layout .hero-workspace-questions > div {
    padding: 14px;
  }

  .public-home-layout .hero-workspace-questions > div strong {
    font-size: 12px;
  }

  .public-home-layout .hero-workspace-questions > div p,
  .public-home-layout .hero-workspace-result > p {
    font-size: 11px;
  }

  .public-home-layout .hero-workspace-result > div span {
    font-size: 11px;
  }

  .public-home-layout .hero-workspace-result > div strong {
    font-size: 12px;
  }

  .public-home-layout .hero-workspace-result > .client strong {
    font-size: 16px;
  }
}

/* Readable scaled evidence at the same 1448:1086 aspect ratio and 100% browser zoom. */
.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy h1 {
  width: 500px;
  max-width: 500px;
  font-size: 35px;
  line-height: 1.01;
}

.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > .hero-lead {
  margin-bottom: 13px;
  font-size: 11px;
}

.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > p:not(.risk-reversal, .hero-lead) {
  font-size: 10px;
  line-height: 1.55;
}

.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .risk-reversal {
  font-size: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-head {
  min-height: 64px;
  padding: 13px 15px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-head h2 {
  font-size: 13px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-head p,
.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-status {
  font-size: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-metrics > div {
  min-height: 48px;
  padding: 9px 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-metrics span {
  font-size: 7.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-metrics strong {
  font-size: 11px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-parameters > div {
  min-height: 27px;
  padding: 5px 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-parameters span {
  font-size: 7.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-parameters strong {
  font-size: 8.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-question {
  padding: 8px 9px 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-question strong {
  font-size: 8.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-question p {
  margin-top: 4px;
  font-size: 7.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-question-actions {
  margin-top: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-note {
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-proof {
  width: 667px;
  margin-top: -3px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-proof::before {
  inset: -20px -32px 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers {
  top: -12px;
  width: 714px;
  height: 50px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span {
  width: 152px;
  min-height: 41px;
  gap: 7px;
  padding: 7px 10px;
  font-size: 8.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span:nth-child(1) { left: 0; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span:nth-child(2) { left: 56%; }
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span:nth-child(3) { right: 5px; }

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span::after {
  height: 22px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-shell {
  height: 270px;
  padding-top: 26px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-sidebar {
  padding: 12px 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-sidebar > strong {
  margin-bottom: 10px;
  font-size: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-sidebar span {
  min-height: 22px;
  padding: 4px 5px;
  font-size: 6.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-toolbar {
  min-height: 48px;
  padding: 9px 13px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-toolbar > span {
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-toolbar > div span {
  font-size: 6.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid {
  gap: 7px;
  padding: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid > article {
  padding: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid article > header strong {
  font-size: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-table-head {
  padding-block: 4px 5px;
  font-size: 5.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-parameters > div {
  padding-block: 4px;
  font-size: 6.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-parameters > div strong {
  font-size: 6.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-parameters > div em {
  font-size: 5.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-questions > div {
  padding: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-questions > div strong {
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-questions > div p,
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-result > p,
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-result > div span {
  font-size: 6.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-result > div strong {
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-result > .client strong {
  font-size: 9px;
}

/* Section 2: control before calculation. Scoped to the approved reference block. */
.public-main .control-before-calculation {
  display: block;
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 36px 0 44px;
  border-top-color: #1d282d;
  background: #070c0f;
  color: #f4f7f5;
}

.control-before-main {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(390px, 1fr);
  gap: 36px;
  align-items: start;
}

.control-before-left {
  min-width: 0;
}

.control-before-copy {
  margin: 0 0 16px;
}

.control-before-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 0 14px;
  border: 1px solid #5caa31;
  border-radius: 24px;
  padding: 7px 16px;
  background: transparent;
  color: #76c944;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
}

.public-main .control-before-copy h2 {
  display: grid;
  gap: 3px;
  max-width: 760px;
  margin: 0;
  color: #f5f7f6;
  font-size: clamp(38px, 3.1vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

.control-before-copy h2 span,
.control-before-copy h2 strong {
  display: block;
}

.control-before-copy h2 strong {
  color: #74c541;
  font-weight: 800;
}

@media (min-width: 1100px) {
  .public-main.public-home-layout .control-before-copy h2 {
    max-width: none;
  }

  .public-main.public-home-layout .control-before-copy > p {
    max-width: none;
  }
}

.control-before-copy > p {
  max-width: 700px;
  margin: 14px 0 0;
  color: #b8c0c3;
  font-size: 19px;
  line-height: 1.58;
}

.control-before-timeline {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.control-before-timeline::before {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 31px;
  left: 22px;
  border-left: 1px dashed #63a635;
}

.control-before-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 80px minmax(0, 1fr) 158px;
  gap: 16px;
  align-items: center;
  min-height: 110px;
  padding: 8px 0;
}

.control-before-step.warning::before {
  content: none;
}

.public-main .control-before-calculation .control-before-step.success {
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.control-before-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 46px;
  height: 1px;
  background: #263137;
}

.control-before-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #4d8d2d;
  border-radius: 50%;
  background: #09100c;
  color: #79ce45;
  font-size: 16px;
  font-weight: 800;
}

.control-before-step-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid #2c383e;
  border-radius: 13px;
  background: linear-gradient(145deg, #172128, #0f161b);
  color: #70c841;
}

.control-before-step.warning .control-before-step-icon,
.control-before-step.warning .control-before-step-status {
  color: #f2b92c;
}

.control-before-step-icon svg {
  width: 39px;
  height: 39px;
}

.control-before-step-copy {
  min-width: 0;
}

.control-before-step-copy strong {
  display: block;
  margin-bottom: 7px;
  color: #f3f6f4;
  font-size: 18px;
  line-height: 1.25;
}

.control-before-step-copy p,
.control-before-step-status span {
  margin: 0;
  overflow-wrap: anywhere;
}

.control-before-step-copy p {
  color: #b3bdc0;
  font-size: 15px;
  line-height: 1.46;
}

.control-before-step-status {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #e2e8e5;
  font-size: 13px;
  line-height: 1.35;
}

.control-before-step-status svg {
  width: 24px;
  height: 24px;
  color: #70c841;
}

.control-before-step.warning .control-before-step-status svg {
  color: #f2b92c;
}

.control-before-card {
  align-self: start;
  margin-top: 0;
  border: 1px solid #3a474e;
  border-radius: 19px;
  padding: 24px 22px 20px;
  background: linear-gradient(145deg, #10171c 0%, #0a1014 60%, #0d1418 100%);
  box-shadow: 0 24px 62px rgba(0, 0, 0, .2);
}

.control-before-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.control-before-card-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #806012;
  border-radius: 12px;
  padding: 7px 13px;
  background: rgba(107, 75, 8, .17);
  color: #f2ba31;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
}

.control-before-card-head em {
  color: #aeb8bc;
  font-size: 14px;
  font-style: normal;
}

.control-before-card h3 {
  margin: 16px 0 18px;
  color: #f4f7f5;
  font-size: 27px;
  line-height: 1.2;
}

.control-before-source-intro,
.control-before-answer > p {
  margin: 0 0 15px;
  color: #aeb8bc;
  font-size: 16px;
}

.control-before-missing-source {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #2e3a40;
  border-radius: 13px;
  padding: 14px;
  background: #0e151a;
}

.control-before-missing-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #344148;
  border-radius: 11px;
  background: #192229;
  color: #f0b62b;
}

.control-before-missing-icon svg {
  width: 28px;
  height: 28px;
}

.control-before-missing-source strong {
  display: block;
  color: #edf2ef;
  font-size: 17px;
  line-height: 1.3;
}

.control-before-missing-source p {
  margin: 7px 0 0;
  color: #9ea9ad;
  font-size: 14px;
  line-height: 1.42;
}

.control-before-answer {
  margin-top: 16px;
  border-top: 1px solid #2a353a;
  padding-top: 16px;
}

.control-before-answer > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
}

.control-before-answer label {
  position: relative;
  display: block;
}

.control-before-answer label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.control-before-answer input,
.control-before-answer button {
  width: 100%;
  min-height: 52px;
  border-radius: 11px;
  font-size: 16px;
}

.control-before-answer input {
  border: 1px solid #354149;
  background: #0b1115;
  padding: 0 17px;
  color: #dce3df;
}

.control-before-answer input::placeholder {
  color: #6f7a7f;
}

.control-before-answer button {
  border: 1px solid #65b837;
  background: rgba(74, 133, 45, .18);
  color: #f1f5f2;
  font-weight: 800;
}

.control-before-card footer {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid #7d5c11;
  border-radius: 13px;
  padding: 12px 14px;
  background: linear-gradient(100deg, rgba(113, 77, 5, .24), rgba(63, 47, 14, .34));
  color: #e8ece9;
  font-size: 14px;
  line-height: 1.4;
}

.control-before-card footer svg {
  width: 39px;
  height: 39px;
  color: #f1b72b;
}

.control-before-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 27px;
  border: 1px solid #3a474e;
  border-radius: 18px;
  padding: 27px 26px;
  background: linear-gradient(145deg, #10171c, #0b1115);
}

.control-before-benefit {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  min-height: 93px;
  padding: 10px 28px;
}

.control-before-benefit + .control-before-benefit {
  border-left: 1px solid #303b40;
}

.control-before-benefit > svg {
  width: 39px;
  height: 39px;
  color: #70c841;
}

.control-before-benefit.warning > svg {
  color: #f2b92c;
}

.control-before-benefit strong {
  display: block;
  margin-bottom: 8px;
  color: #f2f5f3;
  font-size: 17px;
  line-height: 1.3;
}

.control-before-benefit p {
  margin: 0;
  color: #aeb8bc;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 1099px) {
  .control-before-main {
    grid-template-columns: 1fr;
  }

  .control-before-step {
    grid-template-columns: 48px 70px minmax(0, 1fr) 150px;
  }

  .control-before-card {
    min-height: 0;
    margin-top: 0;
  }

  .control-before-step.warning::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .public-main .control-before-calculation {
    padding-block: 44px;
  }

  .control-before-copy .eyebrow {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 11px;
  }

  .control-before-copy > p {
    font-size: 16px;
  }

  .control-before-step {
    grid-template-columns: 42px 58px minmax(0, 1fr);
    gap: 11px;
    padding-block: 16px;
  }

  .control-before-step-status {
    grid-column: 3;
  }

  .control-before-number {
    width: 40px;
    height: 40px;
  }

  .control-before-step-icon {
    width: 56px;
    height: 56px;
  }

  .control-before-step-icon svg {
    width: 30px;
    height: 30px;
  }

  .control-before-card {
    padding: 21px 17px;
  }

  .control-before-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .control-before-answer > div,
  .control-before-benefits {
    grid-template-columns: 1fr;
  }

  .control-before-benefit + .control-before-benefit {
    border-top: 1px solid #303b40;
    border-left: 0;
  }
}

/* Reference-review capture: 1536x1024 composition scaled to the in-app canvas. */
.public-main.landing-capture-fit1536 {
  width: 849px;
  min-width: 849px;
  padding: 0;
  overflow: hidden;
  background: #070c0f;
}

.public-main.landing-capture-fit1536 .landing-focus {
  width: 849px;
  min-height: 566px;
  overflow: hidden;
}

.public-main.landing-capture-fit1536 .control-before-calculation {
  width: 1536px;
  min-height: 1024px;
  padding: 36px;
  transform: scale(.552734375);
  transform-origin: left top;
}

.public-main.landing-capture-fit1536 .control-before-main {
  grid-template-columns: minmax(0, 1.46fr) minmax(390px, 1fr);
  gap: 36px;
}

.public-main.landing-capture-fit1536 .control-before-card {
  margin-top: 0;
}

.public-main.landing-capture-fit1536 .control-before-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Hero conflict proof: one P15 source-backed conflict in the analysis card and workspace preview. */
.public-home-layout {
  --hero-conflict-title-font-size: 15px;
  --hero-conflict-status-font-size: 10px;
  --hero-conflict-source-name-font-size: 11px;
  --hero-conflict-source-file-font-size: 9px;
  --hero-conflict-value-font-size: 13px;
  --hero-conflict-question-font-size: 11px;
  --hero-conflict-choice-font-size: 10px;
  --hero-conflict-text-line-height: 1.25;
}

.public-home-layout .hero-analysis-card {
  height: auto;
  min-height: 620px;
}

.public-home-layout .hero-conflict-card {
  display: block;
  margin: 12px 18px 0;
  padding: 12px 13px 13px;
  border-color: #806724;
  background: linear-gradient(135deg, #262315 0%, #1d2018 100%);
}

.public-home-layout .hero-conflict-head,
.public-home-layout .hero-workspace-conflict-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.public-home-layout .hero-conflict-head > strong {
  color: #f0bd3e;
  font-size: 11px;
  text-transform: uppercase;
}

.public-home-layout .hero-conflict-head > span,
.public-home-layout .hero-workspace-conflict-head > span {
  color: #c7b77d;
  font-size: var(--hero-conflict-status-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-home-layout .hero-conflict-card h3 {
  margin: 8px 0 3px;
  color: #f4f6f4;
  font-size: var(--hero-conflict-title-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-home-layout .hero-conflict-card > p {
  margin: 0;
  color: #aeb7b1;
  font-size: 11px;
}

.public-home-layout .hero-conflict-sources {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.public-home-layout .hero-conflict-source {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  border: 1px solid #394249;
  border-radius: 5px;
  background: rgba(13, 21, 25, .78);
  padding: 7px 9px;
}

.public-home-layout .hero-conflict-source-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #465159;
  border-radius: 5px;
  color: #dfe5e1;
}

.public-home-layout .hero-conflict-source-icon svg {
  width: 16px;
  height: 16px;
}

.public-home-layout .hero-conflict-source-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.public-home-layout .hero-conflict-source-copy strong {
  color: #edf1ee;
  font-size: var(--hero-conflict-source-name-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-home-layout .hero-conflict-source-copy small {
  overflow: hidden;
  color: #909c96;
  font-size: var(--hero-conflict-source-file-font-size);
  line-height: var(--hero-conflict-text-line-height);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-home-layout .hero-conflict-source > b {
  color: #f5f7f5;
  font-size: var(--hero-conflict-value-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-home-layout .hero-conflict-card .hero-conflict-question {
  margin-top: 9px;
  color: #dfe4e0;
  font-size: var(--hero-conflict-question-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-home-layout .hero-conflict-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}

.public-home-layout .hero-conflict-choices button {
  min-width: 0;
  min-height: 31px;
  border: 1px solid #5e5942;
  border-radius: 5px;
  background: rgba(18, 25, 27, .7);
  padding: 5px 7px;
  color: #e5e8e5;
  font-size: var(--hero-conflict-choice-font-size);
  line-height: var(--hero-conflict-text-line-height);
  white-space: nowrap;
}

.public-home-layout .hero-conflict-choices button:hover,
.public-home-layout .hero-conflict-choices button.selected {
  border-color: #65c94f;
  background: rgba(69, 119, 47, .3);
  color: #f5f8f4;
}

.public-home-layout .hero-workspace-questions > .hero-workspace-conflict {
  padding: 9px;
}

.public-home-layout .hero-workspace-questions .hero-workspace-conflict-head > strong {
  color: #f1f4f2;
  font-size: var(--hero-conflict-title-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-home-layout .hero-workspace-questions .hero-workspace-conflict .hero-conflict-source-copy strong {
  font-size: var(--hero-conflict-source-name-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-home-layout .hero-workspace-conflict .hero-conflict-sources {
  gap: 4px;
  margin-top: 7px;
}

.public-home-layout .hero-workspace-conflict .hero-conflict-source {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 6px;
  min-height: 31px;
  padding: 4px 6px;
}

.public-home-layout .hero-workspace-conflict .hero-conflict-source-icon {
  width: 21px;
  height: 21px;
}

.public-home-layout .hero-workspace-conflict .hero-conflict-source-icon svg {
  width: 12px;
  height: 12px;
}

.public-home-layout .hero-workspace-conflict > p {
  min-height: 0;
  margin: 7px 0 0;
  color: #d7dbd7;
  font-size: var(--hero-conflict-question-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-home-layout .hero-workspace-conflict .hero-conflict-choices {
  grid-template-columns: minmax(0, .78fr) minmax(0, .78fr) minmax(86px, 1.2fr);
  gap: 4px;
  margin-top: 5px;
}

.public-home-layout .hero-workspace-conflict .hero-conflict-choices button {
  min-height: 23px;
  padding: 3px 4px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-card {
  margin: 7px 11px 0;
  padding: 6px 7px 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 {
  --hero-conflict-title-font-size: 7px;
  --hero-conflict-status-font-size: 5.5px;
  --hero-conflict-source-name-font-size: 5.5px;
  --hero-conflict-source-file-font-size: 4.5px;
  --hero-conflict-value-font-size: 5.5px;
  --hero-conflict-question-font-size: 5.5px;
  --hero-conflict-choice-font-size: 4.8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-ai-stage {
  min-height: 382px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-card {
  height: auto;
  min-height: 382px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-head > strong {
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-card > p:not(.hero-conflict-question) {
  font-size: 5.5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-card h3 {
  margin: 4px 0 2px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-sources {
  gap: 3px;
  margin-top: 4px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-source {
  grid-template-columns: 17px minmax(0, 1fr) auto;
  gap: 4px;
  min-height: 23px;
  border-radius: 3px;
  padding: 3px 5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-source-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-source-icon svg {
  width: 9px;
  height: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-card .hero-conflict-question {
  margin-top: 4px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-choices {
  gap: 3px;
  margin-top: 3px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-conflict-choices button {
  min-height: 16px;
  border-radius: 3px;
  padding: 2px 3px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-conflict .hero-conflict-source {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  min-height: 19px;
  padding: 2px 4px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-conflict .hero-conflict-source-icon {
  width: 13px;
  height: 13px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-conflict .hero-conflict-choices button {
  min-height: 15px;
}

.public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake {
  height: 640px;
  min-height: 640px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-questions > .hero-workspace-conflict {
  padding: 5px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-conflict-head {
  gap: 4px;
  min-height: 15px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-conflict-head > strong,
.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-conflict-head > span {
  line-height: 1.15;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-questions > .hero-workspace-conflict > p {
  min-height: 0;
  margin: 4px 0 0;
  line-height: 1.2;
}

/* Section 3: manual calculation losses. Scoped to preserve every other landing section. */
.manual-loss-section {
  --manual-green: #79cc45;
  --manual-yellow: #f0bc24;
  --manual-red: #ef625c;
  --manual-line: #344047;
  display: block;
  margin-bottom: 28px;
  border: 0;
  border-radius: 0;
  background: #070d11;
  color: #eef3f1;
  box-shadow: none;
}

.manual-loss-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: stretch;
}

.manual-loss-intro {
  width: 100%;
  margin-bottom: 24px;
}

.manual-loss-intro > .eyebrow {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid #5ba52e;
  border-radius: 999px;
  padding: 8px 18px;
  background: transparent;
  color: var(--manual-green);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.public-main .manual-loss-intro h2 {
  max-width: none;
  margin: 24px 0 14px;
  color: #f7f9f8;
  font-size: clamp(38px, 3.25vw, 50px);
  line-height: 1.04;
  letter-spacing: 0;
}

.manual-loss-intro h2 em {
  display: block;
  margin-top: 4px;
  color: var(--manual-green);
  font-style: normal;
}

.manual-loss-intro > p {
  max-width: none;
  margin: 0;
  color: #c3cbca;
  font-size: 18px;
  line-height: 1.55;
}

.manual-loss-chain {
  display: grid;
  margin-top: 0;
}

.manual-loss-step {
  position: relative;
  display: grid;
  grid-template-columns: 50px 82px minmax(0, 1fr) 116px;
  gap: 16px;
  min-height: 118px;
  align-items: center;
  border-bottom: 1px solid #263138;
  padding: 10px 0;
}

.manual-loss-step:last-child {
  border-bottom: 0;
}

.manual-loss-number {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #827018;
  border-radius: 999px;
  background: #081014;
  color: var(--manual-yellow);
  font-size: 16px;
  font-weight: 850;
}

.manual-loss-step:not(:last-child) .manual-loss-number::after {
  position: absolute;
  top: 43px;
  left: 21px;
  width: 1px;
  height: 74px;
  border-left: 1px dashed #8c7a18;
  content: "";
}

.manual-loss-icon {
  display: inline-grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid #2e3940;
  border-radius: 12px;
  background: linear-gradient(145deg, #172127, #0d1418);
  color: var(--manual-yellow);
}

.manual-loss-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.7;
}

.manual-loss-step > div {
  min-width: 0;
}

.manual-loss-step > div strong {
  display: block;
  margin-bottom: 7px;
  color: #f4f6f5;
  font-size: 17px;
  line-height: 1.25;
}

.manual-loss-step > div p {
  margin: 0;
  color: #adb7b8;
  font-size: 14px;
  line-height: 1.5;
}

.manual-loss-step > b {
  justify-self: end;
  max-width: 112px;
  border: 1px solid #8b6b14;
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--manual-yellow);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.manual-loss-step.manual-tone-danger > b {
  border-color: #8e3432;
  color: var(--manual-red);
}

.manual-comparison-shell {
  height: 100%;
  overflow: hidden;
  border: 1px solid #3b474e;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 25, 30, 0.96), rgba(8, 14, 18, 0.98));
  padding: 22px 18px 18px;
}

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

.manual-compare-column h3 {
  margin: 0 0 16px 6px;
  color: var(--manual-yellow);
  font-size: 16px;
  letter-spacing: 0;
}

.manual-compare-column.after h3 {
  color: var(--manual-green);
}

.manual-compare-status {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  min-height: 88px;
  align-items: center;
  border: 1px solid #263239;
  border-radius: 12px 12px 0 0;
  padding: 14px 16px;
  background: rgba(18, 26, 31, 0.72);
}

.manual-compare-status > svg {
  width: 48px;
  height: 48px;
  color: var(--manual-red);
  stroke-width: 1.5;
}

.manual-compare-status.manual-tone-success > svg {
  color: var(--manual-green);
}

.manual-compare-status strong,
.manual-compare-status span {
  display: block;
}

.manual-compare-status strong {
  color: var(--manual-red);
  font-size: 17px;
}

.manual-compare-status.manual-tone-success strong {
  color: var(--manual-green);
}

.manual-compare-status span {
  margin-top: 4px;
  color: #c1c8c8;
  font-size: 14px;
}

.manual-compare-rows {
  overflow: hidden;
  border: 1px solid #263239;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.manual-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 56px;
  align-items: center;
  border-bottom: 1px solid #263239;
  padding: 9px 12px;
}

.manual-compare-row:last-child {
  border-bottom: 0;
}

.manual-compare-row > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #eef2f1;
  font-size: 13px;
  line-height: 1.25;
}

.manual-compare-row > span svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  color: #bec7c7;
  stroke-width: 1.6;
}

.manual-compare-row > b {
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
}

.manual-tone-warning {
  color: var(--manual-yellow);
}

.manual-tone-danger {
  color: var(--manual-red);
}

.manual-tone-success {
  color: var(--manual-green);
}

.manual-risk-block {
  align-self: stretch;
}

.manual-risk-block h4 {
  margin: 5px 0 10px 6px;
  color: var(--manual-yellow);
  font-size: 14px;
}

.manual-risk-block > div {
  overflow: hidden;
  border: 1px solid #263239;
  border-radius: 10px;
}

.manual-risk-block .manual-compare-row {
  min-height: 50px;
}

.manual-solution-block {
  display: flex;
  min-height: 204px;
  flex-direction: column;
  border: 1px solid #4d8a2d;
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(38, 83, 25, 0.62), rgba(14, 37, 19, 0.78));
}

.manual-solution-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.manual-solution-title svg {
  width: 38px;
  height: 38px;
  color: var(--manual-green);
  stroke-width: 1.5;
}

.manual-solution-title strong {
  color: #f4f7f5;
  font-size: 17px;
  line-height: 1.35;
}

.manual-solution-block p {
  margin: 16px 0;
  color: #c9d2cc;
  font-size: 14px;
  line-height: 1.55;
}

.manual-solution-block button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  border: 1px solid #67b73d;
  border-radius: 7px;
  background: linear-gradient(180deg, #6abb3d, #3b8f21);
  color: #fff;
  font-weight: 800;
}

.manual-solution-block button svg {
  width: 17px;
  height: 17px;
}

.manual-loss-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #3a464c;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 27, 32, 0.95), rgba(9, 15, 19, 0.96));
}

.manual-loss-benefits > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  min-height: 132px;
  align-items: center;
  border-right: 1px solid #344047;
  padding: 22px;
}

.manual-loss-benefits > div:last-child {
  border-right: 0;
}

.manual-loss-benefits > div > span {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid #5fb13a;
  border-radius: 999px;
  color: var(--manual-green);
}

.manual-loss-benefits svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.6;
}

.manual-loss-benefits strong {
  display: block;
  color: #f4f7f5;
  font-size: 16px;
  line-height: 1.3;
}

.manual-loss-benefits p {
  margin: 8px 0 0;
  color: #aeb8b8;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1199px) {
  .manual-loss-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .manual-loss-benefits > div:nth-child(2) {
    border-right: 0;
  }

  .manual-loss-benefits > div:nth-child(-n + 2) {
    border-bottom: 1px solid #344047;
  }
}

@media (max-width: 720px) {
  .public-main .manual-loss-intro h2 {
    font-size: 34px;
  }

  .manual-loss-step {
    grid-template-columns: 44px 58px minmax(0, 1fr);
    gap: 10px;
  }

  .manual-loss-icon {
    width: 56px;
    height: 56px;
  }

  .manual-loss-icon svg {
    width: 30px;
    height: 30px;
  }

  .manual-loss-step > b {
    grid-column: 3;
    justify-self: start;
  }

  .manual-comparison-grid,
  .manual-loss-benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .manual-loss-benefits > div {
    border-right: 0;
    border-bottom: 1px solid #344047;
  }

  .manual-loss-benefits > div:last-child {
    border-bottom: 0;
  }
}

/* Scaled owner-review capture: same desktop composition inside the 849 px canvas. */
.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-section {
  width: 801px;
  margin-inline: auto;
  padding: 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-layout {
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: 18px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-intro > .eyebrow {
  min-height: 26px;
  padding: 4px 10px;
  font-size: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-intro h2 {
  margin: 14px 0 8px;
  font-size: 27px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-intro > p {
  font-size: 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-chain {
  margin-top: 13px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-step {
  grid-template-columns: 28px 46px minmax(0, 1fr) 68px;
  gap: 8px;
  min-height: 66px;
  padding: 5px 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-number {
  width: 26px;
  height: 26px;
  font-size: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-step:not(:last-child) .manual-loss-number::after {
  top: 25px;
  left: 12px;
  height: 42px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-icon {
  width: 44px;
  height: 44px;
  border-radius: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-icon svg {
  width: 24px;
  height: 24px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-step > div strong {
  margin-bottom: 3px;
  font-size: 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-step > div p {
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-step > b {
  padding: 5px;
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-comparison-shell {
  border-radius: 10px;
  padding: 13px 10px 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-comparison-grid {
  gap: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-compare-column h3 {
  margin: 0 0 8px 3px;
  font-size: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-compare-status {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  min-height: 49px;
  border-radius: 7px 7px 0 0;
  padding: 7px 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-compare-status > svg {
  width: 27px;
  height: 27px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-compare-status strong {
  font-size: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-compare-status span {
  margin-top: 2px;
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-compare-rows {
  border-radius: 0 0 7px 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-compare-row {
  gap: 5px;
  min-height: 32px;
  padding: 4px 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-compare-row > span {
  gap: 5px;
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-compare-row > span svg {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-compare-row > b {
  border-radius: 3px;
  padding: 3px 4px;
  font-size: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-risk-block h4 {
  margin: 3px 0 5px 3px;
  font-size: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-risk-block .manual-compare-row {
  min-height: 28px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-solution-block {
  min-height: 115px;
  border-radius: 7px;
  padding: 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-solution-title {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-solution-title svg {
  width: 22px;
  height: 22px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-solution-title strong {
  font-size: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-solution-block p {
  margin: 8px 0;
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-solution-block button {
  min-height: 25px;
  gap: 5px;
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border-radius: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-benefits > div {
  grid-template-columns: 33px minmax(0, 1fr);
  gap: 8px;
  min-height: 74px;
  border-bottom: 0;
  padding: 12px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-benefits > div > span {
  width: 31px;
  height: 31px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-benefits svg {
  width: 17px;
  height: 17px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-benefits strong {
  font-size: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .manual-loss-benefits p {
  margin-top: 4px;
  font-size: 7px;
}

/* Section 4: one project, one team workflow. Strictly scoped to this landing section. */
.team-workflow-section {
  display: block;
  overflow: hidden;
  background: #071015;
  color: #f4f7f5;
}

.team-workflow-head {
  max-width: 820px;
}

.team-workflow-head > .eyebrow {
  display: inline-block;
  border: 0;
  background: transparent;
  padding: 0;
  color: #68d23f;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.public-main .team-workflow-head h2 {
  max-width: 820px;
  margin: 20px 0 12px;
  white-space: pre-line;
  color: #f4f7f5;
  font-size: clamp(42px, 4vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.team-workflow-head > p {
  max-width: 760px;
  margin: 0;
  color: #c3cbd0;
  font-size: 19px;
  line-height: 1.52;
}

.team-workflow-top-flow {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 54px minmax(360px, 1fr) 54px;
  gap: 18px;
  align-items: center;
  max-width: 1120px;
  margin-top: 30px;
}

.team-workflow-top-flow article {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 100px;
  border: 1px solid #344049;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 31, 37, 0.96), rgba(12, 20, 25, 0.96));
  padding: 18px 22px;
}

.team-workflow-top-flow article > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #5fcf33;
  border-radius: 13px;
  color: #83e65a;
  background: rgba(58, 128, 41, 0.08);
}

.team-workflow-top-flow article > span svg {
  width: 34px;
  height: 34px;
}

.team-workflow-top-flow strong {
  display: block;
  color: #f3f7f4;
  font-size: 18px;
  line-height: 1.2;
}

.team-workflow-top-flow p {
  margin: 7px 0 0;
  color: #b9c1c6;
  font-size: 15px;
  line-height: 1.35;
}

.team-workflow-top-flow p b,
.team-workflow-top-flow p em {
  margin-right: 3px;
  color: #6ed344;
  font-size: 25px;
  font-style: normal;
}

.team-workflow-top-flow p em {
  margin-left: 20px;
  color: #f0b928;
}

.team-flow-arrow {
  width: 42px;
  height: 42px;
  color: #66d43c;
  stroke-width: 2.2;
}

.team-workflow-roles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 30px;
}

.team-workflow-card {
  display: flex;
  min-width: 0;
  min-height: 438px;
  flex-direction: column;
  border: 1px solid #35424a;
  border-radius: 13px;
  background: linear-gradient(155deg, rgba(21, 31, 37, 0.98), rgba(10, 17, 22, 0.98));
  padding: 18px;
}

.team-workflow-card > header {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.team-role-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(102, 209, 62, 0.16);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(76, 142, 53, 0.27), rgba(32, 74, 38, 0.18));
  color: #77dc4c;
}

.team-role-icon svg {
  width: 34px;
  height: 34px;
}

.team-workflow-card > header div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  min-width: 0;
  padding-top: 4px;
}

.team-workflow-card > header small {
  color: #73dd47;
  font-size: 13px;
  font-weight: 900;
}

.team-workflow-card > header div span {
  color: #bfc8cd;
  font-size: 14px;
  line-height: 1.3;
}

.team-workflow-card > h3 {
  min-height: 50px;
  margin: 12px 0 8px;
  color: #f6f8f6;
  font-size: 21px;
  line-height: 1.22;
}

.team-workflow-card > p {
  min-height: 78px;
  margin: 0 0 14px;
  color: #bac3c8;
  font-size: 14px;
  line-height: 1.48;
}

.team-workflow-data {
  display: grid;
  gap: 0;
  border: 1px solid #39464e;
  border-radius: 10px;
  background: rgba(7, 13, 17, 0.38);
  padding: 8px 12px;
}

.team-workflow-data > div {
  display: flex;
  min-width: 0;
  min-height: 31px;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(115, 131, 139, 0.16);
  color: #d7dde0;
  font-size: 12px;
}

.team-workflow-data > div:last-child {
  border-bottom: 0;
}

.team-workflow-data > div > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-workflow-data > div > strong {
  flex: 0 0 auto;
  color: #f0f4f2;
  font-size: 12px;
}

.team-workflow-data .team-primary-value,
.team-workflow-data .team-profit-value {
  min-height: 42px;
}

.team-workflow-data .team-primary-value strong,
.team-workflow-data .team-profit-value strong {
  color: #74d947;
  font-size: 18px;
}

.team-material-data > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 42px;
}

.team-material-data > div > span {
  overflow: visible;
  white-space: normal;
  line-height: 1.2;
  text-overflow: clip;
}

.team-data-summary strong {
  color: #74d947 !important;
}

.team-conflict-summary {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid #8a6815;
  border-radius: 9px;
  background: rgba(105, 76, 7, 0.17);
  padding: 10px 12px;
}

.team-conflict-summary > div {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #f2bd2c;
  font-size: 12px;
}

.team-conflict-summary svg {
  width: 16px;
  height: 16px;
}

.team-conflict-summary > span {
  color: #d4d8da;
  font-size: 12px;
  line-height: 1.35;
}

.team-workflow-status {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 13px;
  font-size: 12px;
  line-height: 1.35;
}

.team-workflow-status svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.team-workflow-status.is-success {
  color: #70d944;
}

.team-workflow-status.is-warning {
  color: #f0b928;
}

.team-workflow-note {
  min-height: 0 !important;
  margin: 8px 0 0 !important;
  color: #aeb8bd !important;
  font-size: 12px !important;
}

.team-role-arrow {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #66d53d;
  border-radius: 50%;
  background: #0b1519;
  color: #eaf4e6;
  z-index: 1;
}

.team-role-arrow svg {
  width: 19px;
  height: 19px;
}

.team-workflow-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid #35424a;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(19, 29, 35, 0.98), rgba(9, 16, 21, 0.98));
}

.team-workflow-benefits > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 104px;
  border-right: 1px solid #35424a;
  padding: 18px 24px;
}

.team-workflow-benefits > div:last-child {
  border-right: 0;
}

.team-workflow-benefits > div > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(75, 142, 51, 0.23);
  color: #81df58;
}

.team-workflow-benefits svg {
  width: 29px;
  height: 29px;
}

.team-workflow-benefits strong {
  color: #f1f5f2;
  font-size: 15px;
  line-height: 1.25;
}

.team-workflow-benefits p {
  margin: 5px 0 0;
  color: #b6c0c5;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .team-workflow-top-flow {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1.25fr);
  }

  .team-flow-arrow.trailing {
    display: none;
  }

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

  .team-role-arrow {
    display: none;
  }

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

  .team-workflow-benefits > div:nth-child(2) {
    border-right: 0;
  }

  .team-workflow-benefits > div:nth-child(-n + 2) {
    border-bottom: 1px solid #35424a;
  }
}

@media (max-width: 700px) {
  .public-main .team-workflow-head h2 {
    font-size: 34px;
  }

  .team-workflow-top-flow,
  .team-workflow-roles,
  .team-workflow-benefits {
    grid-template-columns: 1fr;
  }

  .team-flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .team-workflow-benefits > div,
  .team-workflow-benefits > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #35424a;
  }

  .team-workflow-benefits > div:last-child {
    border-bottom: 0;
  }
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-section {
  padding: 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-head {
  max-width: 540px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-head > .eyebrow {
  font-size: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-head h2 {
  max-width: 540px;
  margin: 9px 0 6px;
  font-size: 27px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-head > p {
  max-width: 430px;
  font-size: 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-top-flow {
  grid-template-columns: 220px 27px 280px 27px;
  gap: 8px;
  max-width: 600px;
  margin-top: 14px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-top-flow article {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  min-height: 54px;
  border-radius: 7px;
  padding: 8px 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-top-flow article > span {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-top-flow article > span svg {
  width: 20px;
  height: 20px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-top-flow strong {
  font-size: 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-top-flow p {
  margin-top: 3px;
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-top-flow p b,
.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-top-flow p em {
  font-size: 13px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-top-flow p em {
  margin-left: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-flow-arrow {
  display: block;
  width: 23px;
  height: 23px;
  transform: none;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-roles {
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 0;
  margin-top: 16px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-card {
  min-height: 250px;
  border-radius: 7px;
  padding: 10px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-card > header {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-role-icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-role-icon svg {
  width: 21px;
  height: 21px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-card > header div {
  gap: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-card > header small,
.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-card > header div span {
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-card > h3 {
  min-height: 24px;
  margin: 7px 0 4px;
  font-size: 11px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-card > p {
  min-height: 36px;
  margin-bottom: 6px;
  font-size: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-data {
  border-radius: 5px;
  padding: 4px 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-data > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 17px;
  gap: 4px;
  font-size: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-data > div > strong {
  font-size: 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-material-data > div {
  min-height: 23px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-material-data > div > span {
  overflow: visible;
  white-space: normal;
  line-height: 1.15;
  text-overflow: clip;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-data .team-primary-value,
.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-data .team-profit-value {
  min-height: 27px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-data .team-primary-value strong,
.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-data .team-profit-value strong {
  font-size: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-conflict-summary {
  gap: 3px;
  margin-top: 5px;
  border-radius: 5px;
  padding: 5px 6px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-conflict-summary > div,
.public-main.public-home-layout.landing-capture-fit1440 .team-conflict-summary > span,
.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-status,
.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-note {
  font-size: 6px !important;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-conflict-summary svg,
.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-status svg {
  width: 9px;
  height: 9px;
  flex-basis: 9px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-status {
  gap: 4px;
  margin-top: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-note {
  margin-top: 4px !important;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-role-arrow {
  display: grid;
  width: 20px;
  height: 20px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-role-arrow svg {
  width: 11px;
  height: 11px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  border-radius: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-benefits > div {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  min-height: 52px;
  border-right: 1px solid #35424a;
  border-bottom: 0;
  padding: 8px 12px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-benefits > div:last-child {
  border-right: 0;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-benefits > div > span {
  width: 31px;
  height: 31px;
  border-radius: 7px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-benefits svg {
  width: 17px;
  height: 17px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-benefits strong {
  font-size: 8px;
}

.public-main.public-home-layout.landing-capture-fit1440 .team-workflow-benefits p {
  margin-top: 3px;
  font-size: 7px;
}

/* Section: five-step calculation process. Scoped to the approved process block. */
.process-five-steps {
  display: block;
  padding: 32px 0 10px;
  color: #f4f7f5;
}

.process-five-head {
  max-width: 1100px;
}

.process-five-head .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 18px;
  border: 1px solid #345b2d;
  border-radius: 5px;
  background: #102217;
  padding: 8px 16px;
  color: #78ca5c;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.process-five-head h2 {
  max-width: 1080px;
  margin: 0;
  color: #f4f7f5;
  font-size: clamp(38px, 3.2vw, 48px);
  line-height: 1.08;
  white-space: pre-line;
}

.public-main.public-home-layout .process-five-head h2 {
  max-width: 1080px;
}

.process-five-head > p {
  max-width: 850px;
  margin: 20px 0 0;
  color: #b9c1bd;
  font-size: 17px;
  line-height: 1.55;
}

.process-five-rail,
.process-five-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.process-five-rail {
  margin: 26px 0 -24px;
  padding: 0 0;
}

.process-five-node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78ca5c;
}

.process-five-node::before,
.process-five-node::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  height: 1px;
  background: #62be45;
  content: "";
}

.process-five-node::before {
  left: 0;
  right: 50%;
}

.process-five-node::after {
  left: 50%;
  right: 0;
}

.process-five-node:first-child::before,
.process-five-node:last-child::after {
  display: none;
}

.process-five-node.is-warning::before,
.process-five-node.is-warning::after {
  background: #d9a719;
}

.process-five-node > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #4c972f;
  border-radius: 50%;
  background: #14251a;
  box-shadow: 0 0 0 5px #071116;
  font-size: 21px;
  font-weight: 700;
}

.process-five-node.is-warning > span {
  border-color: #d9a719;
  background: #211d0f;
  color: #ffc331;
}

.process-five-node > svg {
  position: absolute;
  right: -8px;
  width: 20px;
  height: 20px;
  color: currentColor;
}

.process-five-grid {
  align-items: stretch;
  gap: 12px;
  border: 1px solid #385d30;
  border-radius: 18px;
  padding: 4px;
}

.process-five-card {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  border: 1px solid #34434a;
  border-radius: 10px;
  background: #10191e;
  padding: 32px 14px 14px;
}

.process-five-card.is-warning {
  border-color: #b88a14;
  background: #121a1d;
}

.process-five-card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  color: #75ce4f;
}

.process-five-card-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.45;
}

.process-five-card.is-warning .process-five-card-icon {
  color: #ffc331;
}

.process-five-card h3 {
  margin: 0;
  color: #f3f6f4;
  font-size: 19px;
  line-height: 1.22;
  text-align: center;
}

.process-five-card > p {
  min-height: 62px;
  margin: 8px 0 10px;
  color: #aeb7b3;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.process-five-card-body {
  min-height: 120px;
}

.process-file-list,
.process-data-list,
.process-question-list,
.process-answer-list,
.process-financial-list {
  overflow: hidden;
  border: 1px solid #334149;
  border-radius: 7px;
  background: #111a1f;
}

.process-file-list > div,
.process-data-list > div,
.process-question-list > div,
.process-financial-list > div {
  display: grid;
  min-height: 34px;
  align-items: center;
  border-bottom: 1px solid #2b373d;
  color: #dfe5e2;
  font-size: 12px;
}

.process-file-list > div:last-child,
.process-data-list > div:last-child,
.process-question-list > div:last-child,
.process-financial-list > div:last-child {
  border-bottom: 0;
}

.process-file-list > div {
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  gap: 8px;
  padding: 8px 10px;
}

.process-file-list svg {
  width: 17px;
  height: 17px;
  color: #78ca5c;
}

.process-file-list span {
  display: grid;
  min-width: 0;
}

.process-file-list strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-file-list small {
  color: #89938e;
  font-size: 10px;
}

.process-data-list > div {
  grid-template-columns: minmax(0, 1fr) auto 14px;
  gap: 7px;
  padding: 6px 8px;
}

.process-data-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-data-list b {
  color: #f1f4f2;
  font-size: 11px;
  white-space: nowrap;
}

.process-data-list svg {
  width: 13px;
  height: 13px;
  color: #78ca5c;
}

.process-question-list {
  border-color: #8f6a12;
  background: #1d1a10;
}

.process-question-list > div {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
}

.process-question-list svg {
  width: 18px;
  height: 18px;
  color: #ffc331;
}

.process-question-list span {
  display: grid;
  gap: 2px;
}

.process-question-list span strong {
  font-size: 12px;
  line-height: 1.25;
}

.process-question-list span small {
  color: #b9a56c;
  font-size: 10px;
}

.process-question-list b {
  grid-column: 2;
  color: #ffc331;
  font-size: 12px;
}

.process-answer-list {
  padding: 10px;
}

.process-answer-question {
  display: grid;
  gap: 3px;
  color: #eef2ef;
  font-size: 12px;
}

.process-answer-question small {
  color: #909a95;
  font-size: 10px;
}

.process-answer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.process-answer-options span {
  display: grid;
  min-height: 29px;
  place-items: center;
  border: 1px solid #3d4a50;
  border-radius: 5px;
  color: #dce2df;
  font-size: 11px;
  text-align: center;
}

.process-answer-options span:last-child {
  grid-column: 1 / -1;
}

.process-answer-options span.selected {
  border-color: #72c74e;
  background: #1b2a1b;
  color: #92dc72;
}

.process-financial-list > div {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 5px 8px;
}

.process-financial-list b {
  font-size: 11px;
  white-space: nowrap;
}

.process-financial-list .total {
  color: #f4f7f5;
  font-weight: 800;
}

.process-financial-list .margin {
  color: #79ce55;
}

.process-five-status {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  color: #78ca5c;
}

.process-five-card.is-warning .process-five-status {
  color: #ffc331;
}

.process-five-status svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.process-five-status strong {
  font-size: 13px;
  line-height: 1.25;
}

.process-five-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid #34434a;
  border-radius: 10px;
  background: #0e171c;
}

.process-five-benefits > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  min-height: 112px;
  align-items: center;
  border-right: 1px solid #34434a;
  padding: 20px 28px;
}

.process-five-benefits > div:last-child {
  border-right: 0;
}

.process-five-benefits > div > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #78ca5c;
}

.process-five-benefits svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
}

.process-five-benefits strong {
  color: #f1f5f2;
  font-size: 16px;
}

.process-five-benefits p {
  margin: 5px 0 0;
  color: #aeb7b3;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .process-five-rail {
    display: none;
  }

  .process-five-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .process-five-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .process-five-grid,
  .process-five-benefits {
    grid-template-columns: 1fr;
  }

  .process-five-card:last-child {
    grid-column: auto;
  }

  .process-five-benefits > div {
    border-right: 0;
    border-bottom: 1px solid #34434a;
  }

  .process-five-benefits > div:last-child {
    border-bottom: 0;
  }
}

/* Hero overlap correction: top, callouts and preview stay in normal document flow. */
@media (min-width: 1100px) {
  .public-home-layout .landing-hero-ai-intake {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .public-home-layout .landing-hero-ai-intake .hero-copy h1 {
    width: auto;
    max-width: 650px;
    font-family: inherit;
    font-size: 58px;
    line-height: 1.02;
    transform: none;
  }

  .public-home-layout .hero-ai-stage {
    min-height: 0;
  }

  .public-home-layout .hero-analysis-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .public-home-layout .hero-analysis-head {
    min-height: 94px;
    padding: 18px 22px;
  }

  .public-home-layout .hero-analysis-metrics > div {
    min-height: 74px;
    padding: 12px 14px;
  }

  .public-home-layout .hero-analysis-parameters {
    margin: 10px 18px 0;
  }

  .public-home-layout .hero-analysis-parameters > div {
    min-height: 38px;
    padding: 7px 12px;
  }

  .public-home-layout .hero-conflict-card {
    margin: 10px 18px 0;
    padding: 9px 11px 10px;
  }

  .public-home-layout .hero-conflict-card h3 {
    margin: 5px 0 2px;
    font-size: var(--hero-conflict-title-font-size);
  }

  .public-home-layout .hero-conflict-sources {
    gap: 4px;
    margin-top: 6px;
  }

  .public-home-layout .hero-conflict-source {
    min-height: 34px;
    padding: 5px 8px;
  }

  .public-home-layout .hero-conflict-card .hero-conflict-question {
    margin-top: 6px;
  }

  .public-home-layout .hero-conflict-choices {
    margin-top: 6px;
  }

  .public-home-layout .hero-conflict-choices button {
    min-height: 29px;
  }

  .public-home-layout .hero-analysis-note {
    padding: 10px 18px 12px;
  }

  .public-home-layout .hero-workspace-proof {
    width: 100%;
    margin-top: 40px;
    padding-top: 0;
  }

  .public-home-layout .hero-workspace-proof::before {
    content: none;
  }

  .public-home-layout .hero-workspace-markers {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, .78fr) minmax(0, .82fr);
    gap: 9px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 10px 0 142px;
    transform: none;
  }

  .public-home-layout .hero-workspace-markers span,
  .public-home-layout .hero-workspace-markers span:nth-child(1),
  .public-home-layout .hero-workspace-markers span:nth-child(2),
  .public-home-layout .hero-workspace-markers span:nth-child(3) {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(260px, 100%);
    transform: none;
    justify-self: center;
  }

  .public-home-layout .hero-workspace-markers span::after {
    top: 100%;
    left: 50%;
    height: 24px;
  }

  .public-home-layout .hero-workspace-shell {
    width: 100%;
    height: auto;
    margin-top: 24px;
    padding-top: 0;
  }
}

/* Shared conflict typography contract for the analysis card and product preview. */
.public-main.public-home-layout .hero-analysis-question.hero-conflict-card h3,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict-head > strong {
  font-size: var(--hero-conflict-title-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-head > span,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict-head > span {
  font-size: var(--hero-conflict-status-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-source-copy strong,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict .hero-conflict-source-copy strong {
  font-size: var(--hero-conflict-source-name-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-source-copy small,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict .hero-conflict-source-copy small {
  font-size: var(--hero-conflict-source-file-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-source > b,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict .hero-conflict-source > b {
  font-size: var(--hero-conflict-value-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-question,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict > p {
  font-size: var(--hero-conflict-question-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-choices button,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict .hero-conflict-choices button {
  font-size: var(--hero-conflict-choice-font-size);
  line-height: var(--hero-conflict-text-line-height);
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict .hero-conflict-choices button {
  padding-inline: 2px;
}

.public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict .hero-conflict-choices {
  gap: 1px;
}

/* Public-home typography: one system stack and shared semantic tokens. */
.public-main.public-home-layout {
  --public-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --public-hero-h1-size: 64px;
  --public-hero-h1-line-height: 1.02;
  --public-hero-h1-weight: 800;
  --public-section-h2-size: 48px;
  --public-section-h2-line-height: 1.08;
  --public-section-h2-weight: 750;
  --public-large-card-title-size: 22px;
  --public-large-card-title-line-height: 1.2;
  --public-large-card-title-weight: 700;
  --public-small-card-title-size: 18px;
  --public-small-card-title-line-height: 1.3;
  --public-small-card-title-weight: 700;
  --public-body-size: 15px;
  --public-body-line-height: 1.5;
  --public-body-weight: 400;
  --public-ui-size: 14px;
  --public-ui-line-height: 1.4;
  --public-ui-weight: 500;
  --public-caption-size: 12px;
  --public-caption-line-height: 1.35;
  --public-caption-weight: 500;
  --public-section-label-size: 13px;
  --public-section-label-line-height: 1.2;
  --public-section-label-weight: 700;
  --public-cta-size: 16px;
  --public-cta-line-height: 1;
  --public-cta-weight: 650;
  --public-small-button-size: 13px;
  --public-small-button-line-height: 1;
  --public-small-button-weight: 600;
  --hero-conflict-title-font-size: var(--public-small-card-title-size);
  --hero-conflict-status-font-size: var(--public-ui-size);
  --hero-conflict-source-name-font-size: var(--public-ui-size);
  --hero-conflict-source-file-font-size: var(--public-caption-size);
  --hero-conflict-value-font-size: var(--public-ui-size);
  --hero-conflict-question-font-size: var(--public-body-size);
  --hero-conflict-choice-font-size: var(--public-small-button-size);
  --hero-conflict-text-line-height: var(--public-ui-line-height);
  font-family: var(--public-font-family);
  font-synthesis: none;
  font-variant-numeric: tabular-nums lining-nums;
}

.public-main.public-home-layout :is(button, input, textarea, select) {
  font-family: inherit;
  font-synthesis: none;
}

.public-main.public-home-layout .landing-hero-ai-intake .hero-copy h1 {
  font-size: var(--public-hero-h1-size);
  font-weight: var(--public-hero-h1-weight);
  line-height: var(--public-hero-h1-line-height);
  transform: none;
}

.public-main.public-home-layout :is(
  .public-section > :is(.section-head, .control-before-copy, .manual-loss-intro, .team-workflow-head, .process-five-head) h2,
  .control-before-copy h2,
  .manual-loss-intro h2,
  .team-workflow-head h2,
  .process-five-head h2
) {
  font-size: var(--public-section-h2-size);
  font-weight: var(--public-section-h2-weight);
  line-height: var(--public-section-h2-line-height);
}

.public-main.public-home-layout :is(
  .control-before-card h3,
  .manual-compare-column h3,
  .team-workflow-card > h3,
  .hero-analysis-head h2
) {
  font-size: var(--public-large-card-title-size);
  font-weight: var(--public-large-card-title-weight);
  line-height: var(--public-large-card-title-line-height);
}

.public-main.public-home-layout :is(
  .hero-conflict-card h3,
  .hero-workspace-conflict-head > strong,
  .process-five-card h3,
  .control-before-step-copy strong,
  .team-workflow-top-flow strong
) {
  font-size: var(--public-small-card-title-size);
  font-weight: var(--public-small-card-title-weight);
  line-height: var(--public-small-card-title-line-height);
}

.public-main.public-home-layout :is(p, li) {
  font-size: var(--public-body-size);
  font-weight: var(--public-body-weight);
  line-height: var(--public-body-line-height);
}

.public-main.public-home-layout :is(
  .public-nav a,
  .hero-analysis-head > div:nth-child(2) > span,
  .hero-analysis-status,
  .hero-analysis-metrics span,
  .hero-analysis-parameters span,
  .hero-analysis-parameters strong,
  .hero-workspace-sidebar span,
  .hero-workspace-toolbar > div span,
  .hero-workspace-table-head,
  .hero-workspace-parameters > div,
  .hero-workspace-questions > div > strong,
  .hero-workspace-result > div span,
  .hero-conflict-head > span,
  .hero-workspace-conflict-head > span,
  .hero-conflict-source-copy strong,
  .hero-conflict-source > b,
  .team-workflow-card > header div span,
  .team-workflow-data > div,
  .process-file-list > div,
  .process-data-list > div,
  .process-question-list > div,
  .process-financial-list > div
) {
  font-size: var(--public-ui-size);
  font-weight: var(--public-ui-weight);
  line-height: var(--public-ui-line-height);
}

.public-main.public-home-layout :is(
  small,
  .hero-analysis-head > div:nth-child(2) > small,
  .hero-conflict-source-copy small,
  .team-workflow-card > header small
) {
  font-size: var(--public-caption-size);
  font-weight: var(--public-caption-weight);
  line-height: var(--public-caption-line-height);
}

.public-main.public-home-layout :is(.eyebrow, .process-five-head .eyebrow, .manual-loss-intro > .eyebrow, .team-workflow-head > .eyebrow) {
  font-size: var(--public-section-label-size);
  font-weight: var(--public-section-label-weight);
  line-height: var(--public-section-label-line-height);
}

.public-main.public-home-layout :is(.header-cta, .hero-actions .primary, .hero-actions .primary-cta, .control-before-answer button) {
  font-size: var(--public-cta-size);
  font-weight: var(--public-cta-weight);
  line-height: var(--public-cta-line-height);
}

.public-main.public-home-layout :is(
  .hero-conflict-choices button,
  .hero-analysis-question-actions button,
  .hero-workspace-questions button,
  .public-nav .ghost,
  .mobile-menu-toggle,
  .faq-item button
) {
  font-size: var(--public-small-button-size);
  font-weight: var(--public-small-button-weight);
  line-height: var(--public-small-button-line-height);
}

/* The two previews present the same conflict, so their roles share these exact tokens. */
.public-main.public-home-layout .hero-analysis-question.hero-conflict-card h3,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict-head > strong {
  font-size: var(--public-small-card-title-size);
  font-weight: var(--public-small-card-title-weight);
  line-height: var(--public-small-card-title-line-height);
}

.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-head > span,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict-head > span,
.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-source-copy strong,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict .hero-conflict-source-copy strong,
.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-source > b,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict .hero-conflict-source > b {
  font-size: var(--public-ui-size);
  font-weight: var(--public-ui-weight);
  line-height: var(--public-ui-line-height);
}

.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-source-copy small,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict .hero-conflict-source-copy small {
  font-size: var(--public-caption-size);
  font-weight: var(--public-caption-weight);
  line-height: var(--public-caption-line-height);
}

.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-question,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict > p {
  font-size: var(--public-body-size);
  font-weight: var(--public-body-weight);
  line-height: var(--public-body-line-height);
}

.public-main.public-home-layout .hero-analysis-question.hero-conflict-card .hero-conflict-choices button,
.public-main.public-home-layout .hero-workspace-grid .hero-workspace-questions .hero-workspace-conflict .hero-conflict-choices button {
  font-size: var(--public-small-button-size);
  font-weight: var(--public-small-button-weight);
  line-height: var(--public-small-button-line-height);
}

/* Public-home layout and shape tokens. These apply to the public canvas only. */
.public-main.public-home-layout {
  --public-radius-sm: 10px;
  --public-radius-md: 16px;
  --public-radius-lg: 24px;
  width: min(100%, 1440px);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 48px;
}

.public-main.public-home-layout .incomplete-intake-section {
  width: 100%;
  margin-inline: 0;
}

.public-main.public-home-layout :is(
  button,
  input,
  textarea,
  select,
  .hero-conflict-source,
  .hero-conflict-source-icon,
  .hero-conflict-choices button,
  .hero-workspace-grid > article,
  .process-five-card,
  .process-five-grid,
  .process-five-benefits,
  .control-before-benefit,
  .manual-compare-column,
  .manual-risk-block,
  .team-workflow-card,
  .ready-estimate-table-wrap,
  .ready-estimate-tabs,
  .faq-item,
  .landing-tariff
) {
  border-radius: var(--public-radius-sm);
}

.public-main.public-home-layout :is(
  .hero-analysis-card,
  .hero-workspace-shell,
  .control-before-card,
  .manual-comparison-shell,
  .ready-estimate-product,
  .team-workflow-top-flow article
) {
  border-radius: var(--public-radius-md);
}

.public-main.public-home-layout :is(
  .landing-hero-ai-intake,
  .hero-ai-stage,
  .ready-estimate-section,
  .final-cta-redesign
) {
  border-radius: var(--public-radius-lg);
}

/* Public pricing-to-FAQ transition: keep the tariff grid primary and the next section distinct. */
.public-main.public-home-layout .tariff-section,
.public-main.public-home-layout .faq-section {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.public-main.public-home-layout .tariff-section {
  padding-bottom: 40px;
}

.public-main.public-home-layout .tariff-section .section-head h2 {
  font-size: 42px;
}

.public-main.public-home-layout .faq-section {
  margin-top: 0;
  padding-top: 48px;
  border-top: 1px solid #1b252a;
  grid-template-columns: minmax(340px, 0.52fr) minmax(0, 1.48fr);
}

.public-main.public-home-layout .faq-intro h2 {
  max-width: 340px;
  font-size: 38px;
  line-height: 1.08;
}

/* Public final CTA and footer: use existing routes only. */
.public-main.public-home-layout .final-cta-redesign {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  margin-top: 16px;
  padding: 36px 44px;
}

.public-main.public-home-layout .final-cta-redesign h2 {
  max-width: 760px;
  margin: 0;
}

.public-main.public-home-layout .final-cta-redesign .muted {
  max-width: 620px;
  margin: 14px 0 0;
}

.public-main.public-home-layout .final-cta-redesign .risk-reversal {
  margin-top: 16px;
}

.public-main.public-home-layout .final-cta-redesign .hero-actions {
  flex: 0 0 auto;
}

.public-main.public-home-layout .public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #1b252a;
  padding: 26px 0 8px;
}

.public-main.public-home-layout .public-footer-links {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.public-main.public-home-layout .public-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.public-main.public-home-layout .public-footer-legal-links {
  gap: 10px 16px;
}

.public-main.public-home-layout .public-footer-legal-links a {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-main.public-home-layout .public-legal-page {
  max-width: 920px;
  min-height: 58vh;
  margin: 44px auto 0;
  padding: 56px;
}

.public-main.public-home-layout .public-legal-page h1 {
  margin: 12px 0 16px;
  color: #edf3ef;
}

.public-main.public-home-layout .public-legal-description {
  max-width: 680px;
  color: #c9d2cd;
  font-size: 18px;
}

.public-main.public-home-layout .public-legal-back {
  color: #9be740;
  font-size: 14px;
  text-decoration: none;
}

.public-main.public-home-layout .public-legal-status {
  max-width: 720px;
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px solid #395d46;
  border-radius: 12px;
  background: #17351c;
}

.public-main.public-home-layout .public-legal-status p {
  margin: 8px 0 0;
  color: #d9e3dc;
}

.public-main.public-home-layout .public-legal-facts {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 32px 0 0;
}

.public-main.public-home-layout .public-legal-facts div {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 1fr;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #395d46;
  border-radius: 10px;
  background: #17351c;
}

.public-main.public-home-layout .public-legal-facts dt {
  color: #aebdb3;
}

.public-main.public-home-layout .public-legal-facts dd {
  margin: 0;
  color: #edf3ef;
  font-weight: 600;
}

.public-main.public-home-layout .public-legal-index {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

.public-main.public-home-layout .public-legal-index a {
  padding: 13px 16px;
  border: 1px solid #2d3b38;
  border-radius: 8px;
  color: #e6ece8;
  text-decoration: none;
}

.public-main.public-home-layout .public-legal-index a:hover,
.public-main.public-home-layout .public-legal-index a:focus-visible,
.public-main.public-home-layout .public-legal-index a.active {
  border-color: #9be740;
  background: #17351c;
}

.public-main.public-home-layout .public-footer a,
.public-main.public-home-layout .public-footer-login {
  color: #aab6b0;
  font-size: var(--public-ui-text-size);
  font-weight: var(--public-ui-text-weight);
  line-height: var(--public-ui-text-line-height);
}

.public-main.public-home-layout .public-footer-login {
  border: 0;
  background: transparent;
  padding: 0;
}

/* Hero final: keep the intake card, callouts and preview in one normal flow. */
@media (min-width: 1100px) {
  .public-main.public-home-layout .landing-hero-ai-intake,
  .public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-top: 32px;
  }

  .public-main.public-home-layout .hero-ai-stage,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-ai-stage {
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: clamp(32px, 4vw, 64px);
    min-height: 0;
    height: auto;
  }

  .public-main.public-home-layout .landing-hero-ai-intake .hero-copy h1,
  .public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy h1 {
    width: auto;
    max-width: 650px;
    margin: 14px 0 12px;
    font-size: 56px;
    line-height: 1.02;
  }

  .public-main.public-home-layout .landing-hero-ai-intake .hero-copy h1 span {
    display: block;
    white-space: nowrap;
  }

  .public-main.public-home-layout .landing-hero-ai-intake .hero-copy > .hero-lead,
  .public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > .hero-lead {
    margin: 0 0 10px;
  }

  .public-main.public-home-layout .landing-hero-ai-intake .hero-copy > p:not(.risk-reversal, .hero-lead),
  .public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-copy > p:not(.risk-reversal, .hero-lead) {
    max-width: 590px;
    margin: 0;
  }

  .public-main.public-home-layout .landing-hero-ai-intake .hero-actions,
  .public-main.public-home-layout.landing-capture-fit1440 .landing-hero-ai-intake .hero-actions {
    margin-top: 18px;
  }

  .public-main.public-home-layout .landing-hero-ai-intake .hero-actions .secondary-link {
    border-color: #6e8179;
    color: #e1e9e5;
  }

  .public-main.public-home-layout .hero-analysis-card,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-analysis-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .public-main.public-home-layout .hero-workspace-proof,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-proof {
    position: static;
    width: 100%;
    margin: 40px 0 0;
    padding: 0;
    transform: none;
  }

  .public-main.public-home-layout .hero-workspace-proof::before,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-proof::before {
    content: none;
  }

  .public-main.public-home-layout .hero-workspace-markers,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(220px, .78fr) minmax(235px, .82fr);
    gap: 9px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 10px 0 142px;
    transform: none;
  }

  .public-main.public-home-layout .hero-workspace-markers span,
  .public-main.public-home-layout .hero-workspace-markers span:nth-child(n),
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span:nth-child(n) {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(260px, 100%);
    min-height: 0;
    justify-self: center;
    transform: none;
  }

  .public-main.public-home-layout .hero-workspace-markers span::after,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-markers span::after {
    top: 100%;
    left: 50%;
    z-index: 3;
    height: 111px;
  }

  .public-main.public-home-layout .hero-workspace-shell,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-shell {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 14px;
    padding-top: 0;
    transform: none;
  }

  .public-main.public-home-layout .hero-workspace-grid,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-grid {
    height: auto;
    grid-template-columns: minmax(0, 1.16fr) minmax(220px, .78fr) minmax(235px, .82fr);
  }

  .public-main.public-home-layout .hero-workspace-conflict .hero-conflict-choices,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-conflict .hero-conflict-choices {
    grid-template-columns: minmax(0, .78fr) minmax(0, .78fr) minmax(110px, 1.2fr);
    gap: 5px;
  }

  .public-main.public-home-layout .hero-workspace-conflict .hero-conflict-choices button,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-conflict .hero-conflict-choices button {
    min-height: 29px;
    padding-inline: 6px;
  }
}

@media (max-width: 760px) {
  .public-main.public-home-layout .public-header {
    min-height: 60px;
  }

  .public-main.public-home-layout .public-header .public-brand {
    flex-basis: auto;
    width: auto;
  }

  .public-main.public-home-layout .public-header .brand-logo {
    width: 128px;
  }

  .public-main.public-home-layout .public-nav {
    display: none;
  }

  .public-main.public-home-layout .public-nav.open {
    display: grid;
  }

  .public-main.public-home-layout .final-cta-redesign,
  .public-main.public-home-layout .public-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .public-main.public-home-layout .final-cta-redesign {
    padding: 28px 24px;
  }

  .public-main.public-home-layout .public-footer {
    display: grid;
  }

  .public-main.public-home-layout .public-footer nav {
    justify-content: flex-start;
  }

  .public-main.public-home-layout .public-footer-links {
    justify-items: start;
  }

  .public-main.public-home-layout .public-legal-page {
    margin-top: 20px;
    padding: 32px 24px;
  }
}

/* Hero markers now continue the CTA column; the preview follows the top scene directly. */
.public-main.public-home-layout .hero-inline-markers {
  display: grid;
  gap: 8px;
  max-width: 460px;
  margin-top: 16px;
}

.public-main.public-home-layout .hero-inline-markers span {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #c9d2cd;
  font-size: var(--public-ui-size);
  font-weight: var(--public-ui-weight);
  line-height: var(--public-ui-line-height);
}

.public-main.public-home-layout .hero-inline-markers b {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid #3e7640;
  border-radius: 50%;
  color: #65ce52;
  font-size: 12px;
}

.public-main.public-home-layout .hero-inline-markers span:nth-child(2) b {
  border-color: #d8a925;
  color: #edbd37;
}

.public-main.public-home-layout .control-before-calculation > .control-before-copy {
  width: 100%;
}

/* Upload-sources desktop composition: one header, then balanced working columns. */
@media (min-width: 1100px) {
  .public-main.public-home-layout .incomplete-intake-grid {
    grid-template-columns: minmax(0, .75fr) 24px minmax(0, 1fr) 24px minmax(0, .8fr);
    gap: 10px;
    align-items: stretch;
  }

  .public-main.public-home-layout .incomplete-intake-intro,
  .public-main.public-home-layout .incomplete-extraction-card,
  .public-main.public-home-layout .incomplete-questions-card {
    align-self: stretch;
    height: 100%;
  }

  .public-main.public-home-layout .incomplete-intake-intro {
    align-self: start;
    height: auto;
  }

  .public-main.public-home-layout .incomplete-intake-intro .incomplete-source-panel {
    height: auto;
  }

  .public-main.public-home-layout .incomplete-source-card {
    grid-template-columns: 78px minmax(0, 1fr) 64px;
    gap: 8px;
    min-height: 72px;
    padding: 6px;
  }

  .public-main.public-home-layout .incomplete-source-card .source-mock,
  .public-main.public-home-layout .incomplete-source-card .landing-managed-media {
    width: 78px;
    height: 54px;
    min-height: 54px;
  }

  .public-main.public-home-layout .incomplete-source-card > div:nth-child(2) strong { font-size: 15px; }
  .public-main.public-home-layout .incomplete-source-card > div:nth-child(2) p { font-size: 12px; }
  .public-main.public-home-layout .incomplete-source-card > span { max-width: 64px; padding: 5px; font-size: 10px; }

  .public-main.public-home-layout .incomplete-blocked-state {
    margin-top: 12px;
    padding: 12px 14px;
  }

  .public-main.public-home-layout .incomplete-blocked-state > div {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .public-main.public-home-layout .incomplete-blocked-state > div > svg {
    width: 24px;
    height: 24px;
  }

  .public-main.public-home-layout .incomplete-blocked-state strong {
    margin-bottom: 3px;
    font-size: 14px;
  }

  .public-main.public-home-layout .incomplete-blocked-state p { font-size: 12px; }

  .public-main.public-home-layout .incomplete-blocked-state > button,
  .public-main.public-home-layout .incomplete-blocked-state > button:disabled {
    width: auto;
    min-height: 36px;
    margin: 12px 0 0 40px;
    padding-inline: 12px;
    font-size: 13px;
    font-weight: 700;
  }

  .public-main.public-home-layout .incomplete-blocked-state > small {
    margin: 12px 0 0 40px;
  }

  .public-main.public-home-layout .incomplete-next-state-label {
    margin: 16px 0 8px;
  }

  .public-main.public-home-layout .incomplete-ready-state {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px 10px;
  }

  .public-main.public-home-layout .incomplete-ready-state > div {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
  }

  .public-main.public-home-layout .incomplete-ready-state > div > svg {
    width: 20px;
    height: 20px;
  }

  .public-main.public-home-layout .incomplete-ready-state strong {
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.25;
  }

  .public-main.public-home-layout .incomplete-ready-state p {
    font-size: 11px;
    line-height: 1.3;
  }

  .public-main.public-home-layout .incomplete-ready-state > button,
  .public-main.public-home-layout .incomplete-ready-state > button:disabled {
    width: auto;
    min-height: 32px;
    margin: 0;
    padding-inline: 7px;
    gap: 4px;
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .public-main.public-home-layout .incomplete-ready-state > button svg { width: 14px; }
}

@media (min-width: 1100px) {
  .public-main.public-home-layout .hero-workspace-proof,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-proof {
    margin-top: 24px;
  }

  .public-main.public-home-layout .hero-workspace-shell,
  .public-main.public-home-layout.landing-capture-fit1440 .hero-workspace-shell {
    margin-top: 0;
  }
}

/* Audit example: compact section framing with a full-width two-column card. */
.public-main.public-home-layout .audit-section {
  padding-top: clamp(28px, 3vw, 40px);
}

.public-main.public-home-layout .audit-intro {
  max-width: none;
  margin-bottom: 20px;
}

.public-main.public-home-layout .audit-intro p {
  max-width: none;
}

.public-main.public-home-layout .audit-example {
  width: min(72%, 880px);
  max-width: 100%;
  grid-template-columns: minmax(0, 1.12fr) minmax(270px, 0.88fr);
  gap: 12px 18px;
  padding: 14px 16px;
}

.public-main.public-home-layout .audit-example-head {
  gap: 8px;
}

.public-main.public-home-layout .audit-state {
  padding: 8px 9px;
}

.public-main.public-home-layout .audit-history {
  gap: 8px;
  padding: 9px 12px;
}

.public-main.public-home-layout .audit-retained-note {
  padding-top: 10px;
}

@media (max-width: 900px) {
  .public-main.public-home-layout .audit-example { width: 100%; }
}

/* Audit container and card proportions. */
.public-main.public-home-layout .audit-section {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-top: 47px;
}

.public-main.public-home-layout .audit-section-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.public-main.public-home-layout .audit-intro h2 {
  max-width: 1000px;
}

.public-main.public-home-layout .audit-example {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 28px 32px;
  margin-top: 24px;
  padding: 28px 32px;
}

.public-main.public-home-layout .audit-state-list,
.public-main.public-home-layout .audit-history {
  width: 100%;
}

.public-main.public-home-layout .audit-history {
  gap: 14px;
  padding: 14px 20px;
  border-left: 1px solid var(--public-line);
}

.public-main.public-home-layout .audit-example-head { gap: 12px; }
.public-main.public-home-layout .audit-example-head > span,
.public-main.public-home-layout .audit-history > span { font-size: 13px; }
.public-main.public-home-layout .audit-example-head > strong { font-size: 20px; }
.public-main.public-home-layout .audit-state { gap: 12px; padding: 14px 16px; }
.public-main.public-home-layout .audit-state small,
.public-main.public-home-layout .audit-state em,
.public-main.public-home-layout .audit-history small,
.public-main.public-home-layout .audit-history-meta { font-size: 13px; }
.public-main.public-home-layout .audit-state strong,
.public-main.public-home-layout .audit-history-row strong { font-size: 17px; }
.public-main.public-home-layout .audit-retained-note { padding-top: 16px; font-size: 14px; }

.public-main.public-home-layout .audit-history-row {
  grid-template-columns: auto auto 18px auto auto;
  width: max-content;
  max-width: 100%;
}

@media (max-width: 760px) {
  .public-main.public-home-layout .audit-example { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .public-main.public-home-layout .audit-history { border-top: 1px solid var(--public-line); border-left: 0; }
}

/* Workspace navigation: reference-matched dark application sidebar. */
.layout {
  grid-template-columns: 326px minmax(0, 1fr);
  background: #070e12;
}

.sidebar.workspace-sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid #1b282e;
  background: #070e12;
  color: #f2f5f4;
  padding: 32px 26px 16px;
}

.workspace-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 69px;
  border-bottom: 1px solid #1a272d;
  padding: 0 10px 20px;
}

.workspace-sidebar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.workspace-sidebar-brand strong {
  color: #f6f8f7;
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -0.03em;
}

.workspace-user-block {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 20px 10px 14px;
}

.workspace-user-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #203f18;
  color: #a8eb43;
  font-size: 22px;
  font-weight: 650;
}

.workspace-user-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.workspace-user-copy strong,
.workspace-name span {
  overflow: hidden;
  color: #eef2f0;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-user-copy span {
  overflow-wrap: anywhere;
  color: #8d9aa0;
  font-size: 13px;
  line-height: 1.35;
}

.workspace-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 10px;
}

.workspace-name svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #b7c2c5;
}

.workspace-navigation {
  flex: 1;
  min-height: 0;
  margin-inline: -8px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.workspace-nav-group {
  margin-inline: 8px;
  margin-top: 44px;
}

.workspace-nav-settings {
  border-top: 1px solid #1a272d;
  margin-top: 30px;
  padding-top: 20px;
}

.workspace-nav-group > p {
  margin: 0 10px 17px;
  color: #77858c;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.workspace-sidebar .nav.workspace-nav {
  display: grid;
  gap: 4px;
  margin: 0 -8px;
}

.workspace-sidebar .workspace-nav button,
.workspace-sidebar-logout button,
.workspace-support-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #edf1ef;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.workspace-sidebar .workspace-nav button svg,
.workspace-sidebar-logout button svg,
.workspace-support-link svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #b3bec2;
  stroke-width: 1.8;
}

.workspace-sidebar .workspace-nav button:hover,
.workspace-sidebar-logout button:hover,
.workspace-support-link:hover {
  background: #101b20;
  color: #ffffff;
}

.workspace-sidebar .workspace-nav button.active {
  box-shadow: inset 3px 0 #9be740;
  background: #17351c;
  color: #ffffff;
}

.workspace-sidebar .workspace-nav button.active svg {
  color: #9be740;
}

.workspace-sidebar .workspace-nav button:focus-visible,
.workspace-sidebar-logout button:focus-visible,
.workspace-support-link:focus-visible {
  outline: 2px solid #9be740;
  outline-offset: 2px;
}

.workspace-sidebar-actions {
  border-top: 1px solid #1a272d;
  flex: 0 0 auto;
  margin: 16px 0 0;
  padding: 16px 0 0;
}

.workspace-sidebar-logout {
  margin-top: 10px;
}

.workspace-support-link {
  justify-content: center;
  min-height: 54px;
  border: 1px solid #395d46;
  border-radius: 7px;
  background: #17351c;
  color: #ffffff;
  text-decoration: none;
}

.workspace-support-link svg {
  color: #9be740;
}

.workspace-support-link:hover {
  border-color: #9be740;
  background: #1c4123;
}

.workspace-sidebar-logout button {
  justify-content: center;
  min-height: 54px;
  border: 1px solid #293940;
  border-radius: 7px;
  color: #eef2f0;
}

.workspace-sidebar-logout button:hover {
  border-color: #52646b;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar.workspace-sidebar { position: static; height: auto; overflow: visible; }
  .workspace-sidebar-actions { margin-top: 20px; }
}

/* Desktop workspace shell: exact dark treatment of the approved project screen. */
.workspace-sidebar-brand {
  gap: 16px;
}

.workspace-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #9be740;
}

.workspace-brand-mark img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.workspace-main {
  --workspace-bg: #071015;
  --workspace-surface: #0c171d;
  --workspace-surface-hover: #101e25;
  --workspace-line: #273841;
  --workspace-text: #f1f4f3;
  --workspace-muted: #9aa8ae;
  --workspace-green: #97e83e;
  box-sizing: border-box;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 32px 24px 34px 28px;
  background: var(--workspace-bg);
  color: var(--workspace-text);
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.workspace-main .topbar.workspace-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  margin: 0 0 22px;
}

.workspace-main .workspace-topbar h1 {
  margin: -2px 0 14px;
  color: var(--workspace-text);
  font-size: 36px;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1;
}

.workspace-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--workspace-muted);
  font-size: 16px;
  line-height: 1;
}

.workspace-breadcrumb svg {
  width: 14px;
  height: 14px;
  color: #66757b;
}

.workspace-breadcrumb span:last-child { color: #bdc7ca; }

.workspace-main .workspace-refresh {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: #0b171c;
  color: var(--workspace-text);
  padding: 0 18px;
  font-size: 17px;
  font-weight: 500;
}

.workspace-main .workspace-refresh svg {
  width: 21px;
  height: 21px;
  color: var(--workspace-green);
}

.workspace-main .workspace-refresh:hover {
  border-color: #3c535d;
  background: var(--workspace-surface-hover);
}

.workspace-main .alerts { margin-bottom: 20px; }

.workspace-main .notice,
.workspace-main .panel,
.workspace-main .card,
.workspace-main .page {
  border-color: var(--workspace-line);
  background: var(--workspace-surface);
  box-shadow: none;
}

.workspace-main .notice { color: var(--workspace-text); }
.workspace-main .notice.warn { border-color: #5b4b25; background: #1e1a10; }
.workspace-main .notice.error { border-color: #5a2d2d; background: #221416; }
.workspace-main .notice.success { border-color: #294729; background: #102116; color: var(--workspace-text); }
.workspace-main .handoff-package-list li { color: var(--workspace-text); }

.workspace-main h1,
.workspace-main h2,
.workspace-main h3,
.workspace-main .field span,
.workspace-main .summary-card strong {
  color: var(--workspace-text);
}

.workspace-main .muted,
.workspace-main .status-label,
.workspace-main .empty-state,
.workspace-main .mini { color: var(--workspace-muted); }

.workspace-main input,
.workspace-main select,
.workspace-main textarea {
  border-color: var(--workspace-line);
  border-radius: 8px;
  background: #0a151a;
  color: var(--workspace-text);
  box-shadow: none;
}

.workspace-main input:focus,
.workspace-main select:focus,
.workspace-main textarea:focus {
  outline-color: rgba(151, 232, 62, 0.42);
  border-color: var(--workspace-green);
}

.workspace-main .manual-inputs-empty {
  max-width: 720px;
  display: grid;
  gap: 14px;
}

.workspace-main .manual-inputs-empty h2,
.workspace-main .manual-inputs-empty p {
  margin: 0;
}

.workspace-main .manual-inputs-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.workspace-main .manual-technology-selector {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #42634e;
  border-radius: 10px;
  background: linear-gradient(135deg, #10251f, #0b171c 68%);
}

.workspace-main .manual-technology-selector h3,
.workspace-main .manual-technology-selector p {
  margin: 0;
}

.workspace-main .manual-technology-selector h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.workspace-main .manual-technology-controls,
.workspace-main .manual-technology-materials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workspace-main .manual-technology-controls .field,
.workspace-main .manual-technology-materials .field {
  min-width: 0;
}

.workspace-main .manual-wall-composition {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.workspace-main .manual-wall-composition h4 {
  margin: 0;
  font-size: 15px;
}

.workspace-main .manual-wall-composition > .field {
  max-width: 420px;
}

.workspace-main .manual-wall-composition-layers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workspace-main .manual-inputs-sections {
  display: grid;
  gap: 18px;
}

.workspace-main .manual-input-section {
  padding: 16px;
  border: 1px solid var(--workspace-line);
  border-radius: 10px;
  background: #0b171c;
}

.workspace-main .manual-input-section h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.workspace-main .manual-input-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workspace-main .manual-inputs-summary .mini {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.workspace-main .manual-input-field {
  min-width: 0;
  padding: 12px;
  border: 1px solid #24343b;
  border-radius: 8px;
  background: #0a151a;
}

.workspace-main .manual-input-field.readonly {
  opacity: 0.74;
}

.workspace-main .manual-input-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.workspace-main .manual-input-field-head label {
  color: var(--workspace-text);
  font-size: 13px;
  font-weight: 700;
}

.workspace-main .manual-input-required { color: var(--workspace-green); }

.workspace-main .manual-input-legend,
.workspace-main .manual-input-inline-help {
  color: var(--workspace-muted);
  font-size: 12px;
  line-height: 1.5;
}

.workspace-main .manual-input-inline-help { margin: 8px 0 0; }

.workspace-main .manual-input-field-head { position: relative; }

.workspace-main .manual-input-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.workspace-main .manual-input-help { display: inline-flex; flex: 0 0 auto; }

.workspace-main .manual-input-help-trigger {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid #65848e;
  border-radius: 50%;
  color: #d4e5e9;
  background: #13272f;
  font-size: 13px;
  line-height: 1;
  cursor: help;
}

.workspace-main .manual-input-help-trigger:focus-visible {
  outline: 2px solid var(--workspace-green);
  outline-offset: 3px;
}

.workspace-main .manual-input-help-panel {
  position: fixed;
  z-index: 50;
  display: grid;
  gap: 8px;
  box-sizing: border-box;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #65848e;
  border-radius: 8px;
  background: #142830;
  color: #e4eef0;
  box-shadow: 0 8px 24px #0008;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.workspace-main .manual-input-help-panel[hidden] { display: none; }
.workspace-main .manual-input-help-example { color: #b0e5d0; }
.workspace-main .manual-input-unit { flex-shrink: 0; }

.workspace-main .manual-input-unit,
.workspace-main .manual-input-correction {
  color: var(--workspace-muted);
  font-size: 12px;
}

.workspace-main .manual-input-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 9px;
  color: var(--workspace-muted);
  font-size: 12px;
  line-height: 1.35;
}

.workspace-main .manual-input-source strong {
  color: #bdc7ca;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.workspace-main .manual-input-control textarea {
  min-height: 120px;
}

.workspace-main .manual-input-field:has(.manual-table-editor) {
  grid-column: 1 / -1;
}

.workspace-main .manual-table-editor {
  display: grid;
  gap: 10px;
}

.workspace-main .manual-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
}

.workspace-main .manual-table-editor table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.workspace-main .manual-table-editor th,
.workspace-main .manual-table-editor td {
  padding: 8px;
  border-bottom: 1px solid var(--workspace-line);
  text-align: left;
  vertical-align: middle;
}

.workspace-main .manual-table-editor th {
  background: #101f25;
  color: var(--workspace-muted);
  font-size: 12px;
  font-weight: 700;
}

.workspace-main .manual-table-editor input,
.workspace-main .manual-table-editor select {
  min-width: 120px;
}

.workspace-main .manual-table-editor td:nth-last-child(2) input {
  min-width: 180px;
}

.workspace-main .manual-input-correction {
  display: block;
  margin-top: 7px;
}

.workspace-main.view-documents .documents-panel {
  padding: 18px;
  border: 1px solid var(--workspace-line);
  border-radius: 10px;
  background: var(--workspace-surface);
}

.workspace-main .documents-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.workspace-main .documents-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-main .documents-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 142px;
  min-height: 40px;
  padding: 0 14px;
}

.workspace-main .documents-actions button:disabled {
  border-color: #26363b;
  background: #0a1418;
  color: #67767b;
  cursor: not-allowed;
}

.workspace-main .documents-export-choice {
  display: flex;
  align-items: end;
  gap: 12px;
}

.workspace-main .documents-export-choice .field {
  min-width: 210px;
  gap: 6px;
}

.workspace-main .documents-export-choice select,
.workspace-main .documents-export-choice button {
  min-height: 42px;
}

.workspace-main .documents-export-choice button {
  min-width: 190px;
  padding: 0 18px;
}

.workspace-main .documents-table-wrap {
  margin: 0;
  border-color: var(--workspace-line);
  border-radius: 8px;
  background: #091419;
}

.workspace-main .documents-table {
  min-width: 0;
  table-layout: fixed;
  color: var(--workspace-text);
}

.workspace-main .documents-table th,
.workspace-main .documents-table td {
  height: 54px;
  padding: 12px 16px;
  border-color: #22333a;
  vertical-align: middle;
}

.workspace-main .documents-table th {
  background: #111f26;
  color: #cdd6d7;
  font-size: 12px;
  font-weight: 700;
}

.workspace-main .documents-table td {
  color: var(--workspace-text);
  font-size: 14px;
}

.workspace-main .documents-table th:nth-child(1),
.workspace-main .documents-table td:nth-child(1) { width: 42%; }
.workspace-main .documents-table th:nth-child(2),
.workspace-main .documents-table td:nth-child(2) { width: 20%; }
.workspace-main .documents-table th:nth-child(3),
.workspace-main .documents-table td:nth-child(3) { width: 18%; color: var(--workspace-muted); }
.workspace-main .documents-table th:nth-child(4),
.workspace-main .documents-table td:nth-child(4) { width: 20%; }

.workspace-main .documents-table .button-link {
  min-height: 34px;
  padding: 0 12px;
  border-color: #32444c;
  background: #0c1a20;
  color: #dce6e5;
  font-size: 13px;
}

.workspace-main .documents-empty-row td {
  height: 180px;
  color: var(--workspace-muted);
  text-align: center;
  vertical-align: middle;
}

@media (max-width: 860px) {
  .workspace-main .manual-input-fields { grid-template-columns: 1fr; }
  .workspace-main .manual-technology-controls,
  .workspace-main .manual-technology-materials,
  .workspace-main .manual-wall-composition-layers { grid-template-columns: 1fr; }

  .workspace-main .documents-toolbar { align-items: flex-start; flex-direction: column; }
  .workspace-main .documents-export-choice { align-items: stretch; flex-direction: column; width: 100%; }
  .workspace-main .documents-export-choice .field,
  .workspace-main .documents-export-choice button { width: 100%; }
}

.workspace-main button:not(.workspace-refresh) {
  border-color: var(--workspace-line);
  background: #0b171c;
  color: var(--workspace-text);
}

.workspace-main button:not(.workspace-refresh):hover { border-color: #435860; background: var(--workspace-surface-hover); }

.workspace-main .primary,
.workspace-main .success {
  border-color: #63bb2a !important;
  background: #4fa724 !important;
  color: #f8fff5 !important;
  box-shadow: none;
}

.workspace-main .primary:hover,
.workspace-main .success:hover { background: #5bb52b !important; }

.workspace-projects { display: grid; gap: 24px; }

.project-chat-screen { display: grid; gap: 22px; color: var(--workspace-text); }
.project-chat-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 27px 30px; border: 1px solid #29483b; border-radius: 12px; background: linear-gradient(125deg, #10271f 0%, #0d1d19 72%); box-shadow: 0 18px 42px rgba(0,0,0,.16); }
.project-chat-header h2 { margin: 4px 0 7px; font-size: 28px; }
.project-chat-header p { margin: 0; color: #aabbb5; }
.chat-project-label { color: var(--workspace-green); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.project-chat-participants { display: flex; align-items: center; gap: 13px; padding: 12px 15px; border: 1px solid #315345; border-radius: 10px; background: #0b1a16; }
.project-chat-participants > div { display: flex; }
.project-chat-participants span { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -7px; border: 2px solid #0b1a16; border-radius: 50%; background: #244c36; color: #d7f2e2; font-size: 11px; font-weight: 800; }
.project-chat-participants span:first-child { margin-left: 0; }
.project-chat-participants strong { color: #c7d8d1; font-size: 13px; white-space: nowrap; }
.project-chat-panel { overflow: hidden; border: 1px solid #294238; border-radius: 12px; background: #101f1b; box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.project-chat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid #294238; }
.project-chat-toolbar h3 { margin: 0 0 4px; font-size: 21px; }
.project-chat-toolbar p { margin: 0; color: #91a59e; font-size: 14px; }
.project-chat-toolbar button { display: inline-flex; align-items: center; gap: 7px; }
.project-chat-toolbar svg { width: 16px; height: 16px; color: var(--workspace-green); }
.project-chat-feed { display: grid; align-content: end; gap: 18px; min-height: 460px; max-height: 620px; overflow-y: auto; padding: 30px 34px; background: radial-gradient(circle at 18% 0%, rgba(67,132,89,.08), transparent 42%), #0c1714; }
.project-chat-message { display: flex; align-items: end; gap: 11px; max-width: 76%; }
.project-chat-message.is-own { justify-self: end; flex-direction: row-reverse; }
.project-chat-avatar, .project-chat-current-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #244c36; color: #d7f2e2; font-size: 12px; font-weight: 800; }
.project-chat-message.is-own .project-chat-avatar { background: #4b7327; }
.project-chat-bubble { min-width: 230px; padding: 13px 16px; border: 1px solid #2b463b; border-radius: 13px 13px 13px 4px; background: #162821; }
.project-chat-message.is-own .project-chat-bubble { border-color: #446c34; border-radius: 13px 13px 4px 13px; background: #24401f; }
.project-chat-bubble > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.project-chat-bubble strong { color: #b9d7c6; font-size: 13px; }
.project-chat-bubble time { color: #7f958c; font-size: 11px; white-space: nowrap; }
.project-chat-bubble p { margin: 7px 0 0; color: #edf4f1; line-height: 1.5; white-space: pre-wrap; }
.project-chat-empty { display: grid; justify-items: center; align-self: center; padding: 62px 20px; color: #91a59e; text-align: center; }
.project-chat-empty svg { width: 46px; height: 46px; margin-bottom: 13px; color: var(--workspace-green); }
.project-chat-empty strong { color: #e8f1ed; font-size: 19px; }
.project-chat-empty p { max-width: 350px; margin: 8px 0 0; line-height: 1.5; }
.project-chat-composer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 13px; padding: 18px 22px; border-top: 1px solid #294238; background: #12241e; }
.project-chat-composer label { display: block; }
.project-chat-composer textarea { width: 100%; min-height: 58px; resize: vertical; border-color: #355148; background: #0b1815; color: #eef6f2; }
.project-chat-composer button { min-height: 50px; }
.project-chat-composer button svg { width: 18px; height: 18px; }
.chat-empty-project { text-align: center; }
@media (max-width: 760px) { .project-chat-header { align-items: start; flex-direction: column; } .project-chat-feed { min-height: 390px; padding: 22px 16px; } .project-chat-message { max-width: 94%; } .project-chat-composer { grid-template-columns: 1fr; } .project-chat-current-avatar { display: none; } .project-chat-composer button { justify-self: end; } }

.project-tasks-screen { display: grid; gap: 22px; color: var(--workspace-text); }
.project-tasks-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 27px 30px; border: 1px solid #29483b; border-radius: 12px; background: linear-gradient(125deg, #10271f 0%, #0d1d19 72%); box-shadow: 0 18px 42px rgba(0,0,0,.16); }
.project-tasks-header h2 { margin: 4px 0 7px; font-size: 28px; }
.project-tasks-header p { margin: 0; color: #aabbb5; }
.task-project-label { color: var(--workspace-green); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.task-summary { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 9px; padding: 14px 18px; border: 1px solid #315345; border-radius: 10px; background: #0b1a16; }
.task-summary strong { color: #d8f4e4; font-size: 22px; }
.task-summary span { color: #8fa59d; font-size: 13px; }
.project-tasks-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr); gap: 22px; align-items: start; }
.project-tasks-primary { display: grid; gap: 22px; }
.task-create-panel, .task-list-panel, .project-task-detail { border: 1px solid #294238; border-radius: 12px; background: #101f1b; box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.task-create-panel { display: grid; gap: 16px; padding: 24px; }
.task-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.task-panel-heading h3 { margin: 0 0 5px; font-size: 21px; }
.task-panel-heading p { margin: 0; color: #91a59e; font-size: 14px; }
.task-panel-heading > span { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 9px; background: #18372a; color: var(--workspace-green); font-weight: 800; }
.task-panel-heading > svg { width: 25px; height: 25px; color: var(--workspace-green); }
.task-create-panel textarea, .task-create-panel input, .task-create-panel select, .task-detail-form textarea, .task-detail-form input, .task-detail-form select, .task-comments textarea { border-color: #355148; background: #0b1815; color: #eef6f2; }
.task-create-row { display: grid; grid-template-columns: 1fr 180px auto; gap: 13px; align-items: end; }
.task-create-row .field { margin: 0; }
.task-create-row button { min-height: 49px; }
.task-list-panel { overflow: hidden; }
.task-list-panel > .task-panel-heading { padding: 22px 24px 18px; border-bottom: 1px solid #294238; }
.project-task-list { display: grid; }
.project-task-card { display: grid; grid-template-columns: 112px minmax(180px, 1fr) auto; align-items: center; gap: 16px; min-height: 78px; padding: 16px 20px; border: 0; border-bottom: 1px solid #233a32; border-radius: 0; background: transparent; color: inherit; text-align: left; }
.project-task-card:last-child { border-bottom: 0; }
.project-task-card:hover, .project-task-card.is-selected { background: #152b23; }
.project-task-card.is-selected { box-shadow: inset 3px 0 var(--workspace-green); }
.project-task-card > strong { font-size: 16px; }
.task-status { display: inline-flex; width: fit-content; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.task-status.is-new { background: #1f3541; color: #a8ddf5; }
.task-status.is-progress { background: #173e2a; color: #91e0ad; }
.task-status.is-waiting { background: #443717; color: #f2d27d; }
.task-status.is-done { background: #214337; color: #b8ead0; }
.task-status.is-cancelled { background: #3a2e31; color: #d9adb6; }
.task-card-meta { display: flex; gap: 14px; color: #91a59e; font-size: 12px; }
.task-card-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.task-card-meta svg { width: 14px; height: 14px; }
.task-list-empty, .task-detail-empty { display: grid; justify-items: center; padding: 48px 28px; color: #91a59e; text-align: center; }
.task-list-empty svg, .task-detail-empty svg { width: 42px; height: 42px; margin-bottom: 13px; color: var(--workspace-green); }
.task-list-empty strong, .task-detail-empty strong { color: #e8f1ed; font-size: 18px; }
.task-list-empty p, .task-detail-empty p { max-width: 290px; margin: 8px 0 0; line-height: 1.45; }
.project-task-detail { position: sticky; top: 20px; min-height: 310px; padding: 22px; }
.task-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: #91a59e; font-size: 13px; }
.task-detail-form { display: grid; gap: 13px; }
.task-detail-form .field { margin: 0; }
.task-detail-form input[readonly], .task-detail-form textarea[readonly] { border-color: transparent; background: #13251f; }
.task-assignee { display: grid; gap: 5px; padding: 11px 13px; border-radius: 8px; background: #13251f; }
.task-assignee span { color: #91a59e; font-size: 12px; }
.task-detail-actions { display: flex; justify-content: flex-end; gap: 9px; }
.task-comments { margin-top: 25px; padding-top: 20px; border-top: 1px solid #294238; }
.task-comments h3 { margin: 0 0 14px; font-size: 17px; }
.task-comments h3 span, .task-history summary span { color: var(--workspace-green); }
.task-comments article { padding: 12px 0; border-bottom: 1px solid #233a32; }
.task-comments article > div { display: flex; justify-content: space-between; gap: 12px; }
.task-comments article time { color: #7f938c; font-size: 11px; }
.task-comments article p { margin: 7px 0 0; color: #c6d2ce; line-height: 1.45; }
.task-comments form { display: grid; gap: 8px; margin-top: 14px; }
.task-comments form button { justify-self: end; }
.task-empty-copy { color: #849990; font-size: 13px; }
.task-history { margin-top: 20px; padding-top: 17px; border-top: 1px solid #294238; }
.task-history summary { cursor: pointer; font-weight: 700; }
.task-history > div { display: flex; gap: 9px; padding: 12px 0 0; }
.task-history svg { width: 16px; color: #77bd91; }
.task-history span { display: grid; gap: 3px; }
.task-history small { color: #81958d; }
@media (max-width: 1450px) { .project-tasks-layout { grid-template-columns: 1fr; } .project-task-detail { position: static; } }
@media (max-width: 760px) { .project-tasks-header { align-items: start; flex-direction: column; } .task-create-row { grid-template-columns: 1fr; } .project-task-card { grid-template-columns: 1fr; gap: 8px; } .task-card-meta { flex-wrap: wrap; } }

.workspace-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.workspace-main .workspace-status-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  min-height: 160px;
  padding: 26px 28px;
  border: 1px solid var(--workspace-line);
  border-radius: 9px;
  background: linear-gradient(135deg, #0d191f, #0a1419);
}

.workspace-status-card > div { display: grid; align-content: start; gap: 9px; }
.workspace-main .workspace-status-card .status-label { color: #b7c1c4; font-size: 16px; font-weight: 400; }
.workspace-main .workspace-status-card strong { margin: 0; color: var(--workspace-text); font-size: 20px; font-weight: 700; line-height: 1.1; }
.workspace-status-icon { width: 46px; height: 46px; margin-top: 4px; color: var(--workspace-green); stroke-width: 1.8; }
.workspace-status-warn .workspace-status-icon { color: #f8b723; }
.workspace-status-error .workspace-status-icon { color: #ed6b5b; }

.workspace-main .workspace-status-card .badge {
  justify-self: start;
  padding: 7px 12px;
  border-radius: 999px;
  background: #123017;
  color: var(--workspace-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
}

.workspace-main .workspace-status-card .badge.warn { background: #342811; color: #f6bf31; }
.workspace-main .workspace-status-card .badge.error { background: #361a1b; color: #ef8275; }

.workspace-project-grid {
  display: grid;
  grid-template-columns: 539px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.workspace-project-card {
  box-sizing: border-box;
  min-height: 580px;
  border: 1px solid var(--workspace-line);
  border-radius: 9px;
  background: linear-gradient(135deg, #0d191f, #0a1419);
  padding: 30px 24px;
}

.workspace-project-card h2 { margin: 0 0 20px; color: var(--workspace-text); font-size: 25px; font-weight: 700; letter-spacing: -0.025em; }

.workspace-project-create { display: grid; align-content: start; }
.workspace-project-create .field { gap: 8px; margin: 0 0 23px; }
.workspace-project-create .field:last-of-type { margin-bottom: 21px; }
.workspace-project-create .field span { color: #bdc7ca; font-size: 16px; font-weight: 400; }
.workspace-project-create input,
.workspace-project-create select { min-height: 53px; padding: 0 16px; font-size: 18px; }
.workspace-project-create .primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; min-height: 55px; margin-top: 4px; padding: 0 19px; border-radius: 6px; font-size: 16px; font-weight: 650; }
.workspace-project-create .primary svg { width: 20px; height: 20px; }

.workspace-project-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.workspace-project-card-head .badge { background: #123017; color: var(--workspace-green); font-size: 14px; font-weight: 700; }
.workspace-project-empty { display: grid; justify-items: center; align-content: center; min-height: 455px; padding: 30px; text-align: center; }
.workspace-project-empty svg { width: 85px; height: 85px; margin-bottom: 26px; color: var(--workspace-green); stroke-width: 1.2; }
.workspace-project-empty strong { color: var(--workspace-text); font-size: 22px; font-weight: 700; }
.workspace-project-empty p { margin: 14px 0 0; color: #a6b3b8; font-size: 16px; line-height: 1.55; }
.workspace-project-list { display: grid; gap: 12px; }
.workspace-project-list .notice { padding: 14px; }

@media (max-width: 1180px) {
  .workspace-status-grid,
  .workspace-project-grid { grid-template-columns: 1fr; }
  .workspace-project-card { min-height: auto; }
  .workspace-project-empty { min-height: 320px; }
}

/* Upload-and-review screen: reference-matched composition inside the existing workspace shell. */
.workspace-main.view-ai-intake .workspace-topbar { display: none; }
.workspace-main.view-ai-intake { padding-top: 32px; }

.ai-intake-screen {
  display: grid;
  gap: 0;
  width: 100%;
}

@media (min-width: 1500px) {
  .workspace-main.view-ai-intake .ai-intake-screen {
    width: 1175px;
    margin-left: 20px;
  }
}

.workspace-main.view-ai-intake .ai-intake-screen > .notice.warn:not([data-upload-consent-notice]) { display: none; }

.workspace-main .ai-intake-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.workspace-main .ai-intake-header h2 {
  max-width: 860px;
  margin: -3px 0 14px;
  color: var(--workspace-text);
  font-size: 36px;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.workspace-main .ai-intake-header p {
  margin: 0;
  color: #a6b3b7;
  font-size: 16px;
  line-height: 1.45;
}

.workspace-main .ai-intake-header .badge {
  flex: 0 0 auto;
  margin-top: 46px;
  border: 1px solid #223239;
  background: #0c171b;
  color: var(--workspace-green);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.workspace-main .ai-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
  margin: 40px 0 0;
  overflow: visible;
}

.workspace-main .ai-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: 56px auto;
  column-gap: 16px;
  align-items: center;
  min-height: 132px;
  border: 1px solid #26353c;
  border-radius: 8px;
  background: #0d181e;
  min-width: 0;
  padding: 18px 14px;
  overflow: visible;
}

.workspace-main .ai-step:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 100%;
  width: clamp(12px, 1.5vw, 24px);
  border-top: 3px dotted #738188;
  content: "";
}

.workspace-main .ai-step > * { position: relative; z-index: 1; }
.workspace-main .ai-step span {
  grid-column: 1;
  grid-row: 1;
  width: 34px;
  height: 34px;
  margin: 0;
  background: #3a454b;
  color: #f4f6f5;
  font-size: 16px;
  font-weight: 700;
}

.workspace-main .ai-step > svg {
  grid-column: 2;
  grid-row: 1;
  width: 39px;
  height: 39px;
  justify-self: center;
  color: #a8b3b8;
  stroke-width: 1.75;
}

.workspace-main .ai-step strong {
  grid-column: 1 / -1;
  grid-row: 2;
  color: #aab4b8;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.workspace-main .ai-step.active {
  border-color: #8cdd30;
  background: #112416;
}

.workspace-main .ai-step.active span,
.workspace-main .ai-step.ready span { background: var(--workspace-green); color: #0c1d11; }
.workspace-main .ai-step.active > svg,
.workspace-main .ai-step.ready > svg { color: var(--workspace-green); }
.workspace-main .ai-step.active strong,
.workspace-main .ai-step.ready strong { color: var(--workspace-text); }
.workspace-main .ai-step.ready { border-color: #4e8c31; background: #102017; }

.workspace-main .ai-upload-notice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 18px;
  min-height: 120px;
  margin: 38px 0 0;
  border-color: #274a24;
  border-radius: 8px;
  background: #0a1618;
  padding: 20px 24px;
}

.workspace-main .ai-upload-notice > svg { width: 28px; height: 28px; color: var(--workspace-green); stroke-width: 2; }
.workspace-main .ai-upload-notice strong { display: block; margin: 1px 0 6px; color: var(--workspace-text); font-size: 18px; font-weight: 700; }
.workspace-main .ai-upload-notice p { margin: 0; color: #a5b0b5; font-size: 16px; line-height: 1.5; }

.workspace-main .ai-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.workspace-main .ai-upload-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 472px;
  border: 1px solid #273840;
  border-radius: 8px;
  background: #0b161c;
  padding: 21px 20px 19px;
}

.workspace-main .ai-upload-card h3 { margin: 0 0 16px; color: var(--workspace-text); font-size: 20px; font-weight: 700; }
.workspace-main .ai-upload-card .field { gap: 7px; margin: 0 0 11px; }
.workspace-main .ai-upload-card .field span,
.workspace-main .ai-file-label { color: #d4dbdd; font-size: 14px; font-weight: 600; }
.workspace-main .ai-file-label { display: block; margin: 0 0 9px; }

.workspace-main .ai-source-dropdown {
  position: relative;
  z-index: 5;
  width: 100%;
  outline: 0;
}

.workspace-main .ai-source-dropdown input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.workspace-main .ai-source-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 49px;
  border: 1px solid #273a42;
  border-radius: 8px;
  background: #0a151a;
  color: var(--workspace-text);
  padding: 0 14px;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
}

.workspace-main .ai-source-trigger:hover,
.workspace-main .ai-source-trigger[aria-expanded="true"] {
  border-color: #5e9d35;
  background: #0e1d16;
}

.workspace-main .ai-source-trigger svg { width: 20px; height: 20px; color: #b7c2c5; transition: transform 140ms ease; }
.workspace-main .ai-source-trigger[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--workspace-green); }
.workspace-main .ai-source-trigger:focus-visible { outline: 2px solid rgba(151, 232, 62, .52); outline-offset: 2px; }

.workspace-main .ai-source-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 246px;
  overflow-y: auto;
  border: 1px solid #31444b;
  border-radius: 8px;
  background: #0b171c;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .38);
  padding: 6px;
}

.workspace-main .ai-source-menu button {
  min-height: 36px;
  border: 0 !important;
  border-radius: 5px;
  background: transparent !important;
  color: #eef2f0 !important;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}

.workspace-main .ai-source-menu button:hover,
.workspace-main .ai-source-menu button:focus-visible { background: #17331c !important; outline: 0; }
.workspace-main .ai-source-menu button.active { background: #1b3d20 !important; color: var(--workspace-green) !important; }

.workspace-main .ai-drop-zone {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 212px;
  border: 1px dashed #42545c;
  border-radius: 10px;
  background: #0a151a;
  color: var(--workspace-text);
  cursor: pointer;
  padding: 10px;
  text-align: center;
}

.workspace-main .ai-drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.workspace-main .ai-drop-zone > svg { width: 39px; height: 39px; margin-bottom: 7px; color: var(--workspace-green); stroke-width: 1.9; }
.workspace-main .ai-drop-zone.is-disabled > svg[data-lucide="loader-circle"] { animation: ai-upload-spin 900ms linear infinite; }
.workspace-main .ai-drop-zone strong { font-size: 17px; font-weight: 500; }
.workspace-main .ai-drop-zone > span { margin: 3px 0 7px; color: #a7b1b5; font-size: 14px; }
.workspace-main .ai-drop-zone em { border: 1px solid #30434b; border-radius: 7px; background: #0e1b20; color: #d7dddf; padding: 11px 16px; font-size: 16px; font-style: normal; font-weight: 600; }
.workspace-main .ai-drop-zone small { margin-top: 13px; color: #9aa8ae; font-size: 13px; line-height: 1.45; }
.workspace-main .ai-drop-zone:hover { border-color: var(--workspace-green); background: #0d1c17; }
.workspace-main .ai-drop-zone.is-drag-active {
  border-color: var(--workspace-green);
  background: #122a1b;
  box-shadow: inset 0 0 0 2px rgba(151, 232, 62, .16);
}
.workspace-main .ai-drop-zone:focus-within { outline: 2px solid rgba(151, 232, 62, .5); outline-offset: 2px; }
.workspace-main .ai-drop-zone.is-disabled { cursor: not-allowed; opacity: .52; }

.workspace-main .ai-file-selection {
  min-width: 0;
  margin-top: 12px;
  border: 1px solid #263940;
  border-radius: 7px;
  background: #091318;
  color: #9aa8ae;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.workspace-main .ai-file-selection.has-files {
  border-color: #3f692d;
  background: #0d1c16;
  color: #d8e1dc;
}

.workspace-main .ai-file-selection strong { color: var(--workspace-green); font-size: 13px; }
.workspace-main .ai-file-selection ul { display: grid; gap: 3px; margin: 6px 0 0; padding-left: 18px; }
.workspace-main .ai-file-selection li { max-width: 100%; overflow-wrap: anywhere; }

.workspace-main .ai-upload-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid #763d3d;
  border-radius: 7px;
  background: #251314;
  color: #ffb8b8;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.workspace-main .ai-upload-error svg { flex: 0 0 auto; width: 18px; height: 18px; }

.workspace-main .local-document-review {
  margin-top: 24px;
  border-color: #35502f;
}

.workspace-main .local-document-review .section-head {
  align-items: flex-start;
  gap: 20px;
}

.workspace-main .local-document-review .section-head p {
  margin: 6px 0 0;
}

.workspace-main .local-document-review-notice {
  margin: 14px 0 18px;
}

.workspace-main .opening-schedule-review {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.workspace-main .opening-schedule-review > .section-head h3,
.workspace-main .opening-schedule-card h4 {
  margin: 0 0 4px;
}

.workspace-main .opening-schedule-card {
  margin-top: 14px;
  border: 1px solid #35502f;
  border-radius: 8px;
  background: rgba(24, 52, 16, 0.16);
  padding: 16px;
}

.workspace-main .opening-schedule-card .section-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.workspace-main .opening-schedule-table {
  min-width: 920px;
}

.workspace-main .opening-schedule-table th:nth-child(1) { width: 48px; }
.workspace-main .opening-schedule-table th:nth-child(2) { width: 90px; }
.workspace-main .opening-schedule-table th:nth-child(3) { width: 190px; }
.workspace-main .opening-schedule-table th:nth-child(4) { width: 135px; }
.workspace-main .opening-schedule-table th:nth-child(5) { width: 110px; }

.workspace-main .local-calculation-mapping-preview {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.workspace-main .required-input-summary {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.workspace-main .required-input-summary .section-head {
  align-items: flex-start;
  gap: 18px;
}

.workspace-main .required-input-summary h3 {
  margin: 0 0 4px;
}

.workspace-main .required-input-summary .notice {
  margin-top: 14px;
}

.workspace-main .required-input-summary table {
  min-width: 980px;
}

.workspace-main .required-input-summary table th:nth-child(1) { width: 160px; }
.workspace-main .required-input-summary table th:nth-child(2) { width: 130px; }
.workspace-main .required-input-summary table th:nth-child(3) { width: 130px; }
.workspace-main .required-input-summary table th:nth-child(4) { width: 260px; }
.workspace-main .required-input-summary table th:nth-child(5) { width: 260px; }

.workspace-main .required-input-decision summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.workspace-main .required-input-decision-form {
  display: grid;
  gap: 8px;
  min-width: 220px;
  margin-top: 10px;
}

.workspace-main .required-input-decision-form .field span {
  font-size: 12px;
}

.workspace-main .required-input-summary .local-review-decision-form {
  min-width: 220px;
}

.workspace-main .local-calculation-mapping-preview h3 {
  margin: 0 0 4px;
}

.workspace-main .local-document-review table th:nth-child(1) { width: 72px; }
.workspace-main .local-document-review table th:nth-child(3) { width: 120px; }
.workspace-main .local-document-review table th:nth-child(4) { width: 190px; }
.workspace-main .local-document-review table th:nth-child(5) { width: 240px; }

.workspace-main .local-review-decision {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.workspace-main .local-review-decision .badge {
  justify-self: start;
}

.workspace-main .local-review-decision details summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.workspace-main .local-review-decision-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  min-width: 250px;
}

.workspace-main .local-review-decision-form .field span {
  font-size: 12px;
}

.workspace-main .local-review-decision-form .primary {
  width: 100%;
}

@media (max-width: 900px) {
  .workspace-main .local-document-review .section-head { display: grid; }
  .workspace-main .local-document-review .inline-list { justify-content: flex-start; }
}

.workspace-main .ai-upload-card .primary { width: 100%; min-height: 49px; margin-top: 20px; border-radius: 6px; font-size: 16px; font-weight: 650; }
.workspace-main .ai-upload-card .primary:disabled { border-color: #31511e !important; background: #183410 !important; color: #7c8d7b !important; opacity: 1; }

.workspace-main .ai-upload-help { display: grid; align-content: start; }
.workspace-main .ai-upload-help p { margin: 0; color: #a6b0b4; font-size: 16px; line-height: 1.5; }
.workspace-main .ai-upload-help button { width: fit-content; min-height: 47px; margin-top: 24px; border-radius: 6px; padding: 0 18px; color: #cbd4d6; font-size: 16px; font-weight: 600; }

@media (max-width: 1180px) {
  .workspace-main .ai-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .workspace-main .ai-step::after { display: none; }
  .workspace-main .ai-upload-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .workspace-main .ai-intake-header { display: grid; gap: 12px; }
  .workspace-main .ai-intake-header .badge { width: fit-content; margin-top: 0; }
  .workspace-main .ai-progress { grid-template-columns: 1fr; }
  .workspace-main .ai-step { min-height: 104px; }
  .workspace-main .ai-upload-notice { grid-template-columns: 1fr; }
}

@keyframes ai-upload-spin {
  to { transform: rotate(360deg); }
}

.account-action-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.account-action-layout > * {
  min-width: 0;
}

.account-action-layout .panel {
  align-self: center;
}

.account-verification-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-verification-notice p {
  margin: 4px 0 0;
}

.account-verification-notice button {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .account-action-layout {
    grid-template-columns: 1fr;
  }

  .account-verification-notice {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1180px) {
  .account-action-layout {
    grid-template-columns: 1fr;
  }
}

/* Detailed estimate: use the same white estimate surface as the Public Home example. */
.workspace-main .estimate-detail-panel,
.workspace-main .estimate-detail-panel .editable-estimate-panel {
  min-width: 0;
  max-width: 100%;
}

.estimate-detail-panel .editable-estimate-panel {
  --surface-soft: #f4f7f5;
  --line: #dce6e0;
  background: #fff;
  color: #172136;
}

.estimate-detail-panel .editable-estimate-panel .muted {
  color: #65736c;
}

.workspace-main .estimate-detail-panel .editable-estimate-panel .field > span {
  color: #172136;
}

.workspace-main .estimate-detail-panel .editable-estimate-panel .soft-panel {
  background: #f4f7f5;
  border-color: #dce6e0;
  color: #172136;
}

.estimate-detail-panel .editable-estimate-panel input,
.estimate-detail-panel .editable-estimate-panel select {
  background: #fff;
  color: #172136;
  border-color: #ccd7d0;
}

.estimate-detail-panel .editable-estimate-panel .inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
}

.estimate-detail-panel .editable-estimate-panel .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.estimate-detail-panel .editable-estimate-panel table {
  min-width: 1000px;
  color: #172136;
}

.estimate-detail-panel .editable-estimate-panel th,
.estimate-detail-panel .editable-estimate-panel td {
  color: #172136;
  border-color: #dce6e0;
}

.workspace-main .estimate-detail-panel {
  border-color: #dfe7e2;
  background: #ffffff;
  color: #172136;
  color-scheme: light;
}

.workspace-main .estimate-detail-panel h2,
.workspace-main .estimate-detail-panel h3,
.workspace-main .estimate-detail-panel .summary-card strong,
.workspace-main .estimate-detail-panel .estimate-section-total strong {
  color: #172136;
}

.workspace-main .estimate-detail-panel .eyebrow,
.workspace-main .estimate-detail-panel .estimate-detail-status .badge {
  border-color: #d3e3d5;
  background: #eef7ef;
  color: #34752f;
}

.workspace-main .estimate-detail-panel button:not(.primary) {
  border-color: #ccd7d0;
  background: #ffffff;
  color: #20302a;
}

.workspace-main .estimate-detail-panel button:not(.primary):hover {
  border-color: #88ad8d;
  background: #f3f8f4;
}

.workspace-main .estimate-detail-panel .summary-card {
  border-color: #dce6e0;
  background: #f7f9f8;
}

.workspace-main .estimate-detail-panel .summary-card .status-label {
  color: #65736c;
}

.workspace-main .estimate-detail-panel .estimate-section {
  border-color: #dce6e0;
  border-radius: 7px;
  background: #ffffff;
}

.workspace-main .estimate-detail-panel .estimate-section-header {
  border-bottom-color: #d8e2d6;
  background: #eaf5ee;
}

.workspace-main .estimate-detail-panel .estimate-section-header .muted,
.workspace-main .estimate-detail-panel .estimate-section-total span {
  color: #587068;
}

.workspace-main .estimate-detail-panel .table-wrap {
  background: #ffffff;
}

.workspace-main .estimate-detail-panel .estimate-lines-table {
  color: #171b19;
}

.workspace-main .estimate-detail-panel .estimate-lines-table th {
  border-color: #dce6e0;
  background: #f4f7f5;
  color: #4c5b54;
}

.workspace-main .estimate-detail-panel .estimate-lines-table td {
  border-color: #e7ede9;
  background: #ffffff;
  color: #202823;
}

.workspace-main .estimate-detail-panel .estimate-lines-table td:first-child {
  color: #34752f;
  font-weight: 700;
}

.workspace-main .estimate-detail-panel .estimate-lines-table tbody tr:hover td {
  background: #f7faf8;
}

.workspace-main .estimate-detail-panel .estimate-lines-table .estimate-line-subtotal td {
  background: #f0f5f2;
  color: #173f31;
  font-weight: 700;
}

.legal-consent-document { display: grid; gap: 10px; }
.legal-consent-choice { display: flex; align-items: flex-start; gap: 10px; }
.legal-consent-choice input { width: auto; flex: 0 0 auto; margin-top: 4px; }
.legal-consent-document a { color: #b5df87; overflow-wrap: anywhere; }
.legal-consent-document a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.legal-consent-history { display: grid; gap: 12px; overflow-wrap: anywhere; }
.legal-document-text { white-space: pre-wrap; overflow-wrap: anywhere; }

.public-legal-page .legal-document-text { max-width: 78ch; margin-top: 28px; color: #edf3ef; font-size: 16px; line-height: 1.65; }

/* The comparison belongs to the light estimate surface. */
.workspace-main .estimate-detail-panel .calculation-reconciliation {
  min-width: 0; max-width: 100%; background: #f4f7f5; color: #172136; border-color: #dce6e0;
}
.workspace-main .estimate-detail-panel .calculation-reconciliation .question-card {
  min-width: 0; background: #fff; color: #172136; border-color: #dce6e0;
}
.workspace-main .estimate-detail-panel .calculation-reconciliation .muted { color: #65736c; }
.workspace-main .estimate-detail-panel .calculation-reconciliation .field > span { color: #172136; }
.estimate-detail-panel .calculation-reconciliation .question-form {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); min-width: 0;
}
.estimate-detail-panel .calculation-reconciliation .ai-dialog-message,
.estimate-detail-panel .calculation-reconciliation .ai-dialog-bubble { min-width: 0; overflow-wrap: anywhere; }
.estimate-detail-panel .calculation-reconciliation .section-head { flex-wrap: wrap; }
.estimate-detail-panel .calculation-reconciliation input,
.estimate-detail-panel .calculation-reconciliation select { min-width: 0; max-width: 100%; background: #fff; color: #172136; border-color: #ccd7d0; }
.workspace-main .estimate-detail-panel .calculation-reconciliation .notice.success { background: #eaf5e8 !important; color: #204326 !important; border-color: #b8d9b1 !important; }

/* Validation identifies the exact project input without relying on colour alone. */
.workspace-main .manual-input-field.has-error {
  border: 2px solid #f87171;
}
.workspace-main .manual-input-field.has-error select,
.workspace-main .manual-input-field.has-error input {
  border-color: #f87171;
  box-shadow: 0 0 0 1px #f87171;
}
.workspace-main .manual-input-error {
  color: #fca5a5;
  font-size: .9rem;
  margin: .5rem 0 0;
}

/* Keep calculation feedback beside its sticky action, even in a long form. */
.manual-inputs-view .footer-actions .manual-calculation-feedback {
  flex: 1 0 100%;
  min-width: 0;
  display: grid;
  gap: 4px;
  max-height: 30vh;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.manual-inputs-view .footer-actions .manual-calculation-feedback.running {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e40af;
}

.estimate-price-missing > td {
  background: #fff7df;
  color: #713f12;
  border-top: 1px solid #d99b24;
  border-bottom: 1px solid #d99b24;
}
.editable-estimate-panel .estimate-price-missing .missing-price-input {
  border: 2px solid #c78010;
  background: #fffdf5;
  color: #713f12;
}

/* Estimate workflow controls, 2026-10-31. */
.ledger-summary-caption > .ledger-text-action { display: block; margin-top: 8px; }
.project-manage-actions { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.team-invite-form { display:grid; grid-template-columns:repeat(3,minmax(160px,1fr)); gap:14px; padding:18px 0; }
.team-invite-form h3,.team-invite-form p { grid-column:1/-1; }
.team-invite-form button { align-self:end; justify-self:start; }
.team-role-help { margin:12px 0 22px; }
.documents-export-choice { flex-wrap:wrap; }
@media(max-width:760px) { .team-invite-form { grid-template-columns:1fr; } }

.view-team .participant-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); }
.view-team .participant-card { display:grid; grid-template-columns:42px minmax(0,1fr); align-items:start; min-width:0; }
.view-team .participant-card > div { min-width:0; overflow-wrap:anywhere; }
.view-team .participant-card .inline-form { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; margin-top:12px; min-width:0; width:100%; }
.view-team .participant-card .inline-form button { justify-self:start; max-width:100%; }

/* Keep project name and equally sized actions on one baseline. */
.project-rename-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, 88px);
  align-items: end;
  gap: 8px;
  margin-top: 12px;
  min-width: 0;
}
.project-rename-form .field { grid-template-columns: minmax(0, 1fr); min-width: 0; margin: 0; }
.workspace-main .project-rename-form input,
.workspace-main .project-rename-form button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 10px;
  font-size: 14px;
  line-height: 1;
}
.workspace-main .project-rename-form button { padding: 0 6px; white-space: nowrap; }
.estimate-save-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.estimate-name-form { grid-template-columns:minmax(0,1fr) minmax(170px,auto) 88px; margin-bottom:12px; }
@media(max-width:600px) { .estimate-name-form { grid-template-columns:1fr 1fr; } .estimate-name-form .field { grid-column:1 / -1; } }

/* Shared explicit gable geometry across all wall technologies. */
.manual-gables-group { grid-column: 1 / -1; min-width: 0; padding: 14px; border: 1px solid #4a694e; border-radius: 10px; background: rgba(87, 143, 76, .07); }
.manual-gables-switch { max-width: 360px; margin-bottom: 12px; }
.manual-gables-group > .manual-input-fields { margin: 0; }
.manual-gables-group .manual-input-field { margin: 0; }
