.projects-content{width:min(1160px,calc(100% - 40px))}
.projects-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.projects-heading .eyebrow,.project-create .eyebrow{color:#0a836c}
.projects-heading .portal-intro{margin-bottom:0;max-width:660px}
.project-primary,.project-secondary,.project-status-button{min-height:44px;border-radius:7px;padding:10px 18px;font:800 15px Arial,Helvetica,sans-serif;cursor:pointer}
.project-primary{border:1px solid #27b990;background:#34c6a1;color:#07291f;white-space:nowrap}
.project-primary:hover{background:#21b88d}
.project-primary:disabled,.project-status-button:disabled{opacity:.55;cursor:wait}
.project-secondary,.project-status-button{border:1px solid #aabcc8;background:#fff;color:#12344b}
.project-status{min-height:24px;margin:22px 0;color:#536a7b;font-size:14px}
.project-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.project-nav-card{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:115px;padding:23px;background:#fff;border:1px solid #dce3e8;border-radius:12px;color:#12344b;text-decoration:none;box-shadow:0 10px 28px #0b1d330d;font-size:20px}
.project-nav-card:hover,.project-nav-card:focus-visible{border-color:#0b9378;box-shadow:0 0 0 3px #d9f2e9}
.project-nav-card span{display:grid;place-items:center;min-width:40px;height:40px;padding:0 9px;border-radius:999px;background:#e3f6ef;color:#087a60;font-size:18px;font-weight:900}
.project-back{display:inline-block;margin-bottom:18px;color:#0a806b;font-weight:800;text-underline-offset:3px}
body[data-project-view="home"] .project-lists{display:none}
body[data-project-view="home"] .project-back{display:none}
body:not([data-project-view="home"]) .project-navigation,body:not([data-project-view="home"]) [data-start-project]{display:none}
body:not([data-project-view="home"]) .project-lists{display:block}
body:not([data-project-view="home"]) .project-list-panel{min-height:250px}
body[data-project-view="current"] .project-list-panel:not([data-view-panel="current"]),body[data-project-view="past"] .project-list-panel:not([data-view-panel="past"]),body[data-project-view="archived"] .project-list-panel:not([data-view-panel="archived"]){display:none}
.project-lists{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.project-list-panel,.project-create{background:#fff;border:1px solid #dce3e8;border-radius:14px;box-shadow:0 10px 28px #0b1d330d}
.project-list-panel{padding:26px;min-height:270px}
.project-archive-panel{grid-column:1/-1}
.project-archive-panel .project-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.project-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}
.project-list-heading h2{margin:0;font-size:22px;line-height:1.2}
.project-list-heading span{display:grid;place-items:center;min-width:32px;height:32px;border-radius:999px;background:#e3f6ef;color:#087a60;font-weight:900}
.project-list{display:grid;gap:14px}
.project-empty{margin:0;border:1px dashed #beced5;border-radius:9px;padding:25px;color:#596c7b;background:#f8fbfb}
.project-card{border:1px solid #dce5e9;border-radius:10px;padding:18px;background:#fbfcfc}
.project-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#687b89;font-size:13px}
.project-type{color:#087b68;font-weight:800}
.project-card h3{font-size:18px;line-height:1.4;margin:12px 0;overflow-wrap:anywhere}
.project-card details{border-top:1px solid #dce5e9;padding-top:12px}
.project-card summary{cursor:pointer;color:#175e70;font-weight:800}
.project-card dl{display:grid;gap:9px;margin:15px 0 0}
.project-card dl>div{display:grid;grid-template-columns:165px 1fr;gap:10px}
.project-card dt{color:#5b6f7d;font-weight:700}
.project-card dd{margin:0;overflow-wrap:anywhere}
.project-status-button{min-height:38px;margin-top:16px;font-size:13px}
.project-card-actions{display:flex;flex-wrap:wrap;gap:9px}
.project-delete-button{color:#9b352c;border-color:#cfaaa5}
.project-create{scroll-margin-top:24px;padding:30px;margin-top:26px}
.project-create[hidden]{display:none}
.project-create-heading{display:flex;justify-content:space-between;gap:20px}
.project-create-heading h2{font-size:24px;margin:0 0 6px}
.project-create-heading p:not(.eyebrow){color:#5c6e7d;margin:0 0 24px}
.project-close{align-self:start;width:40px;height:40px;border:0;background:#eef3f4;border-radius:8px;font-size:28px;line-height:1;cursor:pointer}
.project-prompt-label,.project-field label,.project-checks legend{display:block;font-weight:800;color:#263a50;margin-bottom:7px}
.project-create input[type="search"],.project-create input[type="text"],.project-create input[type="number"],.project-create input[inputmode],.project-create select,.project-create textarea{width:100%;padding:13px 14px;border:1px solid #b8cbd3;border-radius:7px;background:#fff;color:#14263a;font:16px/1.4 Arial,Helvetica,sans-serif}
.project-create input[type="search"]{min-height:54px;border-color:#7d9da9;box-shadow:0 0 0 3px #e8f4f2}
.project-create input:focus,.project-create select:focus,.project-create textarea:focus{outline:2px solid #0b9378;outline-offset:1px}
.project-suggestion{color:#226354;min-height:24px;font-weight:700;margin:10px 0 20px}
.project-suggestion button{border:1px solid #0b9378;border-radius:6px;background:#e8f7f2;color:#095d4d;font:inherit;padding:5px 10px;cursor:pointer}
.project-field{display:grid;gap:2px;margin-bottom:19px}
.project-field small{color:#617083}
.project-location{border-top:1px solid #dce5e9;margin-top:24px;padding-top:24px}
.project-location h3{font-size:18px;margin:0 0 16px}
.project-location-fields{background:#f5faf8;border:1px solid #d3e8df;border-radius:10px;padding:18px 18px 0;margin-bottom:24px}
.project-location-fields[hidden]{display:none}
.project-location-fields input[readonly]{background:#e8f1ee;color:#354e49}
.project-location [data-location-help] a{color:#087b68;font-weight:800}
.project-questions{border-top:1px solid #dce5e9;margin-top:24px;padding-top:24px}
.project-questions h3{font-size:18px;margin:0 0 4px}
.project-questions>p{margin:0 0 24px;color:#617083}
.project-field-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.project-checks{border:1px solid #dce5e9;border-radius:9px;padding:16px 18px;margin:0 0 21px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.project-checks legend{padding:0 6px}
.project-checks label{display:flex;align-items:center;gap:9px;font-size:15px}
.project-checks input{width:18px;height:18px;accent-color:#087e69}
.project-field[hidden]{display:none}
.project-form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.project-form-actions [data-save-status]{font-size:14px;color:#9b352c;font-weight:700}
.project-image-section{border-top:1px solid #dce5e9;padding-top:24px;margin-top:14px}
.project-image-section>label{font-weight:800;color:#263a50;font-size:19px}
.project-image-section>label span{font-size:14px;color:#607484;margin-left:8px}
.project-image-section>p{color:#617083;margin:8px 0 15px}
.project-image-section input{max-width:100%;font:inherit}
.project-image-section [data-image-status]{min-height:24px;color:#536a7b;margin-top:10px}
.project-image-grid,.project-card-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin:14px 0}
.project-image-grid figure{margin:0;min-width:0;border:1px solid #dce5e9;border-radius:8px;overflow:hidden;background:#f8fbfb}
.project-photo-trigger{display:block;width:100%;border:0;padding:0;background:transparent;cursor:zoom-in}
.project-photo-trigger:focus-visible,.project-card-images a:focus-visible{outline:3px solid #0b9378;outline-offset:3px}
.project-image-grid img,.project-card-images img{width:100%;height:110px;object-fit:cover;display:block;border-radius:7px}
.project-image-grid figcaption{padding:8px;font-size:13px;display:grid;gap:6px}
.project-image-grid figcaption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-image-grid figcaption button{border:0;background:transparent;color:#9b352c;text-align:left;padding:2px 0;cursor:pointer;font-weight:800}
.project-card-images{grid-template-columns:repeat(auto-fill,minmax(76px,1fr))}
.project-card-images img{height:80px}
.project-photo-dialog{width:min(960px,calc(100% - 24px));max-height:92vh;border:0;border-radius:12px;padding:16px;background:#fff;color:#12344b;box-shadow:0 28px 90px #06182c88}
.project-photo-dialog::backdrop{background:#06182ccc}
.project-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.project-photo-heading h2{margin:0;font-size:20px}
.project-photo-heading button{min-height:44px;border:1px solid #aabcc8;border-radius:7px;padding:8px 14px;background:#fff;color:#12344b;font:800 15px Arial;cursor:pointer}
.project-photo-stage{position:relative;display:grid;place-items:center;min-height:180px}
.project-photo-stage img{display:block;max-width:100%;max-height:calc(92vh - 140px);object-fit:contain}
.project-photo-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:1;display:grid;place-items:center;width:46px;height:52px;border:0;border-radius:8px;background:#0b253cd9;color:#fff;font:42px/1 Arial;cursor:pointer}
.project-photo-arrow[data-photo-prev]{left:8px}
.project-photo-arrow[data-photo-next]{right:8px}
.project-photo-arrow[hidden]{display:none}
.project-photo-arrow:focus-visible{outline:3px solid #34c6a1;outline-offset:2px}
.project-photo-meta{display:flex;justify-content:space-between;gap:16px;align-items:center;color:#536a7b}
.project-photo-meta p{margin:12px 2px 0;overflow-wrap:anywhere}
.project-photo-meta span{white-space:nowrap;font-weight:800}
.project-review{width:min(640px,calc(100% - 28px));max-height:min(86vh,900px);border:1px solid #dce3e8;border-radius:14px;padding:26px 30px;box-shadow:0 25px 80px #0b1d3366;color:#21394c}
.project-review::backdrop{background:#061c2dbb}
.project-review h2{margin:0 0 10px;font-size:22px}
.project-review h3{font-size:19px}
.project-review [data-review-content]{max-height:56vh;overflow:auto}
.project-review dl{display:grid;gap:8px}
.project-review dl>div{display:grid;grid-template-columns:180px 1fr;gap:8px}
.project-review dd{margin:0}
.project-ai-recap{background:#eaf8f4;border-left:3px solid #0b9378;padding:12px 18px;margin:18px 0}
.project-ai-recap h4{margin:14px 0 5px}
.project-review-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.project-review [data-review-status]{color:#9b352c;font-weight:700}
.project-delete-dialog label{display:block;font-weight:800;margin:18px 0 8px}
.project-delete-dialog input{width:100%;padding:12px;border:1px solid #aabcc8;border-radius:7px;font:16px Arial,Helvetica,sans-serif}
.project-delete-confirm{min-height:44px;border:1px solid #8b2e27;border-radius:7px;padding:10px 18px;background:#a8372f;color:#fff;font:800 15px Arial,Helvetica,sans-serif;cursor:pointer}
.project-delete-confirm:disabled{opacity:.5;cursor:not-allowed}
.project-delete-dialog [data-delete-status]{color:#9b352c;font-weight:700}
@media(max-width:600px){.project-review{padding:20px}.project-review dl>div{grid-template-columns:1fr;gap:0}}
@media(max-width:760px){.projects-content{width:calc(100% - 28px)}.projects-heading{align-items:stretch;flex-direction:column}.projects-heading .project-primary{align-self:flex-start}.project-navigation,.project-lists,.project-field-row,.project-archive-panel .project-list{grid-template-columns:1fr}.project-card dl>div{grid-template-columns:1fr;gap:0}.project-list-panel,.project-create{padding:21px}.project-checks{grid-template-columns:1fr}}

.project-trade-review{margin:22px 0;padding:17px;border:1px solid #b5d9d1;border-radius:8px;background:#f0faf7}.project-trade-review label{display:flex;gap:10px;align-items:flex-start;font-weight:800;color:#183951}.project-trade-review input{width:18px;height:18px;flex:none;accent-color:#087c69}.project-trade-review small{display:block;margin:7px 0 0 28px;color:#52677e}
.project-trade-review{min-width:0}.project-trade-review legend{padding:0 5px;color:#183951;font-weight:800}.project-trade-review label+label{margin-top:12px}.project-trade-review small{margin-left:0}
/* Saved project answers use the full width of each project card. */
.project-card .project-details{margin-top:16px;padding-top:17px}
.project-card .project-details summary{font-size:1rem}
.project-card .project-details dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 0}
.project-card .project-details dl>div{display:block;min-width:0;min-height:84px;padding:13px 15px;border:1px solid #dce5e9;border-radius:8px;background:#fff}
.project-card .project-details dt{margin:0 0 8px;color:#52677a;font-size:.875rem;line-height:1.35;font-weight:750}
.project-card .project-details dd{margin:0;color:#19354a;font-size:1rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.project-card .project-details .project-answer-wide{grid-column:span 2}
@media(max-width:900px){.project-card .project-details dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.project-card .project-details dl{grid-template-columns:1fr}.project-card .project-details .project-answer-wide{grid-column:auto}.project-card .project-details dl>div{min-height:0}}
.project-title-link{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:62px;padding:15px 18px;border:1px solid #dce5e9;border-radius:9px;background:#fbfcfc;color:#125b65;text-decoration:none;font-size:1.05rem;font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.project-title-link:hover,.project-title-link:focus-visible{border-color:#0b9378;background:#edf9f5;outline:2px solid #b8e4d6;outline-offset:2px}
.project-title-link span{flex:none;color:#087b68;font-size:1.35rem}
.project-detail-page .project-card{padding:24px;background:#fff}
.project-detail-page .project-card h2{margin:0 0 16px;font-size:1.25rem}
.project-detail-page .project-detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #dce5e9}
.project-detail-page .project-detail-actions .project-status-button{margin-top:0}
@media(max-width:600px){.project-detail-page .project-card{padding:17px}.project-detail-page .project-detail-actions{flex-direction:column}.project-detail-page .project-detail-actions .project-status-button{width:100%}}
.project-detail-page .project-card .project-details{border-top:1px solid #dce5e9}
.project-detail-page .project-detail-actions a.project-status-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.project-detail-page .project-detail-images{margin-top:24px;padding-top:18px;border-top:1px solid #dce5e9}
.project-detail-page .project-detail-images h2{margin:0 0 12px}
/* Compact estimating fields with room for labels and follow-up answers. */
.project-create input[type="search"],.project-create input[type="text"],.project-create input[type="number"],.project-create input[inputmode],.project-create select{height:38px;min-height:38px;padding:7px 10px;border-radius:5px;max-width:520px}
.project-create input[type="number"]{max-width:220px}
.project-create select{max-width:420px}
.project-create input[type="search"]{max-width:600px}
.project-create textarea{min-height:80px;height:80px;max-width:700px;padding:8px 10px;border-radius:5px;resize:vertical}
.project-field{margin-bottom:12px;min-width:0}
.project-field label{margin-bottom:4px;line-height:1.4;font-size:15px}
.project-questions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
.project-questions>h3,.project-questions>p,.project-questions>.project-checks,.project-field-wide{grid-column:1/-1}
.project-checks[hidden]{display:none}
@media(max-width:760px){.project-questions{grid-template-columns:1fr;gap:0}.project-create input[type="search"],.project-create input[type="text"],.project-create input[type="number"],.project-create input[inputmode],.project-create select{height:44px;min-height:44px;padding:10px;max-width:100%}.project-create textarea{max-width:100%}}
@media(pointer:coarse){.project-create input[type="search"],.project-create input[type="text"],.project-create input[type="number"],.project-create input[inputmode],.project-create select{height:44px;min-height:44px;padding:10px}}

.project-detail-actions .estimate-build-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;text-align:center}
@media(max-width:600px){.project-detail-actions .estimate-build-button{width:100%}}

.project-card-top-with-estimate{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px}.project-card-top-with-estimate .estimate-build-button{justify-self:center;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.project-card-top-with-estimate time{text-align:right;justify-self:end}
@media(max-width:600px){.project-card-top-with-estimate{grid-template-columns:1fr 1fr;gap:12px}.project-card-top-with-estimate .estimate-build-button{grid-column:1/-1;grid-row:2;justify-self:center}.project-card-top-with-estimate time{grid-column:2;grid-row:1}}

.project-retention-note{color:#536a7b;font-size:13px;line-height:1.5;margin:14px 0}.project-retention-note a{color:#125567}

/* Guided homeowner intake: one focused section at a time. */
.project-create .project-step[hidden],.project-create [hidden]{display:none!important}
.project-step-header{margin:18px 0 24px;padding:18px;border:1px solid #dce5e9;border-radius:10px;background:#f3f9f7}
.project-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0}
.project-steps li{color:#52677a;font-size:14px;line-height:1.5}
.project-steps li span{display:inline-grid;place-items:center;width:26px;height:26px;margin-right:5px;border-radius:50%;background:#e0e9e6;font-weight:800}
.project-steps li[aria-current]{color:#086c59;font-weight:800}
.project-steps li[aria-current] span{background:#087b68;color:white}
.project-step-header p{margin:14px 0 0;color:#183951;font-weight:700}
.project-step{min-width:0;outline:none}.project-step:focus-visible{outline:2px solid #087b68;outline-offset:6px}
.project-step .project-questions>h3:first-of-type{margin-top:0}
.project-create .project-form-actions{flex-wrap:wrap;border-top:1px solid #dce5e9;padding-top:20px;margin-top:24px}
@media(max-width:640px){.project-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}.project-step-header{padding:14px}.project-create .project-form-actions button{flex:1 1 auto}}

.estimate-level-intake{border:1px solid #c8d5da;padding:18px;border-radius:12px;margin-bottom:20px}.estimate-level-intake label{display:block;margin:12px 0}.estimate-level-intake select,.estimate-level-intake input,.estimate-level-intake textarea{width:100%}

.project-early-coverage{margin:22px 0;padding:20px;border:1px solid #b9dcd4;border-radius:12px;background:#f3faf8;color:#183747;overflow-wrap:anywhere}.project-early-coverage h3{margin:0 0 12px}.project-early-coverage p{margin:10px 0}.early-coverage-help{font-size:14px;line-height:1.6}.early-coverage-referral{border-top:1px solid #cddfdc;margin-top:16px;padding-top:8px}.project-early-coverage input[type=url]{display:block;width:100%;min-width:0;max-width:100%;margin:8px 0;min-height:44px;font-size:16px}.early-coverage-actions{display:flex;flex-wrap:wrap;gap:10px}.project-early-coverage button{max-width:100%;white-space:normal;min-height:44px}.project-trade-review input[type=radio]{flex:none;accent-color:#087c69;width:20px;height:20px;margin:2px 10px 0 0}@media(max-width:540px){.project-early-coverage{padding:15px}.early-coverage-actions button{flex:1}}
