/* One workspace, one visible destination. No floating planning panels. */
.phase-planner-active>.planner-layout,.phase-planner-active>.planner-help,.phase-planner-active>#switch-mode,.phase-planner-active>#new-project-active,.phase-planner-active>#chat-toggle,.phase-planner-active .planning-hub{display:none!important}
#phase-workspace{width:100%;max-width:1080px;margin:0 auto;padding:clamp(16px,3vw,36px);box-sizing:border-box;background:#f7f3e9;border:1px solid #cbbda5;border-radius:20px;color:#302b23;overflow-wrap:anywhere}
#phase-workspace [hidden]{display:none!important}
#phase-workspace .phase-bubbles{position:static!important;inset:auto!important;z-index:auto!important;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;background:transparent;padding:0 0 18px;margin:0 0 24px;border:0;border-bottom:1px solid #d8cdbb;box-shadow:none;border-radius:0}
#phase-workspace .phase-bubbles .button{position:static!important;display:flex;align-items:center;justify-content:center;width:100%!important;min-width:0;max-width:100%;margin:0!important;min-height:42px;height:auto;padding:10px 5px!important;border:1px solid #bfb39d!important;border-radius:9px!important;box-sizing:border-box;box-shadow:none!important;font-size:.86rem!important;font-weight:600;line-height:1.25;white-space:normal;background:#fffdf7!important;color:#344837!important}
#phase-workspace .phase-bubbles [aria-current=page]{background:#344837!important;color:#fff!important;border-color:#344837!important}
.phase-heading{text-align:center;margin:18px auto 30px;max-width:650px}.phase-heading p{font-size:.72rem;letter-spacing:.16em;color:#76684d}.phase-heading h2{font-size:clamp(1.7rem,4vw,2.5rem);margin:12px 0;line-height:1.15}
.phase-tabs,.phase-topic-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:22px 0 30px;padding:0;overflow:visible}
.phase-tabs .button,.phase-choice-card,.phase-piece-card,.phase-option-card{font:inherit;cursor:pointer;color:#302b23;background:#fff;border:1px solid #d5cab7;border-radius:14px;box-shadow:0 4px 14px #3b302013;text-align:left;min-width:0;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.phase-tabs .button{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding:24px;white-space:normal;min-height:132px}.phase-tabs .button span{color:#867047;font-size:.8rem;letter-spacing:.12em}.phase-tabs .button strong{font-size:1.1rem}
.phase-choice-card{display:flex;flex-direction:column;align-items:flex-start;padding:0 0 20px;overflow:hidden;gap:12px}.phase-choice-card img{display:block;width:100%;height:150px;object-fit:contain;box-sizing:border-box;padding:22px;background:#e5ebdf;border:0}.phase-choice-card:nth-child(3n+2) img{background:#eee3d3}.phase-choice-card:nth-child(3n) img{background:#dfe8eb}.phase-choice-card>span,.phase-choice-card>strong,.phase-choice-card>p,.phase-choice-card>small{margin:0 20px}.phase-choice-card>span{display:inline-block;padding:5px 9px;border-radius:6px;background:#f0e6d1;color:#70572a;font-size:.75rem}.phase-choice-card strong{font-size:1.13rem;line-height:1.3}.phase-choice-card p{font-size:.91rem;line-height:1.5;color:#6c6355}.phase-choice-card small{margin-top:auto;padding-top:10px;color:#426047;font-weight:600}
.phase-page{display:block;min-height:0}.phase-page>h3{font-size:clamp(1.5rem,4vw,2rem);margin:10px 0 20px;line-height:1.2}.phase-page>p{max-width:740px;color:#6d6355;line-height:1.6}
.phase-topic-panel{max-width:780px;margin:0 auto;padding:clamp(18px,3vw,30px);background:#fffdf8;border:1px solid #d6cab5;border-radius:16px;box-sizing:border-box}.phase-topic-panel h4{font-size:clamp(1.4rem,3vw,1.9rem);margin:0 0 12px;line-height:1.2}.phase-topic-panel>p{font-size:1rem;color:#716653;line-height:1.5;margin:0 0 24px}.phase-page label{display:block;font-weight:600;margin:22px 0}.phase-page input:not([type=checkbox]):not([type=radio]),.phase-page select,.phase-page textarea{display:block;box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid #bcb09a;border-radius:8px;background:#fff;color:#302b23;font:inherit;line-height:1.4;margin-top:8px}.phase-page textarea{min-height:95px}.phase-page input:focus-visible,.phase-page textarea:focus-visible{outline:2px solid #627c5b;outline-offset:2px}
.phase-topic-panel details{margin:16px 0}.phase-topic-panel>details:not(.phase-project-extras)>summary{display:none}.phase-project-extras>summary{font-weight:500;color:#5d6654;cursor:pointer;font-size:.92rem;padding:10px 0}
.phase-option-grid,.phase-piece-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 18px}.phase-option-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;min-height:105px;padding:16px}.phase-option-card strong{font-size:.94rem;font-weight:600;line-height:1.4}.phase-option-card small{font-size:.75rem;color:#6f6a5a}.phase-piece-card{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px;text-align:center}.phase-piece-card img{width:100%;height:95px;object-fit:contain;background:#e8eddf;border-radius:8px;padding:10px;box-sizing:border-box}.phase-piece-card strong{font-size:.93rem;font-weight:600;line-height:1.3}
#phase-workspace [aria-pressed=true]{border-color:#426047;box-shadow:0 0 0 2px #426047;background:#f1f6eb}.phase-choice-card:hover,.phase-tabs .button:hover,.phase-option-card:hover,.phase-piece-card:hover{border-color:#7a8b6b}.phase-choice-card:focus-visible,.phase-option-card:focus-visible,.phase-piece-card:focus-visible{outline:3px solid #688060;outline-offset:3px}
.covering-swatch{width:100%;height:72px;border-radius:7px;display:block;background:#d4c8a8}.covering-swatch.fabric{background:repeating-linear-gradient(0deg,#c8bba4 0 2px,#dfd5c2 2px 4px);box-shadow:inset 0 0 0 1px #b3a487}.covering-swatch.vinyl{background:linear-gradient(135deg,#b8c4b5,#dce5d8 45%,#a7b5a4)}.covering-swatch.leather{background:linear-gradient(125deg,#785436,#b48d66 55%,#846140)}
.phase-trail{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px}.phase-trail .button{background:transparent;border:1px solid #bcb099;border-radius:8px;font-size:.85rem;padding:9px 12px}.phase-trail p{font-size:.8rem;color:#746a59;margin:0}.phase-footer{display:flex;justify-content:space-between;gap:14px;max-width:780px;margin:24px auto 0;padding-top:20px;border-top:1px solid #d8cdbb}.phase-footer .button{position:static;border-radius:10px;min-height:46px;padding:12px 22px;font-size:.95rem}.phase-footer .button:last-child{background:#344837;color:#fff}.phase-advanced{margin:24px auto;max-width:780px;border-top:1px solid #d8cdbb;padding-top:18px}.phase-advanced .guided-controls,.phase-advanced .guided-choice-review{display:none!important}.phase-advanced #design-workspace{display:block!important}#phase-save-status{font-size:.82rem;min-height:1em;color:#6c6657;margin:0 0 14px}
.phase-suppliers{padding:15px;border-radius:10px;background:#edf1e7}.phase-suppliers p{font-size:.9rem;font-weight:400}.phase-suppliers a{display:inline-block;font-size:.9rem;margin:6px 14px 6px 0}.phase-photo-tools #chat-photo-thumbnails{display:flex!important;overflow-x:auto;width:100%;gap:10px;margin:14px 0}.phase-photo-tools #chat-photo-thumbnails img{width:88px;height:88px;object-fit:cover}.phase-photo-tools #chat-photo-thumbnails a{flex:none}
.foam-builder{background:#eee9dc;border-radius:12px;padding:18px}.foam-stack{padding:18px 8px;max-width:650px;margin:auto}.foam-stack button{display:block;width:100%;border:1px solid #8c8269;border-radius:5px;margin:7px 0;text-align:left;padding:10px;white-space:normal;color:#283527}.foam-stack .active{outline:2px solid #426047;outline-offset:2px}.foam-wrap{background:#fffdf8!important}.foam-layer-editor{background:#fffdf7;border-radius:8px;padding:14px}
#phase-workspace #phase-chat-dialog,#phase-workspace #current-design-panel,#phase-workspace #project-costs-panel{position:static!important;inset:auto!important;margin:0!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;padding:clamp(12px,2vw,24px)!important;border:0;border-radius:12px;background:#fffdf8;box-shadow:none!important;overflow:visible!important;box-sizing:border-box;z-index:auto!important}
#phase-workspace #current-design-panel[open],#phase-workspace #project-costs-panel[open]{display:block}
#phase-workspace .current-design-heading{position:static;top:auto;z-index:auto;background:transparent;align-items:center;flex-wrap:wrap;gap:12px}#phase-workspace .current-design-heading h2{font-size:1.5rem}#phase-workspace .current-design-heading .button{font-size:.85rem;padding:9px 12px}
#phase-workspace #conversation-panel{position:static!important;display:block!important;inset:auto!important;max-height:none!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
#phase-workspace #messages{max-height:50dvh;overflow:auto;margin:15px 0}#phase-workspace #conversation-panel>.fine,#phase-workspace .chat-panel-heading .eyebrow,#phase-workspace .chat-photo-row:empty{display:none}#phase-workspace .chat-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}#phase-workspace .chat-panel-heading h2{font-size:1.4rem;margin:0}#phase-workspace #chat-close{display:inline-block!important;font-size:.85rem;padding:9px 12px}#phase-workspace #message{width:100%;box-sizing:border-box;min-height:80px}#phase-workspace .planning-quantities{display:block;overflow-x:auto;max-width:100%}.phase-page .brief-panel{display:block!important;padding:0;background:transparent}
@media(max-width:700px){.phase-tabs,.phase-topic-cards,.phase-option-grid,.phase-piece-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.phase-choice-card img{height:120px;padding:16px}.phase-choice-card>span,.phase-choice-card>strong,.phase-choice-card>p,.phase-choice-card>small{margin-left:14px;margin-right:14px}.phase-choice-card p{font-size:.85rem}.phase-choice-card strong{font-size:1rem}.phase-tabs .button{padding:16px;min-height:120px}.phase-option-card{padding:12px}.phase-piece-card img{height:85px}}
@media(max-width:420px){#phase-workspace{padding:14px;border-radius:12px}#phase-workspace .phase-bubbles .button{font-size:.72rem!important;padding:8px 3px!important}.phase-topic-panel{padding:16px}.phase-option-grid{gap:10px}.phase-option-card strong{font-size:.86rem}.phase-footer .button{padding:11px 16px;font-size:.9rem}.phase-trail p{font-size:.75rem}}
/* The old prose price preview is superseded by the dedicated Costs view. */
#phase-workspace #labor-preview{display:none!important}
#phase-workspace #conversation-panel,#phase-workspace #chat-form{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
#phase-workspace #messages{display:block!important;height:auto!important;min-height:0!important;max-height:55dvh!important;overflow:auto!important;flex:none!important;background:transparent;padding:0;isolation:isolate}
#phase-workspace #messages .chat-message{display:block!important;position:static!important;float:none!important;flex:none!important;transform:none!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0 0 14px;padding:16px;white-space:pre-wrap;overflow:visible;overflow-wrap:break-word;word-break:normal;line-height:1.65;box-sizing:border-box}
#phase-workspace #messages .chat-message strong{display:block;margin:0 0 8px;line-height:1.4}#phase-workspace #chat-form{clear:both;margin-top:20px}#phase-workspace #chat-close{order:0;flex:0 0 auto;width:auto;max-width:100%;min-height:40px}
#phase-workspace .planning-quantities th,#phase-workspace .planning-quantities td{word-break:normal;overflow-wrap:normal;line-height:1.5;vertical-align:top}
@media(max-width:700px){
 #phase-workspace .planning-cost-items,#phase-workspace .planning-cost-summary{display:block;width:100%;overflow:visible;font-size:.95rem}
 #phase-workspace .planning-cost-items tbody,#phase-workspace .planning-cost-summary tbody{display:block;width:100%}
 #phase-workspace .planning-cost-items tr:first-child,#phase-workspace .planning-cost-summary tr:first-child{display:none}
 #phase-workspace .planning-cost-items tr:not(:first-child){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 18px;padding:18px 0;border-bottom:1px solid #c9bca5}
 #phase-workspace .planning-cost-items td{display:block;padding:0;border:0;min-width:0;background:transparent;font-weight:400;white-space:normal}
 #phase-workspace .planning-cost-items td:first-child{grid-column:1/-1;font-weight:600;font-size:1rem}
 #phase-workspace .planning-cost-items td::before{content:attr(data-label);display:block;font-size:.75rem;font-weight:400;color:#766b58;margin-bottom:4px}
 #phase-workspace .planning-cost-items td:first-child::before{display:none}
 #phase-workspace .planning-cost-items td:last-child{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;gap:16px;white-space:normal;font-weight:600;font-variant-numeric:tabular-nums}
 #phase-workspace .planning-cost-items td:last-child::before{white-space:normal;margin-bottom:0;flex:1}
 #phase-workspace .planning-cost-summary tr:not(:first-child){display:block;padding:14px 0;border-bottom:1px solid #c9bca5}
 #phase-workspace .planning-cost-summary th,#phase-workspace .planning-cost-summary td{display:block;width:auto;padding:0;border:0;background:transparent;color:inherit;text-align:left}
 #phase-workspace .planning-cost-summary th{font-size:.85rem;font-weight:400;margin-bottom:5px;color:#6e6351}
 #phase-workspace .planning-cost-summary td{font-weight:600;font-size:1.1rem;white-space:nowrap;font-variant-numeric:tabular-nums}
}

@media(max-width:700px){#phase-workspace .planning-cost-items td.cost-range{white-space:nowrap}}
.phase-session-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:-8px 0 20px;color:#776b58;font-size:.82rem}.phase-session-actions .button{background:transparent;border:1px solid #bfb39d;border-radius:8px;padding:8px 12px;font-size:.82rem}

/* Keep action labels readable: wrap between words, never inside them. */
#phase-workspace button,#phase-workspace .button{word-break:normal;overflow-wrap:normal;hyphens:none}
#phase-workspace .phase-bubbles .button{white-space:nowrap}
@media(max-width:340px){#phase-workspace .phase-bubbles{grid-template-columns:repeat(2,minmax(0,1fr))}}

.phase-submit-bar{position:sticky;top:8px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#f6f3ec;border:1px solid #bfb39d;border-radius:10px;box-shadow:0 3px 12px #211c181a;margin-bottom:16px}
.phase-submit-bar span{font-size:.85rem;max-width:40em}.phase-submit-bar .button{flex-shrink:0}
.phase-progress{font-size:.9rem;color:#615951}
#phase-review-summary{padding:20px;border:1px solid #bfb39d;margin-bottom:24px;background:#f6f3ec}
#phase-review-summary p{overflow-wrap:anywhere}#phase-review-summary .button{padding:4px 10px;margin-left:10px;font-size:.8rem}
#phase-review-summary details{margin-top:22px}#phase-review-summary summary{font-weight:600}
@media(max-width:600px){.phase-submit-bar{top:4px;padding:10px;align-items:stretch;flex-direction:column}.phase-submit-bar .button{width:100%;text-align:center}.phase-submit-bar span{font-size:.78rem}#phase-review-summary{padding:14px}}

/* Checkboxes are fixed-size controls, never full-width text inputs. */
#phase-workspace .check-label{display:flex;align-items:flex-start;gap:.7rem;min-width:0;line-height:1.5}
#phase-workspace input[type=checkbox],#phase-workspace input[type=radio]{display:inline-block;flex:0 0 1.15rem;width:1.15rem;height:1.15rem;min-width:1.15rem;max-width:1.15rem;padding:0;margin:.2em 0 0;align-self:flex-start}
#phase-workspace .check-label>span{flex:1 1 auto;min-width:0}
#phase-workspace .phase-page,#phase-workspace .brief-panel,#phase-workspace form,#phase-workspace label{min-width:0;max-width:100%;box-sizing:border-box}
#phase-workspace .phase-submit-bar{position:static}
#phase-workspace .phase-footer{flex-wrap:wrap}
#phase-workspace .phase-footer .button{flex:1 1 130px}
#phase-workspace #phase-review-summary>details{max-width:100%}
@media(max-width:600px){#phase-workspace .phase-submit-bar span{display:none}.intake-section{padding-left:4%;padding-right:4%}#phase-workspace{padding:14px}.phase-page .brief-panel{padding:0;border:0}}

.phase-project-start{max-width:780px;margin:0 auto 28px;padding:clamp(18px,3vw,30px);border:1px solid #d6cab5;border-radius:16px;background:#fffdf8;box-sizing:border-box}.phase-project-start>p:first-child{font-size:.75rem;letter-spacing:.12em;color:#76684d}.phase-project-start h2{font-size:clamp(1.7rem,4vw,2.4rem);line-height:1.15;margin:12px 0}.phase-project-start p{line-height:1.5}.phase-project-start label{display:block;font-weight:600;margin:20px 0}.phase-project-start textarea{display:block;box-sizing:border-box;width:100%;min-height:110px;padding:12px;margin-top:8px;border:1px solid #bcb09a;border-radius:8px;font:inherit;background:#fff;color:#302b23}.phase-project-start textarea:focus-visible{outline:2px solid #627c5b;outline-offset:2px}.phase-project-start>.button{margin:8px 8px 0 0;max-width:100%;white-space:normal}.phase-start-photos{padding:16px 0;border-bottom:1px solid #d8cdbb}.phase-project-start .phase-photo-tools{margin:0}.phase-project-start #chat-add-photos{min-height:48px}

.phase-simple-choice{border:0;padding:0;margin:22px 0;min-width:0;max-width:100%}.phase-simple-choice legend{font-weight:700;line-height:1.4;margin-bottom:10px}.phase-simple-choice select,.phase-simple-choice textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:48px;padding:12px;border:1px solid #bcb09a;border-radius:8px;background:#fff;color:#302b23;font:inherit}.phase-simple-choice .phase-simple-other{margin-top:16px}.phase-simple-choice .phase-simple-other[hidden]{display:none!important}.phase-simple-choice textarea{margin-top:8px;min-height:96px}.phase-simple-choice :is(select,textarea):focus-visible{outline:2px solid #627c5b;outline-offset:2px}

.phase-multi-options{display:grid;gap:10px;margin:12px 0}.phase-multi-choice .phase-multi-option{display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid #d6cab5;border-radius:8px;min-height:48px;box-sizing:border-box;cursor:pointer}.phase-multi-choice .phase-multi-option input[type=checkbox]{width:22px;min-width:22px;height:22px;min-height:22px;margin:1px 0 0;accent-color:#354f3b}.phase-multi-option span{line-height:1.4}

.phase-material-areas{margin-top:1.25rem}.phase-material-area{border:1px solid #b9ad96;border-radius:12px;padding:1rem;margin:1rem 0;display:grid;gap:.85rem;min-width:0}.phase-material-area legend{font-weight:700;padding:0 .4rem}.phase-material-area label{display:grid;gap:.4rem;min-width:0}.phase-material-area input,.phase-material-area textarea,.phase-material-area select{width:100%;box-sizing:border-box;min-width:0}.phase-material-areas .button{white-space:normal}

/* One visible planning workspace in both modes. */
.phase-planner-active>.planner-shortcuts,.phase-planner-active>p.fine{display:none!important}
#phase-workspace .phase-bubbles .button{min-height:48px}
#phase-workspace .planning-note{background:#f4f0e7;border-color:#b9ad96}
#phase-workspace #current-material-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:16px 0 28px;align-items:start}
#phase-workspace #current-material-cards>h3{grid-column:1/-1}
#phase-workspace .current-material-card{margin:0;min-width:0;overflow-wrap:anywhere}
#phase-workspace .current-material-card img{width:100%;height:190px;object-fit:contain;background:#fff}
#phase-workspace .current-material-card .button{display:block;margin:10px 0;white-space:normal;text-align:center;min-height:44px}
.plan-intro{padding-bottom:0}.intake-section #welcome{max-width:780px;margin:auto}.planning-start-details{margin-top:20px}.planning-start-details summary{min-height:44px;display:list-item;cursor:pointer}.planning-start-details .fine{font-size:.85rem}

.plan-intro{padding-top:24px;padding-bottom:32px}.plan-intro>.eyebrow{margin-top:0}.plan-intro .case-lead{margin-bottom:0}.intake-section #welcome>h2{font-size:1.7rem}.intake-section #welcome{padding:22px 25px}
