.mobile-control-trigger{display:none}
.mobile-control-sheet{width:min(480px,calc(100vw - 20px));max-height:85dvh;padding:18px;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--text);overflow:auto}.mobile-control-sheet::backdrop{background:#0006;backdrop-filter:blur(3px)}.mobile-control-sheet .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.mobile-control-sheet h2{margin:0;font-size:19px}.mobile-control-sheet .dialog-heading .icon-button{width:36px;height:36px;border:0;background:transparent;color:var(--muted);font-size:25px}
.mobile-action-group+.mobile-action-group{border-top:1px solid var(--border);padding-top:10px;margin-top:10px}.mobile-action-group h3{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:5px 10px 6px}.mobile-control-sheet .mobile-action-row{display:flex;align-items:center;gap:13px;width:100%;min-height:46px;padding:10px;text-align:left;background:transparent;color:var(--text);border:0;border-radius:10px;font:inherit;cursor:pointer}.mobile-action-row:hover,.mobile-action-row:focus-visible{background:var(--surface-2)}.mobile-action-row:disabled{opacity:.45;cursor:default}.mobile-action-icon{display:grid;place-items:center;width:24px;flex-shrink:0;color:var(--muted);font-size:21px}.mobile-action-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}.mobile-action-label{min-width:0}.mobile-action-label strong{font-size:14px;font-weight:500}.mobile-action-label small{display:block;font-size:12px;color:var(--muted);margin-top:3px;line-height:1.4}.mobile-reasoning-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:8px 10px;font-size:13px}.mobile-reasoning-row select{width:135px;min-width:0;background:var(--surface-2);color:var(--text);border:1px solid var(--border);padding:10px;border-radius:10px;font:inherit}
@media(max-width:700px){
 .topbar .topbar-right>:is(#theme-toggle-btn,#inject-message-btn,#chat-prompt-btn,#cloud-project-button,#chat-files-btn,#chat-export-btn){display:none!important}
 .topbar{height:56px;min-height:56px;padding:0 12px!important;gap:10px!important}.topbar-right{gap:6px!important;flex-shrink:0}.topbar-brand{min-width:0}.topbar .current-chat-title{display:none!important}
 .mobile-control-trigger{display:inline-flex!important;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);flex-shrink:0;cursor:pointer}.mobile-control-trigger svg{width:22px;height:22px;fill:none;stroke:currentColor}.mobile-control-trigger:hover{background:var(--surface-2);color:var(--text)}
 .composer-bottom #compare-button,.composer-bottom #camera-button,.composer-bottom #attach-button{display:none!important}
 .composer-wrap{padding:7px 10px max(10px,env(safe-area-inset-bottom))!important}.composer{padding:12px!important}.composer #prompt{min-height:48px!important;max-height:30dvh;padding:2px 0 10px!important}
 .composer .composer-bottom{display:grid!important;grid-template-columns:minmax(0,1fr) 112px!important;gap:7px!important;padding-top:8px!important;align-items:center}
 .composer-bottom .composer-model{grid-column:1!important;grid-row:1!important;max-width:100%!important;width:100%!important;height:36px!important;min-height:36px!important;font-size:12px!important}
 .composer-bottom .composer-actions{grid-column:1!important;grid-row:2!important;margin:0!important;justify-content:flex-start;gap:7px!important;flex-wrap:nowrap!important}
 .composer-bottom :is(#send-button,#stop-button){grid-column:2!important;grid-row:2!important;justify-self:end;width:40px!important;height:40px!important;min-height:40px!important}
 .composer-bottom #tools-button,.composer-bottom #mic-button,.composer-bottom #mobile-attach-more{width:38px!important;height:38px!important;min-height:38px!important;padding:0!important}
 .composer-bottom #mobile-attach-more{order:-1}.composer-bottom #stream-status:empty{display:none}.composer-bottom #stream-status:not(:empty){grid-column:1/-1!important;grid-row:3!important;margin:0!important}
 .context-status{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;padding:4px 6px!important;font-size:11px!important}.context-status[hidden]{display:none!important}.context-status>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.context-status>button{flex-shrink:0}.composer-note{display:none!important}
 .mobile-control-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-height:85dvh;border-bottom:0;border-radius:20px 20px 0 0;padding:17px 16px max(18px,env(safe-area-inset-bottom))}
}

@media(max-width:700px){.composer-bottom #reasoning-select:not(.hidden){display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;height:36px!important;font-size:12px!important}.composer-bottom #reasoning-select.hidden{display:none!important}.composer-bottom:has(#reasoning-select.hidden) .composer-model{grid-column:1/-1!important}}
