:root{font-family:"Plus Jakarta Sans",-apple-system,"Segoe UI",sans-serif;color:#111;background:#f5f7fb;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:660px;height:100dvh;display:flex;flex-direction:column;background:linear-gradient(rgba(8,12,20,.2),rgba(8,12,20,.36)),url("/livingroom-v4b.webp") center top / cover fixed no-repeat}
button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:disabled{cursor:wait;opacity:.55}[hidden]{display:none!important}
:focus-visible{outline:2px solid #111;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.guide-header{height:64px;flex:none;padding:0 28px;display:flex;align-items:center;gap:24px;color:#fff;background:linear-gradient(180deg,rgba(6,9,16,.4),rgba(6,9,16,.18));border-bottom:1px solid rgba(255,255,255,.18);backdrop-filter:blur(16px)}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;font-size:22px;font-weight:600;letter-spacing:-.8px}.brand svg{width:26px;height:30px;flex:none}.header-note{margin:auto;color:rgba(255,255,255,.82);font-size:13px}.guide-header>a:last-child{font-size:13px;text-underline-offset:4px}
main{width:100%;max-width:1600px;margin:0 auto;padding:14px 24px 16px;display:flex;flex-direction:column;flex:1;min-height:0}
.progress{display:flex;gap:28px;align-items:center;flex:none;margin:0 0 12px;color:#d7dce5;font-size:12px}.progress span{display:flex;align-items:center;gap:8px}.progress b{display:grid;place-items:center;border:1px solid #d7deea;border-radius:50%;width:24px;height:24px;font-weight:500}.progress [aria-current]{color:#fff;font-weight:600}.progress [aria-current] b,.progress .done b{background:#fff;border-color:#fff;color:#000}.progress .done{color:#fff}
/* The complete plan workspace stays above the composer, with no overlapping dock. */
.workspace{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0}
.results{display:flex;flex-direction:column;flex:1;min-width:0;min-height:260px}
.results-heading{color:#fff;text-shadow:0 1px 10px rgba(6,10,20,.5);display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none}
.eyebrow{font-size:9px;letter-spacing:1.6px;color:rgba(255,255,255,.85);margin:0 0 5px;font-weight:700}h1{font-size:clamp(22px,2vw,28px);font-weight:500;letter-spacing:-.8px;line-height:1.15;margin:0}#result-status{font-size:12px;color:rgba(255,255,255,.85);max-width:220px;text-align:right;line-height:1.5}
.details{display:flex;gap:6px;flex-wrap:wrap;align-self:flex-start;flex:none;margin:10px 0;padding:5px;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:rgba(255,255,255,.12)}.details:empty{display:none}
.detail-chip{display:flex;align-items:center;gap:12px;border:1px solid rgba(255,255,255,.85);background:#fff;border-radius:4px;padding:8px 12px;text-align:left;font-size:12px;color:#172033;box-shadow:0 1px 3px #0000000a}.detail-chip:hover{background:#f5f7fa}.detail-chip span{color:#667085;font-size:10px;border-left:1px solid #d7deea;padding-left:10px}
.plan-stage{border:1px solid rgba(255,255,255,.8);background:rgba(255,255,255,.96);border-radius:8px;box-shadow:0 18px 60px rgba(6,10,20,.2);overflow:hidden;flex:1;min-height:170px;margin-top:10px}.details:not(:empty)+.plan-stage{margin-top:0}
.welcome{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px}.welcome-icon img{width:100%;height:100%}.avatar img{width:32px;height:32px}.welcome-icon{width:48px;height:48px;display:grid;place-items:center;color:#111;margin-bottom:12px}.welcome h2{font-size:20px;letter-spacing:-.6px;font-weight:500;margin:0 0 8px}.welcome p{font-size:12px;line-height:1.6;color:#667085;max-width:450px;margin:0}.welcome-points{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin-top:16px;color:#526176;font-size:11px}
#plan-frame{display:block;width:100%;height:100%;border:0;background:#fff}.estimate-note{font-size:10px;color:rgba(255,255,255,.82);margin:6px 0 0;line-height:1.5;flex:none}
/* Same white composer surface and black send control as the homepage. */
.conversation{display:flex;flex-direction:column;flex:none;width:min(100%,1000px);align-self:center;background:#fff;border:1px solid #dde3ee;border-radius:8px;box-shadow:0 8px 32px rgba(15,23,42,.24);overflow:hidden;max-height:280px}
.chat-top{display:flex;align-items:center;gap:8px;padding:10px 18px 6px;flex:none}.avatar{display:grid;place-items:center;width:28px;height:28px;color:#111}.chat-top h2{font-size:13px;margin:0}.chat-top p{font-size:10px;color:#667085;margin:2px 0 0}.chat-top button{margin-left:auto;border:0;background:none;font-size:11px;text-decoration:underline;color:#667085;padding:8px 0}
.guide-log{flex:1;min-height:28px;max-height:100px;overflow-y:auto;overscroll-behavior:contain;padding:4px 22px 8px;scrollbar-width:thin}.message{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;margin:0 0 8px}.message:last-child{margin-bottom:0}.message.user{margin-left:auto;width:fit-content;max-width:85%;background:#f1f3f7;border-radius:6px 6px 2px 6px;padding:6px 12px}.message.assistant{margin-right:12px}.message.error{color:#9b2929}.message.pending{color:#667085}
.suggestions{display:flex;gap:6px;flex-wrap:wrap;padding:0 18px 8px;flex:none}.suggestions:empty{display:none}.suggestions button{border:1px solid #d7deea;background:#fff;color:#172033;border-radius:4px;padding:7px 12px;font-size:11px}.suggestions button:hover{background:#f1f3f7}
#guide-form{padding:0 12px 9px;flex:none}.input-row{display:flex;align-items:center;gap:10px;background:#f5f7fa;border:1px solid #e3e7ee;border-radius:6px;padding:10px 12px}textarea{border:0;outline:none!important;box-shadow:none;background:transparent;resize:none;min-width:0;flex:1;font-size:14px;line-height:1.5;color:#172033;padding:4px;max-height:72px}textarea::placeholder{color:#667085}#guide-send{border:0;background:#000;color:#fff;border-radius:50%;width:38px;height:38px;flex:none;font-size:24px}.input-note{font-size:9px;color:#667085;margin:6px 6px 0}
.county-choice{padding:0 18px 10px;flex:none;display:grid;grid-template-columns:1fr auto;gap:8px}.county-choice label{grid-column:1/-1;font-size:12px}.county-choice select{min-width:0;width:100%;padding:8px;border:1px solid #d7deea;border-radius:4px;background:white}.county-choice button{padding:8px 14px;background:#000;color:white;border:0;border-radius:4px}
@media(max-width:760px){body{height:auto;min-height:100svh}.guide-header{height:60px;padding:0 16px;gap:12px}.header-note{display:none}.guide-header>a:last-child{margin-left:auto;font-size:12px}.brand{font-size:20px}main{padding:14px 12px}.progress{justify-content:space-between;gap:6px;font-size:10px}.progress span{flex-direction:column;gap:6px}.progress b{width:22px;height:22px}.workspace{gap:12px}.results{flex:none;min-height:0}.plan-stage{flex:none;height:clamp(240px,46svh,420px);min-height:0}.welcome{padding:18px}.welcome-points{display:none}.welcome h2{font-size:18px}.conversation{width:100%;max-height:320px;border-radius:8px}.guide-log{max-height:110px}textarea{font-size:16px}.results-heading{align-items:flex-start}#result-status{max-width:130px;font-size:10px}.details{margin:8px 0}.detail-chip{padding:7px 10px;font-size:11px;gap:8px}.chat-top{padding:10px 14px 6px}.input-row{padding:8px 10px}.suggestions button{min-height:36px}.welcome-icon{width:40px;height:40px;margin-bottom:8px}}
@media(min-width:761px) and (max-height:700px){body{height:auto;min-height:100dvh}.plan-stage{flex:none;height:300px}.guide-log{max-height:72px}.welcome-points{display:none}}
/* Window chrome stays on the panels; it never overlays the conversation. */
.plan-stage{display:flex;flex-direction:column;border-color:rgba(255,255,255,.9);box-shadow:0 0 0 1px rgba(0,0,0,.12),0 12px 32px rgba(0,0,0,.2)}
.window-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;flex:none;height:34px;padding:0 12px;background:linear-gradient(#fafafa,#eceef1);border-bottom:1px solid #d2d5da;color:#4a5058;font-size:11px;box-shadow:inset 0 1px 0 #fff}
.window-lights{display:flex;gap:6px;align-items:center}.window-lights i{display:block;width:10px;height:10px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.window-lights i:nth-child(1){background:#ff6058}.window-lights i:nth-child(2){background:#ffbd2e}.window-lights i:nth-child(3){background:#28c840}
.window-title{font-weight:600;letter-spacing:.01em}.window-source{justify-self:end;color:#737982;font-size:10px}
.welcome{flex:1;min-height:0;height:auto}#plan-frame{flex:1;min-height:0;height:auto}
.conversation{border-color:rgba(255,255,255,.9);box-shadow:0 0 0 1px rgba(0,0,0,.12),0 8px 28px rgba(0,0,0,.2)}
.chat-top{padding-top:8px;padding-bottom:8px;background:linear-gradient(#fafafa,#f0f1f3);border-bottom:1px solid #dce0e5;box-shadow:inset 0 1px 0 #fff}
.chat-top button{padding:5px 9px;border:1px solid #cfd3da;border-radius:4px;background:linear-gradient(#fff,#f8f9fa);text-decoration:none;color:#4a5058;box-shadow:0 1px 2px #00000009}
.guide-log{padding-top:8px}.input-row{background:#f8f9fb;border-color:#d8dde4;box-shadow:inset 0 1px 2px rgba(0,0,0,.035)}
.detail-chip,.suggestions button{background:linear-gradient(#fff,#f5f6f8);border-color:#d8dce3;box-shadow:inset 0 1px 0 #fff,0 1px 2px #0000000a}
.detail-chip:hover,.suggestions button:hover{background:#eef0f4;border-color:#bfc6d0}
@media(max-width:420px){.window-bar{grid-template-columns:auto 1fr;gap:14px}.window-title{text-align:center}.window-source{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* A compact workspace, with progress next to the conversation it belongs to. */
main{max-width:1440px;padding:16px 24px;gap:0}
.conversation{width:100%;max-height:320px}
.conversation .progress{margin:0;padding:8px 18px;gap:24px;color:#667085;border-bottom:1px solid #eef0f3;font-size:11px}
.conversation .progress span{flex-direction:row;gap:7px}
.conversation .progress b{width:19px;height:19px;font-size:10px;border-color:#d2d5da}
.conversation .progress [aria-current]{color:#111}
.conversation .progress [aria-current] b{background:#111;border-color:#111;color:#fff}
.conversation .progress .done{color:#526176}
.conversation .progress .done b{background:#edf0f3;color:#333;border-color:#d2d5da}
.guide-log{max-height:88px}.input-row{padding:7px 10px;border-color:transparent;box-shadow:none}
.input-row:focus-within{border-color:transparent;outline:0;box-shadow:none}
#guide-send{display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;line-height:1;transition:background .15s,transform .15s;opacity:1}
#guide-send svg{display:block;width:21px;height:21px}
#guide-send:disabled{background:#e4e7eb;color:#7a818c;cursor:default}
#guide-send:not(:disabled):hover{background:#30343a}
#guide-send:not(:disabled):active{transform:scale(.94)}
#guide-send .send-spinner{display:none;width:17px;height:17px;border:2px solid #b5bac2;border-top-color:#333;border-radius:50%;animation:guide-spin .8s linear infinite}
#guide-send.is-busy .send-arrow{display:none}#guide-send.is-busy .send-spinner{display:block}
.pending-dots{display:inline-flex;gap:4px;margin-left:8px;vertical-align:middle}.pending-dots i{width:4px;height:4px;background:#7d8590;border-radius:50%;animation:guide-pulse 1.2s ease-in-out infinite}.pending-dots i:nth-child(2){animation-delay:.15s}.pending-dots i:nth-child(3){animation-delay:.3s}
.plan-stage{position:relative}.plan-loading{position:absolute;inset:34px 0 0;z-index:2;background:#fafbfc;padding:clamp(16px,3vw,40px);display:flex;flex-direction:column;justify-content:center;gap:24px;overflow:hidden}
.loading-heading{text-align:center}.loading-heading h2{font-size:17px;font-weight:500;margin:10px 0 6px}.loading-heading p{font-size:12px;color:#667085;margin:0}.loading-orbit{display:inline-block;width:28px;height:28px;border:2px solid #dfe3e8;border-top-color:#444;border-radius:50%;animation:guide-spin 1s linear infinite}
.skeleton-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;max-width:1080px;margin:0 auto}.skeleton-card{padding:20px;border:1px solid #e2e5e9;border-radius:6px;background:#fff}.skeleton-card i{display:block;height:10px;margin:0 0 18px;background:linear-gradient(100deg,#eef0f3 25%,#f9fafb 45%,#eef0f3 65%);background-size:250% 100%;animation:guide-shimmer 1.8s ease-in-out infinite;border-radius:3px}.skeleton-card i:first-child{width:60%}.skeleton-card i:nth-child(2){height:24px;width:40%}.skeleton-card i:last-child{margin-bottom:0}
.marketplace-link{display:inline-flex;align-items:center;min-height:40px;padding:10px 16px;background:#111;color:#fff;border-radius:4px;font-size:12px;text-decoration:none;margin-top:18px}.change-zip{background:none;border:0;text-decoration:underline;font-size:12px;color:#526176;padding:12px;margin-top:4px}
#plan-retry{align-self:flex-end;margin-top:6px;border:1px solid #d7deea;background:white;border-radius:4px;padding:6px 12px;font-size:11px}
@keyframes guide-spin{to{transform:rotate(360deg)}}@keyframes guide-pulse{50%{opacity:.3;transform:translateY(-2px)}}@keyframes guide-shimmer{to{background-position:-150% 0}}
@media(min-width:761px) and (min-height:701px){body{min-height:0}.results{min-height:210px}.plan-stage{min-height:130px}.conversation{max-height:300px}}
@media(max-width:760px){main{padding:12px}.conversation .progress{justify-content:space-between;gap:6px;padding:8px 12px;font-size:10px}.conversation .progress span{gap:4px}.conversation .progress b{width:16px;height:16px;font-size:9px}.skeleton-grid{grid-template-columns:1fr 1fr}.skeleton-card:last-child{display:none}.plan-loading{gap:16px}.skeleton-card{padding:12px}.skeleton-card i{margin-bottom:12px}.plan-stage{height:clamp(230px,40svh,380px)}#guide-send{width:44px;height:44px;min-width:44px}}
@media(max-width:370px){.conversation .progress{flex-wrap:wrap;justify-content:flex-start;gap:7px 14px}.welcome h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){.plan-loading *,.pending-dots i,#guide-send .send-spinner{animation:none!important}#guide-send{transition:none}}
/* Align the guided flow with the compact public-page scale. */
main{max-width:1320px;padding-top:12px}.guide-header{height:60px}
h1{font-size:clamp(21px,2vw,25px)}.welcome h2{font-size:17px}.welcome-icon{width:40px;height:40px;margin-bottom:10px}.welcome-icon svg{width:23px;height:26px}.welcome-points{font-size:10px;margin-top:12px}.chat-top{padding-top:6px;padding-bottom:6px}.conversation .progress{padding-top:6px;padding-bottom:6px}.guide-log{max-height:80px}.message{font-size:12px}.estimate-note{font-size:9px}.detail-chip{font-size:11px;padding:6px 10px}
@media(max-width:760px){main{padding:12px}.message{font-size:13px}.guide-log{max-height:100px}.plan-stage{height:clamp(220px,38svh,360px)}.conversation .progress{padding-top:8px;padding-bottom:8px}}
/* Let additional questions and the on-screen keyboard grow the page, not clip the form. */
.workspace,.conversation,.results-heading>*{min-width:0}
.conversation{max-height:none}
.suggestions{max-height:100px;overflow-y:auto}
.welcome{overflow-y:auto;justify-content:safe center}
.welcome>*{flex-shrink:0}
.detail-chip{max-width:100%;overflow-wrap:anywhere}
.detail-chip span{flex:none}
.county-choice select{font-size:16px}
.input-note{line-height:1.5}
@media(max-width:760px){
  body{min-height:100svh;height:auto;background-attachment:scroll}
  main{padding:12px 12px max(16px,env(safe-area-inset-bottom))}
  .results-heading{gap:12px}
  h1{font-size:22px}
  .conversation{overflow:visible}
  .chat-top{border-radius:7px 7px 0 0}
  .guide-log{max-height:120px;padding:8px 14px}
  .conversation .progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .conversation .progress span{min-width:0;font-size:10px;line-height:1.4}
  .conversation .progress b{flex:none}
  .suggestions{padding:0 12px 8px}
  .suggestions button{min-height:40px}
  .county-choice{padding:0 12px 10px}
  #guide-form{scroll-margin-bottom:16px}
  textarea{font-size:16px}
}
@media(max-width:480px){
  .conversation .progress{grid-template-columns:repeat(2,minmax(0,1fr))}
  .results-heading{flex-wrap:wrap;gap:6px}
  #result-status{max-width:none;text-align:left;margin:0}
  .window-bar{grid-template-columns:auto minmax(0,1fr);gap:12px}
  .window-title{text-align:center;font-size:10px}.window-source{display:none}
  .welcome{padding:16px}
  .county-choice{grid-template-columns:minmax(0,1fr)}
  .county-choice button{min-height:40px}
}
@media(min-width:761px) and (max-height:740px){
  body{height:auto;min-height:100dvh}
  .plan-stage{flex:none;height:clamp(230px,45dvh,340px)}
  .guide-log{max-height:80px}
}
/* A composed workspace with a quiet input, crisp controls and legible progress. */
.plan-stage,.conversation{border-radius:6px;box-shadow:0 0 0 1px #17202c18,0 3px 8px #080d1514,0 16px 40px -16px #080d1566}
.welcome{background:radial-gradient(ellipse at 50% 15%,#fff,#f4f6f9);gap:2px}
.welcome h2{font-weight:500;color:#20252b}
.welcome p{color:#5a6675;max-width:44ch}
.welcome-icon{width:48px;height:48px;margin-bottom:12px}
.window-bar,.chat-top{background:linear-gradient(#fcfcfd,#f0f2f5)}
.window-lights i{width:8px;height:8px}
.conversation .progress{padding:8px 18px;background:#f7f8fa;border-bottom:1px solid #e2e6ec;color:#687482;font-size:10px}
.conversation .progress [aria-current]{color:#20252b}
.conversation .progress b{border-radius:4px;border-color:#d5dce5;font-size:9px;width:18px;height:18px;background:#fff;color:#667383}
.conversation .progress [aria-current] b{background:#20252b;border-color:#20252b;color:#fff;box-shadow:0 1px 2px #17202c22}
.conversation .progress .done{color:#465769}.conversation .progress .done b{background:#e8edf3;color:#465769;border-color:#d2dae4}
.chat-top .avatar img{width:26px;height:26px}
.guide-log{padding-top:10px;padding-bottom:10px}
.input-row{background:linear-gradient(#f6f8fa,#f0f3f6);border:0;box-shadow:inset 0 1px 2px #17202c05;gap:8px;padding:8px 10px}
.input-row:focus-within{border:0;box-shadow:inset 0 1px 2px #17202c05;outline:0}
#guide-send{border:1px solid #20252b;border-radius:6px;background:#20252b;box-shadow:inset 0 1px 0 #ffffff16,0 1px 2px #1118201a;transition:background-color .12s;transform:none}
#guide-send svg{width:18px;height:18px;transform:none;animation:none}
#guide-send:not(:disabled):active{transform:none;background:#101419;box-shadow:inset 0 1px 2px #0003}
#guide-send:disabled{border-color:#d5dbe3;background:#e1e5ea;color:#78828e;box-shadow:none}
#guide-send .send-spinner{animation:none;width:18px;height:4px;border:0;border-radius:0;background:radial-gradient(circle,currentColor 1.5px,transparent 2px) 0 50%/6px 4px repeat-x}
.pending-dots i{animation-name:guide-quiet-pulse}
.loading-orbit{width:22px;height:22px;border-width:1.5px}
.skeleton-card{box-shadow:0 1px 2px #17202c05,0 8px 18px -12px #17202c22}
@keyframes guide-quiet-pulse{50%{opacity:.3}}
@media(max-width:760px){.conversation .progress{padding:8px 12px}.welcome-icon{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){#guide-send{transition:none}.pending-dots i{animation:none}}
