/* One input row, identical ordering on phone and desktop. Theme tokens remain inherited. */
html body.warm-modern[data-theme] #assistantMode:not([hidden]){margin:0!important;align-self:stretch;gap:6px;}
html body.warm-modern[data-theme] #assistantMode button{min-width:0;min-height:42px;flex:0 1 auto;padding:9px 12px;white-space:nowrap;}
html body.warm-modern[data-theme] #assistantMode .chat-history-button{margin-left:auto!important;}
body .unified-chat-menu{display:none!important;}
html body.warm-modern[data-theme] #view .psk-single-composer,html body.warm-modern[data-theme] #quickForm.psk-single-composer{display:flex!important;flex-direction:column!important;gap:5px!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;margin:0!important;width:100%!important;min-height:0!important;}
body .psk-single-composer>.actions{display:none!important;}
html body.warm-modern[data-theme] .psk-single-composer .composer-pill{display:flex!important;align-items:center;gap:2px;min-height:58px;width:100%;min-width:0;padding:6px;border:1px solid var(--ap-line,#64605b);border-radius:29px;background:var(--ap-input,#fff);box-sizing:border-box;transition:border-color .16s ease,box-shadow .16s ease;}
html body.warm-modern[data-theme] .psk-single-composer .composer-pill:focus-within{border-color:#b89972;}
html body.warm-modern[data-theme] .psk-single-composer .composer-pill>button{position:static!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:11px!important;display:inline-flex!important;align-items:center;justify-content:center;box-shadow:none!important;border:0!important;border-radius:50%!important;background:transparent!important;color:inherit!important;}
html body.warm-modern[data-theme] .psk-single-composer .composer-pill>button[hidden]{display:none!important;}
html body.warm-modern[data-theme] .psk-single-composer .composer-pill>:is(.composer-talk,.composer-send){background:#d4b07e!important;color:#242322!important;}
html body.warm-modern[data-theme] .psk-single-composer .composer-pill>.composer-talk[aria-pressed=true]{background:#bc744e!important;color:#fff!important;}
body .psk-single-composer .composer-pill svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
body .psk-single-composer .composer-send::after{display:none!important;content:none!important;}
html body.warm-modern[data-theme] #view .psk-single-composer .composer-pill :is(textarea,input),html body.warm-modern[data-theme] #quickForm.psk-single-composer .composer-pill input{position:static!important;flex:1 1 0!important;min-width:0!important;width:0!important;min-height:24px!important;max-height:112px!important;padding:0 4px!important;margin:0!important;line-height:24px!important;font-size:16px!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;resize:none!important;border-radius:0!important;}
body .psk-single-composer .composer-voice-status{font-size:12px;line-height:1.4;padding:0 12px;min-height:0;overflow-wrap:anywhere;}
body .psk-single-composer .composer-voice-status:empty{display:none;}
body .psk-single-composer .send-status{order:-2;}
body .psk-single-composer .unified-files{order:-1;}
body .psk-single-composer .composer-pill input{height:28px!important;}
.chat-history{min-width:0;}.chat-history>input{width:100%;font-size:16px;min-height:44px;box-sizing:border-box;margin:12px 0;}
.chat-history-row{display:flex;gap:6px;margin:6px 0;align-items:center;}.chat-history-row .history-open{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;white-space:normal;min-height:52px;}
.chat-history-row strong{overflow-wrap:anywhere;}.chat-history-row small{opacity:.75;font-weight:400;}.history-delete{flex:0 0 44px;min-width:44px;min-height:44px;}
.history-project{border-top:1px solid var(--line,#6f6c65);margin-top:14px;padding-top:8px;}.history-project h4{margin:8px 0;}.history-project>small{display:block;margin:6px 0;}
body[data-project-chat=true] #view{display:flex!important;flex-direction:column;overflow:hidden!important;}
body[data-project-chat=true] .project-chat-workspace{display:flex;flex-direction:column;min-height:0;height:100%;gap:8px;margin:0!important;padding:8px!important;}
body[data-project-chat=true] .project-engineer-feed{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0;padding:4px;}
.project-chat-heading{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}.project-chat-heading strong{flex:1;min-width:0;overflow-wrap:anywhere;}.project-chat-note{font-size:12px;margin:0;}
body[data-project-chat=true] .project-engineer-compose{flex:none;}
body[data-project-chat=true] .project-engineer-compose>details{order:2;}.project-engineer-compose>p:empty{display:none;}
body[data-screen=home] #company-analyst-home{order:999;}
@media(max-width:650px){html body.warm-modern[data-theme] #assistantMode button{font-size:13px;padding:9px 10px;}html body.warm-modern[data-theme] .psk-single-composer .composer-pill{gap:0;padding:4px;min-height:54px;}body[data-project-chat=true] .project-chat-workspace{padding:0!important;}.chat-history-row .history-open{font-size:14px;}}
@media(prefers-reduced-motion:reduce){html body.warm-modern[data-theme] .psk-single-composer .composer-pill{transition:none;}}
/* Override old global button skins only inside the new composer. */
html body.warm-modern[data-theme] :is(#view .psk-single-composer,#quickForm.psk-single-composer) .composer-pill>button{background:transparent!important;color:var(--ap-ink)!important;border-radius:50%!important;box-shadow:none!important;}
html body.warm-modern[data-theme] :is(#view .psk-single-composer,#quickForm.psk-single-composer) .composer-pill>:is(.composer-talk,.composer-send){background:#d4b07e!important;color:#242322!important;}
html body.warm-modern[data-theme] :is(#view .psk-single-composer,#quickForm.psk-single-composer) .composer-pill>.composer-talk[aria-pressed=true]{background:#bc744e!important;color:#fff!important;}
html body.warm-modern[data-theme][data-screen=chats] #assistantMode button{min-height:44px!important;height:auto!important;}
html body.warm-modern[data-theme] :is(#view,#quickForm) .psk-single-composer{border-radius:0!important;}
html body.warm-modern:is([data-size=extra],[data-accessibility=light],[data-accessibility=dark]) :is(#view .psk-single-composer,#quickForm.psk-single-composer) .composer-pill :is(textarea,input){font-size:20px!important;line-height:28px!important;}

/* Five role tabs stay on one horizontal rail on phones; history remains visible. */
html body.warm-modern[data-theme] #assistantMode:not([hidden]){display:flex!important;flex-wrap:nowrap!important;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;}
html body.warm-modern[data-theme] #assistantMode button{flex:0 0 auto;}
html body.warm-modern[data-theme] #assistantMode .chat-history-button{position:sticky;right:0;z-index:1;box-shadow:-5px 0 8px var(--ap-bg,#202427);}
.project-chat-heading select{width:auto;max-width:100%;min-height:42px;}
#assistantPicker{display:none;}
@media(max-width:700px){
 html body.warm-modern[data-theme] #assistantMode:not([hidden]){overflow:visible;}
 html body.warm-modern[data-theme] #assistantMode button:not(.chat-history-button){display:none!important;}
 html body.warm-modern[data-theme] #assistantMode #assistantPicker{display:block;flex:1;min-width:0;width:0;min-height:44px;margin:0;font-size:14px;}
 html body.warm-modern[data-theme] #assistantMode .chat-history-button{position:static;box-shadow:none;}
}
