:root{font-family:system-ui,'Microsoft YaHei',sans-serif;color:#233c3c;background:#f3f5f1;font-size:16px;line-height:1.65}*{box-sizing:border-box}body{margin:0}header{max-width:1120px;margin:auto;padding:24px;display:flex;justify-content:space-between;gap:16px}a{color:#23665a}header a{text-decoration:none;font-weight:750}header span,small,.note,footer{font-size:14px;color:#536864}main{max-width:1120px;margin:auto;padding:0 24px 60px}h1{font-size:40px;line-height:1.3;margin:12px 0}h2{font-size:27px;margin:8px 0 16px}h3{font-size:21px;margin-top:30px}p{margin:10px 0 18px}.intro{padding:28px 0}.card,.receipt,.errors{background:white;border:1px solid #d9e1d9;border-radius:18px;padding:30px;margin:22px 0}.receipt{background:#e0f1e7}.errors{background:#ffeded;color:#8b2626}button,.cta{background:#235c50;color:white;border:0;border-radius:9px;padding:13px 20px;font:inherit;font-weight:650;cursor:pointer;display:inline-block;text-decoration:none}.unknown{width:100%;text-align:left;background:#e0eade;color:#234c40;display:flex;justify-content:space-between;gap:12px}.parts{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:20px 0}.parts a{background:#fff;text-align:center;padding:16px 10px;border:1px solid #cbd7ce;border-radius:10px;text-decoration:none;font-weight:650}.parts a[aria-current=true]{background:#235c50;color:white}.detail-top{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}svg{width:100%;height:auto;max-height:300px}.fields{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}label{display:block;margin:12px 0;font-weight:600}input,textarea,select{width:100%;font:inherit;padding:12px;border:1px solid #b9c8c0;border-radius:8px;background:white;color:#233c3c;margin-top:6px}textarea{resize:vertical}label .note{display:block;font-weight:400}.budgets{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.budgets article{background:#f4f6ef;padding:20px;border-radius:12px}.budgets strong{display:block;font-size:26px;margin:12px 0}.budgets p{font-size:15px}summary{cursor:pointer}.consent{display:flex;align-items:start;gap:10px;font-size:14px;font-weight:400}.consent input{width:20px;height:20px;flex-shrink:0}footer{padding:12px}button:focus-visible,a:focus-visible{outline:3px solid #dc9b42;outline-offset:3px}[hidden]{display:none!important}@media(max-width:650px){header{padding:18px 16px;flex-wrap:wrap}main{padding:0 16px 30px}h1{font-size:30px}.card,.receipt,.errors{padding:20px}.parts{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-top,.fields,.budgets{grid-template-columns:1fr}.unknown{display:block}.unknown span{display:block;font-size:14px}h2{font-size:24px}.cta{width:100%;text-align:center}}
.part-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.part-card{background:white;border:1px solid #d9e1d9;border-radius:16px;padding:20px;display:flex;flex-direction:column}.part-card h3{margin:0;font-size:21px}.part-card p{flex:1}.part-card svg{height:180px}.part-card fieldset{border:0;padding:0;margin:0}.part-card legend{font-size:14px;color:#536864}.observation-options{display:flex;gap:6px}.observation-options label{flex:1;font-size:14px;cursor:pointer;text-align:center;position:relative;margin:8px 0 0}.observation-options input{position:absolute;opacity:0;width:1px;height:1px}.observation-options span{display:block;padding:9px 3px;background:#f3f5f1;border:1px solid #cbd7ce;border-radius:7px}.observation-options input:checked+span{background:#235c50;color:white}.observation-options input:focus-visible+span{outline:3px solid #dc9b42}.part-card.suggested{border-color:#739e8a}.part-card.observed{border:2px solid #235c50;padding:19px}#detail summary{font-size:21px;font-weight:700}.repair-row h3{font-size:18px;margin-bottom:4px}.repair-row{border-bottom:1px solid #e1e8df;padding-bottom:8px}.intro{padding:12px 0}#known h2{font-size:23px}.part-card p{font-size:15px}#observations>h2{margin-top:34px}@media(max-width:900px){.part-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.part-cards{grid-template-columns:1fr}.part-card svg{height:170px}.part-card{padding:20px}.intro h1{margin-bottom:0}}

.part-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.roof-detail{width:100%;margin:12px 0 16px}.roof-detail img{display:block;width:100%;height:auto;aspect-ratio:800/590}.diagram-caption{font-size:16px!important;margin:12px 0 0!important;color:#304f45;font-weight:600}.flow-key{display:flex;gap:20px;align-items:center;margin:10px 0 22px}.flow-key span{display:flex;align-items:center;gap:8px;font-size:14px}.flow-key i{width:26px;border-top:4px solid #1678af}.flow-key .leak-line{border-color:#cf4335;border-top-style:dashed}.diagram-sources{font-size:14px;color:#536864;margin:16px 0}.part-card fieldset{margin-top:auto}@media(max-width:650px){.part-cards{grid-template-columns:1fr}.flow-key{gap:14px}}
/* Service refinement: one input per fact, consistent graphics and budget-first result. */
.known-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-key{flex-wrap:wrap}.flow-key .leak-line{position:relative;width:36px}.flow-key .leak-line:after{content:'';position:absolute;width:12px;height:12px;border:2px solid #cf4335;border-radius:50%;left:10px;top:-9px;background:#f3f5f1}.budgets{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.service-area{font-size:16px;font-weight:500;display:inline-block}.contact-note{text-align:center}#send-button{width:100%;text-align:center}#budget-result{margin-top:26px}#budget-context{font-weight:600}.roof-anatomy{max-width:680px;margin:0 auto 24px;padding:16px}.roof-anatomy-heading h2{font-size:19px}.roof-anatomy-hint,.roof-anatomy-info p,.roof-anatomy-controls button{font-size:14px}.roof-anatomy-stage{max-width:510px;margin:auto}.roof-anatomy-overlay{max-height:none}.roof-anatomy-info{min-height:0;padding:10px 12px}.roof-anatomy-info strong{font-size:16px}.roof-anatomy-info .v2-en{display:none}.roof-anatomy-controls{display:none!important}.roof-anatomy-note{display:none}footer p{font-size:14px;line-height:1.8}footer .diagram-sources{margin-top:16px}.part-card[hidden]{display:none!important}@media(max-width:650px){.known-fields{grid-template-columns:1fr}.roof-anatomy{padding:12px}.service-area{display:block;font-size:16px;margin-top:5px}.budgets{grid-template-columns:1fr}.roof-anatomy-stage{max-width:100%}.roof-anatomy-info p{font-size:14px}}

#request h2{white-space:nowrap}.service-area{display:inline;margin-top:0;font-weight:400}@media(max-width:650px){#request h2{font-size:20px}.service-area{display:inline;font-size:14px;margin-top:0}}
/* Labeled roof overview, separate from individual diagnostic cards. */
.roof-overview{background:#fff;border:1px solid #d9e1d9;border-radius:18px;padding:20px;margin:0 0 24px}.overview-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.overview-heading h2{font-size:21px;margin:0}.overview-heading p{font-size:14px;color:#536864;margin:0}.overview-stage{position:relative;width:100%;aspect-ratio:14/9;margin:6px auto}.overview-model{position:absolute;left:13%;top:8%;width:74%;height:84%;object-fit:contain}.overview-leaders{position:absolute;inset:0;width:100%;height:100%;max-height:none;overflow:visible}.overview-leaders .leader{fill:none;stroke:#8ba098;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.overview-leaders .anchor{fill:#fff;stroke:#527a69;stroke-width:2}.overview-leaders g{cursor:pointer;outline:none}.overview-leaders .marker-hit{fill:transparent;stroke:none;pointer-events:all}.overview-leaders .marker-number{font:600 23px system-ui,sans-serif;fill:#345e4e;text-anchor:middle;dominant-baseline:central;pointer-events:none}.overview-leaders g[aria-pressed=true] .anchor,.overview-leaders g:focus-visible .anchor{fill:#235c50;stroke:#235c50}.overview-leaders g[aria-pressed=true] .marker-number{fill:white}.overview-labels button{position:absolute;width:14%;padding:8px 4px;background:transparent;border:0;border-radius:5px;color:#35584b;font-size:16px;font-weight:650;line-height:1.4;text-align:center;transform:translateY(-50%)}.overview-labels button[aria-pressed=true]{background:#e0eee5;color:#174d3c}.overview-labels button:hover{background:#edf4ef}.overview-info{border-left:3px solid #5b816e;padding:10px 14px;background:#f2f6ef;border-radius:0 7px 7px 0}.overview-info strong{font-size:17px}.overview-info p{font-size:15px;margin:4px 0 0}.overview-mobile-labels{display:none}@media(max-width:650px){.roof-overview{padding:12px}.overview-heading{display:block}.overview-heading p{margin:6px 0 0}.overview-stage{aspect-ratio:1/1;margin:10px 0}.overview-model{left:0;top:0;width:100%;height:100%}.overview-labels{display:none}.overview-leaders .leader{display:none}.overview-mobile-labels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 14px}.overview-mobile-labels button{padding:9px 3px;background:#f0f5ee;border:1px solid #d1ded4;border-radius:7px;color:#35584b;font-size:14px;line-height:1.5;min-height:42px}.overview-mobile-labels button[aria-pressed=true]{background:#235c50;color:white}.overview-info p{font-size:14px}.overview-leaders .anchor{r:27px;stroke-width:3}.overview-leaders .marker-number{font-size:40px}}
.overview-leaders .leader.active{stroke:#235c50;stroke-width:2.5}.overview-leaders .marker-number{font-size:14px}@media(max-width:650px){.overview-leaders .anchor{r:12px;stroke-width:2}.overview-leaders .marker-number{font-size:14px}}

@media(max-width:650px){.overview-stage{aspect-ratio:1.3/1}}

/* Names stay outside the model; orthogonal arrow leaders identify the parts. */
.overview-stage{aspect-ratio:1.35;margin:16px 0}.overview-model{left:0;top:86px;width:100%;height:calc(100% - 172px)}.overview-labels{display:block}.overview-labels button{height:36px;padding:6px 2px;transform:none;font-size:15px;white-space:nowrap}.overview-leaders .leader{display:block;stroke:#527a69;stroke-width:1.2;opacity:.8}.overview-mobile-labels{display:none!important}
@media(max-width:650px){.overview-stage{aspect-ratio:auto;height:510px}.overview-model{top:124px;height:calc(100% - 248px)}.overview-labels{display:block}.overview-labels button{font-size:14px}.overview-leaders .leader{display:block;stroke-width:1}}

.overview-labels button{height:48px;white-space:normal;display:flex;align-items:center;justify-content:center;line-height:1.4;padding:4px 6px}.overview-model{top:110px;height:calc(100% - 220px)}
@media(max-width:650px){.overview-stage{height:430px}.overview-model{top:110px;height:calc(100% - 220px)}.overview-labels button{font-size:14px;padding:3px;word-break:normal;overflow-wrap:anywhere}}

@media(max-width:650px){.overview-labels button{white-space:pre-line}}

.overview-layers{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:0 0 18px;font-size:14px}.overview-layers button{padding:5px 10px;font-size:15px;background:#edf3ed;color:#35584b;border:1px solid #cad8cb}.overview-layers button[aria-pressed=true]{background:#235c50;color:white}.layer-highlight{fill:transparent;stroke:none}.layer-highlight.active{fill:#e7b44b33;stroke:#b27716;stroke-width:2}
@media(max-width:650px){.overview-layers{gap:3px}.overview-layers>span:first-child{width:100%;text-align:center}.overview-layers button{font-size:14px;padding:5px 6px}}

.overview-leaders .leader-halo{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;opacity:.95}.overview-leaders .leader{stroke:#24594c;opacity:1;stroke-width:1.4}.overview-leaders .leader.active{stroke:#716300;stroke-width:2.5}.part-highlight{fill:transparent;stroke:none}.part-highlight.active{fill:#f3ff003d;stroke:#c8bd00;stroke-width:2}.overview-labels button[aria-pressed=true]{background:#f6facb;color:#3e480f}.overview-heading h2{font-size:21px}#recommendation:empty{display:none}

select{appearance:auto;min-height:48px;font-size:16px;animation:none!important;transition:none!important}select option{font-size:16px;animation:none!important;transition:none!important}

.photo-picker{position:relative;display:flex;align-items:center;gap:14px;min-height:48px}.photo-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;z-index:1}.photo-button{display:inline-block;background:#235c50;color:white;border-radius:8px;padding:11px 20px;font-size:16px;line-height:1.6;white-space:nowrap}.photo-picker:focus-within .photo-button{outline:3px solid #dc9b42;outline-offset:3px}#photo-selection{font-size:16px;font-weight:400}.photo-upload .note{margin-top:8px}

#budget-button{display:block;margin-inline:auto;text-align:center}.part-highlight{pointer-events:all;cursor:pointer}.overview-labels{pointer-events:none}.overview-labels button{pointer-events:auto}

#zip::placeholder{font-size:14px;opacity:1;color:#63716d}
