.mobile-studio-bar,.mobile-tools,.mobile-dock,.mobile-launch{display:none}
@media(min-width:0px){
.mobile-launch{display:block;width:100%;margin:12px 0;min-height:48px}
body.mobile-editing{overflow:hidden;overscroll-behavior:none}
body.mobile-editing .workspace{position:fixed!important;inset:0!important;z-index:100;height:100dvh!important;min-height:0!important;width:100%!important;margin:0!important;padding:0!important;border:0;border-radius:0;display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:48px minmax(0,1fr) min(31dvh,260px) calc(60px + env(safe-area-inset-bottom));gap:0;background:#101312;color:#e9edea;overflow:hidden}
.mobile-editing .mobile-studio-bar{display:flex;align-items:center;gap:6px;padding:4px 8px;background:#191e1b;min-width:0}
.mobile-studio-bar strong{font:11px sans-serif;letter-spacing:1px;flex:1}.mobile-editing .workspace button{min-height:44px;cursor:pointer}.mobile-studio-bar button{font-size:11px;padding:6px 9px;background:#2b332f;color:#fff;border:1px solid #48554d;border-radius:8px}.mobile-exit{font-size:28px!important}
.mobile-editing .workspace>.left{grid-row:2;padding:0!important;border-radius:0;background:#101312!important;min-width:0;position:relative;overflow:hidden}
.mobile-editing .workspace .toolbar{padding:2px 8px;margin:0;display:flex;justify-content:space-between;gap:4px;min-height:44px;background:#191e1b}
.mobile-editing .toolbar button{font-size:11px!important;padding:4px 8px!important;min-height:36px!important;background:#252e28;color:#e9edea;border:0}.mobile-editing #demoBtn,.mobile-editing #autoLight{display:none}
.mobile-editing .workspace .stage{padding:3px!important;min-height:0!important;flex:1;display:flex;align-items:center;justify-content:center;background:#101312;overflow:hidden;border:0;border-radius:0}
.mobile-editing .workspace #photoWrap{flex:none!important}.mobile-editing .workspace .photo-meta{height:20px;font-size:10px;line-height:18px;padding:0 8px;overflow:hidden;white-space:nowrap;flex-shrink:0}.mobile-editing #photoName{overflow:hidden;text-overflow:ellipsis;max-width:60%}
.mobile-editing .workspace>aside{display:none!important}
.mobile-editing .mobile-dock{display:block;grid-row:3;overflow:auto;min-height:0;overscroll-behavior:contain;background:#202722;padding:10px 14px;color:#edf2ed;border-top:1px solid #3b453d}
.mobile-editing .mobile-tools{display:flex;grid-row:4;overflow-x:auto;align-items:flex-start;gap:4px;padding:4px 8px calc(4px + env(safe-area-inset-bottom));background:#151b17;overscroll-behavior:contain}
.mobile-tools button{flex:0 0 auto;padding:8px 14px;border:0;border-radius:8px;color:#acb9af;background:transparent;font-size:12px}.mobile-tools button[aria-pressed=true]{background:#394d3e;color:#fff}
.mobile-tool-panel[hidden]{display:none!important}.mobile-tool-panel details{border-color:#455248;margin:0 0 8px;padding:6px 0}.mobile-tool-panel summary{min-height:36px;line-height:36px;color:#fff}.mobile-tool-panel label,.mobile-tool-panel .muted{color:#c5cfc7}.mobile-tool-panel input[type=range]{width:100%;min-height:44px;touch-action:pan-x;accent-color:#b2cead}.mobile-tool-panel input[type=number],.mobile-tool-panel select{min-height:40px;background:#303b33;color:#fff;border:1px solid #536455;max-width:100%}.mobile-tool-panel button{background:#334137;color:#fff;border-color:#566a59}.mobile-tool-panel #histogram{max-width:100%;height:50px}.mobile-tool-panel .harmony-panel{padding:0;border:0}.mobile-tool-panel .harmony-wheel{width:130px;height:130px}.mobile-tool-panel .harmony-suggestions{grid-template-columns:1fr 1fr}
.mobile-editing .workspace .looks{display:block!important;overflow:visible!important;max-height:none!important;margin:0}.mobile-tool-panel .looks h2,.mobile-tool-panel .looks>p{display:none}.mobile-tool-panel .looks .section-title{margin:0 0 4px}.mobile-tool-panel .categories{display:flex;overflow:auto;gap:6px;white-space:nowrap;margin:4px 0}.mobile-tool-panel .styles{display:flex!important;gap:8px;overflow-x:auto;padding:4px 0 8px;scroll-snap-type:x proximity}.mobile-tool-panel .style-card{flex:0 0 110px;min-width:110px;scroll-snap-align:start;padding:4px}.mobile-tool-panel .style-card canvas{display:block;width:100%!important;height:72px!important;object-fit:contain;background:#111}.mobile-tool-panel .style-card span{font-size:11px}
.mobile-editing .workspace .batch{display:flex;max-height:none;gap:8px;overflow:auto}.mobile-editing .workspace .batch button{width:75px}.mobile-editing .workspace .batch img{width:65px;height:50px;object-fit:contain}.mobile-editing .workspace .batch-tools{display:flex;gap:8px;flex-wrap:wrap}
.mobile-editing .workspace #compare{touch-action:none!important;cursor:ew-resize;opacity:0!important;z-index:5;position:absolute;inset:0;appearance:none;margin:0!important;width:100%;height:100%}.mobile-editing #splitLine{pointer-events:none;background:#fff;width:2px;position:absolute;top:0;bottom:0;z-index:4}.mobile-editing #splitLine:after{content:'‹ ›';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#1a211ddd;border:2px solid white;color:white;font:18px sans-serif}
.mobile-show-original #beforeClip{clip-path:inset(0)!important}.mobile-show-original #splitLine,.mobile-show-original .labels{visibility:hidden}
.mobile-tool-panel .export-heading{display:none}.mobile-tool-panel .field{display:block;margin:8px 0}.mobile-tool-panel .field select{display:block;width:100%;margin-top:5px}.mobile-tool-panel .wide{width:100%;margin:5px 0}
@media(orientation:landscape) and (max-height:500px){body.mobile-editing .workspace{grid-template-columns:minmax(0,1fr) 38%;grid-template-rows:44px minmax(0,1fr) 56px}.mobile-editing .mobile-studio-bar{grid-column:1/-1}.mobile-editing .workspace>.left{grid-column:1;grid-row:2/4}.mobile-editing .mobile-dock{grid-column:2;grid-row:2}.mobile-editing .mobile-tools{grid-column:2;grid-row:3}}
}
@media(min-width:0px){.mobile-tool-panel #sliders,.mobile-tool-panel #colorSliders{display:block!important}.mobile-tool-panel .slider{padding:2px 0}.mobile-tool-panel .slider label{font-size:12px}.mobile-tool-panel .slider output{color:#d7c6a4}.mobile-tool-panel .style-card{min-height:0!important}.mobile-tool-panel .styles{max-height:none!important}.mobile-tool-panel .style-card small{display:none}.mobile-tool-panel .style-card strong{display:block;font-size:11px}.mobile-editing .workspace .labels{pointer-events:none}}

/* Wide screens keep the photo beside the selected controls. */
@media(min-width:801px){
body.mobile-editing .workspace{grid-template-columns:minmax(0,1fr) clamp(300px,28vw,420px);grid-template-rows:58px minmax(0,1fr) 72px;}
.mobile-editing .mobile-studio-bar{grid-column:1/-1;grid-row:1;padding:6px 22px;gap:14px;border-bottom:1px solid #364138}
.mobile-studio-bar strong{font-size:13px;letter-spacing:2px}
.mobile-studio-bar button{font-size:13px;padding:8px 18px}
.mobile-editing .workspace>.left{grid-column:1;grid-row:2;padding:14px!important;}
.mobile-editing .workspace .stage{padding:12px!important;}
.mobile-editing .workspace .toolbar{border-radius:8px;padding:6px 10px;min-height:48px}
.mobile-editing .toolbar button{font-size:12px!important;padding:6px 12px!important}
.mobile-editing #demoBtn,.mobile-editing #autoLight{display:inline-block}
.mobile-editing .workspace .photo-meta{height:28px;font-size:12px;line-height:26px;padding:0 10px}
.mobile-editing .mobile-dock{grid-column:2;grid-row:2;padding:20px 22px;border-top:0;border-left:1px solid #3b453d;}
.mobile-editing .mobile-tools{grid-column:1/-1;grid-row:3;justify-content:center;align-items:center;padding:8px 16px;gap:8px;border-top:1px solid #364138}
.mobile-tools button{font-size:13px;padding:10px 24px;min-height:46px;}
.mobile-tool-panel .slider{padding:7px 0}.mobile-tool-panel .slider label{font-size:13px}
.mobile-tool-panel summary{font-size:14px;min-height:42px;line-height:42px}
.mobile-tool-panel .styles{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:10px}
.mobile-tool-panel .style-card{width:100%;min-width:0;flex:initial;padding:7px}
.mobile-tool-panel .style-card canvas{height:auto!important;aspect-ratio:1.4;}
.mobile-tool-panel .style-card strong{font-size:12px;margin-top:6px}
.mobile-tool-panel .style-card small{display:block;font-size:10px;color:#c2ccc4}
.mobile-tool-panel .looks .section-title{margin-bottom:10px}
.mobile-tool-panel .categories{flex-wrap:wrap;white-space:normal;overflow:visible;margin:8px 0 14px}
.mobile-tool-panel .harmony-wheel{width:180px;height:180px}
.mobile-tool-panel #histogram{height:70px;margin-top:16px}
.mobile-launch{max-width:380px;margin:14px 0}
}
