:root {
  color-scheme: light;
  --navy: #071b36;
  --navy-2: #0d2b50;
  --blue: #1569aa;
  --sky: #eaf5fc;
  --gold: #f2c94c;
  --red: #c94046;
  --green: #1b7b55;
  --ink: #172334;
  --muted: #637083;
  --line: #dbe3ec;
  --surface: #ffffff;
  --canvas: #f3f6f9;
  --shadow: 0 18px 50px rgba(7, 27, 54, .1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #edf2f7; color: var(--ink); font-size: 16px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

.topbar { min-height: 96px; padding: 8px clamp(16px, 4vw, 64px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; background: rgba(255,255,255,.98); color: var(--ink); border-bottom: 1px solid rgba(15,76,129,.15); }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand img { width: auto; height: 78px; display: block; object-fit: contain; }
.brand div { display: grid; gap: 2px; }
.brand strong { font-size: 1rem; letter-spacing: .01em; }
.brand span { font-size: .68rem; color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.topbar-actions { grid-column: 3; display: flex; align-items: center; gap: 20px; }
.topbar-actions a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.topbar-actions a:hover, .topbar-actions a:focus-visible { color: var(--blue); }
.topbar-actions strong { margin-left: 5px; color: var(--blue); }
.home-link { padding: 9px 14px; border: 1px solid rgba(15,76,129,.2); border-radius: 9px; color: var(--blue) !important; font-weight: 750; }
.app-shell { max-width: 1440px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 40px) 56px; }
.estimator-surface { padding: clamp(22px, 3vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.experience-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr); gap: clamp(22px, 3vw, 38px); align-items: start; }
.experience-grid > .wizard-card { grid-column: 1; grid-row: 1; }
.preview-column { grid-column: 2; grid-row: 1; position: sticky; top: 20px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.section-heading.compact { margin-bottom: 18px; }
.eyebrow { display: block; color: var(--blue); text-transform: uppercase; font-size: .73rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.55rem, 3vw, 2rem); margin-bottom: 0; color: var(--navy); }
h2 { font-size: 1.4rem; margin-bottom: 0; color: var(--navy); }
h3 { font-size: 1rem; }
.save-state { font-size: .78rem; color: var(--muted); padding-top: 9px; white-space: nowrap; }

.customer-only { display: none; }
.customer-mode .customer-only { display: block; }
.customer-mode .wizard-card:not([hidden]) { display: flex; }
.wizard-card { min-height: 390px; padding: clamp(22px, 3vw, 30px); flex-direction: column; border: 1px solid #b8d4e8; border-radius: 16px; background: linear-gradient(135deg, #f9fdff, #eaf5fc); }
.wizard-card h2 { margin-bottom: 8px; font-size: clamp(1.28rem, 2vw, 1.65rem); }
.wizard-card > p { margin-bottom: 18px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.step-count { display: block; margin-bottom: 7px; color: var(--blue); text-transform: uppercase; font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.qualification-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.qualification-choice { min-height: 112px; display: grid; gap: 6px; align-content: center; padding: 18px; border: 1px solid #bfd0df; border-radius: 12px; background: white; color: var(--navy); text-align: left; }
.qualification-choice:hover, .qualification-choice.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,105,170,.11); }
.qualification-choice strong { font-size: .9rem; }
.qualification-choice span { color: var(--muted); font-size: .75rem; line-height: 1.35; }
.known-footage-card, .measurement-help-card { margin: 0; }
.manual-footage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.manual-footage-grid .input-with-unit input { width: 100%; }
.manual-footage-grid label > small { color: var(--muted); font-size: .72rem; font-weight: 500; line-height: 1.35; }
.known-footage-card .measurement-disclaimer { margin: 15px 0 0; padding-top: 13px; border-top: 1px solid #d4e2ec; font-size: .75rem; }
.help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.help-actions a { display: inline-grid; place-items: center; text-decoration: none; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
.wizard-next { min-width: 170px; }
.text-back-button { border: 0; background: transparent; color: var(--blue); padding: 9px 2px; font-weight: 800; }
.wizard-error { min-height: 18px; margin: 9px 0 0 !important; color: var(--red) !important; font-size: .78rem !important; font-weight: 700; }

.coverage-question { margin: 0 0 16px; padding: 16px; border: 1px solid #b8d4e8; border-radius: 14px; background: linear-gradient(135deg, #f5fbff, #eaf5fc); }
.coverage-question legend { padding: 0 7px; color: var(--navy); font-weight: 800; font-size: 1rem; }
.coverage-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coverage-option { min-height: 76px; display: flex; grid-template-columns: none; flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #cbd9e5; border-radius: 11px; background: white; cursor: pointer; }
.coverage-option.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,105,170,.11); }
.coverage-option input { width: 18px; min-height: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.coverage-option span { display: grid; gap: 4px; }
.coverage-option strong { color: var(--navy); font-size: .86rem; }
.coverage-option small { color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.35; }
.coverage-question > p { margin: 11px 2px 0; color: #40566d; font-size: .77rem; line-height: 1.45; }

.upload-card { padding: 18px; background: var(--sky); border: 1px dashed #86b8d8; border-radius: 14px; }
.upload-button { width: 100%; display: flex; gap: 12px; text-align: left; color: var(--navy); align-items: center; }
.upload-button span:last-child { display: grid; gap: 3px; }
.upload-button small { color: var(--muted); font-weight: 500; }
.upload-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); font-size: 1.5rem; }
.native-photo-input { margin: 14px 0 0 54px; width: calc(100% - 54px); min-height: 46px; padding: 5px; background: white; }
.native-photo-input::file-selector-button { min-height: 34px; margin-right: 10px; border: 0; border-radius: 7px; padding: 7px 12px; color: white; background: var(--blue); font-weight: 800; cursor: pointer; }
.upload-footer { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin: 12px 0 0 54px; }
.upload-footer p { font-size: .8rem; color: var(--muted); margin: 0; }
.upload-footer button { flex: 0 0 auto; border: 0; padding: 5px; background: transparent; color: var(--blue); font-size: .78rem; font-weight: 800; }
.upload-card .privacy-note { margin: 10px 0 0 54px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.measurement-explainer { margin-top: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.measurement-explainer > strong { color: var(--navy); font-size: .86rem; }
.measurement-explainer ol { margin: 8px 0; padding-left: 20px; color: #415066; font-size: .78rem; line-height: 1.45; }
.measurement-explainer li + li { margin-top: 3px; }
.measurement-explainer p { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #e1e8ef; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.measurement-explainer p strong { color: #344257; }

.photo-tabs { display: flex; gap: 8px; margin: 16px 0 10px; overflow-x: auto; padding-bottom: 3px; }
.photo-tab { position: relative; border: 2px solid transparent; background: #e8eef4; border-radius: 10px; padding: 0; flex: 0 0 78px; height: 56px; overflow: hidden; }
.photo-tab.is-active { border-color: var(--blue); }
.photo-tab img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tab span { position: absolute; inset: auto 0 0; background: rgba(7,27,54,.78); color: white; font-size: .65rem; padding: 3px; }
.photo-add { border: 1px dashed #9cabb9; color: var(--blue); background: white; font-weight: 800; }
.stage-view-switch { width: max-content; display: flex; gap: 3px; padding: 3px; margin: 0 0 9px auto; background: #e5ebf1; border-radius: 9px; }
.stage-view { border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 7px 12px; font-size: .78rem; font-weight: 800; }
.stage-view.is-active { background: white; color: var(--navy); box-shadow: 0 2px 7px rgba(7,27,54,.1); }

.measurement-stage { position: relative; min-height: 390px; display: grid; place-items: center; background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; touch-action: none; }
.measurement-stage canvas { display: block; max-width: 100%; max-height: 68vh; cursor: crosshair; }
.measurement-stage.is-empty canvas { display: none; }
.stage-empty { text-align: center; color: var(--muted); padding: 42px 20px; }
.stage-empty > span { display: block; font-size: 3rem; color: #9bb0c4; margin-bottom: 8px; }
.stage-empty strong { color: var(--navy); }
.stage-empty p { margin: 6px 0 0; font-size: .9rem; }
.canvas-badge { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(7,27,54,.92); color: white; border-radius: 999px; padding: 8px 14px; font-size: .8rem; font-weight: 700; pointer-events: none; white-space: nowrap; }
.preview-caption { position: absolute; left: 12px; bottom: 12px; background: rgba(7,27,54,.84); color: white; border-radius: 7px; padding: 7px 10px; font-size: .72rem; pointer-events: none; }

.tool-panel, .runs-card, .materials-card, .estimate-card { border: 1px solid var(--line); border-radius: 14px; margin-top: 14px; overflow: hidden; }
.tool-row { padding: 15px; display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: end; }
.tool-row + .tool-row { border-top: 1px solid var(--line); }
.tool-copy { align-self: center; display: grid; gap: 3px; }
.tool-copy strong { color: var(--navy); }
.tool-copy span { color: var(--muted); font-size: .8rem; }
label { display: grid; gap: 6px; color: #344257; font-size: .8rem; font-weight: 700; }
input, select { width: 100%; min-height: 42px; border: 1px solid #cbd6e1; border-radius: 9px; background: white; color: var(--ink); padding: 9px 11px; font-size: .9rem; }
input:focus, select:focus, button:focus-visible { outline: 3px solid rgba(21,105,170,.2); outline-offset: 2px; border-color: var(--blue); }
.input-with-unit { display: flex; align-items: center; border: 1px solid #cbd6e1; border-radius: 9px; overflow: hidden; background: white; }
.input-with-unit input { border: 0; width: 82px; border-radius: 0; }
.input-with-unit b { padding-right: 10px; color: var(--muted); }
.primary-button, .secondary-button, .text-button { min-height: 42px; border-radius: 9px; padding: 9px 14px; font-weight: 800; border: 1px solid transparent; font-size: .86rem; }
.primary-button { color: white; background: var(--blue); }
.primary-button:hover { background: #0f568e; }
.secondary-button { color: var(--navy); background: white; border-color: #b8c6d5; }
.text-button { background: transparent; color: var(--red); }
.scale-status { padding: 9px 15px; background: #f8fafc; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.scale-status.is-ready { color: var(--green); font-weight: 700; }
.run-actions { padding: 12px 15px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #f8fafc; }
.runs-card { padding: 15px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-heading h2, .card-heading h3 { margin: 0; }
.run-item { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #edf1f5; }
.run-item:first-child { margin-top: 10px; }
.run-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--run-color); }
.run-item span { color: var(--muted); font-size: .8rem; }
.run-item strong { color: var(--navy); }
.run-item.is-excluded { opacity: .58; }
.run-item em { color: var(--red); font-size: .68rem; font-style: normal; font-weight: 800; }
.delete-run { border: 0; background: transparent; color: var(--red); font-weight: 700; padding: 6px; }
.edit-hint { margin: 8px 0 0; color: var(--muted); font-size: .76rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.contact-grid .wide { grid-column: auto; }
.project-grid { margin-top: 4px; }
.help { display: inline-grid; place-items: center; border-radius: 50%; width: 17px; height: 17px; background: #dceaf5; color: var(--blue); font-size: .7rem; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 15px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.check-row input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.check-row span { display: grid; gap: 3px; }
.check-row small { color: var(--muted); font-weight: 500; }
.concept-preview { --concept-bulb: #ffd878; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f8fafc; box-shadow: 0 12px 30px rgba(7,27,54,.08); }
.concept-preview-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.concept-preview-heading h3 { margin: 0; color: var(--navy); font-size: 1rem; }
.concept-preview-heading > span { padding: 5px 8px; border-radius: 999px; background: #dcecf7; color: #0c4e79; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.concept-preview svg { display: block; width: 100%; height: auto; border-radius: 11px; }
.concept-house-body { display: none; }
.concept-preview[data-story="1"] .concept-body-1,
.concept-preview[data-story="2"] .concept-body-2,
.concept-preview[data-story="3"] .concept-body-3 { display: block; }
.concept-preview[data-story="1"] .concept-roof-assembly { transform: translateY(120px); }
.concept-preview[data-story="2"] .concept-roof-assembly { transform: translateY(60px); }
.concept-preview[data-story="3"] .concept-roof-assembly { transform: translateY(0); }
.concept-roof-assembly { transition: transform .22s ease; }
.concept-windows rect { fill: #f5cc68; stroke: #664d34; stroke-width: 5; }
.concept-wire { fill: none; stroke: #172332; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.concept-lights { fill: none; stroke: var(--concept-bulb); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 13; filter: url(#conceptGlow); }
.concept-preview.is-multicolor .concept-lights { stroke: url(#conceptMulticolor); }
.concept-ridge { opacity: 0; transition: opacity .2s ease; }
.concept-preview.includes-ridges .concept-ridge { opacity: 1; }
.concept-preview-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; padding-top: 10px; }
.concept-preview-footer span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .68rem; }
.concept-preview-footer i { width: 18px; height: 4px; border-radius: 999px; background: var(--concept-bulb); box-shadow: 0 0 6px var(--concept-bulb); }
.concept-preview-footer .legend-ridge { background: #60bde8; box-shadow: 0 0 6px #60bde8; }
.concept-preview-footer strong { margin-left: auto; color: var(--navy); font-size: .7rem; text-align: right; }
.concept-preview > p { margin: 9px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.estimate-card { background: var(--navy); color: white; padding: 18px; border: 0; }
.estimate-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.estimate-total span { color: #c8d8e8; }
.estimate-total strong { font-size: 2rem; color: var(--gold); }
.estimate-meta { display: flex; justify-content: space-between; color: #aebfd1; font-size: .8rem; margin-top: 4px; }
.breakdown { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); }
.breakdown-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .82rem; color: #d4e0ec; }
.breakdown-row.total-line { color: white; font-weight: 800; padding-top: 8px; }
.accuracy-note { margin: 14px 0 0; color: #b8caDB; font-size: .75rem; line-height: 1.45; }
.review-card { gap: 14px; }
.materials-card { padding: 15px; margin-top: 0; background: white; }
.materials-card .card-heading span { font-size: .75rem; color: var(--muted); }
.materials-card dl { margin: 10px 0; }
.materials-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #edf1f5; }
.materials-card dt { color: var(--muted); font-size: .82rem; }
.materials-card dd { margin: 0; color: var(--navy); font-weight: 800; font-size: .85rem; }
.materials-card p { margin: 8px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.package-results { margin-top: 20px; }
.package-intro h2 { font-size: 1.35rem; margin-bottom: 5px; }
.package-intro > p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.measurement-summary { margin: 13px 0; padding: 11px 12px; border-radius: 10px; background: var(--sky); display: grid; gap: 3px; }
.measurement-summary strong { color: var(--navy); }
.measurement-summary span { color: var(--muted); font-size: .75rem; line-height: 1.4; }
.package-grid { display: grid; gap: 13px; }
.package-card { position: relative; border: 1px solid #cfd9e3; border-radius: 14px; padding: 17px; background: white; transition: border-color .18s ease, box-shadow .18s ease; }
.package-card-featured { border: 2px solid var(--blue); padding: 16px; }
.package-card.is-selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,123,85,.12); }
.package-badge { display: inline-block; margin: -4px 0 11px; padding: 5px 8px; border-radius: 999px; color: #0c4e79; background: #dcedf8; font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.returning-badge { color: #5b4310; background: #fff0bd; }
.package-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 13px; }
.package-card-heading > div > span { display: block; color: var(--muted); font-size: .72rem; margin-bottom: 2px; }
.package-card-heading h3 { margin: 0; color: var(--navy); font-size: 1.12rem; }
.package-card-heading > strong { color: var(--navy); font-size: 1.5rem; white-space: nowrap; }
.package-card-featured .package-card-heading > strong { color: var(--blue); }
.package-rate { margin-top: 7px; color: var(--muted); font-size: .78rem; }
.package-breakdown { margin: 12px 0; padding: 10px 0; border-top: 1px solid #e6ecf2; border-bottom: 1px solid #e6ecf2; }
.package-breakdown .breakdown-row { color: var(--muted); }
.package-breakdown .breakdown-row strong { color: var(--navy); }
.package-card h4 { color: var(--navy); font-size: .8rem; margin: 14px 0 7px; }
.included-list { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.included-list li { position: relative; padding-left: 22px; color: #344257; font-size: .79rem; line-height: 1.4; }
.included-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--green); font-weight: 900; }
.package-fine-print { min-height: 0; margin: 14px 0; padding: 10px; border-radius: 8px; background: #f5f7fa; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.package-fine-print strong { color: #344257; }
.package-select { width: 100%; }
.common-terms { margin-top: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.common-terms > strong { color: var(--navy); font-size: .82rem; }
.common-terms ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.common-terms li + li { margin-top: 4px; }
.selected-package-message { margin: 11px 0 0; text-align: center; color: var(--muted); font-size: .78rem; }
.selected-package-message.is-selected { color: var(--green); font-weight: 800; }
.proposal-closeout { margin-top: 0; padding-top: 17px; border-top: 1px solid var(--line); }
.proposal-closeout h3 { margin-bottom: 4px; color: var(--navy); font-size: 1rem; }
.proposal-closeout > p { margin-bottom: 12px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.private-delivery { padding: 17px; border: 1px solid #b8d4e8; border-radius: 14px; background: linear-gradient(135deg, #f7fcff, #eaf5fc); }
.private-delivery > small { display: block; margin-top: 10px; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.consent-row { display: flex; grid-template-columns: none; flex-direction: row; align-items: flex-start; gap: 9px; margin: 12px 0; padding: 11px; border: 1px solid #cad8e4; border-radius: 9px; background: white; cursor: pointer; }
.consent-row input { width: 18px; min-height: 18px; margin: 1px 0 0; flex: 0 0 auto; }
.consent-row span { color: #415066; font-size: .72rem; font-weight: 500; line-height: 1.45; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.delivery-status { min-height: 0; margin: 10px 0 0; font-size: .78rem; font-weight: 700; line-height: 1.45; }
.delivery-status.is-success { color: var(--green); }
.delivery-status.is-error { color: var(--red); }

.proposal-page { min-height: 100vh; }
.proposal-phone { color: white; font-weight: 800; text-decoration: none; }
.proposal-shell { width: min(1040px, calc(100% - 28px)); margin: 30px auto 60px; display: grid; gap: 18px; }
.proposal-loading, .proposal-hero, .proposal-packages, .proposal-next { padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.proposal-loading { text-align: center; }
.proposal-loading .primary-button, .proposal-next .primary-button { display: inline-grid; place-items: center; margin-top: 10px; text-decoration: none; }
.proposal-hero { color: white; background: linear-gradient(135deg, var(--navy), #124f7c); border: 0; }
.proposal-hero .eyebrow { color: #8dd1f4; }
.proposal-hero h1 { color: white; }
.proposal-hero > p { margin: 7px 0 18px; color: #d4e2ef; }
.proposal-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.proposal-meta span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .75rem; font-weight: 700; }
.proposal-section-heading { margin-bottom: 16px; }
.proposal-section-heading h2 { margin: 0; }
.proposal-section-heading p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.proposal-packages .package-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.proposal-packages .package-card-heading { display: grid; }
.proposal-packages .package-card-heading p { margin: 6px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.proposal-packages .package-card-heading > strong { margin-top: 16px; }
.proposal-package-card { display: flex; flex-direction: column; }
.proposal-package-card .proposal-choice { display: grid; place-items: center; width: 100%; margin-top: auto; text-decoration: none; }
.proposal-package-card.is-selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,123,85,.12); }
.proposal-next { text-align: center; }
.proposal-next p { color: var(--muted); line-height: 1.55; }
.proposal-next small { display: block; margin-top: 12px; color: var(--muted); }
.proposal-consent { margin-top: 14px; text-align: left; }
.proposal-pay-button { width: 100%; margin-top: 12px; }
.payment-confirmation { padding: clamp(20px, 4vw, 34px); border: 1px solid #9fd0b8; border-radius: 18px; background: #effaf4; box-shadow: var(--shadow); }
.payment-confirmation h2 { margin: 5px 0 8px; color: var(--green); }
.payment-confirmation p { margin: 6px 0; color: #315344; line-height: 1.5; }
.deposit-box { margin-top: 10px; padding: 13px; border-radius: 11px; background: var(--navy); color: white; }
.deposit-box > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.deposit-box > div span { color: #c6d6e7; font-size: .8rem; }
.deposit-box > div strong { color: var(--gold); font-size: 1.25rem; text-align: right; }
.deposit-box p { margin: 11px 0 0; color: #d1ddec; font-size: .73rem; line-height: 1.48; }
.deposit-box p strong { color: white; }
.deposit-box small { display: block; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.15); color: #9fb3c8; font-size: .68rem; line-height: 1.4; }
.estimate-actions { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin-top: auto; }
.wide-button { width: 100%; }
.owner-settings { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.owner-settings summary { cursor: pointer; color: var(--navy); font-weight: 800; font-size: .87rem; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.customer-mode .team-only { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 9px; background: var(--navy); color: white; box-shadow: var(--shadow); font-size: .85rem; transition: .2s ease; z-index: 10; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .experience-grid { grid-template-columns: 1fr; }
  .experience-grid > .wizard-card { grid-column: 1; grid-row: auto; }
  .preview-column { grid-column: 1; grid-row: auto; position: static; }
}

@media (max-width: 680px) {
  .topbar { min-height: 82px; grid-template-columns: 1fr auto; gap: 10px; padding-block: 7px; }
  .brand { gap: 9px; }
  .brand img { height: 64px; }
  .brand strong { font-size: .88rem; }
  .brand span { display: none; }
  .topbar-actions { grid-column: 2; gap: 8px; }
  .phone-link { display: none; }
  .home-link { padding: 8px 11px; }
  .brand img { width: 96px; }
  .brand span { display: none; }
  .app-shell { padding: 14px 10px 38px; }
  .estimator-surface { border-radius: 13px; padding: 16px; }
  .section-heading { flex-direction: column; gap: 4px; }
  .save-state { padding: 0; }
  .upload-footer { margin-left: 0; align-items: flex-start; flex-direction: column; }
  .native-photo-input { margin-left: 0; width: 100%; }
  .upload-card .privacy-note { margin-left: 0; }
  .coverage-options { grid-template-columns: 1fr; }
  .qualification-actions, .manual-footage-grid { grid-template-columns: 1fr; }
  .measurement-stage { min-height: 250px; }
  .tool-row { grid-template-columns: 1fr 1fr; }
  .tool-copy { grid-column: 1 / -1; }
  .run-actions { flex-wrap: wrap; }
  .form-grid, .settings-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .wizard-card { min-height: 0; padding: 20px; }
  .wizard-actions { flex-direction: column-reverse; align-items: stretch; }
  .wizard-actions .primary-button, .wizard-actions .text-back-button { width: 100%; }
  .estimate-actions { grid-template-columns: 1fr; }
  .concept-preview-footer strong { width: 100%; margin-left: 0; text-align: left; }
  .proposal-phone { display: none; }
  .proposal-packages .package-grid { grid-template-columns: 1fr; }
  .estimate-total strong { font-size: 1.65rem; }
}

@media print {
  body { background: white; }
  .topbar, .estimator-heading, .preview-column, .estimate-actions, .owner-settings, .proposal-closeout { display: none !important; }
  .app-shell { display: block; padding: 0; }
  .estimator-surface { box-shadow: none; border: 0; }
  .form-grid input, .form-grid select { border: 0; padding: 0; min-height: auto; appearance: none; }
  .package-card { break-inside: avoid; }
  .package-grid { grid-template-columns: 1fr 1fr; }
}
