.mobile-editor-toolbar,.mobile-tool-tabs,.mobile-editor-message{display:none}
@media(max-width:760px), (max-width:1024px) and (max-height:550px){
 body.mobile-editor-open{overflow:hidden;overscroll-behavior:none}
 .mobile-editor-open>.header,.mobile-editor-open .studio-heading,.mobile-editor-open .studio-progress,.mobile-editor-open>.next-footer{visibility:hidden}
 .mobile-editor-open .studio-workspace{position:fixed;z-index:60;inset:var(--editor-top,0px) 0 auto;width:100%;max-width:none;height:var(--editor-height,100dvh);display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:52px minmax(0,1.3fr) minmax(0,1fr);align-items:stretch;gap:0;background:#eeeae2;overflow:hidden;isolation:isolate}
 .mobile-editor-open .mobile-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px;background:#111820;color:#fff;border-bottom:1px solid #ffffff20}
 .mobile-editor-toolbar>span{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#d2d8df;white-space:nowrap}
 .mobile-editor-toolbar button{border:0;min-height:44px;font-size:12px;padding:7px 3px;background:none;color:inherit;white-space:nowrap}
 .mobile-editor-toolbar .mobile-editor-back{display:flex;gap:7px;align-items:center}
 .mobile-editor-back>span{font-size:18px}
 .mobile-editor-toolbar .mobile-editor-finish{background:#bdcbff;color:#111820;min-height:36px;border-radius:6px;padding:7px 11px;display:flex;gap:10px;align-items:center}
 .mobile-editor-toolbar .mobile-keyboard-done{display:none}
 .mobile-editor-open .studio-preview{position:relative;top:auto;min-height:0;min-width:0;width:100%;align-self:stretch;padding:8px 14px 6px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:6px;border:0;border-radius:0;background:#f9f8f4;overflow:hidden;box-shadow:none}
 .mobile-editor-open .preview-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px;font-size:11px}
 .mobile-editor-open .preview-top #stage-product{font-size:13px}
 .mobile-editor-open #stage-detail{display:none!important}
 .mobile-editor-open .preview-note{margin:0;font-size:11px;line-height:1.25;text-align:center}
 .mobile-keyboard-open .preview-note{display:none}
 .mobile-editor-open #stage-view{font-size:11px;white-space:nowrap}
 .mobile-editor-open #canvas-wrap,.mobile-editor-open.is-typing #canvas-wrap{align-self:center;justify-self:center;width:var(--mobile-canvas-size,280px);height:var(--mobile-canvas-size,280px);min-width:0;max-width:100%;margin:0;aspect-ratio:1;background:#fff;border-radius:5px}
 .mobile-editor-open .preview-bottom{padding:0;min-height:0;display:grid;gap:2px}
 .mobile-editor-open #view-picker{gap:5px}
 .mobile-editor-open #view-picker button{min-height:40px;font-size:11px;padding:5px 3px;background:#eeeae2;border:1px solid #11182018}
 .mobile-editor-open #view-picker [aria-pressed=true]{background:#172333;color:#fff;border-color:#172333}
 .mobile-editor-open .preview-tools{gap:12px;min-height:32px}
 .mobile-editor-open #focus-preview,.mobile-editor-open #toggle-guide{font-size:11px;min-height:32px;padding:3px 0}
 .mobile-editor-open .studio-controls{display:grid;grid-template-rows:auto minmax(0,1fr);width:100%;min-height:0;padding:0;background:#eeeae2;border-top:1px solid #11182022;overflow:hidden}
 .mobile-editor-open .mobile-tool-tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:6px 12px 0;gap:5px;background:#eeeae2}
 .mobile-tool-tabs button{min-height:42px;font-size:13px;line-height:1.2;border:0;border-bottom:2px solid transparent;background:none;color:#626a71;border-radius:5px 5px 0 0;padding:7px 4px}
 .mobile-tool-tabs [aria-selected=true]{color:#132033;border-bottom-color:#3159dc;background:#f9f8f4;font-weight:600}
 .mobile-editor-open .studio-controls [data-panel="2"]{display:block;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:12px;padding:12px 16px max(18px,env(safe-area-inset-bottom));border:0;border-radius:0;background:#f9f8f4;-webkit-overflow-scrolling:touch}
 .mobile-editor-open .panel-title,.mobile-editor-open #design-status,.mobile-editor-open #storage-note{display:none}
 .mobile-tool-group:not([hidden]){display:block}
 .mobile-editor-open .add-design{gap:10px;margin:0}
 .mobile-editor-open .add-design .button{min-height:52px;font-size:13px;background:#fff;border:1px solid #11182030}
 .mobile-editor-open .helper{font-size:11px!important;line-height:1.55!important;margin:10px 0 12px!important}
 .mobile-editor-open .empty-design,.mobile-selection-help{font-size:13px;line-height:1.55;padding:15px;background:#eeece6;border-radius:6px;margin:13px 0 0}
 .mobile-editor-open #layer-list{margin:0 0 9px;display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}
 .mobile-editor-open #layer-list:empty{display:none}
 .mobile-editor-open #layer-list button{flex:none;max-width:200px;min-height:34px;font-size:11px;padding:5px 11px}
 .mobile-editor-open #object-controls{display:flex;flex-direction:column;border:0;margin:0;padding:0;gap:0}
 .mobile-editor-open #object-controls>legend{display:none}
 .mobile-editor-open #object-controls>.range-label{order:0;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;margin:0 0 3px}
 .mobile-editor-open #object-controls>.range-label output{font-size:11px}
 .mobile-editor-open #object-width{order:1;min-height:44px;margin:0;flex:none}
 .mobile-editor-open .object-actions{order:2;margin:3px 0 13px;gap:9px}
 .mobile-editor-open .object-actions button{min-height:42px;font-size:12px;background:#fff}
 .mobile-editor-open #text-settings{order:3}
 .mobile-editor-open .advanced-controls{order:5;margin:5px 0 0}
 .mobile-editor-open .studio-controls .field{margin-bottom:13px}
 .mobile-editor-open .studio-controls .field>span{font-size:12px;margin-bottom:5px}
 .mobile-editor-open .studio-controls .field input,.mobile-editor-open .studio-controls .field select,.mobile-editor-open .studio-controls .field textarea{font-size:16px;padding:9px 11px;min-height:44px}
 .mobile-editor-open .studio-controls .field-grid.compact{gap:12px}
 .mobile-editor-open .configuration-summary{margin:0 0 15px;padding:12px}
 .mobile-editor-open .configuration-summary button{min-height:38px}
 .mobile-editor-open .history-actions{margin:0 0 16px;padding:0;border:0}
 .mobile-editor-open #add-proof{margin:0;min-height:46px}
 .mobile-editor-open .mobile-editor-message:not([hidden]){display:block;position:absolute;top:58px;left:12px;right:12px;z-index:5;pointer-events:none;padding:9px 12px;border-radius:6px;background:#e8edfbee;color:#172333;box-shadow:0 3px 15px #11182015;font-size:11px;line-height:1.5}
 .mobile-editor-message[data-error=true]{background:#fff1eb!important;color:#8b2d21!important;border:1px solid #8b2d2144}
 .mobile-keyboard-open .studio-workspace{grid-template-rows:44px minmax(0,1fr) minmax(160px,1fr)}
 .mobile-keyboard-open .mobile-editor-toolbar>span,.mobile-keyboard-open .mobile-editor-toolbar .mobile-editor-finish{display:none}
 .mobile-keyboard-open .mobile-editor-toolbar .mobile-keyboard-done{display:block;color:#bdcbff}
 .mobile-keyboard-open .preview-top,.mobile-keyboard-open .preview-bottom{display:none}
 .mobile-keyboard-open .studio-preview{grid-template-rows:minmax(0,1fr);padding-block:5px}
 .mobile-keyboard-open .mobile-tool-tabs{display:none}
 .mobile-keyboard-open .studio-controls{grid-template-rows:minmax(0,1fr)}
 .mobile-keyboard-open .studio-controls [data-panel="2"]{padding-top:10px}
}
@media(max-width:1024px) and (orientation:landscape) and (max-height:550px){
 .mobile-editor-open:not(.mobile-keyboard-open) .studio-workspace{grid-template-columns:minmax(0,1fr) minmax(270px,1fr);grid-template-rows:44px minmax(0,1fr)}
 .mobile-editor-open:not(.mobile-keyboard-open) .mobile-editor-toolbar{grid-column:1/-1}
 .mobile-editor-open:not(.mobile-keyboard-open) .studio-controls{border-top:0;border-left:1px solid #11182022}
}

@media (max-width:760px), (max-width:1024px) and (max-height:550px) {
 html:has(.studio-page[data-studio-step="3"] .review-continue:not([hidden])) {
  --review-continue-space:calc(72px + env(safe-area-inset-bottom, 0px));
  scroll-padding-bottom:var(--review-continue-space);
 }

 .studio-page[data-studio-step="3"]:has(.review-continue:not([hidden])) {
  padding-bottom:var(--review-continue-space);
 }

 .review-continue {
  position:fixed;
  z-index:31;
  inset:auto 0 0;
  display:grid;
  justify-items:center;
  padding:10px max(16px, env(safe-area-inset-right, 0px))
   max(10px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background:#192536;
  border-top:1px solid #ffffff30;
 }

 .review-continue .button { max-width:560px; }
}

@media (max-width:760px) {
 .studio-shell.wrap { padding-top:20px; }
 .studio-heading { align-items:flex-start; margin-bottom:14px; }
 .studio-heading .eyebrow,
 .selection-heading .eyebrow,
 .selection-heading>p { display:none; }
 .studio-intro { margin-top:6px; }
 .studio-help { margin-top:4px; }
 .studio-progress { margin-bottom:18px; }
 .studio-progress button { flex-direction:row; min-height:44px; gap:5px; }
 .studio-progress button b { flex:0 0 18px; height:18px; }
 .selection-heading { margin-bottom:12px; }
 .selection-heading h2 { font-size:22px; }
 .product-tools { margin-bottom:12px; }
}

@media (max-width:760px), (max-width:1024px) and (max-height:550px) {
}

@media (max-width:760px), (max-width:1024px) and (max-height:550px) {
 .mobile-editor-open .mobile-tool-tabs[hidden] { display:none; }
 .mobile-editor-open .studio-controls:has([data-cap-screen]) { grid-template-rows:minmax(0,1fr); }
 .mobile-editor-open [data-cap-screen]>:is(#cap-product-actions,#add-proof) { display:none; }
 .mobile-editor-open .cap-stage #view-picker img { width:64px; max-width:100%; height:42px; }
 @media (max-height:470px) and (orientation:landscape) {
  .mobile-editor-open .cap-stage #view-picker img { height:19px; }
 }
 .mobile-editor-open [data-cap-screen] #cap-edit { border-top:0; padding:0 0 7px; margin:0 0 9px; }
 .mobile-editor-open [data-cap-screen] #text-settings { order:-1; }
 .mobile-editor-open [data-cap-screen] #object-controls>.range-label { margin-top:4px; }
 .mobile-editor-open #cap-flow h3 { font-size:1.25rem; margin-bottom:7px; }
 .mobile-editor-open #cap-methods, .mobile-editor-open #cap-content { position:relative; }
 .mobile-editor-open #cap-flow .cap-back { position:absolute; inset:0 0 auto auto; min-height:40px; padding:0; margin:0; }
 .mobile-editor-open #cap-methods h3, .mobile-editor-open #cap-content h3 { display:flex; align-items:center; min-height:40px; padding-right:65px; }
 .mobile-editor-open .studio-workspace:has([data-cap-screen]) .mobile-editor-toolbar>span { display:none; }
 .mobile-editor-open #cap-method-options { margin-top:10px; gap:6px; }
 .mobile-editor-open .cap-method-option { grid-template-columns:88px minmax(0,1fr); min-height:64px; gap:10px; }
 .mobile-editor-open .cap-method-option img { min-height:60px; }
 .mobile-editor-open .cap-method-option span { padding:6px 0; gap:1px; }
 .mobile-editor-open .cap-method-option strong { font-size:.94rem; }
 .mobile-editor-open .cap-method-option small { font-size:.8rem; }
 .mobile-editor-open .cap-content-buttons .button { min-height:48px; font-size:.88rem; padding-inline:8px; }
}

@media(max-width:760px),(max-width:1024px) and (max-height:550px){
 .mobile-editor-open .studio-preview:has(.manual-placement){grid-template-rows:auto minmax(0,1fr) auto auto}
 .mobile-editor-open .studio-preview .preview-note.manual-placement{display:block!important;margin:0;font-size:11px;line-height:1.25;text-align:center}
}

@media(max-width:760px){.mobile-editor-open #view-picker:has(button:nth-child(5 of button:not([hidden]))){grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:760px){.mobile-editor-open .preview-top:has(#reference-note:not([hidden])) #stage-detail{display:block!important}.mobile-editor-open #reference-note{font-size:.75rem}}

@media(max-width:760px), (max-width:1024px) and (max-height:550px){
 .mobile-editor-open #reference-product-photo{width:60px;height:64px}
 .mobile-editor-open .preview-top:has(#reference-product-photo:not([hidden])){align-items:flex-start;gap:8px}
 .mobile-editor-open .preview-top:has(#reference-product-photo:not([hidden])) #stage-view{max-width:63px;text-align:right;line-height:1.25}
 .mobile-editor-open #requested-size{order:2;margin:3px 0 4px}
 .mobile-editor-open .object-actions{order:3}
 .mobile-editor-open #text-settings{order:4}
 .mobile-editor-open #requested-size input{font-size:16px}
 .mobile-editor-open .advanced-controls{order:6}
}
