/* Chat geometry follows its grid area; the transcript scrolls inside it. */
@media(min-width:701px){
 html.customer-experience .layout-stage .chat.chat-guided:not(.expanded){align-self:stretch;height:auto;max-height:none;min-height:0}
}
html.customer-experience .layout-stage .chat.chat-guided .chat-bottom{flex-shrink:0;min-width:0}
.chat.chat-guided .composer-guidance{container-name:chat-composer;container-type:inline-size;scrollbar-width:thin}
.chat.chat-guided .composer-guidance .guide-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:8px}
.chat.chat-guided .composer-guidance .guide-option{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:8px;min-width:0;min-height:40px;margin:0;padding:8px 10px;font-family:inherit;font-size:13px;line-height:1.6}
.chat.chat-guided .composer-guidance .guide-option>span{min-width:0;white-space:normal;overflow-wrap:anywhere}
.chat.chat-guided .composer-guidance .guide-option>input{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:16px;height:16px;min-width:16px;min-height:16px;margin:0;padding:0}
.chat.chat-guided .composer-guidance .guide-selection-note{display:flex;align-items:flex-start;gap:10px;min-width:0}
.chat.chat-guided .composer-guidance .guide-selection-note>span{flex:1 1 0;min-width:0;line-height:1.65}
.chat.chat-guided .composer-guidance .guide-selection-note>button{flex:0 0 auto;white-space:nowrap;line-height:1.65;min-width:max-content}
@container chat-composer (max-width:430px){.chat.chat-guided .composer-guidance .guide-choices{grid-template-columns:minmax(0,1fr)}}
@container chat-composer (min-width:431px){.chat.chat-guided .composer-guidance .guide-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
html.customer-experience .layout-stage .chat.chat-guided #conversation{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:end;gap:8px;min-width:0;box-sizing:border-box}
html.customer-experience .layout-stage .chat.chat-guided #input{display:block;box-sizing:border-box;width:100%;min-width:0;height:72px;min-height:72px;max-height:160px;margin:0;padding:8px 6px;font-family:inherit;font-size:14px;line-height:1.65;resize:none;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#355166 transparent}
html.customer-experience .layout-stage .chat.chat-guided #send{box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;justify-self:end;align-self:end}
.chat.chat-guided #input::-webkit-scrollbar{width:6px}.chat.chat-guided #input::-webkit-scrollbar-track{background:transparent}.chat.chat-guided #input::-webkit-scrollbar-thumb{background:#355166;border-radius:6px}.chat.chat-guided #input::-webkit-scrollbar-button{display:none;width:0;height:0}
@media(max-width:700px){
 html.customer-experience .layout-stage .chat.chat-guided #input{font-size:16px;height:76px;min-height:76px}
 html.customer-experience .layout-stage .chat.chat-guided:has(.composer-guidance .ai-guide-welcome){min-height:0;height:auto}
 html.customer-experience .layout-stage .chat.chat-guided:has(.composer-guidance .ai-guide-welcome) #messages{height:auto;min-height:82px;flex:0 0 auto}
}
@media(max-width:400px){html.customer-experience header>div{display:flex;flex-wrap:wrap;box-sizing:border-box;min-width:0;max-width:100%;gap:8px}}

.recommendation-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}.recommendation-actions>button{flex:1;min-height:42px;min-width:120px}.recommendation-comparison-curve{display:block;width:100%;height:auto;min-width:0}
.recommendation-comparison-selector{display:flex;align-items:center;gap:8px;min-width:0}.recommendation-comparison-selector select{min-width:0;max-width:100%;flex:1}

/* A complete field, rather than four children squeezed into a two-column choice. */
.chat.chat-guided :is(#messages,.composer-guidance) .guide-option.guide-custom-risk{display:grid;grid-column:1/-1;grid-template-columns:16px minmax(0,1fr) minmax(84px,110px);align-items:center;gap:9px;min-width:0;padding:9px 10px}
.chat.chat-guided :is(#messages,.composer-guidance) .guide-custom-risk .custom-risk-entry{display:flex;align-items:center;gap:6px;min-width:0;width:100%;box-sizing:border-box;padding:0 8px;border:1px solid #365266;border-radius:6px;background:#0c1824;color:#c7dbe7;overflow:hidden}
.chat.chat-guided :is(#messages,.composer-guidance) .guide-custom-risk input.custom-risk-value{appearance:textfield;-webkit-appearance:textfield;box-sizing:border-box;flex:1 1 0;min-width:0;width:100%;height:38px;margin:0;padding:6px 0;border:0;border-radius:0;background:transparent;box-shadow:none;font:inherit;font-size:14px;line-height:1.5;color:#c7dbe7;outline:0}
.chat.chat-guided .guide-custom-risk input.custom-risk-value::-webkit-inner-spin-button,.chat.chat-guided .guide-custom-risk input.custom-risk-value::-webkit-outer-spin-button{appearance:none;-webkit-appearance:none;margin:0}
.chat.chat-guided .custom-risk-entry:focus-within{border-color:#7ce8b5;outline:1px solid #7ce8b5;outline-offset:1px}
.chat.chat-guided .custom-risk-entry>span{flex:0 0 auto;font-size:13px;color:#91aabd}
.recommendation-actions>button.is-current:disabled{opacity:1;color:#7ce8b5;border-color:#315c50;background:#142e29;cursor:default}
.research-supplements{box-sizing:border-box;min-width:0;margin:0 0 8px;padding:9px 10px;border:1px solid #2d4d59;border-radius:10px;background:#102530;color:#bcd5e2;font-size:12px;line-height:1.6}
.research-supplements p{margin:0}.research-supplements .supplement-status{color:#7ce8b5}
.supplement-list{display:grid;gap:7px;max-height:148px;margin-top:7px;overflow-y:auto;scrollbar-width:thin}
.supplement-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;gap:7px;border-top:1px solid #254350;padding-top:6px;min-width:0}
.supplement-item>span{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
.supplement-item:has(.supplement-steer)>span{grid-column:1/-1;grid-row:1}
.supplement-item:has(.supplement-steer)>button{grid-row:2}
.supplement-item .supplement-steer{justify-self:start}
.research-supplements .supplement-pause{margin-top:6px}
.research-supplements button{min-height:30px;margin:0;padding:3px 6px;border:1px solid #315364;border-radius:5px;background:transparent;color:#9bc6d6;font:inherit;white-space:nowrap;cursor:pointer}
.research-supplements button:hover{border-color:#7ce8b5;color:#7ce8b5}.research-supplements .supplement-resume{margin-top:8px;padding:5px 10px}
.research-supplements .supplement-notice{margin-top:6px;color:#dec775}
@media(max-width:700px){.chat.chat-guided :is(#messages,.composer-guidance) .guide-custom-risk input.custom-risk-value{font-size:16px}.supplement-list{max-height:112px}}

.research-supplements .research-request-clock{display:block;margin:4px 0 0;color:#8eb9c9;font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums;letter-spacing:0}

.research-supplements .supplement-edit-request,.research-supplements .supplement-cancel{margin:6px 0 0 6px}
.task-revision-editor{margin-top:10px;padding-top:9px;border-top:1px solid #2d4d59}
.task-revision-editor label{display:block;color:#9bc6d6}
.task-revision-input{display:block;box-sizing:border-box;width:100%;min-height:92px;max-height:220px;margin:6px 0 8px;padding:10px;border:1px solid #315364;border-radius:8px;background:#0d1b28;color:#c7dce7;font:inherit;line-height:1.65;resize:vertical}
.task-revision-input:focus{outline:2px solid #7ce8b5;outline-offset:1px}
.task-revision-actions{display:flex;flex-wrap:wrap;gap:8px}
.research-supplements .task-revision-save{background:#153c36;border-color:#477e6b;color:#8dedc8}
