:root{--app-support:#8ed8b1;--app-surface:#252831;font-family:'Segoe UI Variable','SF Pro Text','Segoe UI',system-ui,sans-serif}
html,body{overscroll-behavior-y:none}body{padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:2px solid #b9b5ff;outline-offset:4px}
.app-shell{min-height:100dvh}.chat-composer-wrap{padding-bottom:env(safe-area-inset-bottom)}
.install-app{position:fixed;right:25px;bottom:20px;z-index:5;display:flex;align-items:center;gap:9px;padding:9px 14px;border:1px solid #464452;border-radius:10px;background:#252831;color:#e5e2fa;font:inherit;font-size:12px;cursor:pointer}
body:has(#application:not([hidden])) .install-app{position:static;margin:4px 12px;width:calc(100% - 24px);justify-content:center;color:#a1a6b5;background:transparent;border-color:#343844}
.install-instructions{line-height:1.8;color:#bbc0ce}.install-instructions li{margin-bottom:12px}.install-instructions strong{color:#f3f4f8}.install-instructions a{color:#c8c1ff}
.network-notice{display:none;padding:10px 16px;background:#382f23;color:#ead3a7;text-align:center;font-size:12px}.network-offline .network-notice{display:block}
.desktop-app .install-app{display:none!important}
@media(display-mode:standalone){.install-app{display:none!important}}
@media(max-width:1100px){.topbar{padding:0 22px}.topbar-right .local-status{display:none}.prompt-chips button{padding:15px 14px}.auth-story{padding:35px}.auth-story h1{font-size:clamp(36px,4vw,52px)}}
@media(max-width:800px){.topbar{height:65px;padding:0 16px;position:sticky;top:0;z-index:4;background:#181a20}.chat-view{min-height:calc(100dvh - 65px);padding:0 20px}.locked-model{font-size:15px}.sidebar{padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(15px,env(safe-area-inset-bottom));height:100dvh}.chat-composer-wrap{margin-bottom:10px}.message.assistant .message-content{font-size:15px}.composer textarea{font-size:16px}.auth-screen{min-height:100dvh}.auth-form-side{padding-bottom:90px}.install-app{right:16px;bottom:max(18px,env(safe-area-inset-bottom))}.sync-status{font-size:9px;padding:4px 8px}.code-view{padding:24px 18px}.code-composer textarea{font-size:16px}.welcome{padding-top:45px;padding-bottom:45px}.prompt-chips{gap:9px}.prompt-chips button{font-size:11px;padding:14px 11px}.prompt-chips button .prompt-icon{display:none}}
@media(max-width:520px){.topbar-right{gap:5px}.sync-status{max-width:94px;overflow:hidden;text-overflow:ellipsis}.topbar{padding:0 11px}.topbar-left{gap:9px}.chat-view{padding:0 13px}.welcome h1{font-size:32px;letter-spacing:-1px}.welcome>p{font-size:13px;max-width:260px;margin-left:auto;margin-right:auto}.prompt-chips{flex-direction:column;align-items:stretch;max-width:330px;margin:28px auto 0}.prompt-chips button{max-width:none;flex:none;padding:12px 15px;min-height:58px}.prompt-chips button .prompt-icon{display:block}.prompt-chips small{display:inline;margin-left:8px}.composer{padding:15px 13px 10px;border-radius:20px}.composer-bottom{gap:6px}.language-control select{max-width:170px}.composer-footnote{font-size:10px;line-height:1.5;padding:0 8px}.messages{padding-top:25px}.message{margin-bottom:24px}.code-heading{gap:16px;align-items:flex-start;flex-direction:column}.code-heading h1{font-size:28px}.code-settings{flex-wrap:wrap}.code-composer-bottom{align-items:flex-start;gap:12px}.code-prepared{font-size:10px}.effort-popover{position:fixed;left:14px;right:14px;bottom:20px;top:auto;width:auto;z-index:20}.auth-card input{font-size:16px}.modal{max-width:calc(100vw - 24px);padding:22px 18px}.auth-demo{display:none}.auth-story-footer{display:none}}
@media(max-height:650px) and (max-width:800px){.welcome{padding-top:22px;padding-bottom:20px}.welcome-mark,.welcome-label,.prompt-chips{display:none}.composer textarea{min-height:42px}.chat-view{min-height:calc(100dvh - 65px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
