/* Phone and tablet layout. Desktop editors retain their existing layout. */
.mobile-editor-nav{display:none}
@media(max-width:900px){
html{scroll-padding-top:65px}body{overflow-x:clip}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}button,input,select{min-height:44px}input[type=range]{min-height:40px}button:focus-visible,a:focus-visible{outline:2px solid #597649;outline-offset:3px}
.edit-target{min-height:0;min-width:0}
.mobile-editor-nav{display:flex;position:sticky;top:0;z-index:25;gap:6px;padding:10px 12px;background:#ffffffed;backdrop-filter:blur(12px);border-block:1px solid #e0e6dc;width:100%;box-sizing:border-box}.mobile-editor-nav button{flex:1;min-width:0;min-height:46px;border:0;border-radius:10px;background:#f0f3ed;color:#55674b;font:600 12px Arial,sans-serif;padding:10px 6px}.mobile-editor-nav button[aria-pressed=true]{background:#506745;color:#fff}
body.editor-workspace{overflow:auto}.editor-workspace .simple-editor.stage-wrap{display:flex;flex-direction:column;position:relative;inset:auto;min-height:100svh;padding:0 0 env(safe-area-inset-bottom)}.workspace-topbar{padding:10px 12px;gap:8px;min-height:62px;flex-wrap:wrap}.workspace-back{width:44px;min-width:44px}.workspace-brand{font-size:14px}.workspace-document{padding-left:8px;min-width:0;flex:1}.workspace-document strong{max-width:42vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-topbar .size-picker{width:100%;display:flex;justify-content:space-between;gap:10px;border-top:1px solid #e1e7dd;padding-top:7px}.workspace-topbar .size-picker select{max-width:75%;padding:8px}.editor-workspace .touch-editor-grid{display:flex;flex-direction:column;height:auto;gap:0}.editor-workspace .touch-canvas{order:0;width:100%;height:52svh;min-height:275px;max-height:580px;padding:10px 12px;box-sizing:border-box;flex:none}.editor-workspace .mobile-editor-nav{order:1}.editor-workspace .canvas-viewport{min-height:0;padding:18px}.canvas-workspace-label{height:25px;min-height:25px}.canvas-viewbar{min-height:46px;height:auto}.view-zoom button{min-width:44px;min-height:44px}.editor-workspace .touch-sidebar,.editor-workspace .editing-sidebar{order:2;width:100%;position:static;display:none;max-height:none;overflow:visible;box-sizing:border-box;border:0}.editor-workspace [data-mobile-panel=designs] .touch-sidebar{display:block}.editor-workspace [data-mobile-panel=edit] .editing-sidebar{display:block}.editor-workspace .design-panel{padding:16px}.editor-workspace .design-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:45svh;overflow:auto;gap:10px;padding:5px 2px}.editor-workspace .rail-card{min-width:0}.editor-workspace .rail-card img{height:120px}.editor-workspace .rail-card strong{font-size:11px}.editor-workspace .rail-help,.editor-workspace .rail-status{display:block;font-size:11px}.editor-workspace .inspector-heading{height:auto;padding:15px 18px}.editor-workspace .editing-sidebar .context-tools,.editor-workspace .editing-sidebar .context-tools.has-selection{position:static;max-height:none;border:0;border-radius:0;box-shadow:none;padding:18px}.editor-workspace .context-tools button{min-height:44px;font-size:13px}.editor-workspace .context-heading{position:static}.editor-workspace .editor-finish{display:flex;flex-wrap:wrap;padding:15px 16px 22px;gap:10px;position:static}.editor-workspace .workspace-status{width:100%}.editor-workspace .bottom-actions{width:100%;display:flex;flex-wrap:wrap;gap:8px}.editor-workspace #to-checkout{flex:1;font-size:14px;min-height:48px}.editor-workspace #download{min-height:48px}.editor-workspace #photo-status{font-size:12px}.editor-workspace #size-note{font-size:11px}.crop-handle{width:44px;height:44px}.crop-handle.nw{left:-21px;top:-21px}.crop-handle.ne{right:-21px;top:-21px}.crop-handle.sw{left:-21px;bottom:-21px}.crop-handle.se{right:-21px;bottom:-21px}.crop-handle{touch-action:none}.editor-workspace .staff-bar{position:relative;display:flex;flex-wrap:wrap;height:auto;padding:10px;gap:8px}.editor-workspace .staff-bar input{min-width:0;max-width:100%}
.album-studio .ae-header{position:static;height:auto;display:flex;flex-wrap:wrap;padding:12px;gap:8px}.ae-header .logo{font-size:22px}.ae-header input{flex:1;width:140px;max-width:calc(100% - 115px)}.ae-header #save-status{order:5;width:100%;max-width:none;font-size:11px}.ae-header button{flex:1;min-height:44px}.album-studio .ae-workspace{display:flex;flex-direction:column;min-height:0}.album-studio .ae-main{order:0;padding:15px;width:100%;box-sizing:border-box}.album-studio .mobile-editor-nav{order:1}.album-studio .ae-pages,.album-studio .ae-tools{order:2;position:static;width:100%;box-sizing:border-box;max-height:none;display:none;padding:18px;border-top:1px solid #e1e7dc}.album-studio [data-mobile-panel=pages] .ae-pages,.album-studio [data-mobile-panel=edit] .ae-tools{display:block}.album-studio #page-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:45svh;overflow:auto;gap:10px}.album-studio .ae-page-thumb{min-width:0;width:100%}.album-studio .ae-page-thumb canvas{height:95px}.album-studio .ae-page-thumb small{font-size:10px}.ae-canvas-bar{margin-bottom:14px}.ae-canvas-bar h1{font-size:14px}.ae-canvas-note{font-size:11px;text-align:center}.album-studio .ae-page-actions button{min-height:44px;font-size:12px}.album-studio #edit-controls label{font-size:13px}.album-studio #edit-controls textarea{font-size:16px}.album-studio .ae-tools>button{min-height:46px}.album-studio dialog{box-sizing:border-box;width:calc(100vw - 20px);max-height:88dvh;padding:18px;overflow:auto}.album-studio #layout-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.album-studio .ae-dialog-head h2{font-size:21px}.album-studio .ae-dialog-head>button{min-width:44px}.album-studio #auto-page-setup select{max-width:100%;width:100%}.album-studio #auto-page-setup label{max-width:100%}.album-studio .ae-proof-actions{gap:8px}.album-studio .ae-proof-actions button{min-height:44px}.album-studio #proof-count{width:100%;text-align:center;order:-1}.album-studio .ae-proof-canvas{padding-bottom:70px}.album-studio #album-notice{bottom:calc(14px + env(safe-area-inset-bottom));width:max-content;max-width:85vw;font-size:13px}.ae-file-actions{display:flex;flex-wrap:wrap;gap:12px}.ae-file-actions p{width:100%}
}
@media(max-width:600px){
body:not(.editor-workspace):not(.album-studio)>header{height:auto;min-height:70px;gap:10px;flex-wrap:wrap;padding:13px 16px}body:not(.editor-workspace)>header nav{display:flex;order:3;width:100%;gap:20px;overflow-x:auto;white-space:nowrap;padding:6px 0}body:not(.editor-workspace)>header nav a{font-size:12px;min-height:36px;display:inline-flex;align-items:center}header .logo{font-size:24px}header>.small{margin-left:auto;font-size:12px;padding:10px 14px}.offer{font-size:10px;line-height:1.6;padding:7px 12px}.offer span{display:inline}.hero{padding-inline:20px}.hero h1{font-size:clamp(38px,10vw,56px)}.hero .lede{font-size:15px}.section{padding:45px 18px}.categories{gap:24px 12px}.category h3{font-size:17px}.category p{font-size:12px;line-height:1.5}.selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.select-card{padding:20px 12px}.select-card h3{font-size:17px}.stage-wrap{padding-inline:16px}.stage-head{padding-inline:16px}.boys-grid .design-tile img{height:205px}.gallery-actions{padding-bottom:calc(14px + env(safe-area-inset-bottom));gap:8px}.gallery-actions .dark{font-size:12px;min-height:48px}.checkout-grid{display:flex;flex-direction:column;gap:25px}.checkout-grid form,.order-summary{width:100%;box-sizing:border-box;min-width:0}.two-fields{grid-template-columns:1fr}.payment-options{flex-wrap:wrap}.payment-options label{min-height:44px}.album-page{padding-inline:18px}.album-intro h1{font-size:44px}.album-template-image{height:300px}.album-tabs button{min-height:46px}.album-template-card .text-link,.album-reference{display:inline-flex;align-items:center;min-height:44px}.album-studio .ae-mode-grid{grid-template-columns:1fr}.ae-proof-note{font-size:11px;text-align:center}.editor-workspace .rail-card img{height:105px}
}
@media(max-width:360px){.editor-workspace .design-rail,.album-studio #page-list{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-brand{display:none}.hero h1{font-size:36px}.ae-label{display:none}}

/* Batch 17: mobile-only persistent selection shortcuts. */
.mobile-selection-bar{display:none}
@media(max-width:900px){
 .editor-workspace .simple-editor.stage-wrap{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
 .editor-workspace .mobile-selection-bar:not([hidden]){display:flex;align-items:center;gap:6px;position:fixed;inset:auto 0 0;z-index:35;box-sizing:border-box;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d5dfd0;box-shadow:0 -4px 18px #20301818;color:#263522}
 .mobile-selection-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}
 .mobile-selection-bar button{min-width:48px;min-height:44px;padding:8px 10px;border:1px solid #d5dfd0;border-radius:10px;background:#f0f3ed;color:#354a2c;font-weight:600}
 .mobile-selection-bar [data-selection-action=edit]{background:#506745;color:#fff}
 .editor-workspace #context-tools{scroll-margin-top:80px;scroll-margin-bottom:90px}
 .editor-workspace .editor-finish{scroll-margin-bottom:90px}
}
