:root {
  --estimate-ink: #102419;
  --estimate-forest: #0d3b25;
  --estimate-green: #1d7442;
  --estimate-orange: #ef9125;
  --estimate-paper: #f4f6f3;
  --estimate-line: #c8d2ca;
  --estimate-muted: #5b685f;
  --estimate-alert: #a94f16;
}

.property-account-chip { display: none !important; }

* { box-sizing: border-box; }
body { background: var(--estimate-paper); color: var(--estimate-ink); margin: 0; }
button, input, select, textarea { font: inherit; }
button, .button-secondary { border-radius: 4px; }

.estimate-header {
  align-items: center;
  background: #07180f;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - 1240px) / 2));
}
.estimate-brand { align-items: center; color: #fff; display: flex; gap: 12px; text-decoration: none; }
.estimate-brand img { height: 46px; object-fit: contain; width: 46px; }
.estimate-brand span { display: grid; gap: 2px; }
.estimate-brand strong { font-size: 1rem; text-transform: uppercase; }
.estimate-brand small { color: #c6d0c8; font-family: var(--font-mono, monospace); font-size: .68rem; text-transform: uppercase; }
.estimate-header nav { display: flex; gap: 20px; }
.estimate-header nav a { border-bottom: 1px solid var(--estimate-orange); color: #fff; font-size: .78rem; font-weight: 700; padding: 8px 0; text-decoration: none; }

.estimate-page { margin: 0 auto; max-width: 1240px; padding: 44px 20px 80px; }
.estimate-intro { max-width: 820px; }
.estimate-kicker { color: #b75d0f; font-family: var(--font-mono, monospace); font-size: .72rem; font-weight: 700; margin: 0 0 8px; text-transform: uppercase; }
.estimate-intro h1 { font-size: clamp(2rem, 5vw, 4.25rem); line-height: 1.02; margin: 0; max-width: 900px; }
.estimate-intro > p:last-child { color: var(--estimate-muted); font-size: 1.05rem; line-height: 1.65; max-width: 740px; }

.load-state { align-items: center; background: #fff; border-left: 4px solid var(--estimate-orange); display: flex; gap: 16px; margin-top: 34px; padding: 20px; }
.load-state.is-error { border-color: #b12a2a; }
.load-state.is-ready { display: none; }
.load-mark { animation: estimate-pulse 1s ease-in-out infinite alternate; background: var(--estimate-orange); border-radius: 50%; height: 14px; width: 14px; }
.load-state.is-error .load-mark { animation: none; background: #b12a2a; }
.load-state strong, .load-state p { display: block; margin: 0; }
.load-state p { color: var(--estimate-muted); font-size: .88rem; margin-top: 4px; }
.load-recovery { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.load-recovery a { border: 1px solid #8c9b90; color: var(--estimate-ink); font-size: .78rem; font-weight: 700; padding: 9px 12px; text-decoration: none; }
@keyframes estimate-pulse { to { opacity: .35; } }

.plan-context { background: var(--estimate-ink); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-top: 34px; }
.plan-context div { border-right: 1px solid rgba(255,255,255,.17); min-width: 0; padding: 18px 20px; }
.plan-context div:last-child { border: 0; }
.plan-context span, .range-ledger span, .system-primary > span, .system-layers > span, .condition-profile > span { color: #e7a052; display: block; font-family: var(--font-mono, monospace); font-size: .65rem; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; }
.plan-context strong { display: block; font-size: .82rem; overflow-wrap: anywhere; }

.estimate-progress { background: #fff; border: 1px solid var(--estimate-line); border-top: 0; }
.estimate-progress ol { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.estimate-progress li { border-right: 1px solid var(--estimate-line); min-width: 0; }
.estimate-progress li:last-child { border: 0; }
.estimate-progress button { align-items: center; background: transparent; border: 0; color: #707b73; display: flex; gap: 11px; min-height: 70px; padding: 12px 18px; text-align: left; width: 100%; }
.estimate-progress button:not(:disabled) { cursor: pointer; }
.estimate-progress button:disabled { opacity: .55; }
.estimate-progress button[aria-current="step"] { box-shadow: inset 0 -4px 0 var(--estimate-orange); color: var(--estimate-ink); }
.estimate-progress button.is-complete { color: var(--estimate-green); }
.estimate-progress button span { align-items: center; border: 1px solid currentColor; border-radius: 50%; display: flex; flex: 0 0 30px; height: 30px; justify-content: center; }
.estimate-progress button[aria-current="step"] span { background: var(--estimate-ink); border-color: var(--estimate-ink); color: #fff; }
.estimate-progress button strong { font-size: .72rem; text-transform: uppercase; }

.estimate-step { background: #fff; border: 1px solid var(--estimate-line); border-top: 0; padding: clamp(26px, 5vw, 54px); }
.step-heading { max-width: 760px; }
.step-heading h2 { font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 1.08; margin: 0; }
.step-heading > p:last-child { color: var(--estimate-muted); line-height: 1.6; }

.measurement-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); margin-top: 30px; background: var(--estimate-line); border: 1px solid var(--estimate-line); }
.measurement-grid article { background: #f9faf8; min-width: 0; padding: 22px; }
.measurement-grid span { color: var(--estimate-muted); display: block; font-size: .72rem; text-transform: uppercase; }
.measurement-grid strong { display: block; font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-variant-numeric: tabular-nums; margin: 10px 0; }
.measurement-grid small { color: var(--estimate-muted); line-height: 1.4; }

.evidence-note { border-left: 3px solid var(--estimate-orange); margin-top: 26px; padding: 4px 0 4px 16px; }
.evidence-note strong { font-size: .85rem; }
.evidence-note p { color: var(--estimate-muted); line-height: 1.55; margin: 5px 0 0; }
.step-actions { align-items: center; border-top: 1px solid var(--estimate-line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 34px; padding-top: 24px; }
.step-actions button, .step-actions a, .consultation button { align-items: center; background: var(--estimate-forest); border: 1px solid var(--estimate-forest); color: #fff; cursor: pointer; display: inline-flex; font-weight: 700; justify-content: center; min-height: 48px; padding: 12px 20px; text-decoration: none; }
.step-actions .button-secondary, .button-secondary { background: transparent; border: 1px solid #8c9b90; color: var(--estimate-ink); }
.step-actions button:focus-visible, .step-actions a:focus-visible, .estimate-progress button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .consultation button:focus-visible { outline: 3px solid rgba(239,145,37,.45); outline-offset: 3px; }

.conditions-form { display: grid; gap: 26px; margin-top: 30px; }
.conditions-form fieldset { border: 0; margin: 0; padding: 0; }
.conditions-form legend { font-weight: 700; margin-bottom: 12px; }
.choice-row, .choice-grid { display: grid; gap: 10px; }
.choice-row { grid-template-columns: repeat(4, 1fr); }
.choice-grid { grid-template-columns: repeat(5, 1fr); }
.choice-row label, .choice-grid label { cursor: pointer; min-width: 0; position: relative; }
.choice-row input, .choice-grid input { opacity: 0; pointer-events: none; position: absolute; }
.choice-row label > span, .choice-grid label > span { background: #f8faf7; border: 1px solid var(--estimate-line); display: grid; min-height: 54px; padding: 14px; }
.choice-grid label > span { gap: 5px; min-height: 92px; }
.choice-grid small { color: var(--estimate-muted); line-height: 1.35; }
.choice-row input:checked + span, .choice-grid input:checked + span { border-color: var(--estimate-orange); box-shadow: inset 0 3px 0 var(--estimate-orange); }
.choice-row input:focus-visible + span, .choice-grid input:focus-visible + span { outline: 3px solid rgba(239,145,37,.45); outline-offset: 2px; }
.conditions-columns { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.conditions-form > label, .conditions-columns label, .consultation label { display: grid; gap: 7px; font-size: .8rem; font-weight: 700; }
.conditions-form select, .conditions-form textarea, .consultation input, .consultation select { background: #fff; border: 1px solid #9cab9f; border-radius: 4px; color: var(--estimate-ink); min-height: 48px; padding: 10px 12px; }
.conditions-form textarea { resize: vertical; }
.condition-profile { background: #eef4ef; border-left: 3px solid var(--estimate-green); margin-top: 26px; padding: 20px; }
.condition-profile > span { color: var(--estimate-green); }
.condition-profile strong { display: block; font-size: 1.15rem; }
.condition-profile p { color: var(--estimate-muted); line-height: 1.5; margin-bottom: 0; }
.fixed-system-requirements { background: #f2f7f2; border: 1px solid #b8c9bc; display: grid; gap: 0; grid-template-columns: repeat(2, 1fr); }
.fixed-system-requirements > strong { border-bottom: 1px solid #b8c9bc; color: var(--estimate-green); font-family: var(--font-mono, monospace); font-size: .72rem; grid-column: 1 / -1; padding: 12px 15px; text-transform: uppercase; }
.fixed-system-requirements > div { display: grid; gap: 4px; padding: 15px; }
.fixed-system-requirements > div + div { border-left: 1px solid #b8c9bc; }
.fixed-system-requirements span { color: var(--estimate-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.fixed-system-requirements b { font-size: 1rem; }
.fixed-system-requirements small { color: var(--estimate-muted); line-height: 1.45; }

.system-review { display: grid; gap: 1px; grid-template-columns: .85fr 1.15fr; margin-top: 30px; background: var(--estimate-line); border: 1px solid var(--estimate-line); }
.system-review > div { background: #f9faf8; padding: 26px; }
.system-primary h3 { font-size: 1.7rem; margin: 6px 0; }
.system-primary p { color: var(--estimate-muted); }
.system-primary dl { border-top: 1px solid var(--estimate-line); margin: 22px 0 0; }
.system-primary dl div { display: grid; grid-template-columns: 130px 1fr; padding: 12px 0; }
.system-primary dt { color: var(--estimate-muted); font-size: .72rem; text-transform: uppercase; }
.system-primary dd { font-weight: 700; margin: 0; }
.system-layers ul { list-style: none; margin: 12px 0 0; padding: 0; }
.system-layers li { border-top: 1px solid var(--estimate-line); display: grid; gap: 3px; padding: 11px 0; }
.system-layers li small { color: var(--estimate-muted); }

.range-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); margin-top: 30px; }
.range-result { background: var(--estimate-ink); color: #fff; padding: clamp(26px, 5vw, 48px); }
.range-label { color: #f4b466; font-family: var(--font-mono, monospace); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.range-result > strong { display: block; font-size: clamp(2.25rem, 6vw, 5rem); font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1; margin: 16px 0; }
.range-result > p { color: #cbd6ce; line-height: 1.55; max-width: 680px; }
.range-math { border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; padding-top: 20px; }
.range-math div { border-right: 1px solid rgba(255,255,255,.18); padding-right: 16px; }
.range-math div + div { padding-left: 16px; }
.range-math div:last-child { border: 0; }
.range-math span { color: #b9c7bd; display: block; font-size: .68rem; text-transform: uppercase; }
.range-math strong { display: block; font-size: 1rem; margin-top: 6px; }
.range-ledger { background: #fff7ed; border: 1px solid #e3c5a3; padding: 24px; }
.range-ledger div { border-bottom: 1px solid #e3c5a3; padding: 13px 0; }
.range-ledger div:last-child { border: 0; }
.range-ledger span { color: #a35214; }
.range-ledger strong { font-size: .86rem; line-height: 1.4; }
.range-detail-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.range-detail-grid article { border-top: 3px solid var(--estimate-line); padding: 18px 3px; }
.range-detail-grid h3 { font-size: 1rem; margin: 0 0 10px; }
.range-detail-grid p, .range-detail-grid li { color: var(--estimate-muted); font-size: .86rem; line-height: 1.55; }
.range-detail-grid ul { margin: 0; padding-left: 18px; }

.consultation { background: #edf3ee; border-top: 4px solid var(--estimate-green); display: grid; gap: 30px; grid-template-columns: .8fr 1.2fr; margin-top: 34px; padding: clamp(24px, 4vw, 40px); }
.consultation h3 { font-size: 1.8rem; margin: 0; }
.consultation > div > p:last-child { color: var(--estimate-muted); line-height: 1.6; }
.consultation form { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.consultation .wide { grid-column: 1 / -1; }
.consultation .consent { align-items: start; display: grid; font-weight: 400; grid-template-columns: 20px 1fr; line-height: 1.45; }
.consultation .consent input { min-height: 18px; width: 18px; }
.consultation button { width: 100%; }
.consultation button:disabled { cursor: not-allowed; opacity: .6; }
.form-status { color: var(--estimate-muted); margin: 0; min-height: 22px; }
.form-status.is-error { color: #a72626; }
.form-status.is-success { color: #126c32; }

.planning-boundary { border: 1px solid #d49a58; margin-top: 24px; padding: 20px; }
.planning-boundary strong { color: var(--estimate-alert); font-family: var(--font-mono, monospace); font-size: .72rem; text-transform: uppercase; }
.planning-boundary p { color: var(--estimate-muted); line-height: 1.55; margin: 6px 0 0; }

@media (max-width: 900px) {
  .plan-context, .measurement-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .conditions-columns, .range-detail-grid, .fixed-system-requirements { grid-template-columns: 1fr; }
  .fixed-system-requirements > div + div { border-left: 0; border-top: 1px solid #b8c9bc; }
  .system-review, .range-layout, .consultation { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .estimate-header { align-items: flex-start; gap: 16px; }
  .estimate-header nav { align-items: flex-end; flex-direction: column; gap: 2px; }
  .estimate-page { padding: 30px 12px 60px; }
  .load-state { align-items: flex-start; flex-wrap: wrap; }
  .load-recovery { margin-left: 30px; }
  .plan-context, .measurement-grid { grid-template-columns: 1fr; }
  .estimate-progress { overflow-x: auto; }
  .estimate-progress ol { min-width: 610px; }
  .estimate-progress button { min-height: 62px; padding: 10px 12px; }
  .estimate-step { padding: 26px 16px; }
  .choice-row, .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .range-math { grid-template-columns: 1fr; }
  .range-math div, .range-math div + div { border-bottom: 1px solid rgba(255,255,255,.18); border-right: 0; padding: 12px 0; }
  .range-math div:last-child { border-bottom: 0; }
  .consultation form { grid-template-columns: 1fr; }
  .consultation .wide { grid-column: auto; }
  .step-actions { align-items: stretch; flex-direction: column-reverse; }
  .step-actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .load-mark { animation: none; }
  * { scroll-behavior: auto !important; }
}
