/* Desktop rules deliberately absent. Phone composition uses shared tokens. */
.phone-only{display:none}
.phone-options-field{display:none!important}
@media(max-width:760px){
 html[data-theme] body[data-studio-shell] .studio-app-header{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:6px;min-height:60px;padding:8px;box-sizing:border-box}
 .studio-app-header .studio-home-link{grid-column:1;grid-row:1;font-size:0;min-height:44px;margin:0}
 .studio-home-link::before{content:'←';font-size:24px}
 .studio-app-header .studio-app-logo{grid-column:2;grid-row:1;min-width:0;justify-self:start}
 .studio-app-header .studio-app-logo strong{font-size:17px}.studio-app-header .studio-app-logo small{font-size:7px}
 html[data-theme] body[data-studio-shell] .studio-basket{grid-column:3;grid-row:1;min-width:0;min-height:44px;padding:0 8px;font-size:11px}
 html[data-theme] body[data-studio-shell] .ctrl[data-tab=design] .phone-options-field{display:block!important}
 html[data-theme] body[data-studio-shell] #phoneOptions{display:block;width:100%;min-height:44px;border:1px solid var(--brand-line);border-radius:var(--site-button-radius,999px);background:transparent;color:var(--brand-text);font-size:13px}
 html[data-theme] body[data-studio-shell] .studio-toolbar{display:block;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));min-height:0}
 html[data-theme] body[data-studio-shell] .studio-colour-row{display:none!important}
 html[data-theme] body[data-studio-shell] .studio-action-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:stretch}
 html[data-theme] body[data-studio-shell] .studio-action-row :is(#openModels,#openGarmentInfo){display:none!important}
 html[data-theme] body[data-studio-shell] .studio-action-row #quickUpload{grid-column:1;grid-row:1}
 html[data-theme] body[data-studio-shell] .studio-action-row #openTools{grid-column:2;grid-row:1}
 html[data-theme] body[data-studio-shell] .studio-action-row .studio-next-step{grid-column:3;grid-row:1}
 html[data-theme] body[data-studio-shell] .studio-action-row :is(#quickUpload,#openTools,#openPreview){height:48px;min-height:48px;padding:6px;font-size:11px;line-height:1.25;white-space:normal;letter-spacing:0;text-transform:none}
 html[data-theme] body[data-studio-shell] .stage{justify-content:center;gap:6px;padding:8px}
 .rail .card[data-id$="-back"]{display:none}
 .rail .model-audience-grid{grid-template-columns:1fr}
 .rail .card .thumb{height:170px;object-fit:contain}
 .rail #studioProductPicker{width:100%}
 html[data-theme] body[data-studio-shell] .model-stepper{min-height:24px;font-size:12px}
 html[data-theme] body[data-studio-shell] #phoneChooseColour:not([hidden]){display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;flex-shrink:0;border:1px solid var(--brand-line);border-radius:var(--site-button-radius,999px);background:var(--brand-surface);color:var(--brand-text);font-size:13px;font-weight:600}
 #phoneChooseColour::before{content:'';width:20px;height:20px;flex:none;border:1px solid var(--brand-line);border-radius:50%;background:var(--chosen-colour,#fff)}
 html[data-theme] body[data-studio-shell] #modelPosition{min-width:0}
 html[data-theme] body[data-studio-shell] .garment-side-tabs{min-height:40px;gap:8px}
 html[data-theme] body[data-studio-shell] .garment-side-tabs button{min-height:40px;padding:6px 18px}
 html[data-theme] body[data-studio-shell] .canvas-wrap{width:min(100%,calc(100dvh - var(--studio-header-height,60px) - var(--studio-toolbar-height,64px) - 114px));max-height:calc(100dvh - var(--studio-header-height,60px) - var(--studio-toolbar-height,64px) - 114px)}
 html[data-theme] body[data-studio-shell] #view{max-height:calc(100dvh - var(--studio-header-height,60px) - var(--studio-toolbar-height,64px) - 114px)}
 html[data-theme] body[data-studio-shell] .ctrl{top:auto;bottom:var(--studio-toolbar-height,64px);max-height:min(45dvh,calc(100dvh - var(--studio-header-height,60px) - var(--studio-toolbar-height,64px) - 96px));padding:10px 16px 16px;overscroll-behavior:contain}
 html[data-theme] body[data-studio-shell] #phoneCloseTools{display:block;position:sticky;top:0;margin:0 0 8px auto;min-height:44px;padding:8px 16px;background:var(--brand-surface);color:var(--brand-text);border:1px solid var(--brand-line);border-radius:var(--site-button-radius,999px);z-index:1}
 html[data-theme] body[data-studio-shell] .ctrl::before{display:none}
 html[data-theme] body[data-studio-shell] .dropzone{min-height:0;padding:12px}.ctrl .dropzone small{font-size:12px}
 html[data-theme] body[data-studio-shell] .anna-chat .anna-launch{display:none}
 html[data-theme] body[data-studio-shell] .anna-nudge{display:none!important}
 #phoneOptionsDialog{width:calc(100% - 24px);max-width:460px;max-height:calc(100dvh - 24px);margin:auto auto 12px;padding:16px;box-sizing:border-box;overflow:auto;border:1px solid var(--brand-line);border-radius:16px;background:var(--brand-surface);color:var(--brand-text)}
 #phoneOptionsDialog::backdrop{background:#0008}
 #phoneColourDialog{width:calc(100% - 16px);max-width:460px;max-height:35dvh;margin:auto auto calc(8px + env(safe-area-inset-bottom,0px));padding:12px;box-sizing:border-box;overflow:auto;border:1px solid var(--brand-line);border-radius:16px;background:var(--brand-surface);color:var(--brand-text)}
 #phoneColourDialog::backdrop{background:#0003}
 #phoneColourDialog>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
 #phoneColourDialog h2{font-size:16px;margin:0}
 #phoneColourDialog>header button{min-height:44px;padding:8px 12px;background:transparent;color:var(--brand-text);border:1px solid var(--brand-line);border-radius:var(--site-button-radius,999px)}
 #phoneOptionsDialog>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}#phoneOptionsDialog h2{font-size:18px;margin:0}#phoneOptionsDialog h3{font-size:14px;margin:16px 0 8px}
 #phoneOptionsDialog button{min-height:44px;border:1px solid var(--brand-line);border-radius:var(--site-button-radius,999px);background:transparent;color:var(--brand-text);padding:8px 12px;font-size:13px}
 #phoneOptionsDialog>button{display:block;width:100%;text-align:left;margin:8px 0}
 .phone-preferences{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px}.phone-preferences .studio-edit-actions{width:100%;margin:0;display:flex}
 #phoneOptionsDialog .studio-edit-actions button{flex:1;width:auto;min-width:0;white-space:normal;overflow-wrap:anywhere}
 #phoneOptionsDialog :is(#studioUndo,#studioRedo)::before{content:none}
 html[data-theme] body[data-studio-shell] .studio-app-header{grid-template-rows:44px;height:61px}
 html[data-theme] body[data-studio-shell] :is(.ctrl,#phoneOptionsDialog) :is(input,select,textarea){font-size:16px}
 #phoneColours #swatches{display:flex;flex-wrap:wrap;gap:10px;padding:6px}#phoneColours #swatches .swatch{width:36px;height:36px;min-width:36px;padding:0;border-radius:50%;font-size:0}
 html[data-theme] body[data-studio-shell][data-mug-editing=true] .canvas-wrap{width:100%;max-height:80px}html[data-theme] body[data-studio-shell][data-mug-editing=true] #view{max-height:80px}
}
