/* Conversation controls live in one menu; contextual questions remain in the feed. */
#assistantMode[hidden]{display:none!important}
#assistantMode:not([hidden]){display:flex!important;position:static!important;flex:none;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px;margin:0 48px 12px 0;padding:0;align-self:flex-start}
#assistantMode button{min-width:140px;width:auto!important;margin:0}
#assistantMode button[aria-pressed=true]{background:#71563e;color:white}
@media(max-width:600px){#assistantMode:not([hidden]){align-self:stretch}#assistantMode button{flex:1;min-width:0;padding:10px}}
body[data-screen=chats] .dialogue-shortcuts>button:not(#resumeAction),
body[data-screen=chats] .chat-toolbar,
body[data-screen=chats] .context-rail{display:none!important}
body[data-screen=chats] .dialogue-shortcuts{min-height:0!important;padding:0!important;margin:0!important}
body[data-screen=chats] main>.workspace{grid-template-columns:minmax(0,1fr)!important}
body[data-screen=chats] .chat-panel{position:relative}
.unified-chat-menu{align-self:flex-end;flex:none!important;min-width:40px!important;min-height:32px!important;padding:2px 10px!important;margin:0 0 6px auto!important}
.unified-files{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
.unified-files:empty{display:none}
.unified-file{display:flex;align-items:center;gap:8px;max-width:100%;padding:4px 8px;border:1px solid #d6c7b5;border-radius:12px}
.unified-file>span{overflow-wrap:anywhere}
.unified-file button{padding:2px 8px!important;min-height:30px!important}
.unified-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.unified-suggestions small{flex-basis:100%}
.unified-suggestions button{white-space:normal;text-align:left}
@media(max-width:1050px){
 body[data-screen=chats] #view .bubble{max-width:100%!important;padding:14px!important}
 body[data-screen=chats] #view .bubble.user{margin-left:12px!important}
 body[data-screen=chats] .unified-suggestions button{flex:1 1 100%;min-height:44px}
}
/* Wider white conversation surface; reclaim the unused command-bar row. */
body.warm-modern[data-screen=chats]>main{
 padding:12px 18px!important;gap:8px!important;
 grid-template-columns:minmax(0,1fr)!important;grid-template-rows:52px auto minmax(0,1fr)!important;
}
body.warm-modern[data-screen=chats] main>header{
 grid-column:1/-1!important;grid-row:1!important;min-height:0!important;margin:0!important;padding:0!important;
 max-width:none!important;align-items:center!important;
}
body.warm-modern[data-screen=chats] main>#notice{grid-column:1/-1!important;grid-row:2!important;min-width:0;overflow-wrap:anywhere}
body.warm-modern[data-screen=chats] main>.workspace{grid-column:1/-1!important;grid-row:3!important}
body.warm-modern[data-screen=chats] .chat-layout,
body.warm-modern[data-screen=chats] .chat-panel{width:100%!important;max-width:none!important;gap:8px!important}
body.warm-modern[data-screen=chats] .chat-scroll{
 background:#fff!important;border:1px solid #e5dfd6!important;border-radius:16px!important;
 padding:16px 20px!important;scroll-padding-bottom:16px!important;
}
body.warm-modern[data-screen=chats] .messages{width:100%!important;max-width:none!important;margin:0!important;gap:18px!important}
body.warm-modern[data-screen=chats] #view .bubble.assistant{
 background:#fff!important;box-shadow:none!important;border:0!important;border-radius:0!important;
 width:100%!important;max-width:100%!important;min-height:0!important;padding:8px 0!important;
}
body.warm-modern[data-screen=chats] #view .bubble.user{background:#fff!important;box-shadow:none!important;max-width:88%!important;padding:12px 16px!important;border:1px solid #e3ddd4!important}
body.warm-modern[data-screen=chats] #view .composer{width:100%!important;max-width:none!important;margin:0!important;background:#fff!important}
body.warm-modern[data-screen=chats] #view .composer textarea{background:#fff!important}
body.warm-modern[data-screen=chats] .unified-chat-menu{position:fixed;right:24px;top:24px;margin:0!important;z-index:2}
body.warm-modern[data-screen=chats] .message-body{margin:0!important;min-height:0!important}
@media(min-width:1051px){
 body.warm-modern[data-screen=chats] .warm-account{padding-right:54px!important}
}
@media(max-width:1050px){
 body.warm-modern[data-screen=chats]>main{padding:6px 8px max(6px,env(safe-area-inset-bottom))!important;gap:6px!important}
 body.warm-modern[data-screen=chats] .unified-chat-menu{position:static!important;align-self:flex-end;margin:0!important;min-height:28px!important}
 body.warm-modern[data-screen=chats] .chat-scroll{padding:10px!important;border-radius:12px!important}
 body.warm-modern[data-screen=chats] #view .bubble.user{max-width:94%!important;margin-left:8px!important}
 body.warm-modern[data-screen=chats] #view .bubble.assistant{padding:6px 0!important}
}

/* Neutral focus across the platform, including nested editable forms. */
body.warm-modern :focus{outline-color:#947b62!important}
body.warm-modern :is(form,.composer,#quickForm):focus-within{outline:none!important;box-shadow:none!important;border-color:#b8a58d!important}
body.warm-modern :is(input,textarea,select,button,a,[tabindex]):focus-visible{outline:2px solid #947b62!important;outline-offset:2px!important;box-shadow:none!important}
body.warm-modern :is(input,textarea,select,button):focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
body.warm-modern :is(#view,#quickForm,main,aside) :is(button,input,textarea,select,a,[tabindex]):focus-visible{outline:2px solid #947b62!important;outline-offset:2px!important;box-shadow:none!important}
.project-engineer-feed{display:flex;flex-direction:column;gap:12px;margin:16px 0}
.project-engineer-feed article{background:#fff;border:1px solid #e0d7cc;border-radius:14px;padding:16px;overflow-wrap:anywhere}
.project-engineer-feed .project-message{white-space:pre-wrap;line-height:1.6}
.project-engineer-compose textarea{width:100%;min-height:90px}
.project-engineer-compose{background:#fff;padding:14px;border-radius:14px;border:1px solid #e0d7cc}
body[data-project-chat=true] .command-bar{display:none!important}
body[data-project-chat=true] .project-engineer-compose{scroll-margin-bottom:30px}
.markdown{white-space:normal!important;line-height:1.55;overflow-wrap:anywhere;min-width:0}
.markdown p{margin:0 0 .75em!important}.markdown p:last-child{margin-bottom:0!important}
.markdown :is(h3,h4,h5,h6){margin:.9em 0 .4em!important;line-height:1.3}.markdown>:first-child{margin-top:0!important}
.markdown :is(ul,ol){margin:.5em 0;padding-left:1.6em}.markdown li{margin:.25em 0}
.markdown pre{white-space:pre;overflow:auto;background:#f3f1ed;padding:12px;border-radius:8px;max-width:100%}
.markdown code{font-family:Consolas,monospace;background:#f3f1ed}.markdown blockquote{border-left:3px solid #b8a58d;margin:8px 0;padding-left:12px}
.markdown-table{max-width:100%;overflow-x:auto}.markdown table{border-collapse:collapse;width:100%;font-size:.95em}.markdown :is(th,td){border:1px solid #dfd8ce;padding:8px;text-align:left;min-width:80px}.markdown th{background:#f3f1ed}
.streaming-answer .stream-state{color:#776956}
