@media (max-width:639px){.workspace-header{padding:12px 14px}.workspace-header>.flex:first-child{min-width:0;gap:8px}.workspace-header h2{font-size:14px}.workspace-breadcrumb{font-size:10px}.header-controls{gap:6px}.model-control{padding:7px}.model-control select{max-width:82px;font-size:10px}.icon-button,.theme-toggle{width:44px;height:44px}.chat-scroll{padding:16px 14px 10px}.welcome h1{font-size:clamp(28px,8vw,32px);line-height:1.12;letter-spacing:-1px}.welcome-heading>p{max-width:34ch;font-size:13px;line-height:1.55}.welcome-features{grid-template-columns:minmax(0,1fr);gap:10px}.feature-primary{padding:18px;border-radius:18px}.feature-primary h2{font-size:19px;letter-spacing:-.5px}.feature-kicker{font-size:10px;letter-spacing:.8px}.feature-primary p,.feature-small p,.idea-card p{font-size:12px;line-height:1.55}.feature-cta{min-height:44px;margin-top:16px;font-size:12px}.feature-stack{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.feature-small{min-width:0;padding:12px;border-radius:16px}.feature-small h2{margin-top:8px;font-size:13px;line-height:1.3}.feature-icon{width:32px;height:32px}.topic-header{gap:10px}.topic-tabs{gap:6px}.topic-tabs button{padding:8px 11px;font-size:11px}.idea-grid{gap:8px}.idea-card{min-width:0}.composer-wrap{padding:8px 10px max(10px,env(safe-area-inset-bottom))}.chat-composer{padding:10px;border-radius:18px}.composer-toolbar{flex-direction:column;align-items:stretch;gap:8px}.composer-toolbar>.composer-tools{display:grid;width:100%;min-width:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.composer-tool{min-width:0;min-height:48px;flex-direction:column;gap:2px;padding:4px 2px;border-radius:10px;font-size:10px}.composer-tool .tool-label{display:block;line-height:1.1}.reasoning-control{min-width:0}.reasoning-control select{width:100%;max-width:none;min-height:48px;padding:5px 3px;font-size:10px;text-align:center}.web-toggle{min-width:0;min-height:48px;justify-content:center;padding:4px 2px;font-size:10px}.composer-toolbar>.flex:last-child{width:100%;justify-content:flex-end}.chat-composer .send-button{min-height:44px}.message-stream{max-width:100%;gap:20px}.message-stream>.flex{min-width:0;gap:8px}.message-column{max-width:calc(100% - 40px)}.user-column{max-width:92%}.message-column .prose{font-size:14px;line-height:1.65}.agent-result{min-width:0;flex-wrap:wrap;gap:8px;padding:10px;font-size:11px}.agent-result>span{min-width:0;flex:1 1 160px;overflow-wrap:anywhere}.agent-result-actions{display:flex;flex:1 1 100%;justify-content:flex-end;flex-wrap:wrap;gap:6px}.agent-result .project-action,.conversation-delete,.conversation-select,.settings-link,.sidebar-nav a{min-height:44px}.conversation-delete{width:44px}.sandbox-toolbar{align-items:flex-start}.sandbox-actions{gap:6px}.sandbox-actions button{min-width:44px;padding:7px 9px;font-size:11px}.sandbox-expanded{width:calc(100vw - 12px);padding:44px 8px 8px}.sandbox-expanded iframe{height:72dvh}.platform-header nav{gap:5px}.platform-header nav a{flex:1;min-height:48px;justify-content:center;padding:6px 4px;font-size:10px}.platform-header nav a svg{flex:0 0 auto}.project-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:42px 10px 14px;border-radius:18px}.project-top{align-items:flex-start}.project-top h2{font-size:18px}.project-top p{font-size:11px;line-height:1.45}.project-commandbar{margin:14px 0 10px}.project-commandbar>.project-action{flex:1;min-width:0;padding:7px 6px;font-size:10px}.project-action,.project-editor nav button{min-height:44px}.project-editor textarea{height:36dvh;min-height:200px;font-size:12px}.project-bottom p,.project-caption{font-size:11px}}@media (max-width:374px){.chat-scroll{padding-inline:12px}.workspace-header{padding-inline:10px}.workspace-header h2{font-size:13px}.model-control select{max-width:70px}.feature-stack{grid-template-columns:minmax(0,1fr)}.composer-wrap{padding-inline:8px}.composer-toolbar>.composer-tools{gap:3px}.composer-tool,.reasoning-control select,.web-toggle{font-size:11px}}.composer-toolbar>.composer-tools{min-width:0;flex:1}.composer-toolbar>.flex:last-child{flex-shrink:0}.landing-api>*,.landing-hero>*,.project-editor>div,.project-workspace,.soft-page .grid>*{min-width:0}@media (max-width:639px){.workspace-header{padding-top:max(10px,env(safe-area-inset-top));padding-inline:12px;gap:8px}.workspace-breadcrumb{display:none}.workspace-header h2{margin:0;font-size:14px;white-space:nowrap}.header-controls{gap:6px}.model-control{padding:0 8px;min-height:44px}.model-control>svg{display:none}.model-control select{max-width:103px;min-width:0;font-size:12px}.icon-button,.theme-toggle{width:44px;height:44px}.composer-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.composer-toolbar>.composer-tools{display:flex;flex-wrap:nowrap;gap:4px;width:auto}.composer-tool{flex:0 0 44px;min-height:44px;padding:8px;font-size:12px}.composer-tool .tool-label{display:none}.reasoning-control{flex:1;min-width:0;max-width:100px}.reasoning-control select{width:100%;min-height:44px;padding:5px;font-size:12px}.web-toggle{flex:0 0 44px;width:44px;min-height:44px;padding:8px;font-size:12px}.web-toggle>span{display:none}.composer-toolbar>.flex:last-child{width:auto}.composer-toolbar>.flex:last-child>button{width:44px;min-height:44px;padding:0}.send-label,.stop-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.composer-wrap>p{font-size:10px;line-height:1.4;margin-top:6px}.chat-composer .composer-input{max-height:min(140px,24dvh)}.feature-primary{display:grid;grid-template-columns:36px minmax(0,1fr);-moz-column-gap:12px;column-gap:12px;padding:16px}.feature-primary .feature-icon{grid-row:1/span 3}.feature-kicker{margin-top:0;font-size:10px}.feature-primary h2{margin-top:6px;font-size:18px}.feature-primary h2 br{display:none}.feature-primary p{grid-column:2;margin-top:6px;font-size:12px}.feature-cta{grid-column:2;justify-self:start;margin-top:12px;min-height:36px}.feature-stack{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-small{padding:14px}.topic-header>span{display:none}.topic-tabs{display:flex;flex-wrap:nowrap;overflow:auto;padding:3px;margin:10px -3px}.topic-tabs button{flex-shrink:0;min-height:38px;font-size:11px}.message-column>.rounded-2xl{padding:12px;border-radius:16px}.message-column .markdown-heading-1{font-size:19px}.message-column .markdown-heading-2{font-size:17px}.message-column .markdown-heading-3{font-size:15px}.agent-result{display:grid;grid-template-columns:20px minmax(0,1fr)}.agent-result .agent-result-actions{grid-column:1/-1;width:100%;margin:2px 0 0}.agent-result-actions .project-action{margin:0;flex:1}.artifact-details strong{font-size:12px}.mirai-sidebar{padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}.dialog-content.mobile-drawer{max-width:min(320px,calc(100vw - 28px))}.sidebar-brand{margin-bottom:20px}.sidebar-brand a{font-size:23px}.sidebar-note{display:none}.sidebar-nav{margin-top:18px}.sidebar-history{margin-top:20px}.soft-page>div{padding-inline:14px}.soft-page h1{font-size:22px;line-height:1.25}.soft-page h3{overflow-wrap:anywhere}.soft-page table{min-width:540px}.soft-page .overflow-x-auto{max-width:100%}.project-cache-list>div{flex-wrap:wrap}.project-cache-list>div>div{flex-basis:100%}.project-dialog{padding-top:48px}.project-dialog .project-top{gap:10px;flex-wrap:wrap}.dialog-dismiss{width:44px;height:44px;top:8px;right:8px}}@media (max-width:359px){.composer-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:4px}.composer-toolbar>.composer-tools{gap:2px}.header-controls{gap:4px}.model-control{padding-inline:6px}.model-control select{max-width:82px;font-size:11px}.feature-stack{grid-template-columns:1fr}}@media (max-height:500px) and (max-width:1023px){.workspace-header{padding-block:6px}.composer-wrap>p{display:none}.composer-wrap{padding-block:6px}.chat-composer{padding-block:8px}.sidebar-brand{margin-bottom:10px}.sidebar-nav{margin-top:10px}.mirai-sidebar{overflow-y:auto}}@media (max-width:639px){.project-commandbar input,.project-editor textarea,.soft-page input,.soft-page textarea{font-size:16px}.theme-options{gap:8px}.theme-options>button{padding:6px}.theme-options>button>span:last-child{justify-content:center;gap:4px}.theme-options>button>span:last-child>svg:last-child{margin-left:0;flex-shrink:0}}@media (max-width:374px){.theme-options>button>span:last-child>svg:first-child{display:none}}