html{-webkit-text-size-adjust:100%;scroll-padding-bottom:5rem}body{font-size:16px;overscroll-behavior-y:none}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}input,select,textarea{font-size:16px!important}.mobile-data-tools{display:flex;flex-wrap:wrap;gap:10px;padding:12px 24px 0}.mobile-data-tools button{min-height:44px;font-size:14px}.mobile-storage-note{padding:0 24px;margin:10px 0 0;color:var(--secondary);font-size:13px;line-height:1.7}.mobile-activation{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid var(--stroke);border-radius:20px;background:var(--panel);color:var(--text)}.mobile-activation::backdrop{background:rgba(12,20,16,.7);backdrop-filter:blur(8px)}.mobile-activation h1{font-size:24px;margin:18px 0 10px}.mobile-activation p{font-size:15px;line-height:1.8}.mobile-activation input{width:100%;min-height:48px;margin:8px 0 16px}.mobile-activation button{min-height:48px;width:100%;margin:8px 0}.mobile-activation small{font-size:13px}.mobile-logo{display:grid;place-items:center;width:54px;height:54px;border:1px solid var(--accent-line);border-radius:15px;background:var(--selected);color:var(--accent);font-size:32px}.mobile-activation [readonly]{font:12px monospace!important;word-break:break-all}.modal-layer{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}.popover{max-width:calc(100vw - 24px)}.asset-card button,.asset-card select{min-height:44px}.asset-card .asset-remove{min-height:32px;min-width:32px}#prompt{font-size:17px!important;min-height:240px;line-height:1.9}.history-controls input{min-height:48px}.history-description{font-size:14px!important}.history-item button,.generated-info button,.result-actions button{min-height:44px;font-size:14px}.generated-info>p{font-size:14px}.record-pager button{min-height:44px}.top-actions button{min-height:44px}.brand-name{font-size:17px}#transferMode option[value=private]{display:none}.settings-note,.reference-match-tip{font-size:14px}.prompt-editor-panel{padding-bottom:max(16px,env(safe-area-inset-bottom))}#promptEditor{height:100dvh}#sidebarSettings,#sidebarRecharge,#openResultsFolder{font-size:14px;min-height:44px}.tool-button{min-height:44px;font-size:14px}.tool-icon{min-width:44px;min-height:44px}.cost-summary b{font-size:16px}.cost-summary small{font-size:13px}
@media(min-width:700px) and (max-width:1180px){.sidebar{width:190px;padding:22px 12px 14px}.recent-tasks{display:none}.topbar{padding:18px 24px;gap:12px;align-items:flex-start}.top-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.breadcrumb{display:none}.create-page{padding:26px 22px 40px}.composer{padding:22px}.composer-actions{align-items:flex-end;gap:14px}.toolbar{flex-wrap:wrap;gap:8px}.generate-actions{flex-shrink:0}.workspace{min-width:0}.library-page{padding:30px 24px}.asset-strip{gap:14px}.generated-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))}.privacy-badge{display:none}.connection-btn{max-width:190px}.prompt-heading{align-items:flex-start}.prompt-tools{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:699px){.sidebar{padding-top:max(14px,env(safe-area-inset-top))}.sidebar .brand{justify-content:center}.sidebar nav{gap:6px}.navitem{min-height:44px;font-size:14px}.topbar{padding:12px 16px}.top-actions{gap:8px;justify-content:flex-start}.top-actions button{padding:8px 11px;font-size:14px}.top-actions .privacy-badge,.breadcrumb,#rechargeButton{display:none}.mobile-data-tools{padding:12px 16px 0;gap:8px}.mobile-data-tools button{flex:1;padding:9px 7px;font-size:13px;white-space:nowrap}.mobile-storage-note{padding:0 16px;font-size:13px}.create-page{padding:18px 12px 36px}.composer{padding:16px 12px}.composer-topline{padding:0 4px}.composer-topline>div{gap:6px}.composer-topline button{font-size:13px;min-height:44px}#autosaveStatus{font-size:12px}.asset-strip-items{gap:12px}.asset-card{min-width:138px;max-width:160px}.asset-card .asset-thumb{height:124px}.upload-tile{width:94px;min-width:94px;min-height:110px}.asset-tip{display:none}.prompt-heading{display:block}.prompt-tools{display:flex;justify-content:space-between;gap:8px;margin:8px 0}.prompt-tools>span{display:none}.prompt-tools button{min-height:44px;flex:1;font-size:14px}.reference-match-tip{font-size:13px;line-height:1.8}#prompt{min-height:260px;max-height:60dvh;padding:14px}.composer-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px}.toolbar{display:flex;flex-wrap:wrap;gap:5px}.tool-button,.tool-icon{font-size:14px;padding:8px}.tool-divider{display:none}.model-button{max-width:225px}.generate-actions{display:flex;justify-content:flex-end;gap:18px}.generate-btn{min-width:54px;min-height:54px}.cost-summary{text-align:right}.generated-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:600px;gap:10px}.generated-info{padding:10px}.generated-info>p{font-size:13px}.generated-card-footer{flex-wrap:wrap}.generated-card-footer a{font-size:12px}.generated-info button{padding:7px;font-size:13px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-item{display:block}.history-item>div:last-child{display:flex;flex-wrap:wrap;margin-top:10px}.dialog{max-height:calc(100dvh - 24px);padding:20px 16px}.settings-tabs{gap:4px}.settings-tabs button{min-height:44px;padding:8px;font-size:14px}.theme-switch button{min-width:62px}.video-mount{padding:10px;min-height:160px}.video-mount video,.video-mount img{max-height:55dvh}.result-actions{gap:8px}.result-actions>*{font-size:14px}#submitBtn{position:relative}.footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}}
#emptyStage{min-height:0;padding:20px 12px 24px}#emptyStage .hero-mark,#emptyStage .eyebrow,#emptyStage .suggestions,#emptyStage .empty-privacy{display:none}#emptyStage h1{font-size:26px;margin:0 0 8px}#emptyStage p{margin:0;font-size:15px}.stage{margin-bottom:16px;flex:0 0 auto;min-height:0;padding:0}[data-runtime-status]{display:none}
@media(min-width:700px) and (max-width:960px){.app-shell{display:block}.sidebar{position:static;width:100%;height:auto;display:flex;flex-direction:row;align-items:center;gap:14px;padding:16px 22px;border-right:0;border-bottom:1px solid var(--stroke)}.sidebar .brand{padding:0;margin:0;white-space:nowrap;gap:8px}.sidebar .brand-icon{width:36px;height:36px;font-size:25px}.sidebar .brand-name{font-size:16px}.sidebar>.new-project,.sidebar-caption,.recent-tasks,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:8px;margin-left:auto}.sidebar .navitem{padding:10px 12px;font-size:14px;white-space:nowrap}.sidebar nav small{display:none}.topbar{padding:12px 22px}.top-actions{justify-content:flex-start}.create-page{padding-top:18px}.composer{padding:20px}}
.mobile-data-tools .mobile-recharge{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;font-size:14px;white-space:nowrap;color:var(--accent);background:var(--selected);border:1px solid var(--accent-line);border-radius:10px;text-decoration:none}
.mobile-key-guide{font-size:14px;color:var(--text);line-height:1.9;border-left:3px solid var(--accent-line);margin-left:24px;padding:8px 16px;background:var(--selected);border-radius:0 9px 9px 0}
@media(max-width:699px){.mobile-data-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-data-tools button,.mobile-data-tools .mobile-recharge{width:100%;font-size:14px}.mobile-data-tools .mobile-recharge{padding:9px 7px}}
@media(pointer:coarse){.generated-card:hover,.asset-card:hover{transform:none}.mention-menu [role=option]{min-height:48px}.subtle-btn{min-height:44px}.popover button{min-height:48px}}
