@media (max-width:640px){html{-webkit-text-size-adjust:100%}:root{--gutter:12px}.app-header,.app-header:has(.header-navigation),.app-header:not(.is-wide):not(:has(.header-navigation,.header-context-controls)){height:auto;min-height:56px}.app-header .app-header-inner,.app-header.is-wide .app-header-inner{width:calc(100% - 24px);min-height:56px;height:auto;padding-block:8px;gap:8px;flex-wrap:nowrap}.app-header .header-brand{gap:5px;min-width:0}.app-header .brand-lockup{gap:5px}.app-header .brand-symbol{width:28px;height:28px}.app-header .brand-wordmark{width:104px;height:24px}.app-header .header-context{display:none}.app-header .header-back{height:32px;margin:0;padding-inline:7px;gap:3px}.app-header .header-actions{gap:5px;min-width:0;margin-left:auto}.app-header .header-workspace{width:32px;height:32px;padding:0}.app-header .header-workspace span{display:none}.app-header .header-actions>.icon-btn{width:32px;height:32px;flex:none}.app-header .header-actions>.btn{font-size:0;width:32px;height:32px;padding:0;gap:0}.app-header .header-actions .account-login{min-width:56px;width:auto;height:34px;font-size:14px;padding-inline:12px}.app-header .account-name,.app-header .account-trigger>svg{display:none}.app-header .account-vip-badge{width:30px;height:auto}.app-header .account-trigger{gap:3px;padding:0}.app-header:has(.header-navigation) .app-header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;row-gap:4px;padding-bottom:0}.app-header .header-navigation{display:flex;flex-wrap:nowrap;grid-column:1/-1;width:100%;min-width:0;height:38px;margin:0;gap:6px;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.app-header .header-navigation::-webkit-scrollbar{display:none}.app-header .header-navigation a{flex:1 0 auto;padding:6px 4px 9px;font-size:12px;text-align:center}.app-header .header-navigation a:after{left:6px;right:6px;bottom:3px;height:5px}.app-header:has(.header-context-controls) .app-header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto}.app-header:has(.header-context-controls) .header-brand .brand-wordmark{display:none}.app-header:has(.header-context-controls) .header-actions{grid-column:2;grid-row:1}.app-header .header-context-controls{grid-column:1/-1;grid-row:2;width:100%;justify-content:center;padding-bottom:2px}.landing-page .landing-body{padding-top:32px}.landing-page .landing-hero{padding-bottom:30px}.landing-page .landing-hero h1{font-size:clamp(30px,8.6vw,43px);letter-spacing:-.045em}.landing-page .landing-hero>p{max-width:320px;padding-inline:6px;font-size:13px;line-height:1.8}.landing-page .landing-hero-actions{gap:8px;margin-top:22px}.landing-page .landing-hero-actions .btn{width:auto;min-width:0;flex:1 1;max-width:168px;padding-inline:8px;gap:5px;font-size:13px}.landing-page .landing-section{padding-top:48px;scroll-margin-top:100px}.landing-page .showcase-heading h2{font-size:21px}.landing-page .showcase-heading .eyebrow{font-size:10px;letter-spacing:.1em}.landing-page .showcase-heading p{font-size:12px}.landing-page .showcase-caption{flex-wrap:wrap;gap:6px 12px;padding-inline:10px;font-size:11px}.landing-page .story-section-heading{flex-wrap:wrap;gap:8px}.landing-page .story-section-heading h2{font-size:23px}.landing-page .landing-cta .eyebrow{font-size:10px;letter-spacing:.08em}.home.history-page{overflow-y:auto}.history-page .home-body{flex:none;padding-block:20px}.history-page .history-head{align-items:stretch}.history-page .history-head h1{font-size:25px}.history-page .history-head p{font-size:12px}.history-page .history-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.history-page .history-actions .btn{width:100%;justify-content:center;min-height:38px}.history-page .history-results{flex:none;overflow:visible}.history-page .history-tools .search{min-width:0;flex:1 1}.flow:not(.agent-conversational){overflow-y:auto}.flow:not(.agent-conversational) .flow-body{flex:1 0 auto;overflow:visible;padding-block:16px 24px}.flow .brief{height:auto}.flow .brief-card{flex:none;height:auto;max-height:none;overflow:visible;padding:14px}.flow .brief-example-list{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.flow .brief-example-list button{flex:0 0 260px;font-size:12px;padding:8px 10px}.flow .brief-input{min-height:210px}.flow .brief-input textarea{min-height:140px;font-size:16px}.flow .brief-opts{grid-template-columns:repeat(2,minmax(0,1fr))}.flow .brief-opts label{min-width:0}.flow .modes .mode{min-width:0;padding-inline:3px}.flow .modes .mode strong{font-size:12px}.flow .ol-layout{height:auto;min-height:520px}.flow .ol-wrap{min-height:440px}.flow .ol-doc{max-height:55dvh}.flow .is-outline .stage-head{flex-wrap:wrap;gap:10px}.flow .pick-panel{height:min(720px,80dvh);min-height:460px}.flow .pick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flow .render{min-height:560px;height:auto}.agent-conversational .agent-brief-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.agent-conversational .agent-brief-options>label{min-width:0;justify-content:space-between;display:flex;gap:6px}.agent-conversational .agent-brief-options>label .custom-select{width:auto;flex:1 1;min-width:0}.agent-conversational .agent-brief-options>.agent-session-tools{grid-column:1/-1;min-width:0;flex-wrap:wrap}.agent-conversational .agent-welcome h1{font-size:24px}.agent-conversational .agent-landing .agent-input{padding:12px}.agent-conversational .agent-landing .agent-style-card{width:82px;height:65px}.agent-conversational .agent-input-main{gap:9px}.agent-conversational .agent-input-tools{flex-wrap:wrap}.agent-conversational .agent-input-editor{font-size:16px}.agent-conversational .agent-chat{height:72dvh;min-height:480px}.agent-conversational .agent-artifact{height:auto;min-height:500px}.agent-conversational .agent-artifact .agent-outline-editor{min-height:400px}.agent-conversational .agent-artifact .agent-picker{height:480px}.agent-conversational .agent-markdown-preview{max-height:60dvh}.overlay{padding:10px 10px max(10px,env(safe-area-inset-bottom))}.overlay .modal{width:100%;max-width:100%;max-height:calc(100dvh - 20px);border-radius:14px}.overlay .modal-body,.overlay .modal-foot,.overlay .modal-head{padding:14px}.overlay .modal-foot{flex-wrap:wrap}.overlay .foot-actions{flex-wrap:wrap;gap:8px}.overlay .modal-body input:not([type=range]):not([type=checkbox]),.overlay .modal-body textarea{font-size:16px}.overlay .tpl-layout{grid-template-rows:minmax(100px,32%) minmax(0,1fr)}.image-convert-page .image-convert-heading h1{font-size:22px}.image-convert-page .image-upload-empty>span:not(.btn){font-size:12px;overflow-wrap:anywhere}.image-convert-page .image-convert-footer{align-items:stretch;flex-direction:column}.image-convert-page .image-convert-buttons{margin:0}.image-convert-page .image-convert-buttons .btn{flex:1 1;justify-content:center}.app-header.is-wide .app-header-inner{grid-template-columns:auto minmax(0,1fr);grid-template-rows:34px 26px}.app-header.is-wide .header-brand .brand-wordmark{display:none}.app-header.is-wide .header-actions{gap:4px}.app-header.is-wide .header-back{width:30px;padding:0}.app-header.is-wide .account-vip-badge,.app-header.is-wide .header-back span{display:none}.app .workspace{width:100%;margin:0;border-inline:0;grid-template-columns:minmax(0,1fr);grid-template-rows:102px minmax(230px,1fr) minmax(140px,27%)}.workspace>.rail{grid-column:1;grid-row:1;border:0;border-bottom:1px solid var(--line);flex-direction:row}.workspace .rail-head{flex:none;width:34px;padding:4px;flex-direction:column;justify-content:center;gap:4px;font-size:11px}.workspace .rail-list{flex-direction:row;align-items:center;gap:10px;padding:7px;overflow-x:auto;overflow-y:hidden}.workspace .thumb-item{width:110px;gap:4px}.workspace .thumb-no{width:12px;font-size:10px}.workspace .thumb-actions{opacity:1;top:1px;right:1px;gap:1px}.workspace .thumb-actions button{width:24px;height:24px}.workspace .thumb-add{white-space:nowrap;width:70px;padding:8px;margin:0;font-size:12px}.workspace>.stage{grid-column:1;grid-row:2}.workspace>.inspector{grid-column:1;grid-row:3}.workspace .stage-scroll{padding:100px 12px 42px}.workspace .canvas-toolbar{left:8px;right:8px;top:8px;max-width:none;width:auto;transform:none}.workspace .canvas-toolbar button{flex:none;min-height:34px;padding-inline:9px}.workspace .selection-toolbar{top:60px;left:8px;right:8px;justify-content:flex-start;overflow-x:auto;white-space:nowrap}.workspace .selection-toolbar>*{flex:none}.workspace .zoom-bar{bottom:6px;right:6px}.workspace .insp-scroll{padding:8px 14px 24px}.shape-picker{max-width:calc(100vw - 16px);max-height:calc(100dvh - 20px)}.shape-picker .shape-picker-body{grid-template-columns:80px minmax(0,1fr)}.shape-picker .shape-picker-results{padding:10px}.shape-picker .shape-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:360px){.app-header .brand-wordmark{width:84px}.app-header .header-brand:has(.header-back) .brand-wordmark{display:none}.app-header .header-actions{gap:3px}.app-header .account-vip-badge{display:none}.app-header .header-navigation{gap:2px}.app-header .header-navigation a{font-size:11px;padding-inline:2px}}