@media all{
 body.guided-mobile {padding-bottom:calc(var(--guided-bar-height,110px) + 24px)}
 body.guided-mobile .design-tabs,body.guided-mobile .mobile-settings-toolbar,body.guided-mobile .controls-heading,body.guided-mobile .mobile-purchase,body.guided-mobile .prototype-note,body.guided-mobile .preview>p.muted,body.guided-mobile .view-top #reset {display:none}
 body.guided-mobile .mobile-product-details,body.guided-mobile .mobile-delivery-details {display:none}
 body.guided-mobile .guided-review-details .mobile-product-details,body.guided-mobile .guided-review-details .mobile-delivery-details {display:block}
 body.guided-mobile .preview,body.guided-mobile .workspace {scroll-margin-top:8px}
 body.guided-mobile .view-top h2 {font-size:22px;line-height:1.25}
 body.guided-mobile .guided-progress {display:flex;gap:6px;list-style:none;margin:0 0 12px;padding:0;font-size:14px}
 body.guided-mobile .guided-progress li {flex:1;padding:8px 2px;border-bottom:3px solid #dce5e5;text-align:center;color:#536c70}
 body.guided-mobile .guided-progress li::before {content:counter(list-item) '. '}
 body.guided-mobile .guided-progress li[aria-current] {border-color:#173f46;color:#173f46;font-weight:700}
 body.guided-mobile .guided-heading {font-size:22px;margin:12px 0 6px;line-height:1.25}
 body.guided-mobile .guided-instruction {font-size:16px;line-height:1.4;margin:0 0 14px}
 body.guided-mobile .guided-step[hidden],body.guided-mobile .guided-navigation[hidden],body.guided-mobile .guided-back[hidden],body.guided-mobile .guided-camera[hidden] {display:none}
 body.guided-mobile .guided-step section {padding:0;margin:0 0 16px}
 body.guided-mobile .guided-step .editor-file-hint,body.guided-mobile .guided-one .editor-help {display:none}
 body.guided-mobile .guided-step details>summary,body.guided-mobile .guided-camera>summary {min-height:44px;padding:12px 0;font-size:16px;cursor:pointer;color:#173f46}
 body.guided-mobile .guided-step details {margin:10px 0;border-top:1px solid #dce5e5}
 body.guided-mobile .guided-camera {grid-column:1/-1;width:100%}
 body.guided-mobile .guided-camera>summary {text-align:center;padding:6px}
 body.guided-mobile .guided-navigation {position:fixed;z-index:6;bottom:var(--mobile-keyboard-offset,0px);left:0;right:0;display:flex;flex-wrap:wrap;gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #dce5e5}
 body.guided-mobile .guided-navigation button {min-height:48px;padding:10px 12px;border:0;border-radius:9px;font:inherit;font-size:16px}
 body.guided-mobile .guided-back {background:#eef3f1;color:#173f46;flex:1}
 body.guided-mobile .guided-next {background:#173f46;color:white;flex:2}
 body.guided-mobile .guided-next:disabled {opacity:.55;cursor:default}
 body.guided-mobile .guided-feedback {flex-basis:100%;font-size:14px;line-height:1.4;margin:0;color:#536c70}
 body.guided-mobile .guided-feedback:empty {display:none}
 body.guided-mobile .guided-review {padding:18px 14px;max-height:94dvh;width:calc(100% - 16px);max-width:650px;box-sizing:border-box}
 body.guided-mobile .guided-review .preview-pill,body.guided-mobile .guided-review .rotate-hint,body.guided-mobile .guided-review #review-image,body.guided-mobile .guided-review #checkout-step,body.guided-mobile .guided-review #edit-design {display:none}
 body.guided-mobile .guided-review .preview-stage {margin-bottom:16px}
 body.guided-mobile .guided-review #review-summary,body.guided-mobile .guided-review #review-colours {font-size:16px;line-height:1.5}
 body.guided-mobile .guided-review #order-now {min-height:48px;font-size:18px;width:100%}
 body.guided-mobile .guided-review-back {display:block;width:100%;min-height:48px;margin:10px 0;background:#eef3f1;color:#173f46;border:0;border-radius:9px;font-size:16px}
 body.guided-mobile .guided-review-details {margin-top:16px;font-size:16px}
 body.guided-mobile .guided-review-details>summary {padding:12px 0;min-height:44px}
}

/* Version 12: mobile control order only; original input handlers remain in charge. */
@media all{
 body.guided-mobile .guided-photo-tools {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px 2px;margin:8px 0 0}
 body.guided-mobile .guided-photo-tools[hidden] {display:none}
 body.guided-mobile .guided-photo-tools button {min-width:0;min-height:48px;border:1px solid #b8cccc;border-radius:8px;background:#fff;color:#173f46;font:inherit;font-size:23px;padding:5px 1px;touch-action:manipulation}
 body.guided-mobile .guided-photo-button span {display:block;font-size:12px;line-height:1.3}
 body.guided-mobile .guided-photo-tools .guided-photo-reset {grid-column:1/-1;font-size:16px;min-height:44px}
 body.guided-mobile .guided-photo-tools button:disabled {opacity:.45}
 body.guided-mobile #panel-position>input[type=range],body.guided-mobile #panel-position>label[for=zoom],body.guided-mobile #panel-position>label[for=horizontal],body.guided-mobile #panel-position>label[for=vertical] {display:none}
 body.guided-mobile[data-guided-step="3"] .guided-photo-tools {display:none}
 body.guided-mobile:not(.bauble-studio)[data-guided-step="1"] .colour-row:has([data-key=leftColour]),body.guided-mobile:not(.bauble-studio)[data-guided-step="1"] .colour-row:has([data-key=rightColour]),body.guided-mobile:not(.bauble-studio)[data-guided-step="2"] .colour-row:has([data-key=body]),body.guided-mobile:not(.bauble-studio)[data-guided-step="2"] .colour-row:has([data-key=letters]) {display:none}
 body.guided-mobile #colours {display:flex;flex-direction:column;min-width:0}
 body.guided-mobile .colour-row:has([data-key=letters]) {order:-1}
 body.guided-mobile .colour-row {min-width:0;max-width:100%;margin-bottom:12px}
 body.guided-mobile .swatches,body.guided-mobile .end-swatches {display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:8px;padding:5px 4px 9px;box-sizing:border-box}
 body.guided-mobile .swatches button,body.guided-mobile .end-swatches button {flex:0 0 44px;width:44px;height:44px;min-height:44px}
 body.guided-mobile .swatches button[aria-pressed=true],body.guided-mobile .end-swatches button[aria-pressed=true] {outline:3px solid #173f46;outline-offset:2px}
 body.guided-mobile .swatches button:disabled,body.guided-mobile .end-swatches button:disabled {display:none}
 body.guided-mobile .colour-label {font-size:16px}
 body.guided-mobile .guided-review-details .mobile-product-details {margin:0 0 10px}
 body.guided-mobile .guided-review-details .mobile-product-details>summary {min-height:44px;padding:12px 0;box-sizing:border-box}
}
/* Bauble-only mobile palette: constrain the fieldset's intrinsic minimum width. */
@media all{
 body.bauble-studio.guided-mobile #panel-colours,
 body.bauble-studio.guided-mobile .end-colours {min-width:0;min-inline-size:0;width:100%;max-width:100%;box-sizing:border-box}
 body.bauble-studio.guided-mobile .end-swatches {width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;-webkit-overflow-scrolling:touch}
 body.bauble-studio.guided-mobile #end-colour:has(+ .end-swatches) {display:none}
}

/* Desktop/tablet presentation of the same controls and single renderer. */
body.guided-mobile .guided-colour-name {display:block;font-size:14px;color:#536c70;margin:0 0 6px}
@media(min-width:701px){
 body.guided-mobile {height:auto;min-height:100dvh;overflow:visible;padding-bottom:0}
 body.guided-mobile>main,body.guided-mobile>main.studio-layout {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.9fr);grid-template-rows:auto;align-items:start;height:auto;min-height:0;max-width:1440px;margin:auto;gap:24px;padding:24px}
 body.guided-mobile .preview,body.guided-mobile .workspace {position:sticky;top:16px;display:block;align-self:start;min-width:0;min-height:0;overflow:visible;padding:0}
 body.guided-mobile .preview h1,body.guided-mobile .view-top h2 {font-size:26px;line-height:1.25;margin:0 0 14px}
 body.guided-mobile .preview-stage {display:grid;flex:none;grid-template-columns:minmax(0,1fr);grid-template-rows:clamp(300px,48vh,560px) auto;gap:8px;width:100%;min-width:0}
 body.guided-mobile .preview-stage #viewer,body.guided-mobile .preview-stage #canvas {height:100%;min-height:0;width:100%;flex:none}
 body.guided-mobile .preview-stage .view-actions,body.guided-mobile .preview-stage .view-buttons {position:static;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;transform:none;padding:4px;background:transparent;overflow:visible;white-space:normal}
 body.guided-mobile .preview-stage .view-actions button,body.guided-mobile .preview-stage .view-buttons button {min-height:44px;font-size:14px;padding:8px 12px}
 body.guided-mobile .preview-stage .light-switch {display:flex;flex-direction:row;align-items:center;gap:6px;min-height:44px}
 body.guided-mobile .guided-camera>summary {text-align:left}
 body.guided-mobile .design-controls {height:auto;min-height:0;min-width:0;overflow:visible;border:1px solid #dce5e5;border-radius:16px;padding:22px;background:#fff}
 body.guided-mobile .controls-scroll {height:auto;max-height:none;min-width:0;overflow:visible;padding:0;display:block}
 body.guided-mobile .guided-navigation {position:sticky;bottom:0;left:auto;right:auto;margin-top:20px;padding:14px 0 0;background:#fff;z-index:3}
 body.guided-mobile .purchase,body.guided-mobile .action-panel,body.guided-mobile .preview>.product-includes {display:none}
 body.guided-mobile .guided-step input,body.guided-mobile .guided-step select,body.guided-mobile .guided-step textarea {max-width:100%;min-width:0;font-size:16px}
 body.guided-mobile .guided-step label {font-size:16px}
 body.guided-mobile .guided-photo-tools {gap:8px}
 body.guided-mobile .guided-photo-button span {font-size:14px}
 body.guided-mobile .guided-review {max-width:1000px;padding:24px;overflow:auto}
 body.guided-mobile .guided-review #design-review:not([hidden]) {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 24px}
 body.guided-mobile .guided-review #design-review>* {grid-column:2;min-width:0}
 body.guided-mobile .guided-review #design-review>.guided-progress {grid-column:1/-1}
 body.guided-mobile .guided-review #design-review>.preview-stage {grid-column:1;grid-row:2 / span 12;position:sticky;top:0;align-self:start}
 body.guided-mobile .guided-review #design-review>[hidden] {display:none}
}
@media(min-width:701px) and (max-width:900px){
 body.guided-mobile>main,body.guided-mobile>main.studio-layout {grid-template-columns:minmax(0,1fr) minmax(300px,1fr);gap:14px;padding:16px}
 body.guided-mobile .design-controls {padding:16px}
 body.guided-mobile .guided-photo-tools {grid-template-columns:repeat(3,minmax(0,1fr))}
 body.guided-mobile .preview-stage {grid-template-rows:320px auto}
}
