#offline-banner{pointer-events:none;position:fixed;top:env(safe-area-inset-top,0px);left:0;right:0;z-index:30;padding:10px 16px;background:#6c3510;color:white;text-align:center;font-size:14px}
#offline-banner[hidden]{display:none}
.layout #content{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#composer-actions{display:flex;align-items:flex-start;gap:8px;margin-top:8px;position:relative}
#composer-options{flex:1;min-width:0}#composer-options>summary{cursor:pointer;min-height:44px;padding:10px 0;color:var(--muted);list-style:none;font-size:14px}
#composer-options[open]{padding-bottom:8px}#composer-options .row{display:flex;flex-wrap:wrap}
#composer-actions #send{width:auto;grid-column:auto;margin-left:0;min-height:44px}
#microphone{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;padding:9px}#microphone[aria-pressed="true"]{background:#ff7a00;color:#0b0d12}
#voice-status{font-size:12px;color:var(--muted)}#voice-status:empty{display:none}
@media(max-width:700px){
 body:has(.layout){overflow:hidden}
 .layout{position:fixed;left:0;right:0;top:var(--app-top,0px);height:var(--app-height,100dvh)}
 .layout main{height:100%;min-height:0;overflow:hidden}
 .layout header{flex-shrink:0;padding:calc(8px + env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) 8px max(10px,env(safe-area-inset-left,0px))}
 header>div{min-width:0;flex:1}header strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header #cost{overflow-wrap:anywhere;max-width:38%}
 .layout footer{flex-shrink:0;margin-top:auto;padding:6px max(10px,env(safe-area-inset-right,0px)) max(6px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));max-height:58%;overflow:auto}
 .layout aside{top:var(--app-top,0px);height:var(--app-height,100dvh);bottom:auto;padding:calc(12px + env(safe-area-inset-top,0px)) 12px max(12px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px))}
 button,select,input,textarea,.history .conversation-item button:not(:first-child){font-size:16px;min-height:44px}
 .history .conversation-item button:not(:first-child){padding:8px 12px}nav button{min-height:44px}
 #recipient{max-width:calc(100% - 90px)}#attachments{font-size:16px;max-width:100%;min-width:0}
 .row>*{min-width:0;max-width:100%}.row input{min-width:0}#attachment-status{overflow-wrap:anywhere}
 #message{resize:none;min-height:46px;height:46px;max-height:100px;font-size:16px}
 #recipient{margin-bottom:5px;min-height:36px;padding:6px 10px;font-size:14px}
 #composer .row:has(#send){display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 #composer .row:has(#send) select{width:100%;font-size:16px}#send{grid-column:3;width:100%}
 #notice:empty{display:none}#notice{min-height:0;font-size:12px}
 .keyboard-open #composer .row:has(#attachments),.keyboard-open #composer details,.keyboard-open #composer .row:has(#send)>select{display:none}
 .keyboard-open footer{max-height:55%;padding-bottom:8px}.keyboard-open #message{min-height:52px}
 body:not(:has(.layout)){padding:max(20px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(20px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
 body:not(:has(.layout)) main{height:auto;min-height:0;padding:24px}
}
