/* Mobile editor: shared rendering, touch-specific workspace. */
.touch-editor-bar,.touch-swap{display:none}
@media(max-width:760px){
 .touch-editor-bar{display:flex;flex-wrap:wrap;gap:6px;padding-top:6px}
 .touch-editor-bar button,.touch-swap button{min-height:44px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);padding:6px 12px}
 .touch-editor-bar button[aria-pressed="true"],.touch-swap button[aria-pressed="true"]{background:var(--accent);color:white}
 .touch-editor-bar button:disabled,.touch-swap button:disabled{opacity:.45}
 .touch-editor-bar p{flex-basis:100%;margin:0;font-size:12px;color:var(--muted)}
 .touch-editing{touch-action:none;outline:2px solid var(--accent)}
 .touch-swap{display:grid!important;gap:10px}
 .touch-swap>div{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
 .touch-swap p{margin:0;font-size:13px}
 .exchange-box>div:not(.touch-swap),.exchange-box>#exchange-button{display:none}
}
.mobile-fabric-picker,.mobile-adjust-modes,.mobile-stepper,.mobile-full-preview{display:none}
@media(max-width:760px){
  #designer-view .preview-column{position:sticky;top:58px;z-index:10;background:var(--paper);padding-bottom:8px}
  #designer-view .preview-stage{position:relative;top:auto;height:32vh;height:32dvh;min-height:170px;aspect-ratio:auto;box-shadow:none}
  #designer-view .canvas-wrap{width:auto;height:100%;max-height:100%;display:flex;justify-content:center}
  #designer-view .canvas-wrap svg{width:auto;height:100%;max-width:100%}
  .mobile-editor-tabs{position:static}
  #designer-view .scheme-bar{gap:6px;font-size:12px}
  .scheme-bar .scheme{min-height:40px}
  .mobile-full-preview{display:block;position:absolute;right:8px;top:8px;min-height:40px;padding:0 10px;font-size:12px;z-index:2}
  .mobile-fabric-picker{display:flex;gap:8px;overflow-x:auto;padding:4px 3px 10px}
  .mobile-fabric-choice{flex:0 0 64px;display:grid;justify-items:center;gap:4px;border:2px solid transparent;border-radius:12px;padding:5px;background:#f7f3ed;font-size:12px;color:var(--ink)}
  .mobile-fabric-choice.active{border-color:var(--accent);background:#fff}
  .mobile-fabric-choice .fabric-thumb{width:42px;height:42px;position:relative}
  .mobile-adjust-modes{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
  .mobile-adjust-modes button{min-height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
  .mobile-adjust-modes button[aria-pressed="true"]{background:var(--ink);color:white}
  #adjust-controls{gap:12px}
  #adjust-controls[data-adjust-mode] [data-adjust-group]{display:none}
  #adjust-controls[data-adjust-mode="rotate"] [data-adjust-group="rotate"],
  #adjust-controls[data-adjust-mode="scale"] [data-adjust-group="scale"],
  #adjust-controls[data-adjust-mode="move"] [data-adjust-group="move"],
  #adjust-controls[data-adjust-mode="swap"] [data-adjust-group="swap"]{display:grid}
  .mobile-stepper{display:grid;grid-template-columns:56px 1fr 56px;align-items:center;text-align:center;gap:12px}
  .mobile-stepper button{min-height:44px;border:1px solid var(--line);border-radius:10px;background:white;font-size:24px;color:var(--ink)}
  .mobile-stepper output{font-variant-numeric:tabular-nums;font-size:16px}
  #designer-view .range-row input{height:44px;margin:0;touch-action:pan-y}
  input[type="range"]::-webkit-slider-thumb{width:26px;height:26px}
  input[type="range"]::-moz-range-thumb{width:26px;height:26px}
  #designer-view .range-row>span{font-size:15px}
  #designer-view .panel{padding:12px}
  #designer-view .panel-title{margin-bottom:10px}
  #designer-view .upload-mini{display:grid;place-items:center;min-height:44px;min-width:48px}
  .exchange-box select,.feedback-dialog select,.feedback-dialog textarea{font-size:16px;min-height:44px}
  #designer-view{padding-bottom:env(safe-area-inset-bottom)}
  .topbar{gap:4px}
  .brand{font-size:14px;gap:5px}
  .top-actions{gap:5px}
}
@media(max-width:760px) and (max-height:560px){
  #designer-view .preview-stage{height:160px;min-height:160px}
  #designer-view .preview-column{position:relative;top:auto}
}
