/* ChatGPT-app-inspired phone shell; desktop layout is unchanged. */
.app-guest-settings,.app-jump-latest,.app-auth-handle{display:none}
.mobile-layout #shell #main-content header{gap:4px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
.mobile-layout #main-content header .language-select,.mobile-layout #main-content header .theme-select,.mobile-layout .mobile-chat-title{display:none!important}
.mobile-layout #main-content:has(#view-chat:not([hidden])) header .mobile-model-picker{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;min-width:0;max-width:calc(100% - 96px);gap:4px;background:transparent;border:0;padding:8px}
.mobile-layout header .mobile-model-title{font-size:16px;font-weight:600}.mobile-layout header .mobile-model-scope{display:none}.mobile-layout header .header-actions{margin-left:0!important}.mobile-layout #mobile-menu .icon{width:24px;height:24px}.mobile-layout #header-new-chat{width:44px!important;height:44px}
.mobile-layout #view-chat{position:relative}.mobile-layout .welcome h1{font-size:27px;font-weight:550;line-height:1.4}.mobile-layout .welcome>p{max-width:285px;margin:12px auto 0;font-size:13px;line-height:1.7;color:var(--secondary)}.mobile-layout .suggestions{justify-content:center;flex-wrap:wrap;overflow:visible;gap:8px;margin:24px 0 0}.mobile-layout .suggestion{flex:0 1 auto;min-height:40px;border-radius:22px;padding:9px 14px}.mobile-layout .suggestion strong{font-size:12px;font-weight:450}
.mobile-layout .composer-area{padding:8px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:var(--bg)!important}.mobile-layout #chat-form{grid-template-columns:40px minmax(0,1fr) 40px;grid-template-rows:auto auto;gap:0 4px;padding:6px;border-radius:28px;background:var(--soft)!important;border:1px solid transparent!important;min-height:54px}.mobile-layout #chat-attachments{grid-row:1;grid-column:1/-1}.mobile-layout #question{grid-row:2;grid-column:2;min-height:38px;height:38px;max-height:144px;line-height:1.5;padding:7px 1px;font-size:16px;align-self:center}.mobile-layout #attach-file,.mobile-layout #send,.mobile-layout #stop{grid-row:2;width:40px;height:40px;min-width:40px}.mobile-layout #attach-file{grid-column:1}.mobile-layout #send,.mobile-layout #stop{grid-column:3}.mobile-layout .composer-caption{font-size:9px;line-height:1.5;margin-top:7px;color:var(--secondary)}
.mobile-layout .message{font-size:16px;line-height:1.75;margin-bottom:28px}.mobile-layout .message.user{border-radius:22px;padding:11px 16px;max-width:87%;font-size:15px}.mobile-layout .message.assistant .message-label{display:none}.mobile-layout .message-body.rich{font-size:16px;line-height:1.75}.mobile-layout .message-actions{gap:9px}.mobile-layout .message-actions button{min-width:36px;min-height:40px}
.mobile-layout .app-jump-latest:not([hidden]){display:grid;place-items:center;position:absolute;right:calc(50% - 19px);bottom:calc(var(--app-composer-height,90px) + 12px);z-index:5;width:38px;height:38px;border-radius:50%;padding:0;background:var(--surface);border:1px solid var(--border);color:var(--text);box-shadow:0 2px 10px #0001;font-size:21px}
.mobile-layout #shell .sidebar{width:min(340px,calc(100vw - 42px));background:var(--sidebar)!important;padding:calc(10px + env(safe-area-inset-top)) 12px env(safe-area-inset-bottom)}.mobile-layout .sidebar .workspace-name{display:none}.mobile-layout .sidebar #new-chat{justify-content:flex-start;border:0;background:transparent;padding-left:12px;margin-top:12px}.mobile-layout .sidebar .nav{border-radius:12px;min-height:46px}.mobile-layout .sidebar .history-search{background:var(--soft);border:0;border-radius:12px}.mobile-layout #nav-backdrop:not([hidden]){background:#0006;backdrop-filter:none}
.mobile-layout #mobile-chat-sheet[open],.mobile-layout #mobile-preferences[open]{background:var(--surface)!important;color:var(--text);border-radius:28px 28px 0 0;padding-top:4px}.mobile-layout .mobile-sheet .dialog-head{margin:2px 0 12px}.mobile-layout .mobile-sheet .dialog-head h3{font-size:19px;font-weight:600}.mobile-layout .sheet-handle:before{background:var(--border)}.mobile-layout .app-model-panel{margin-bottom:20px}.mobile-layout .app-model-search{font-size:16px;min-height:44px;background:var(--soft);border:0;border-radius:12px;margin-bottom:8px;padding:10px 12px}.mobile-layout .app-model-list{max-height:min(38dvh,310px);overflow-y:auto;overscroll-behavior:contain}.mobile-layout .app-model-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px;border:0;border-radius:12px;background:transparent;color:var(--text);text-align:left;min-height:60px}.mobile-layout .app-model-row[aria-pressed=true]{background:var(--soft)}.mobile-layout .app-model-row:disabled{opacity:.4}.mobile-layout .app-model-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.mobile-layout .app-model-copy strong{font-size:15px;font-weight:550;overflow-wrap:anywhere}.mobile-layout .app-model-copy small{font-size:11px;color:var(--secondary)}.mobile-layout .app-model-check{font-size:19px}.mobile-layout #mobile-chat-sheet label:has(#chat-model){display:none}.mobile-layout .mobile-sheet .chat-controls{gap:12px}.mobile-layout .mobile-sheet-done{border-radius:24px!important;min-height:46px;margin-top:16px}
.mobile-layout .guest-header{padding:calc(14px + env(safe-area-inset-top)) 18px 12px;align-items:center}.mobile-layout .guest-header-actions{gap:8px;flex-wrap:nowrap}.mobile-layout .guest-header button{min-height:38px}.mobile-layout .app-guest-settings{display:grid;place-items:center;width:36px;border:0;background:transparent;color:var(--text);padding:0;font-size:15px;letter-spacing:1px}.mobile-layout .guest-main{padding-bottom:72px}.mobile-layout .guest-suggestions{max-width:340px;margin:24px auto 0}.mobile-layout .guest-content h1{font-size:28px}.mobile-layout .guest-footer{padding-bottom:max(18px,env(safe-area-inset-bottom))}
.mobile-layout #auth-dialog[open]{inset:auto 0 var(--mobile-bottom,0px)!important;margin:0!important;width:100%;max-height:calc(var(--mobile-height,100dvh) - 10px);border-radius:28px 28px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}.mobile-layout .app-auth-handle{display:grid;position:relative;z-index:1}.mobile-layout #auth-dialog .auth-card{padding-top:12px;padding-bottom:22px}.mobile-layout .guest-auth-dialog .auth-close{top:14px;right:16px;min-height:36px;min-width:36px}.mobile-layout .auth-modal-brand{margin-bottom:20px}.mobile-layout .guest-auth-dialog h2{font-size:26px}
.mobile-layout.compact-viewport .app-model-list{max-height:24dvh}.mobile-layout.tight-viewport #question{max-height:60px}.mobile-layout.compact-viewport .composer-area{max-height:calc(var(--mobile-height,100dvh) - 44px)}
@media(prefers-reduced-motion:reduce){.mobile-layout #shell .sidebar{transition:none}.mobile-layout *{scroll-behavior:auto!important}}
.mobile-layout .guest-header-actions{margin-left:auto;flex:0 0 auto;justify-content:flex-end}.mobile-layout .app-preferences>label{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:58px;font-size:15px}.mobile-layout .app-preferences select{min-width:150px;max-width:190px;min-height:44px;font-size:16px}.mobile-layout .app-model-search{background:var(--soft)!important;border:1px solid var(--border)!important}
.mobile-layout .sidebar .logo{display:grid;place-items:center;font-size:22px;line-height:1}
.mobile-layout #auth-dialog[open]{max-width:none!important}
