:root{--green:#213f36;--dark:#172e27;--lime:#d7e783;--paper:#f6f5ef;--line:#d8ddd3;--muted:#647168;font-family:'DM Sans',sans-serif;color:var(--dark);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,summary{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #748c2f;outline-offset:4px}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:'Barlow Condensed',sans-serif;line-height:1.05}button{border-radius:0}button span{font-family:Arial,sans-serif;font-size:22px;line-height:1}.skip{position:absolute;left:16px;top:-100px;padding:14px;background:var(--green);color:#fff;z-index:99}.skip:focus{top:10px}.planner-header{height:100px;background:#fff;display:flex;align-items:center;padding:10px 34px;gap:28px;border-bottom:1px solid var(--line)}.logo{height:84px;width:100px;display:block}.logo img{height:100%;width:100%;object-fit:contain}.back{text-decoration:none;font-size:13px;color:var(--muted)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.primary,.secondary,.quiet{padding:14px 19px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:space-between;gap:22px;min-height:48px;border:1px solid var(--green);color:var(--green);background:transparent}.primary{background:var(--green);color:#fff}.primary:hover{background:#34574b}.secondary:hover,.quiet:hover{background:#e6ebdf}.quiet{border-color:var(--line)}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#6b7c46}.planner{display:grid;grid-template-columns:minmax(0,1fr) 370px;max-width:1920px;margin:auto}.viewer-panel{position:sticky;top:0;height:calc(100dvh - 20px);max-height:1000px;min-height:660px;display:flex;flex-direction:column;padding:30px 36px 24px;background:#e9ede3;overflow:hidden}.viewer-heading{display:flex;justify-content:space-between;gap:12px;align-items:start;z-index:1;pointer-events:none}.viewer-heading h1{font-size:clamp(32px,3.2vw,56px);margin-top:10px}.badge{border:1px solid #b8c3ad;white-space:nowrap;padding:7px 9px;letter-spacing:1px;font-size:8px;color:#5f6d56}.viewer-heading .eyebrow{color:#52634b}#scene{position:relative;flex:1;min-height:320px;margin:0 -36px;touch-action:none}#scene canvas{display:block;width:100%;height:100%;outline:none}#scene:focus-visible{outline:3px solid #748c2f;outline-offset:-4px}.loading{position:absolute;inset:40% 20px auto;text-align:center;font-size:14px;color:var(--muted);padding:20px;line-height:1.6}.view-tools{display:flex;justify-content:center;gap:3px;flex-wrap:wrap;z-index:1}.view-tools button{background:#ffffffa6;border:1px solid transparent;min-height:38px;padding:9px 14px;color:var(--green);font-size:11px}.view-tools button.selected{background:var(--green);color:#fff}.view-tools button:hover{border-color:var(--green)}.model-caption{border-top:1px solid #cbd4c3;display:flex;justify-content:space-between;gap:20px;padding-top:20px;margin-top:24px}.model-caption>div>span{display:block;font-size:12px;color:#56644e;margin-bottom:6px}.model-caption>div>strong{font-family:'Barlow Condensed',sans-serif;font-size:35px;letter-spacing:.5px}.model-caption .area{text-align:right}.model-caption .area>strong{font-size:26px}.model-caption .area>span{font-size:10px;margin-top:4px}.viewer-tip{font-size:10px;text-align:center;color:#647059;margin:18px 0}.viewer-note{display:flex;gap:10px;align-items:flex-start;font-size:10px;line-height:1.6;max-width:600px;align-self:center;color:#65735b}.note-dot{width:6px;height:6px;border-radius:50%;background:#8a9d60;margin-top:5px;flex-shrink:0}.options{padding:28px 26px;background:var(--paper)}.options-head{padding:0 0 25px}.options-head h2{font-size:32px;margin:8px 0 12px}.options-head p{font-size:12px;line-height:1.7;color:var(--muted)}details{border-top:1px solid var(--line)}summary{display:flex;align-items:center;gap:13px;font-weight:700;font-size:13px;list-style:none;cursor:pointer;min-height:64px}summary::-webkit-details-marker{display:none}summary:after{content:'+';margin-left:auto;font-size:21px;font-weight:400}details[open]>summary:after{content:'−'}.step{font-size:10px;color:#768358;font-weight:500}.section-content{padding:0 0 23px}label{display:block;font-size:11px;font-weight:600;margin-bottom:16px}input:not([type=checkbox]):not([type=range]),select,textarea{display:block;width:100%;border:1px solid #ccd3c7;padding:12px 10px;background:#fff;color:var(--dark);margin-top:7px;border-radius:0;font-size:13px;min-height:44px}input:focus,select:focus,textarea:focus{outline:2px solid #7f9651;outline-offset:1px}.size-field{display:grid;grid-template-columns:1fr 78px;align-items:center;gap:6px 12px;margin-bottom:17px}.size-field label{margin:0;font-size:12px}.size-field label span{font-size:10px;font-weight:400;display:block;color:var(--muted);margin-top:4px}.size-field input[type=number]{margin:0}.size-field input[type=range]{width:100%;grid-column:1/-1;accent-color:var(--green);margin:6px 0 0;height:22px;cursor:pointer}.paired{display:grid;grid-template-columns:1fr 1fr;gap:12px}.paired label{min-width:0}.color-label{display:flex;justify-content:space-between;font-size:11px;font-weight:600;margin-bottom:10px}.color-label span{font-size:10px;color:var(--muted);font-weight:400}.swatches{display:flex;flex-wrap:wrap;gap:8px;padding:2px;margin-bottom:19px}.swatch{height:32px;width:32px;border:2px solid transparent;box-shadow:0 0 0 1px #c1c9b9;position:relative}.swatch[aria-pressed=true]{box-shadow:0 0 0 2px var(--green);border-color:var(--paper)}.swatch[aria-pressed=true]:after{content:'';position:absolute;inset:8px;border:1px solid #fff;border-radius:50%;background:#213f3670}.field-hint{font-size:10px;font-weight:400;color:var(--muted);line-height:1.6;margin-bottom:14px}.check{display:flex;align-items:center;gap:10px;font-weight:400;font-size:12px;line-height:1.5}.check input{width:17px;height:17px;accent-color:var(--green);margin:0;flex-shrink:0}.next-step{border-top:1px solid var(--line);margin:0 -26px;padding:26px;background:#e9eddc}.next-step h3{font-size:30px;margin:8px 0 12px}.next-step p{font-size:12px;line-height:1.7;color:var(--muted)}.next-step button{width:100%;margin-top:14px}.next-step .email-note{font-size:10px;margin-top:12px}.text-button{background:none;border:0;padding:7px 0;color:var(--green);text-decoration:underline;text-underline-offset:4px;font-size:11px;min-height:38px}.reset{display:block;margin:20px auto 0}#resume-design{margin-top:8px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:var(--green);color:#fff;font-size:12px;line-height:1.6;padding:14px 22px;box-shadow:0 5px 20px #172e2730;z-index:20;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}dialog{border:0;padding:36px;width:min(650px,calc(100% - 28px));max-height:90dvh;background:var(--paper);color:var(--dark)}dialog::backdrop{background:#15271f9e;backdrop-filter:blur(4px)}dialog h2{font-size:40px;margin:10px 0 18px}dialog p{font-size:12px;line-height:1.7;margin-bottom:20px;max-width:510px}.close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:30px;min-height:44px;min-width:44px;color:var(--green)}.demo-notice{padding:12px 15px;background:#e5ead9;font-size:11px!important;border-left:2px solid #95a95c}.support-options{border:1px solid var(--line);margin:0 0 20px;padding:15px}.support-options legend{font-size:11px;font-weight:600;padding:0 8px}.support-options label:last-child{margin-bottom:0}#brief-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-family:inherit;font-size:11px;background:#fff;padding:20px;border:1px solid var(--line);max-height:370px;overflow:auto}.result-actions{display:flex;gap:10px;flex-wrap:wrap}.result-actions .text-button{width:100%;text-align:left}[hidden]{display:none!important}
@media(min-width:1600px){.planner{grid-template-columns:minmax(0,1fr) 430px}.options{padding-left:38px;padding-right:38px}.next-step{margin-left:-38px;margin-right:-38px;padding:32px 38px}.viewer-panel{padding:42px 60px 30px}#scene{margin:0 -60px}}
@media(max-width:1000px){.planner{grid-template-columns:minmax(0,1fr) 320px}.planner-header{padding:10px 20px;gap:20px}.viewer-panel{padding:24px;min-height:620px}#scene{margin:0 -24px}.viewer-heading{display:block}.badge{display:inline-block;margin-top:12px}.options{padding:24px 20px}.next-step{margin:0 -20px;padding:24px 20px}.view-tools button{padding:8px 10px}.header-actions .quiet{display:none}}
@media(max-width:720px){.planner-header{height:82px;padding:7px 16px;gap:12px}.logo{height:68px;width:74px}.back{font-size:10px;margin-left:auto}.header-actions{margin-left:0}.header-actions .primary{font-size:10px;padding:11px 12px;gap:8px;min-height:42px}.header-actions .primary span{font-size:16px}.planner{display:block}.viewer-panel{position:relative;top:auto;height:640px;min-height:0;max-height:none;padding:22px 20px 16px}.viewer-heading{display:flex;align-items:start}.viewer-heading h1{font-size:34px}.viewer-heading .eyebrow{font-size:8px;letter-spacing:1.2px}.badge{font-size:7px;padding:6px;letter-spacing:.6px;margin-top:0}#scene{margin:0 -20px;min-height:260px}.model-caption{margin-top:18px;padding-top:16px}.model-caption>div>strong{font-size:30px}.model-caption>div>span{font-size:11px}.model-caption .area>strong{font-size:24px}.viewer-tip{margin:12px 0;font-size:9px}.viewer-note{font-size:9px}.view-tools button{min-height:40px;font-size:10px;padding:8px 12px}.options{padding:28px 24px}.options-head h2{font-size:36px}summary{min-height:68px;font-size:14px}.section-content{padding-bottom:24px}label{font-size:12px}.swatch{height:36px;width:36px}.color-label{font-size:12px}.swatches{gap:11px}.field-hint{font-size:11px}.next-step{margin:0 -24px;padding:28px 24px}.next-step h3{font-size:34px}.next-step .email-note{font-size:11px}dialog{padding:30px 22px}dialog h2{font-size:35px}.paired{gap:10px}.primary,.secondary{min-height:48px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.mobile-actions{display:none}@media(max-width:720px){.mobile-actions{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);display:flex;z-index:10;box-shadow:0 5px 22px #172e2730;border:1px solid #bdc9ae;width:max-content;max-width:calc(100% - 32px)}.mobile-actions button{border:0;background:var(--paper);color:var(--green);min-height:46px;padding:12px 20px;font-size:12px;font-weight:600}.mobile-actions button+button{background:var(--green);color:white}.options{padding-bottom:90px}#toast{bottom:80px}}

summary:after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-right:3px}details[open]>summary:after{content:'';transform:rotate(225deg)}

/* Keep the preview and project forms readable at every screen height. */
.viewer-panel,.viewer-heading>div,.options,.header-actions,.planner-header>*{min-width:0}.viewer-panel{overflow:visible}.badge{flex-shrink:0}.primary,.secondary,.quiet{min-width:0;max-width:100%;white-space:normal;line-height:1.5}.primary svg,.secondary svg,.quiet svg{flex:0 0 18px}.paired{grid-template-columns:repeat(2,minmax(0,1fr))}input:not([type=checkbox]):not([type=range]),select,textarea{min-width:0;max-width:100%}label,.field-hint,.email-note,.viewer-note,.demo-notice{overflow-wrap:anywhere}summary:after{flex:0 0 7px}dialog>.eyebrow,dialog>h2{padding-right:30px}.support-options{min-inline-size:0}.result-actions>*{max-width:100%}.result-actions .primary,.result-actions .secondary{flex:1 1 190px}
.mobile-actions{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);display:flex;z-index:10;box-shadow:0 5px 22px #172e2730;border:1px solid #bdc9ae;width:max-content;max-width:calc(100% - 32px)}.mobile-actions button{border:0;background:var(--paper);color:var(--green);min-height:46px;padding:12px 20px;font-size:12px;font-weight:600}.mobile-actions button+button{background:var(--green);color:white}
@media(min-width:721px) and (max-height:780px){.viewer-panel{position:relative;top:auto;height:auto;min-height:0;max-height:none;overflow:visible}#scene{flex:none;height:clamp(280px,48dvh,420px);min-height:0}.options{padding-bottom:90px}#toast{bottom:80px}}
@media(max-width:720px){.viewer-panel{height:auto;min-height:0;max-height:none;overflow:visible}#scene{flex:none;height:clamp(260px,65vw,350px);min-height:0}.viewer-heading{display:block}.viewer-heading .badge{display:inline-block;margin-top:12px}.viewer-note{width:100%}.model-caption>div{min-width:0}}
@media(max-width:420px){dialog .paired{grid-template-columns:minmax(0,1fr)}.header-actions .primary{font-size:10px;gap:8px}.options-head h2{font-size:34px}}
.viewer-panel{align-self:start}

/* Keep the expanded design controls readable on phones and narrow panels. */
.view-tools button{line-height:1.4}.options details .section-content>.paired{gap:12px}.options select{line-height:1.4}#porch-options,#wainscot-options{padding:16px 14px 1px;margin-bottom:22px;border:1px solid var(--line);background:#edf0e6}#entry-door-options .field-hint{margin-top:2px}.color-label{gap:12px;line-height:1.6}.color-label span{text-align:right}.field-hint[role=status]{margin-top:12px}
@media(max-width:720px){.view-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.view-tools button{padding:10px 4px;min-width:0}.view-tools #download-image{grid-column:span 2}.viewer-heading h1{font-size:36px}}
@media(max-width:380px){.options .paired{grid-template-columns:minmax(0,1fr)}.view-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.view-tools #download-image{grid-column:1/-1}.model-caption>div>strong{font-size:26px}}

/* A compact header and readable controls on phones. */
@media(max-width:720px){
  .planner-header{display:grid;grid-template-columns:72px minmax(0,1fr);height:auto;min-height:104px;padding:12px 20px;gap:6px 16px}.logo{grid-column:1;grid-row:1 / span 2;height:72px;width:72px}.back{grid-column:2;font-size:12px;margin:0;justify-self:start}.header-actions{grid-column:2;margin:0;justify-self:stretch}.header-actions .primary{font-size:12px;padding:10px 12px;min-height:44px;width:100%;justify-content:center}
  input:not([type=checkbox]):not([type=range]),select,textarea{font-size:16px}.primary,.secondary,.quiet{font-size:13px;justify-content:center}.view-tools{gap:6px}.view-tools button{min-height:44px;font-size:11px;padding:10px 12px}.viewer-tip{font-size:10px;line-height:1.7}.viewer-note{font-size:11px;line-height:1.7}.options-head p,.next-step p{font-size:14px;line-height:1.75}.mobile-actions{bottom:calc(12px + env(safe-area-inset-bottom,0px))}.mobile-actions button{min-height:48px;font-size:13px;padding:12px 18px}.options{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}dialog p{font-size:13px}.model-caption>div>strong{font-size:28px}
}
