/* Keep history scrollable without pushing the composer outside the viewport. */
.app{grid-template-rows:minmax(0,1fr)}
.app .conversation{min-height:0;overflow:hidden}
.app .chat-view{min-height:0;max-height:100%;overflow:hidden}
.app .messages{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.app .conversation-header,.app .history-note,.app .composer-area{flex-shrink:0}
.app .composer-area{position:relative;z-index:2}
.app #composer{min-width:0}
.app #message-input{min-width:0}
@media(max-width:680px){
 .app .rail .rail-button::after{content:none;display:none}
 .app .rail .rail-button{padding:4px 0;gap:3px;flex-direction:column;justify-content:center}
 .app .rail .workspace-label{display:block;font-size:8px;line-height:1.2;white-space:nowrap}
 .app .rail,.app.chat-open .rail{flex-shrink:0}
 .app.chat-open .conversation{flex:1 1 0;min-height:0;overflow:hidden}
 .app.chat-open .chat-view{flex:1 1 0;height:auto;min-height:0;max-height:100%}
}

/* Only real text labels; never duplicate them through pseudo-elements. */
.app .rail .rail-button::after{content:none!important;display:none!important}
