/* Project backup and mobile editor navigation */
.local-draft:not(.has-draft) #draft-description{display:block}.draft-copy{flex-basis:360px}.draft-actions{max-width:560px}.draft-actions button{min-height:44px;font-size:11px}.draft-actions #project-options{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:4px}.draft-copy .draft-confirmation{padding:12px 14px;margin-top:12px;font-size:12px;line-height:1.7;color:#754a2e;background:#fff5e9;border:1px solid #ead7bf;border-radius:8px}.draft-actions #confirm-replace-local{background:#254b38;border-color:#254b38;color:white}.project-backup-dialog{width:min(600px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:34px;box-sizing:border-box;overflow:auto}.project-backup-dialog h2{font-size:30px;line-height:1.15;letter-spacing:-1px;padding-right:24px;margin:12px 0 15px}.project-backup-dialog .backup-intro{font-size:14px;line-height:1.75;margin:0 0 24px}.backup-choice{display:flex;gap:15px;padding:22px 0;border-top:1px solid #dfe5dc}.backup-choice-number{font-size:11px;line-height:24px;color:#7b897c;font-variant-numeric:tabular-nums}.backup-choice>div{min-width:0}.backup-choice h3{font-size:17px;line-height:1.4;margin:0 0 7px;color:#223e2c}.backup-choice p{font-size:13px;line-height:1.7;margin:0 0 14px;overflow-wrap:anywhere}.backup-choice small{display:block;font-size:11px;line-height:1.7;color:#718074;margin-top:12px}.backup-choice button{min-height:46px;border-radius:8px;padding:12px 17px;color:#fff;background:#244d38;font-size:13px;text-align:left}.backup-choice button:disabled{opacity:.5;cursor:not-allowed}.backup-choice #dialog-download-project{background:#fff;color:#254633;border:1px solid #bfcdbf}.backup-feedback{font-size:12px!important;line-height:1.7!important;margin:12px 0!important;overflow-wrap:anywhere}.backup-feedback:empty{display:none}.backup-open-file{font-size:13px;color:#264b38;background:transparent;padding:14px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px;text-align:left}.backup-change-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.backup-change-actions button{font-size:13px;border:1px solid #c5d0c3;border-radius:8px;padding:13px 16px;min-height:46px;background:#fff;color:#2a4934}.backup-change-actions #project-change-confirm{background:#254b38;color:#fff;border-color:#254b38}.mobile-project-tools{display:none}#editor-panel,#preview-panel{scroll-margin-top:18px}
@media(max-width:760px){
 .mobile-project-tools:not([hidden]){display:flex;position:fixed;bottom:0;left:0;right:0;z-index:12;padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:6px;border-top:1px solid #d8e0d5;background:#fcfdfb;box-shadow:0 -5px 22px #1c362414}.mobile-project-tools>button{flex:1;min-width:0;min-height:54px;border-radius:9px;background:transparent;color:#637266;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 6px;font-size:11px;font-weight:600}.mobile-project-tools svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0}.mobile-project-tools>button[aria-pressed=true]{background:#e7eee6;color:#254b35}.mobile-project-tools #mobile-save-project{background:#254b38;color:#fff;flex:.85}.mobile-project-tools-visible .toast{bottom:calc(88px + env(safe-area-inset-bottom));max-width:calc(100% - 30px)}body.mobile-project-tools-visible{padding-bottom:calc(78px + env(safe-area-inset-bottom))}body:has(dialog[open]) .mobile-project-tools{display:none}.mobile-tabs{margin-bottom:0}.local-draft{padding:20px;gap:12px}.draft-copy{flex:1 1 230px}.draft-actions{max-width:none;gap:8px}.draft-actions #project-options{font-size:12px}.project-backup-dialog{padding:27px 22px;max-height:calc(100dvh - 24px)}.project-backup-dialog h2{font-size:27px}.project-backup-dialog .backup-intro{font-size:14px}.backup-choice{gap:11px;padding:20px 0}.backup-choice p{font-size:13px}.backup-choice button{font-size:13px;width:100%}.backup-choice small{font-size:12px}.backup-change-actions{flex-direction:column}.backup-change-actions button{width:100%;text-align:center}.editor-body input[type=text],.editor-body input[type=number],.editor-body input[type=tel],.editor-body textarea,.editor-body select,.free-properties input[type=text]{font-size:16px!important}.editor-body input,.editor-body select{min-height:46px}
}
@media(max-width:480px){.topbar #help{display:none}.topbar{gap:10px}.header-actions{gap:11px}}
@media(max-width:360px){.mobile-project-tools>button{font-size:10px;gap:5px}.mobile-project-tools svg{width:16px;height:16px}.project-backup-dialog{padding:25px 19px}.draft-copy{flex-basis:200px}}
@media(prefers-reduced-motion:reduce){.mobile-project-tools button{transition:none}}
