.mobile-menu{display:none}html,body,#root{min-height:100%;overflow-x:clip}body{overscroll-behavior-y:none}.app{overflow-wrap:anywhere}@media (width<=768px){.app{display:block}.app aside{z-index:30;flex-direction:row;justify-content:space-between;align-items:center;gap:8px;width:100%;height:auto;min-height:56px;padding:8px 12px;position:sticky;inset:0 auto auto;overflow:visible}.mobile-menu{min-height:44px;color:inherit;background:0 0;border-color:currentColor;flex-shrink:0;display:block}.app aside .logo{gap:5px;padding:0;font-size:9px;line-height:1.3}.logo>span{font-size:24px}.logo strong{font-size:13px}.app aside .quick-entry{min-height:44px;margin:0;padding:10px;font-size:12px}.app aside .aside-bottom{display:none}.app aside nav{background:var(--surface-183a2d);max-height:70dvh;padding:8px 12px 16px;display:none;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 8px 15px #0004}.app aside.nav-open nav{display:grid}.app aside nav button{min-height:44px;font-size:15px}.body{width:100%;margin:0}header{gap:10px;min-height:0;padding:12px}.mode-switch{max-width:100%}.mode-switch button{min-height:42px;padding:8px 12px;font-size:13px}.workspace-header{gap:8px;width:100%;min-width:0}.workspace-current{min-width:0;max-width:none}.workspace-current strong{max-width:calc(100vw - 140px);font-size:12px}.workspace-save{min-height:44px;padding:8px;font-size:12px}.legacy-scope{width:100%}.scope-select{flex-wrap:wrap}.scope-select label{min-width:120px;max-width:100%}.scope-select select{max-width:none}main{padding:20px 12px 28px}.page-heading{gap:8px;margin-bottom:16px}h1{font-size:24px}.panel{margin-bottom:14px;padding:17px 14px}.section-head{flex-wrap:wrap;align-items:flex-start;gap:10px}h2{font-size:18px}.welcome>h2{font-size:25px}.start-grid,.how-grid,.form-grid,.compare-grid{grid-template-columns:1fr}.start-card{min-height:120px;padding:18px}.toolbar{align-items:stretch;gap:8px}.toolbar>button{flex:auto}.toolbar>label{width:100%}.toolbar .check{align-self:auto}.form-actions{flex-wrap:wrap}.form-actions .muted{width:100%}button{max-width:100%;min-height:44px}input,select,textarea{max-width:100%;font-size:16px}.preview{min-height:240px;font-size:14px}.record{gap:8px}.record>span{min-width:0}.record small{max-width:calc(100vw - 90px)}.draft-row{flex-wrap:wrap;gap:4px;padding-bottom:8px}.draft-row .record{width:100%}.draft-row>button:last-child{margin-left:auto}.workspace-dialog{width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 16px);padding:18px 14px}.workspace-dialog .section-head{align-items:center}.workspace-options{max-height:40dvh}.workspace-option{flex-wrap:wrap;gap:10px}.workspace-option strong{font-size:14px}.workspace-import-buttons{flex-direction:column;display:flex}.workspace-import-buttons button{width:100%}.workspace-home{gap:12px}.workspace-home .toolbar{width:100%}.workspace-home .toolbar button{flex:1}.guided{padding:18px 14px}.guided-steps{gap:6px}.guided-steps li{font-size:11px}.guided-primary{flex-direction:column}.guided .large{white-space:normal;font-size:14px}.tabs{gap:3px;max-width:100%}.tabs button{padding:8px 10px;font-size:12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat{min-width:0;padding:14px}.stat strong{font-size:24px}dl{display:block}dt,dd{padding:11px}dd{border-bottom:1px solid var(--line-e4e9df)}.theme-options button{flex:1;min-width:0}.size-preview{padding:13px}footer{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.guided-target{display:block}.app header .workspace-header{flex:0 0 100%;width:100%;max-width:100%}.app header .workspace-current{flex:1;grid-template-columns:minmax(0,1fr) auto;min-width:0;max-width:none}.app header .workspace-current small{min-width:0}.app header .workspace-current strong{min-width:0;max-width:none}.app header .workspace-save{flex:none}}html{overscroll-behavior-x:none;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;touch-action:pan-y pinch-zoom;width:100%;max-width:100%;overflow-x:hidden}body,#root{overscroll-behavior-x:none;touch-action:pan-y pinch-zoom;min-width:0;max-width:100%;overflow-x:clip}.app{touch-action:pan-y pinch-zoom;min-width:0;max-width:100%;overflow-x:clip}.cloud-login{box-sizing:border-box;width:calc(100% - 24px)}@media (pointer:coarse),(width<=1024px){.app input,.app select,.app textarea,.workspace-dialog input,.workspace-dialog select,.workspace-dialog textarea,.cloud-login input,[contenteditable=true]{box-sizing:border-box;min-width:0;max-width:100%;font-size:16px!important}textarea{resize:vertical}.app main,.panel,.guided,.planning-review,.form-grid>*{min-width:0;max-width:100%}.app pre,.app .preview{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%}}
