/* ---- phone layout: photo on top, tools in a dock, controls in a sheet ----
   Only below 720px wide and at least 480px tall (a phone held upright), and
   only once an image is open. Everything else, tablets and desktop included,
   keeps the layout it had. The panels themselves are untouched: the dock just
   decides which of them the sheet shows. */
#dock,#sheetGrip{display:none}
@media (max-width:1099px) and (orientation:portrait) and (min-height:480px){
  html.dockOn body.has-image{padding-bottom:calc(var(--dockH,64px) + 10px)}
  html.dockOn body.has-image #dock{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:80;background:var(--bg);
    border-top:1px solid var(--line2);padding:5px 2px calc(5px + env(safe-area-inset-bottom));justify-content:space-around}
  #dock button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:none;border:none;
    color:var(--phosphor-dim);font:500 10.5px/1.1 var(--font-mono);letter-spacing:.02em;padding:5px 0;min-height:50px;cursor:pointer;
    -webkit-tap-highlight-color:transparent;transition:color .15s}
  #dock button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
  #dock button.on{color:var(--safelight)}
  #dock button.on svg{transform:translateY(-1px) scale(1.06)}
  /* Build 242: the grip's touch area is a strip around the bar itself, not the whole width. It used to span the screen
     and reach 34px down into the tools, so a touch anywhere along the top of the panel (scrolling to a tool, say) caught
     the grip and closed or dragged the sheet. Now 120px wide, mostly above the sheet's edge, 10px into it. */
  html.dockOn body.has-image #sheetGrip{display:flex;position:fixed;left:50%;width:120px;margin-left:-60px;z-index:75;justify-content:center;align-items:flex-start;
    height:34px;padding-top:15px;box-sizing:border-box;touch-action:none;cursor:grab;bottom:calc(var(--dockH,64px) + var(--sheetH,0px) - 10px);
    transition:bottom .28s cubic-bezier(.2,.8,.2,1)}
  #sheetGrip span{width:42px;height:4px;border-radius:2px;background:var(--line2)}
  html.dockOn.sheetClosed body.has-image #sheetGrip{bottom:calc(var(--dockH,64px) - 4px);height:28px;padding-top:8px}
  html.dockOn.sheetClosed body.has-image #sheetGrip span{background:var(--safelight);opacity:.85}
  html.dockOn.sheetDrag body.has-image #sheetGrip,html.dockOn.sheetDrag body.has-image #reorderZone{transition:none}

  html.dockOn body.has-image #reorderZone{position:fixed;left:0;right:0;bottom:var(--dockH,64px);height:var(--sheetH,0px);z-index:70;
    display:flex;flex-direction:column;background:var(--bg);border-radius:18px 18px 0 0;border-top:1px solid var(--line2);
    box-shadow:0 -14px 34px -10px rgba(0,0,0,.6);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
    padding:24px 14px 28px;margin:0;border-left:none;-webkit-overflow-scrolling:touch;
    transition:height .28s cubic-bezier(.2,.8,.2,1)}
  html.dockOn.sheetClosed body.has-image #reorderZone{padding:0;border-top:none;box-shadow:none;overflow:hidden}
  html.dockOn body.has-image #reorderZone > *{display:none !important}
  html.dockOn[data-tab="looks"] body.has-image #reorderZone > [data-dock="looks"]:not([style*="display: none"]),
  html.dockOn[data-tab="light"] body.has-image #reorderZone > [data-dock="light"]:not([style*="display: none"]),
  html.dockOn[data-tab="colour"] body.has-image #reorderZone > [data-dock="colour"]:not([style*="display: none"]),
  html.dockOn[data-tab="detail"] body.has-image #reorderZone > [data-dock="detail"]:not([style*="display: none"]),
  html.dockOn[data-tab="video"] body.has-image #reorderZone > [data-dock="video"]:not([style*="display: none"]),
  html.dockOn[data-tab="export"] body.has-image #reorderZone > [data-dock="export"]:not([style*="display: none"]){display:block !important}
  html.dockOn body.has-image #reorderZone > .panel,html.dockOn body.has-image #reorderZone > details.panel{margin:0 0 12px;flex:none}
  html.dockOn body.has-image #reorderZone > [data-solo] > summary{display:none}

  html.dockOn body.has-image #preview{max-height:var(--photoMax,34vh)}
  html.dockOn body.has-image #consentBar{bottom:var(--dockH,64px)}
  html.dockOn body.has-image #toast{bottom:calc(var(--dockH,64px) + 14px)}
  html.dockOn body:has(#consentBar.on){padding-bottom:calc(var(--dockH,64px) + 10px)}

  html.dockOn body.has-image .toolbar{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:2px 0 6px 0;margin:0;scrollbar-width:none;align-items:center}
  
  html.dockOn body.has-image .toolbar::-webkit-scrollbar{display:none}
  html.dockOn body.has-image .toolbar .filelabel,html.dockOn body.has-image .toolbar button.btnGhost{padding:6px 11px;font-size:12px;white-space:nowrap;min-height:34px;flex:none}
  html.dockOn body.has-image #lnkFilters{white-space:nowrap;font-size:11.5px;flex:none}
  html.dockOn body.has-image #previewTools{padding:0;margin:0 0 4px;min-height:0;background:transparent;border:none}
}

@media (max-width:1099px) and (orientation:portrait) and (min-height:480px){
  html.dockOn body.has-image #lnkFilters{display:none}
  html.dockOn body.has-image #lnkFilters2{display:inline-block;margin:6px 0 2px}
  html.dockOn body.has-image .toolbar{gap:4px}
  html.dockOn body.has-image .toolbar .filelabel,html.dockOn body.has-image .toolbar button.btnGhost{padding:6px 8px;font-size:11px}
  
  html.dockOn body.has-image .toolbar .ptTools{display:flex;gap:4px;flex:none}
  html.dockOn body.has-image .toolbar .ptIconBtn{width:28px;height:34px;font-size:15px}
  html.dockOn body.has-image #previewTools{display:none}
  /* before/after sits directly under the photo as one slim row: "Before", the slider, "After" */
  html.dockOn body.has-image #previewSticky > #cmpBar{display:grid !important;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;column-gap:10px;
    margin:5px 0 0;padding:2px 12px;background:var(--surface2);border:1px solid var(--line2);border-radius:9px;min-height:30px}
  html.dockOn body.has-image #cmpBar .cmpBarLabels{display:contents}
  html.dockOn body.has-image #cmpBar .cmpBarLabels span{font-family:var(--font-mono);font-size:10px;color:var(--paper-dim);white-space:nowrap}
  html.dockOn body.has-image #cmpBar .cmpBarLabels span:first-child{grid-column:1;grid-row:1}
  html.dockOn body.has-image #cmpBar .cmpBarLabels span:last-child{grid-column:3;grid-row:1}
  html.dockOn body.has-image #cmpBar #cmpRange{grid-column:2;grid-row:1;margin:0}
  /* scopes sit under the compare bar: a slim histogram while the sheet is up, and the
     whole scope panel (bigger histogram, parade, clipping warnings) when the sheet is
     closed and there is room. Tap the histogram to switch between histogram and parade. */
  html.dockOn body.has-image #previewSticky > #scopeDetails{margin-top:6px}
  html.dockOn body.has-image #scopeDetails > summary{display:none}
  html.dockOn body.has-image #previewSticky > .ptStamps{display:flex;flex-direction:row;flex-wrap:wrap;gap:1px 14px;padding:5px 4px 0}
  html.dockOn body.has-image #scopeBar{display:block}
  html.dockOn body.has-image #histogram{display:block;width:100%;height:var(--histH,46px);border-radius:8px;cursor:pointer}
  html.dockOn body.has-image #scopeMeta{display:none}
  html.dockOn.sheetClosed body.has-image #histogram{height:106px}
  html.dockOn.sheetClosed body.has-image #scopeMeta{display:block;margin-top:8px}
  html.dockOn.sheetClosed body.has-image #scopeMeta #clipKey{display:none}
  html.dockOn.sheetClosed body.has-image #scopeMeta:has(#chkClip:checked) #clipKey,
  html.dockOn.sheetClosed body.has-image #scopeMeta:has(#chkCmyk:checked) #clipKey{display:flex}
  html.dockOn body.has-image #reorderZone > #scopeDetails{margin:0 0 12px}
  html.dockOn body.has-image #zoomBadge .previewPill{padding:4px 7px;font-size:10px}
}
#hslRows .hslRow{display:none}
.updBtn{margin-left:8px;padding:2px 9px;border-radius:999px;border:1px solid var(--line2,rgba(255,255,255,.2));background:transparent;color:var(--muted);font:600 11px/1.4 ui-sans-serif,system-ui,sans-serif;cursor:pointer;vertical-align:baseline}
.updBtn:hover{color:var(--paper,#eee);border-color:var(--paper-dim,#aaa)}
.updBtn.has{background:var(--safelight,#e8742c);border-color:var(--safelight,#e8742c);color:#fff}
#updateBar{position:fixed;left:50%;top:calc(12px + env(safe-area-inset-top,0px));transform:translate(-50%,-160%);z-index:9997;display:flex;align-items:center;gap:10px;
  max-width:min(520px,calc(100vw - 24px));padding:9px 9px 9px 16px;border-radius:14px;background:var(--gl-strong,var(--surface2,#24272c));-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4);
  border:1px solid var(--gl-edge,var(--line2,rgba(255,255,255,.2)));color:var(--paper,#eceae4);box-shadow:0 18px 50px -14px rgba(0,0,0,.65);font:500 13px/1.3 ui-sans-serif,system-ui,sans-serif;opacity:0;pointer-events:none;transition:transform .25s,opacity .25s}
#updateBar.on{transform:translate(-50%,0);opacity:1;pointer-events:auto}
#updateBar{width:max-content}
#updateBar span{flex:none;white-space:nowrap}
#updateBar .ubGo{flex:none;padding:9px 18px;border:0;border-radius:999px;background:var(--safelight,#e8742c);color:#fff;font:600 13px/1 ui-sans-serif,system-ui,sans-serif;cursor:pointer}
#updateBar .ubClose{flex:none;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--paper-dim,#aaa);font-size:19px;cursor:pointer}
#rawNrBox,#rawHlBox,#rawDeconvBox{display:none}
/* Deep sky, Crimson foliage and the sky-selection view are no longer shown; the EIR base preset still sets them (scaled by Preset strength) */
#skyDeepRow,#crimsonRow,#skyShowRow{display:none !important}
body.rawOpen #rawNrBox,body.rawOpen #rawHlBox,body.rawOpen #rawDeconvBox{display:block}
#rawNrBox.busy input[type=range]{opacity:.5;pointer-events:none}
#saveReady{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px) + var(--dockH,0px));transform:translate(-50%,140%);z-index:9998;display:flex;align-items:center;gap:10px;
  max-width:min(560px,calc(100vw - 24px));padding:10px 10px 10px 16px;border-radius:14px;background:var(--surface2,#24272c);border:1px solid var(--line2);color:var(--paper);
  box-shadow:0 14px 40px -12px rgba(0,0,0,.7);font:500 13px/1.3 ui-sans-serif,system-ui,sans-serif;opacity:0;pointer-events:none;transition:transform .25s,opacity .25s}
#saveReady.on{transform:translate(-50%,0);opacity:1;pointer-events:auto}
#saveReady .srText{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#saveReady .srSave{flex:none;padding:10px 20px;border:0;border-radius:999px;background:var(--safelight);color:#fff;font:600 14px/1 ui-sans-serif,system-ui,sans-serif;cursor:pointer}
#saveReady .srClose{flex:none;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--paper-dim);font-size:20px;cursor:pointer}
details[data-step="light"]:not(.showRanges) .rangeSl{display:none !important}
.rangeToggle{display:inline-flex;align-items:center;gap:6px;margin:6px 0 2px;padding:5px 12px;min-height:30px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--paper-dim);font:500 11.5px/1 ui-sans-serif,system-ui,sans-serif;cursor:pointer}
#curvePresets button.btnGhostSmall,#hslTabs button.btnGhostSmall{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 13px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--paper-dim);font-family:var(--font-mono);font-size:11.5px;font-weight:500;text-decoration:none;cursor:pointer}
#hslTabs button.btnGhostSmall.on{background:var(--safelight);border-color:var(--safelight);color:#fff}
#hslTabs{gap:6px;flex-wrap:wrap}
#btnHslReset{margin-left:auto}
#curvePointRow input[type=number]{background:var(--surface);border:1px solid var(--line2);color:var(--paper);border-radius:8px;padding:5px 8px;font-family:var(--font-mono)}
#curvePointRow input[type=number]:disabled{opacity:.45}
.panelTools{display:flex;justify-content:flex-end;gap:8px;margin:4px 0 8px}
.panelTools button{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 12px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--paper-dim);font:500 11.5px/1 ui-sans-serif,system-ui,sans-serif;cursor:pointer}
.panelTools button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#hslRows[data-g="H"] .hslRow[data-g="H"],#hslRows[data-g="S"] .hslRow[data-g="S"],#hslRows[data-g="L"] .hslRow[data-g="L"]{display:block}
.hslDot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:7px;vertical-align:middle;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
.rangeSl label{opacity:.85}
/* the Space dropdown has long option names; without this it widens past a phone screen */
#swapSpace{max-width:calc(100% - 64px);box-sizing:border-box;text-overflow:ellipsis}
/* Pull-to-refresh: on a touch screen, dragging down from the top of the page reloads it in
   Chrome, which is what happens when you try to push the controls down or hide something.
   The editor never needs that gesture, so it is switched off whenever an image is open. */
@media (pointer:coarse){
  html,body.has-image{overscroll-behavior-y:none}
}
#btnScopesToggle{display:none}
@media (max-width:1099px) and (orientation:portrait) and (min-height:480px){
  html.dockOn body.has-image #btnScopesToggle{display:flex;grid-column:4;grid-row:1;align-items:center;justify-content:center;width:30px;height:26px;padding:0;
    background:transparent;border:1px solid var(--line2);border-radius:8px;color:var(--phosphor-dim);cursor:pointer}
  html.dockOn body.has-image #btnScopesToggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  html.dockOn body.has-image #btnScopesToggle[aria-pressed="true"]{color:var(--safelight);border-color:var(--safelight)}
  html.dockOn.scopesOff body.has-image #scopeDetails{display:none}
}

#filterDbBtn{display:none}
@media (max-width:1099px) and (orientation:portrait) and (min-height:480px){
  html.dockOn body.has-image #filterDbBtn{display:flex;flex:none;align-items:center;justify-content:center;width:34px;height:34px;box-sizing:border-box;
    background:var(--surface2);border:1px solid var(--line2);border-radius:var(--radius-sm);color:var(--safelight);text-decoration:none}
  html.dockOn body.has-image #filterDbBtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  html.dockOn body.has-image #filterDbBtn:active{background:var(--safelight);color:#fff}
}

/* One neutral palette for every layout: the desktop studio, the phone dock and the portrait-tablet dock share these
   tokens, so dark mode is the same near-black on all of them. */
html.studioOn body.has-image,html.dockOn body.has-image{
    --st-bg:#0c0d0f;--st-stage:#131417;--st-panel:#141518;--st-raise:#1b1d21;--st-raise2:#24272c;
    --st-hair:rgba(255,255,255,.07);--st-hair2:rgba(255,255,255,.14);--st-text:#eceae4;--st-dim:#a3a097;--st-faint:#918d84;
    --st-glass:rgba(18,19,22,.72);--accent-glow:rgba(194,67,27,.38);
    --bg:var(--st-panel);--surface:var(--st-raise);--surface2:var(--st-raise2);--line:var(--st-hair);--line2:var(--st-hair2);
    --paper:var(--st-text);--paper-dim:var(--st-dim);--phosphor-dim:var(--st-dim);--preview-mat:var(--st-bg);
}

/* the phone and portrait-tablet page uses the same outer near-black as the desktop rail and top bar,
   with the controls sheet one step lighter, exactly as the desktop inspector is */
html.dockOn body.has-image,html.dockOn body.has-image #previewSticky,html.dockOn body.has-image #dock{background:var(--st-bg)}

/* ================= Desktop studio layout (1100px and wider) =================
   A tool rail on the left, the photo on a quiet stage in the middle, the controls for one
   tab at a time on the right, and the histogram pinned at the top of those controls. It is
   the same five tabs as the phone layout, on purpose: one mental model on both. Narrower
   windows keep the layout they had. All of it is switched by html.studioOn, which the dock
   controller sets, and only while an image is open. */
#studioBrand,#btnStudioExport{display:none}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image{
    --preview-mat:var(--st-stage);
    display:grid;grid-template-columns:80px minmax(0,1fr) 410px;grid-template-rows:64px minmax(0,1fr);
    height:100vh;max-height:100vh;height:100dvh;max-height:100dvh;overflow:hidden;margin:0;padding:0;background:var(--st-bg);color:var(--st-text);
    font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif}
  html.studioOn body.has-image #main,html.studioOn body.has-image #editorLeft{display:contents !important}

  /* ---- top bar ---- */
  html.studioOn body.has-image .toolbar{grid-column:1/-1;grid-row:1;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin:0;padding:0 18px 0 16px;
    height:64px;background:var(--st-bg);border-bottom:1px solid var(--st-hair);position:relative;z-index:30}
  html.studioOn body.has-image .toolbar::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;opacity:.9;
    background:linear-gradient(90deg,#6a3fd0 0%,#2f7de0 20%,#2bb58a 40%,#e3c53a 60%,#ec7a2c 80%,#b8322a 100%)}
  html.studioOn body.has-image #studioBrand{display:flex;align-items:center;margin-right:24px;order:0;font-size:19px;font-weight:700;letter-spacing:.01em;color:var(--st-text);white-space:nowrap}
  html.studioOn body.has-image #studioBrand b{font-weight:300;opacity:.8;margin-left:3px}
  html.studioOn body.has-image .toolbar .filelabel,html.studioOn body.has-image .toolbar button.btnGhost,
  html.studioOn body.has-image .toolbar #btnUndo,html.studioOn body.has-image .toolbar #btnRedo{
    display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 15px;border-radius:999px;border:1px solid var(--st-hair2);
    background:transparent;color:var(--st-text);font:500 13px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:0;text-decoration:none;cursor:pointer;white-space:nowrap;
    transition:background .15s,border-color .15s,transform .1s}
  html.studioOn body.has-image .toolbar .filelabel:hover,html.studioOn body.has-image .toolbar button.btnGhost:hover,
  html.studioOn body.has-image .toolbar #btnUndo:hover,html.studioOn body.has-image .toolbar #btnRedo:hover{background:var(--st-raise);border-color:var(--st-faint)}
  html.studioOn body.has-image .toolbar .filelabel:active,html.studioOn body.has-image .toolbar button.btnGhost:active{transform:scale(.97)}
  html.studioOn body.has-image .toolbar .filelabel{order:1}
  html.studioOn body.has-image .toolbar #bHome{order:2}
  html.studioOn body.has-image .toolbar #bReset{order:3}
  html.studioOn body.has-image .toolbar .toolbarDiv,html.studioOn body.has-image .toolbar #lnkFilters{display:none}
  html.studioOn body.has-image .toolbar #btnUndo{order:10;margin-left:auto}
  html.studioOn body.has-image .toolbar #btnRedo{order:11}
  html.studioOn body.has-image .toolbar #btnUndo[disabled],html.studioOn body.has-image .toolbar #btnRedo[disabled]{opacity:.38;cursor:default}
  html.studioOn body.has-image .toolbar .ptTools{order:12;display:flex;gap:6px;margin-left:8px}
  html.studioOn body.has-image .toolbar .ptIconBtn{width:36px;height:36px;padding:0;border-radius:10px;border:1px solid var(--st-hair2);background:transparent;color:var(--st-text);font-size:16px;cursor:pointer}
  html.studioOn body.has-image .toolbar .ptIconBtn:hover{background:var(--st-raise)}
  
  html.studioOn body.has-image .toolbar #filterDbBtn{order:14;display:flex;align-items:center;justify-content:center;width:36px;height:36px;box-sizing:border-box;border-radius:10px;
    border:1px solid var(--st-hair2);background:transparent;color:var(--safelight);text-decoration:none}
  html.studioOn body.has-image .toolbar #filterDbBtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  html.studioOn body.has-image .toolbar #filterDbBtn:hover{background:var(--st-raise)}
  html.studioOn body.has-image #btnStudioExport{order:15;display:inline-flex;align-items:center;gap:8px;height:38px;margin-left:10px;padding:0 22px;border:none;border-radius:999px;cursor:pointer;
    font:600 14px/1 ui-sans-serif,system-ui,sans-serif;color:#fff;background:var(--safelight);
    box-shadow:0 8px 22px -8px var(--accent-glow),inset 0 1px 0 rgba(255,255,255,.28);transition:transform .12s,box-shadow .2s}
  html.studioOn body.has-image #btnStudioExport:hover{transform:translateY(-1px);box-shadow:0 12px 28px -8px var(--accent-glow),inset 0 1px 0 rgba(255,255,255,.28)}
  html.studioOn body.has-image #btnStudioExport:active{transform:scale(.97)}
  html.studioOn body.has-image #previewTools{display:none !important}

  /* ---- tool rail ---- */
  html.studioOn body.has-image #dock{display:flex;flex-direction:column;align-items:center;gap:8px;grid-column:1;grid-row:2;position:static;padding:16px 0;
    background:var(--st-bg);border:none;border-right:1px solid var(--st-hair);z-index:20}
  html.studioOn body.has-image #dock button{position:relative;flex:none;width:64px;height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
    border:none;border-radius:16px;background:transparent;color:var(--st-dim);cursor:pointer;font:500 11px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:.02em;
    transition:background .18s,color .18s,transform .12s}
  html.studioOn body.has-image #dock button svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
  html.studioOn body.has-image #dock button:hover{background:var(--st-raise);color:var(--st-text)}
  html.studioOn body.has-image #dock button:hover svg{transform:scale(1.08)}
  html.studioOn body.has-image #dock button.on{background:var(--st-raise);color:var(--safelight);box-shadow:0 0 28px -8px var(--accent-glow)}
  html.studioOn body.has-image #dock button.on::before{content:'';position:absolute;left:-8px;top:18px;bottom:18px;width:3px;border-radius:0 3px 3px 0;background:var(--safelight)}
  html.studioOn body.has-image #sheetGrip{display:none !important}

  /* ---- stage ---- */
  html.studioOn body.has-image #previewSticky{grid-column:2;grid-row:2;position:relative;margin:0;padding:26px 32px 30px;display:flex;flex-direction:column;min-height:0;min-width:0;z-index:1;
    background:radial-gradient(110% 85% at 50% 38%,var(--st-stage) 0%,var(--st-bg) 100%);box-shadow:none}
  html.studioOn body.has-image #cw{flex:1;min-height:0;border:none;border-radius:0;background:transparent;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
  html.studioOn body.has-image #previewWrap{height:auto;max-height:100%;width:auto;display:inline-block;border-radius:12px;box-shadow:0 34px 80px -24px rgba(0,0,0,.7),0 0 0 1px var(--st-hair2)}
  html.studioOn body.has-image #preview{max-height:calc(100vh - 64px - 62px - 64px) !important;max-height:calc(100dvh - 64px - 62px - 64px) !important;max-width:100% !important;border-radius:12px}
  html.studioOn body.has-image #previewOrig{border-radius:12px}
  html.studioOn body.has-image #cw > #cmpBar{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);width:min(560px,74%);margin:0;padding:7px 20px;z-index:12;
    display:grid !important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:14px;
    background:var(--st-glass);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);border:1px solid var(--st-hair2);border-radius:999px;
    box-shadow:0 14px 36px -14px rgba(0,0,0,.6)}
  html.studioOn body.has-image #cmpBar .cmpBarLabels{display:contents}
  html.studioOn body.has-image #cmpBar .cmpBarLabels span{font:500 11px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--st-dim);white-space:nowrap}
  html.studioOn body.has-image #cmpBar .cmpBarLabels span:first-child{grid-column:1;grid-row:1}
  html.studioOn body.has-image #cmpBar .cmpBarLabels span:last-child{grid-column:3;grid-row:1}
  html.studioOn body.has-image #cmpBar #cmpRange{grid-column:2;grid-row:1;margin:0}
  html.studioOn body.has-image #holdHint{bottom:66px}
  html.studioOn body.has-image #zoomBadge{left:auto;right:12px;bottom:66px}
  html.studioOn body.has-image #cw:not(.zoomed) #zoomBadge{display:none !important}
  /* decode / WB readouts: in the inspector's sticky scopes header, under the histogram, not over the photo */
  html.studioOn body.has-image #scopeDetails > .ptStamps{display:flex;flex-direction:row;flex-wrap:wrap;gap:2px 14px;margin:8px 0 0;padding:0;text-align:left}

  /* ---- inspector ---- */
  html.studioOn body.has-image #reorderZone{grid-column:3;grid-row:2;display:flex;flex-direction:column;min-height:0;height:auto;max-height:100%;margin:0;padding:0 24px 56px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
    background:var(--st-panel);border-left:1px solid var(--st-hair);scrollbar-width:thin;scrollbar-color:var(--st-hair2) transparent}
  html.studioOn body.has-image #reorderZone > *{display:none !important}
  html.studioOn[data-tab="looks"] body.has-image #reorderZone > [data-dock="looks"]:not([style*="display: none"]),
  html.studioOn[data-tab="light"] body.has-image #reorderZone > [data-dock="light"]:not([style*="display: none"]),
  html.studioOn[data-tab="colour"] body.has-image #reorderZone > [data-dock="colour"]:not([style*="display: none"]),
  html.studioOn[data-tab="detail"] body.has-image #reorderZone > [data-dock="detail"]:not([style*="display: none"]),
  html.studioOn[data-tab="video"] body.has-image #reorderZone > [data-dock="video"]:not([style*="display: none"]),
  html.studioOn[data-tab="export"] body.has-image #reorderZone > [data-dock="export"]:not([style*="display: none"]),
  html.studioOn body.has-image #reorderZone > [data-dock="all"]{display:block !important;flex:none;animation:stIn .24s cubic-bezier(.2,.8,.2,1)}
  @keyframes stIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
  html.studioOn body.has-image #reorderZone > .panel,html.studioOn body.has-image #reorderZone > details.panel{background:transparent;border:none;box-shadow:none;border-radius:0;margin:0;padding:0}
  html.studioOn body.has-image #reorderZone > [data-solo] > summary{display:none}
  html.studioOn body.has-image #reorderZone summary.stepHdr{display:flex;align-items:center;gap:8px;padding:18px 0 12px;font:600 11px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--st-dim)}
  html.studioOn body.has-image #reorderZone .stepChip{display:none}
  html.studioOn body.has-image #reorderZone > .panel:not(.tier-work):not(.tier-inst) summary,html.studioOn body.has-image #reorderZone > .panel:not(.tier-work):not(.tier-inst){font:500 12.5px/1.45 ui-sans-serif,system-ui,sans-serif;color:var(--st-dim)}
  html.studioOn body.has-image #reorderZone > .panel:not(.tier-work):not(.tier-inst){padding:14px 0 4px}
  html.studioOn body.has-image #reorderZone .instTag{font:600 9.5px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:.14em;padding:3px 6px;border-radius:5px;margin-right:8px}
  html.studioOn body.has-image #reorderZone summary.stepHdr .stepArrow{margin-left:auto}

  /* histogram pinned at the top of the inspector, whichever tab is open */
  html.studioOn body.has-image #reorderZone > #scopeDetails{position:sticky;top:0;z-index:6;background:var(--st-panel);margin:0 -24px 6px;padding:18px 24px 12px;border-bottom:1px solid var(--st-hair)}
  html.studioOn body.has-image #scopeDetails > summary{display:none}
  html.studioOn body.has-image #scopeBar{display:block}
  html.studioOn body.has-image #histogram{display:block;width:100%;height:92px;border-radius:10px;border:1px solid var(--st-hair2);background:#0a0b0d;cursor:pointer}
  html.studioOn body.has-image .sl:not(.wb) input[type=range]::-webkit-slider-thumb{width:16px;height:16px;margin-top:-6.5px;border-radius:50%;border:none;
    background:#f6f3ed;box-shadow:0 0 0 2px var(--safelight),0 3px 10px rgba(0,0,0,.45);transition:box-shadow .15s,transform .12s}
  html.studioOn body.has-image .sl:not(.wb) input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;border:none;background:#f6f3ed;box-shadow:0 0 0 2px var(--safelight),0 3px 10px rgba(0,0,0,.45)}
  html.studioOn body.has-image .sl:not(.wb) input[type=range]:hover::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--safelight),0 0 0 7px var(--accent-glow),0 3px 10px rgba(0,0,0,.45)}
  html.studioOn body.has-image .sl:not(.wb) input[type=range]:active::-webkit-slider-thumb{transform:scale(1.15);filter:none}
  html.studioOn body.has-image .sl label{display:flex;align-items:baseline;justify-content:space-between;font:500 12.5px/1.2 ui-sans-serif,system-ui,sans-serif;color:var(--st-dim);margin-bottom:6px}
  html.studioOn body.has-image .sl label b{font-family:var(--font-mono);font-weight:500;color:var(--st-text)}
  html.studioOn body.has-image .slStep{gap:10px}
  html.studioOn body.has-image .stepBtn{width:26px;height:26px;border-radius:50%;background:transparent;border:1px solid var(--st-hair2);font-size:15px;line-height:1;color:var(--st-dim);opacity:.0;transition:opacity .15s,background .15s}
  html.studioOn body.has-image .sl:hover .stepBtn,html.studioOn body.has-image .sl:focus-within .stepBtn{opacity:1}
  html.studioOn body.has-image .stepBtn:hover{background:var(--st-raise2);color:var(--st-text);border-color:var(--st-faint)}
  html.studioOn body.has-image #scopeMeta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:10px;font-size:12px;color:var(--st-dim)}
  html.studioOn body.has-image #scopeMeta #clipKey{display:none}
  html.studioOn body.has-image #scopeMeta:has(#chkClip:checked) #clipKey,html.studioOn body.has-image #scopeMeta:has(#chkCmyk:checked) #clipKey{display:flex}
  html.studioOn body.has-image #scopeMeta label,html.studioOn body.has-image #scopeMeta .ctl{display:inline-flex;align-items:center;gap:6px;margin:0;font:500 12px/1.2 ui-sans-serif,system-ui,sans-serif;color:var(--st-dim);cursor:pointer}
  html.studioOn body.has-image #scopeMeta input[type=checkbox]{margin:0}
  html.studioOn body.has-image #scopeModeRow{margin:0 6px 0 0;gap:6px;display:flex}
  html.studioOn body.has-image #scopeModeRow button.btnGhostSmall{min-height:28px;padding:4px 12px;font-size:11.5px}
}

/* ---- touch screens on the desktop layout (iPad landscape and the like) ----
   Nothing may depend on hover, and every target is finger-sized. */
@media (pointer:coarse){
  html.studioOn body.has-image .toolbar{height:72px;gap:10px}
  html.studioOn body.has-image{grid-template-rows:72px minmax(0,1fr)}
  html.studioOn body.has-image .toolbar .filelabel,html.studioOn body.has-image .toolbar button.btnGhost,
  html.studioOn body.has-image .toolbar #btnUndo,html.studioOn body.has-image .toolbar #btnRedo{height:46px;padding:0 20px;font-size:14px}
  html.studioOn body.has-image .toolbar .ptIconBtn,html.studioOn body.has-image .toolbar html.studioOn body.has-image .toolbar #filterDbBtn{width:46px;height:46px}
  html.studioOn body.has-image #btnStudioExport{height:48px;padding:0 26px}
  html.studioOn body.has-image #dock button{width:70px;height:76px}
  html.studioOn body.has-image .sl input[type=range]{height:38px}
  html.studioOn body.has-image .sl:not(.wb) input[type=range]::-webkit-slider-thumb{width:26px;height:26px;margin-top:-11.5px}
  html.studioOn body.has-image .stepBtn{opacity:1;width:38px;height:38px}
  html.studioOn body.has-image #scopeModeRow button.btnGhostSmall{min-height:38px;padding:6px 16px}
  html.studioOn body.has-image #preview{max-height:calc(100vh - 72px - 62px - 64px) !important;max-height:calc(100dvh - 72px - 62px - 64px) !important}
}
@media (hover:none){ html.studioOn body.has-image .stepBtn{opacity:1} }
/* ---- tablets held upright: the phone layout, with the controls kept to a comfortable width ---- */
@media (min-width:721px) and (max-width:1099px) and (orientation:portrait) and (min-height:480px){
  html.dockOn body.has-image #reorderZone > *{max-width:720px;width:100%;align-self:center}
  html.dockOn body.has-image #dock{justify-content:center;gap:12px}
  html.dockOn body.has-image #dock button{max-width:150px}
  html.dockOn body.has-image .toolbar .filelabel,html.dockOn body.has-image .toolbar button.btnGhost{font-size:13px;padding:8px 14px;min-height:40px}
  html.dockOn body.has-image #cw > #cmpBar,html.dockOn body.has-image #previewSticky > #cmpBar{max-width:720px;margin-left:auto;margin-right:auto}
}

/* ---- a phone that has been given a wide page ----
   Some browsers lay a phone's page out about 1080px wide (Desktop site mode, some home-screen app shells), and
   then shrink it to fit, so every control is a third of its proper size. The page cannot change that, but it can
   scale its own controls back up: html.uiZoom is set by the dock controller when a touch screen taller than about
   9:5 is being given a page 800px or more wide, and --uiz is how much to scale (the width divided by 390).
   Only the controls that are text and buttons are scaled; the photo, the sheet and the dock keep the geometry
   the controller computes, so everything still lines up. */
html.uiZoom #dock,html.uiZoom #cmpBar,html.uiZoom #scopeMeta,html.uiZoom #previewSticky > .ptStamps,
html.uiZoom #reorderZone > *{zoom:var(--uiz,1)}
html.uiZoom .toolbar{zoom:calc(var(--uiz,1)*.78)}   /* a little smaller so the whole row of buttons fits */
html.uiZoom #sheetGrip{height:calc(48px*var(--uiz,1));padding-top:calc(15px*var(--uiz,1));bottom:calc(var(--dockH,64px) + var(--sheetH,0px) - 34px*var(--uiz,1))}
html.uiZoom #sheetGrip span{width:calc(42px*var(--uiz,1));height:calc(4px*var(--uiz,1));border-radius:calc(2px*var(--uiz,1))}
html.uiZoom.sheetClosed #sheetGrip{bottom:calc(var(--dockH,64px) - 4px*var(--uiz,1));height:calc(28px*var(--uiz,1));padding-top:calc(8px*var(--uiz,1))}
html.uiZoom #valBubble{font-size:calc(15px*var(--uiz,1));padding:calc(4px*var(--uiz,1)) calc(11px*var(--uiz,1))}
html.uiZoom #toast{font-size:calc(12px*var(--uiz,1));padding:calc(10px*var(--uiz,1)) calc(14px*var(--uiz,1))}
html.uiZoom [role="dialog"] > div{zoom:var(--uiz,1)}
html.uiZoom #zoomBadge,html.uiZoom #holdHint{zoom:var(--uiz,1)}
/* ---- no page zoom: only the photo zooms ----
   Pinching or double-tapping anywhere but the photo does nothing. The photo handles its own pinch, pan and
   double-tap in script, so it is unaffected. :where() keeps this at zero specificity, so every control that
   sets its own touch-action (sliders, curve editors, the photo box) keeps it. */
:where(html,body,body *){touch-action:pan-x pan-y}

/* ================= Glass, in the editor ================= 
   The same translucent, blurred look the home page has, on the surfaces of the tool: the top bar, the tool rail, the
   controls panel, the phone sheet and dock, and the small floating pieces. A soft glow of the spectrum sits behind
   them so there is something for the glass to refract. Nothing glass ever sits over the photo itself except the
   compare bar and the undo chip (which already were), so the picture is never blurred or slowed. Where a browser
   cannot blur what is behind (or the person asks for less transparency) the panels fall back to solid colour. */
html.studioOn body.has-image,html.dockOn body.has-image{
  --gl-fill:rgba(24,26,31,.50);--gl-strong:rgba(18,20,24,.80);--gl-chip:rgba(255,255,255,.055);--gl-chip-hover:rgba(255,255,255,.10);
  --gl-edge:rgba(255,255,255,.12);--gl-hi:rgba(255,255,255,.09);--gl-blur:blur(22px) saturate(1.5);--gl-scroll:rgba(255,255,255,.26);
  --gl-glow-a:rgba(106,63,208,.34);--gl-glow-b:rgba(236,122,44,.26);--gl-glow-c:rgba(43,181,138,.16)}

html.studioOn body.has-image,html.dockOn body.has-image{
  background:radial-gradient(62vmax 46vmax at 6% -8%,var(--gl-glow-a),transparent 62%),
             radial-gradient(56vmax 42vmax at 100% 108%,var(--gl-glow-b),transparent 60%),
             radial-gradient(46vmax 36vmax at 58% 120%,var(--gl-glow-c),transparent 62%),var(--st-bg);
  background-attachment:fixed}
html.dockOn body.has-image #previewSticky{background:transparent}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image .toolbar{background:var(--gl-fill);-webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);border-bottom-color:var(--gl-edge);box-shadow:inset 0 -1px 0 var(--gl-hi)}
  html.studioOn body.has-image #dock{background:var(--gl-fill);-webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);border-right-color:var(--gl-edge);box-shadow:inset -1px 0 0 var(--gl-hi)}
  html.studioOn body.has-image #reorderZone{background:var(--gl-fill);-webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);border-left-color:var(--gl-edge);box-shadow:inset 1px 0 0 var(--gl-hi);scrollbar-color:var(--gl-scroll) transparent}
  html.studioOn body.has-image #reorderZone::-webkit-scrollbar{width:10px}
  html.studioOn body.has-image #reorderZone::-webkit-scrollbar-thumb{background:var(--gl-scroll);border-radius:10px;border:2px solid transparent;background-clip:content-box}
  html.studioOn body.has-image #reorderZone::-webkit-scrollbar-track{background:transparent}
  html.studioOn body.has-image #reorderZone > #scopeDetails{background:var(--gl-strong);-webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);border-bottom-color:var(--gl-edge)}
  html.studioOn body.has-image #previewSticky{background:radial-gradient(90% 80% at 50% 42%,rgba(0,0,0,0) 0%,rgba(0,0,0,.22) 100%)}
  html.studioOn body.has-image #dock button:hover,html.studioOn body.has-image #dock button.on{background:var(--gl-chip-hover)}
  html.studioOn body.has-image .toolbar .filelabel,html.studioOn body.has-image .toolbar button.btnGhost,html.studioOn body.has-image .toolbar #btnUndo,html.studioOn body.has-image .toolbar #btnRedo,
  html.studioOn body.has-image .toolbar .ptIconBtn,html.studioOn body.has-image .toolbar html.studioOn body.has-image .toolbar #filterDbBtn{background:var(--gl-chip);border-color:var(--gl-edge);box-shadow:inset 0 1px 0 var(--gl-hi)}
  html.studioOn body.has-image .toolbar .filelabel:hover,html.studioOn body.has-image .toolbar button.btnGhost:hover,html.studioOn body.has-image .toolbar #btnUndo:hover,html.studioOn body.has-image .toolbar #btnRedo:hover,
  html.studioOn body.has-image .toolbar .ptIconBtn:hover,html.studioOn body.has-image .toolbar #filterDbBtn:hover{background:var(--gl-chip-hover)}
}
/* phone and portrait-tablet: the sheet and the dock */
html.dockOn body.has-image .toolbar{background:transparent}
html.dockOn body.has-image #dock{background:var(--gl-fill);-webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);border-top:1px solid var(--gl-edge);box-shadow:inset 0 1px 0 var(--gl-hi)}
html.dockOn body.has-image #reorderZone{background:var(--gl-fill);-webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);border-top:1px solid var(--gl-edge);box-shadow:0 -22px 50px -24px rgba(0,0,0,.55),inset 0 1px 0 var(--gl-hi)}
html.dockOn.sheetClosed body.has-image #reorderZone{-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;border-top:none}
html.dockOn body.has-image .toolbar button.btnGhost,html.dockOn body.has-image .toolbar #btnUndo,html.dockOn body.has-image .toolbar #btnRedo,
html.dockOn body.has-image .toolbar .ptIconBtn,html.dockOn body.has-image .toolbar html.dockOn body.has-image .toolbar #filterDbBtn{background:var(--gl-chip);border-color:var(--gl-edge)}   /* not New image: that one stays the orange primary here */
/* small controls inside the panels, on both layouts */
html.studioOn body.has-image .panelTools button,html.dockOn body.has-image .panelTools button,
html.studioOn body.has-image #curvePresets button.btnGhostSmall,html.dockOn body.has-image #curvePresets button.btnGhostSmall,
html.studioOn body.has-image #hslTabs button.btnGhostSmall,html.dockOn body.has-image #hslTabs button.btnGhostSmall,
html.studioOn body.has-image .rangeToggle,html.dockOn body.has-image .rangeToggle{background:var(--gl-chip);border-color:var(--gl-edge);box-shadow:inset 0 1px 0 var(--gl-hi)}
html.studioOn body.has-image #hslTabs button.btnGhostSmall.on,html.dockOn body.has-image #hslTabs button.btnGhostSmall.on{background:var(--safelight);border-color:var(--safelight)}
html.studioOn body.has-image .pb,html.dockOn body.has-image .pb{background:var(--gl-chip);border-color:var(--gl-edge);box-shadow:inset 0 1px 0 var(--gl-hi)}
html.studioOn body.has-image .pb:hover,html.dockOn body.has-image .pb:hover{background:var(--gl-chip-hover)}
/* floating pieces */
#saveReady{background:var(--gl-strong,var(--surface2));-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4);border-color:var(--gl-edge,var(--line2));box-shadow:0 18px 50px -14px rgba(0,0,0,.65),inset 0 1px 0 var(--gl-hi,transparent)}
html.studioOn body.has-image #toast,html.dockOn body.has-image #toast{background:var(--gl-strong);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);border:1px solid var(--gl-edge)}
/* fall back to solid where blur is missing or transparency is switched off */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html.studioOn body.has-image,html.dockOn body.has-image{--gl-fill:var(--st-panel);--gl-strong:var(--st-panel);--gl-chip:var(--st-raise);--gl-chip-hover:var(--st-raise2)}}
@media (prefers-reduced-transparency:reduce){
  html.studioOn body.has-image,html.dockOn body.has-image{--gl-fill:var(--st-panel);--gl-strong:var(--st-panel);--gl-chip:var(--st-raise);--gl-chip-hover:var(--st-raise2);--gl-blur:none}}

/* ---- Readability (build 101) ----
   About half the editor's labels were 10-11px and the help text sat at 3:1 contrast or less, which is hard work on a
   phone. Help text and the small mono labels each go up a step, the faint colour clears 4.5:1 on every panel shade
   (tokens above), checkboxes are a size a thumb can hit, and the undo pill over the photo hides until there is
   something to undo. */
.note{font-size:12px;line-height:1.45}
.grpHdr,.matrix .hdr,#decoderBadge,#implicitStamp,#clipKey,#kbHint{font-size:11px}
.subhdr,.cmpBarLabels,.pb .psub,#channelStrip figcaption span{font-size:11px}
.instTag{font-size:10px}
body.has-image #cw:not(.zoomed) #zoomBadge.urIdle{display:none}
html.dockOn body.has-image #zoomBadge .previewPill[disabled]{display:none}
@media (pointer:coarse){
  input[type=checkbox]{width:20px;height:20px;flex:none}
  label:has(> input[type=checkbox]){min-height:32px;align-items:center}
}

/* ================= Home page: lab layout (build 102) =================
   Always dark, in either theme, as before. One column of numbered sections in the mono face, hairline rules between
   them, and the orange button as the one strong colour. Specific enough (an id and a class) to win over the older
   generic #dropzone / #landingLinks / header rules without !important. */
body:not(.has-image){padding:0 !important;
  background:radial-gradient(900px 520px at 50% -10%,rgba(106,63,208,.20),transparent 62%),radial-gradient(700px 420px at 95% 4%,rgba(236,122,44,.12),transparent 62%),#0b0c0e}
#emptyStateGroup.lab{box-sizing:border-box;width:100%;max-width:560px;margin:0 auto !important;padding:18px 20px 28px;
  display:flex;flex-direction:column;align-items:stretch;gap:28px;color:#eceae4;font-family:var(--font-mono);text-align:left}
body:has(#consentBar.on):not(.has-image) #emptyStateGroup.lab{padding-bottom:96px}
#emptyStateGroup.lab .labTop{display:flex;justify-content:space-between;align-items:center;min-height:44px;font-size:12px;color:#8a867d}
#emptyStateGroup.lab .labMark b{color:#eceae4;font-weight:700}
#emptyStateGroup.lab .labMark{color:#eceae4;display:inline-flex;align-items:center;gap:8px}
#emptyStateGroup.lab .labBadge{flex:none;display:block}
#emptyStateGroup.lab .labPath{color:#8a867d}
#emptyStateGroup.lab .labVh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#emptyStateGroup.lab .labLang select{height:40px;min-width:44px;background:transparent;color:#a3a097;border:1px solid #2a2d33;border-radius:6px;
  font-family:var(--font-mono);font-size:12px;padding:0 8px}
#emptyStateGroup.lab .labHero{margin:0;max-width:none;width:auto;text-align:left;display:flex;flex-direction:column;gap:14px;padding:18px 0 20px;
  border-top:1px solid #22252a;border-bottom:1px solid #22252a}
#emptyStateGroup.lab .labHero h1{margin:0;font:700 clamp(34px,9.4vw,46px)/1.04 var(--font-mono);letter-spacing:-.05em;text-transform:none;color:#eceae4;
  background:none;-webkit-background-clip:border-box;background-clip:border-box;white-space:normal}
#emptyStateGroup.lab .tagline{display:block;margin:0;font:400 15px/1.5 var(--font-body,ui-sans-serif,system-ui,sans-serif);letter-spacing:0;color:#a3a097}
#emptyStateGroup.lab #spectrumBar{display:flex;gap:2px;height:10px;margin:6px 0 0;border-radius:0;overflow:hidden;position:relative;background:none;box-shadow:none;
  opacity:1;transform:none;animation:none;max-width:none}
#emptyStateGroup.lab #spectrumBar > span{flex:1;opacity:0;transform:scaleY(.2);animation:labSeg .5s cubic-bezier(.2,.8,.3,1) forwards}
#emptyStateGroup.lab #spectrumBar > span:nth-child(1){animation-delay:.20s}
#emptyStateGroup.lab #spectrumBar > span:nth-child(2){animation-delay:.27s}
#emptyStateGroup.lab #spectrumBar > span:nth-child(3){animation-delay:.34s}
#emptyStateGroup.lab #spectrumBar > span:nth-child(4){animation-delay:.41s}
#emptyStateGroup.lab #spectrumBar > span:nth-child(5){animation-delay:.48s}
#emptyStateGroup.lab #spectrumBar > span:nth-child(6){animation-delay:.55s}
#emptyStateGroup.lab #spectrumBar > span:nth-child(7){animation-delay:.62s}
#emptyStateGroup.lab #spectrumBar > span:nth-child(8){animation-delay:.69s}
#emptyStateGroup.lab #spectrumBar > span:nth-child(9){animation-delay:.76s}
#emptyStateGroup.lab #spectrumBar > span:nth-child(10){animation-delay:.83s}
#emptyStateGroup.lab #spectrumBar::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
  transform:translateX(-100%);animation:barShimmer 1.2s ease-out 1.45s forwards}
@keyframes labSeg{to{opacity:1;transform:none}}
#emptyStateGroup.lab #spectrumTicks{display:flex;justify-content:space-between;margin:0;max-width:none;font:400 10.5px/1 var(--font-mono);letter-spacing:0;color:#8a867d}
#emptyStateGroup.lab #spectrumTicks span{margin:0;color:#8a867d}
#emptyStateGroup.lab .labSec{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;max-width:none;width:auto;border:0;border-radius:0;background:none;
  box-shadow:none;text-align:left;align-items:stretch;justify-content:flex-start;transform:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#emptyStateGroup.lab .labHd{margin:0;display:flex;gap:10px;align-items:baseline;font:500 11px/1 var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:#6fab96}
#emptyStateGroup.lab .labNo{color:#c2431b}
#emptyStateGroup.lab #restoreSlot:empty{display:none}
#emptyStateGroup.lab #btnRestore{width:100%;height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;margin:0;background:transparent;
  border:1px solid #2a2d33;border-radius:6px;color:#eceae4;font:400 13px/1 var(--font-mono);cursor:pointer}
#emptyStateGroup.lab #btnRestore:hover{border-color:#c2431b}
#emptyStateGroup.lab #btnRestore .rsWhen{color:#8a867d}
#emptyStateGroup.lab .labRow{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:48px;margin:0;padding:4px 0;
  border-bottom:1px dashed #22252a;font:400 13px/1.4 var(--font-mono);color:#eceae4;cursor:pointer}
#emptyStateGroup.lab .labRow input[type=checkbox]{width:20px;height:20px;margin:0;flex:none;accent-color:#6fab96}
#emptyStateGroup.lab .labMini{height:36px;min-width:96px;background:#111316;color:#eceae4;border:1px solid #2a2d33;border-radius:6px;padding:0 8px;font:500 12px var(--font-mono);flex:none}
#emptyStateGroup.lab .labNote{margin:0;font:400 11px/1.5 var(--font-mono);color:#8a867d}
#emptyStateGroup.lab .labSelect{width:100%;height:40px;background:#111316;color:#eceae4;border:1px solid #2a2d33;border-radius:6px;padding:0 10px;font:400 13px var(--font-mono)}
#emptyStateGroup.lab #landingLinks{margin:0;max-width:none;width:auto;display:flex;flex-direction:column;gap:10px}
#emptyStateGroup.lab a.labTool{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid #2a2d33;border-radius:6px;background:transparent;box-shadow:none;
  color:#eceae4;text-decoration:none;transition:border-color .2s;transform:none}
#emptyStateGroup.lab a.labTool:hover{border-color:#c2431b;background:transparent;box-shadow:none;transform:none}
#emptyStateGroup.lab .labChart{position:relative;display:block}
#emptyStateGroup.lab .labBand{position:absolute;top:3px;font:500 8.5px/1 var(--font-mono);letter-spacing:.08em;opacity:.7;pointer-events:none}
#emptyStateGroup.lab .flTitle{display:flex;justify-content:space-between;font:500 13px/1.3 var(--font-mono);color:#eceae4;margin:0}
#emptyStateGroup.lab .flArrow{color:#c2431b}
#emptyStateGroup.lab .flSub{font:400 11px/1.5 var(--font-mono);color:#8a867d;margin:0}
#emptyStateGroup.lab #btnInstallTop{margin:0;align-self:flex-start;min-height:40px}
#emptyStateGroup.lab .labFoot{margin-top:auto;display:flex;flex-direction:column;border-top:1px solid #22252a;font-size:12px}
#emptyStateGroup.lab #whatsNew{max-width:none;width:auto;margin:0;padding:0;font-size:12px;color:#a3a097;line-height:1.55}
#emptyStateGroup.lab #whatsNew summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:46px;cursor:pointer;
  border-bottom:1px solid #1a1c20;color:#eceae4;font:400 12px/1.3 var(--font-mono);letter-spacing:0;text-transform:none;width:auto;margin:0;text-align:left}
#emptyStateGroup.lab #whatsNew summary::-webkit-details-marker{display:none}
#emptyStateGroup.lab #whatsNew summary::after{content:none;display:none}
#emptyStateGroup.lab #whatsNew .wnLatest{color:#8a867d;text-align:right}
#emptyStateGroup.lab #whatsNew .wnLatest::after{content:' +';color:#6fab96}
#emptyStateGroup.lab #whatsNew details[open] .wnLatest::after{content:' \2212'}
#emptyStateGroup.lab #whatsNew details > div{margin:0 !important;padding:12px 0 6px;border-bottom:1px solid #1a1c20;font-family:var(--font-body,ui-sans-serif,system-ui,sans-serif);font-size:13px}
#emptyStateGroup.lab #whatsNew details > div p{margin:0 0 8px !important}
#emptyStateGroup.lab #whatsNew details > div b{color:#eceae4 !important}
#emptyStateGroup.lab #discordLink{display:flex;justify-content:space-between;align-items:center;width:auto;min-height:46px;margin:0;padding:0;border:0;
  border-bottom:1px solid #1a1c20;border-radius:0;background:none;color:#eceae4;font:400 12px/1 var(--font-mono);text-decoration:none}
#emptyStateGroup.lab #discordLink:hover .dcGo{color:#c2431b}
#emptyStateGroup.lab #discordLink .dcName{display:flex;align-items:center;gap:8px}
#emptyStateGroup.lab #discordLink svg{width:16px;height:16px;color:#8a867d}
#emptyStateGroup.lab #discordLink .dcGo{color:#8a867d;transition:color .2s}
#emptyStateGroup.lab #creditsHome{padding:12px 0 2px;font:400 12px/1.5 var(--font-body);color:#8c8984}
#emptyStateGroup.lab #creditsHome a{color:#c9c5bb!important;font-weight:500!important}
#emptyStateGroup.lab #buildStampHome{display:flex;justify-content:space-between;align-items:center;min-height:44px;margin:0;font:400 11px/1 var(--font-mono);color:#8a867d;text-align:left}
#emptyStateGroup.lab #buildStampHome .updBtn{min-width:36px;min-height:36px}
@media (min-width:900px){
  #emptyStateGroup.lab{max-width:980px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:56px;row-gap:30px;padding:28px 40px 36px;margin:auto !important}
  #emptyStateGroup.lab .labTop,#emptyStateGroup.lab .labHero,#emptyStateGroup.lab .labFoot{grid-column:1 / -1}
  #emptyStateGroup.lab .labSec:last-of-type{grid-column:1 / -1}
  #emptyStateGroup.lab .labHero h1{font-size:56px}
}
@media (prefers-reduced-motion:reduce){
  #emptyStateGroup.lab #spectrumBar > span{opacity:1;transform:none;animation:none}
  #emptyStateGroup.lab #spectrumBar::after{animation:none;display:none}
}

/* ---- Load panel with a file slot (build 105) ---- */
#emptyStateGroup.lab .labPanel{display:flex;flex-direction:column;gap:12px;padding:12px 10px 10px;border:1px solid #2a2d33;border-radius:12px;
  background:linear-gradient(180deg,#16181b,#0f1012);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}

#emptyStateGroup.lab .labLoadRow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#emptyStateGroup.lab .labLoadRow #restoreSlot:empty{display:none}
#emptyStateGroup.lab .labLoadRow:has(#restoreSlot:empty) .labFmtChip{grid-column:1 / -1}
#emptyStateGroup.lab .labFmtChip{min-height:44px;display:flex;align-items:center;justify-content:center;border:1px dashed #2a2d33;border-radius:8px;
  font:400 11px/1.3 var(--font-mono);color:#8a867d;text-align:center;padding:0 8px}
#emptyStateGroup.lab #restoreSlot #btnRestore{height:44px;border-radius:8px;background:#0b0c0e;font-size:12px;padding:0 12px}

/* ---- Detail cards (build 110) ---- */
.dGrp{margin-top:10px;border:1px solid var(--line2);border-radius:10px;background:rgba(255,255,255,.015)}
.dGrp > summary{list-style:none;display:flex;align-items:baseline;gap:10px;padding:12px 14px;cursor:pointer;min-height:44px;box-sizing:border-box}
.dGrp > summary::-webkit-details-marker{display:none}
.dGrp > summary::after{content:'\25B8';margin-left:8px;color:var(--muted);font-size:11px;transition:transform .15s}
.dGrp[open] > summary::after{transform:rotate(90deg)}
.dGrp .dT{font-weight:600;color:var(--paper);font-size:13.5px;white-space:nowrap}
.dGrp .dS{color:var(--muted);font-size:11.5px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dGrp .dDot{width:6px;height:6px;border-radius:50%;background:var(--safelight);opacity:0;flex:0 0 auto;align-self:center;transition:opacity .2s}
.dGrp.mod .dDot{opacity:1}
.dGrp .dBody{padding:0 14px 12px}
.dGrp .dBody > .sl + .sl, .dGrp .dBody #rawNrBox .sl + .sl{margin-top:6px}
.dGrp .dSub{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--phosphor-dim);margin:12px 0 4px}
.dGrp .dBody > .dSub:first-child, .dGrp #rawNrBox .dSub{margin-top:2px}
.dGrp .dHint{text-transform:none;letter-spacing:0;color:var(--muted)}
.dGrp #rawNrBox{padding-bottom:6px;border-bottom:1px dashed var(--line2);margin-bottom:4px}

/* ---- Colour cards (build 114) ---- */
details[data-step="colour"] .dGrp .cBands{display:inline-flex;gap:3px;vertical-align:middle}
details[data-step="colour"] .dGrp .cBands i{width:9px;height:9px;border-radius:50%;display:block}
details[data-step="colour"] .dGrp .dBody > .sl:first-child,details[data-step="colour"] .dGrp .dBody > .note:first-child{margin-top:0}
details[data-step="wb"] > summary .wbSum{font-family:var(--font-mono);font-size:11.5px;color:var(--muted);text-transform:none;letter-spacing:0;font-weight:400;margin-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
details[data-step="wb"] .wbStatus{font-family:var(--font-mono);font-size:11.5px;color:var(--phosphor-dim);opacity:.9}
details[data-step="wb"] .wbGains{margin-top:12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.02)}
details[data-step="wb"] .wbGains > summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;cursor:pointer;font-size:13px;color:var(--paper)}
details[data-step="wb"] .wbGains > summary::-webkit-details-marker{display:none}
details[data-step="wb"] .wbSw{display:inline-flex;gap:4px} details[data-step="wb"] .wbSw i{width:8px;height:8px;border-radius:2px;display:block}
details[data-step="wb"] .wbGainsSum{margin-left:auto;font-family:var(--font-mono);font-size:12px;color:var(--muted)}
details[data-step="wb"] .wbGainsBody{padding:0 14px 12px}
details[data-step="wb"] .wbGainsBody .sl + .sl{margin-top:8px}
#autoGainR{--safelight:#e0473f} #autoGainG{--safelight:#4fb556} #autoGainB{--safelight:#3e78e0}

/* ---- Primary buttons: dark key with an orange chip (build 118) ----
   Replaces the glowing orange gradient. The chip echoes the orange 01-07 step chips; the icon is drawn by ::before so
   code that rewrites a button's text (Exporting..., Rendering original...) keeps the chip. */
.keyBtn{background:#1c1e22!important;border:1px solid #3a3d44!important;color:#eceae4!important;box-shadow:none!important;
  border-radius:6px!important;font-family:var(--font-mono)!important;font-weight:700!important;align-items:center!important;
  justify-content:flex-start!important;gap:14px!important;padding:5px 16px 5px 5px!important;text-decoration:none;transition:background .15s,border-color .15s}
.keyBtn::before{content:'';flex:none;width:var(--chip,44px);height:var(--chip,44px);border-radius:4px;background:var(--safelight) center/46% no-repeat}
 .keyDown::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0c0e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12l7 7 7-7'/%3E%3C/svg%3E")} .keyPlus::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0c0e' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.keyBtn:hover{background:#22252a!important;border-color:#55524c!important;transform:none!important}
.keyBtn:active{transform:translateY(1px)!important}
.keyBtn:disabled,.keyBtn.busy{color:#a3a097!important} .keyBtn:disabled::before,.keyBtn.busy::before{opacity:.55}

#bDl.keyBtn{display:flex!important;height:56px;font-size:15px!important;letter-spacing:.08em;text-transform:uppercase;--chip:44px}
.keyBtn.keySm{display:inline-flex!important;--chip:28px;gap:9px!important;padding:3px 12px 3px 3px!important;font-size:12.5px!important;letter-spacing:0!important;min-height:36px!important;height:auto!important}
html.dockOn body.has-image .toolbar .keyBtn.keySm{min-height:40px!important;--chip:30px;gap:7px!important;padding:3px 10px 3px 3px!important;font-size:12px!important}
/* Build 119: on a phone the top bar has to fit on one line, so New image shortens to "New", and on a narrow phone
   to the + chip alone (its name stays in aria-label and the tooltip). */
html.dockOn body.has-image .toolbar .keyBtn.keySm .kMore{display:none}
@media (max-width:389px){
  html.dockOn body.has-image .toolbar .keyBtn.keySm{padding:3px!important;gap:0!important}
  html.dockOn body.has-image .toolbar .keyBtn.keySm .kTxt{display:none}
}
@media (max-width:359px){
  html.dockOn body.has-image .toolbar{gap:2px!important}
  html.dockOn body.has-image .toolbar #bHome,html.dockOn body.has-image .toolbar #bReset{padding-left:6px!important;padding-right:6px!important}
}

/* ---- Phone top bar as a labelled icon rail (build 120) ----
   Eight equal cells, each an icon in a small box with a word under it, so every control fits on one line at any
   phone width and New image keeps its orange chip. The rotate and full-size buttons sit in the rail directly
   (their wrapper is display:contents). Labels come from data-lbl; the buttons' own names stay for screen readers. */
html.dockOn body.has-image .toolbar{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;gap:2px!important;align-items:stretch!important;overflow:visible!important;padding:2px 0 4px!important}
html.dockOn body.has-image .toolbar .ptTools{display:contents!important}
html.dockOn body.has-image .toolbar > .toolbarDiv,html.dockOn body.has-image .toolbar > #lnkFilters{display:none!important}
html.dockOn body.has-image .toolbar > :is(.filelabel,#bHome,#bReset,#bVidTab,#filterDbBtn), html.dockOn body.has-image .toolbar .ptTools > button{position:relative!important;display:block!important;flex:none!important;width:auto!important;height:54px!important;min-height:0!important;min-width:0!important;margin:0!important;
  padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;color:var(--paper)!important;
  font:15px/30px var(--font-body)!important;letter-spacing:0!important;text-align:center!important;text-decoration:none!important;transform:none!important;overflow:visible!important}
html.dockOn body.has-image .toolbar > :is(#bHome,#bReset,#bVidTab,#filterDbBtn)::before, html.dockOn body.has-image .toolbar .ptTools > button::before{content:'';position:absolute;left:50%;top:2px;width:30px;height:30px;margin-left:-15px;box-sizing:border-box;border:1px solid var(--line2);border-radius:4px;
  display:flex;align-items:center;justify-content:center;font:15px/1 var(--font-body);color:var(--paper);pointer-events:none}
html.dockOn body.has-image .toolbar > #bHome::before{content:'\2302'}
html.dockOn body.has-image .toolbar > #bReset::before{content:'\27F2'}
html.dockOn body.has-image .toolbar > #bVidTab::before{content:'';background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6e2d8' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='2.5' y='6.5' width='13' height='11' rx='2'/%3E%3Cpath d='M15.5 10.8l6-3.3v9l-6-3.3z'/%3E%3C/svg%3E") center/19px 19px no-repeat}
html.dockOn body.has-image .toolbar > :is(#bHome,#bReset,#bVidTab) > span{display:none!important}
html.dockOn body.has-image .toolbar > #filterDbBtn svg{display:block;width:18px;height:18px;margin:8px auto 0}
html.dockOn body.has-image .toolbar > :is(.filelabel,#bHome,#bReset,#bVidTab,#filterDbBtn)::after, html.dockOn body.has-image .toolbar .ptTools > button::after{content:attr(data-lbl);position:absolute;left:0;right:0;bottom:2px;font:500 10.5px/1 var(--font-mono);letter-spacing:-.01em;color:var(--paper-dim);
  text-align:center;white-space:nowrap;pointer-events:none}
html.dockOn body.has-image .toolbar > .keyBtn.keySm::before{position:absolute;left:50%;top:2px;margin-left:-15px;width:30px!important;height:30px!important}
html.dockOn body.has-image .toolbar > .keyBtn.keySm{font-size:0!important}
html.dockOn body.has-image .toolbar > .keyBtn.keySm > :is(.kTxt,.kMore){display:none!important}
html.dockOn body.has-image .toolbar > .keyBtn.keySm::after{color:var(--paper)!important;font-weight:700}
html.dockOn body.has-image .toolbar > :is(#bHome,#bReset), html.dockOn body.has-image .toolbar .ptTools > button{box-sizing:border-box!important;padding:0 0 21px!important}
html.dockOn body.has-image .toolbar > :is(.filelabel,#bHome,#bReset,#bVidTab,#filterDbBtn):active::before,html.dockOn body.has-image .toolbar .ptTools > button:active::before{border-color:var(--safelight)}
/* ---- Build 129: icons only, no words under them; the rail shrinks to the icon height. The words stay as each control's
   accessible name and tooltip. ---- */
html.dockOn body.has-image .toolbar > :is(.filelabel,#bHome,#bReset,#bVidTab,#filterDbBtn)::after, html.dockOn body.has-image .toolbar .ptTools > button::after{content:none!important;display:none!important}
html.dockOn body.has-image .toolbar > :is(.filelabel,#bHome,#bReset,#bVidTab,#filterDbBtn), html.dockOn body.has-image .toolbar .ptTools > button{height:34px!important}
html.dockOn body.has-image .toolbar > :is(#bHome,#bReset), html.dockOn body.has-image .toolbar .ptTools > button{padding:0!important;line-height:34px!important}
/* ---- Build 130: Reset all is an eraser, so it no longer looks like the rotate arrows beside it. The svg is hidden
   everywhere except the phone rail. ---- */
#bReset .rIco{display:none}
html.dockOn body.has-image .toolbar > #bReset::before{content:''}
html.dockOn body.has-image .toolbar > #bReset .rIco{display:block;position:absolute;left:50%;top:9px;width:16px;height:16px;margin-left:-8px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
/* ---- Phone polish (build 121) ---- */
/* 1. The decode / white-balance stamp is developer detail: off the photo on a phone, shown in Export > Decode settings. */
html.dockOn body.has-image #previewSticky > .ptStamps{display:none!important}
#decodeInfo{margin:10px 0 0;font:400 11px/1.5 var(--font-mono);color:var(--muted)}
#decodeInfo:empty{display:none}
/* 2. Section headers inside a tab: no number chip, normal case, quieter than the cards. Light and Detail get theirs back
   as a slim row because it now carries the panel's actions. */
html.dockOn body.has-image #reorderZone .stepChip{display:none!important}
html.dockOn body.has-image #reorderZone .stepPanel > summary.stepHdr{display:flex!important;align-items:center;gap:8px;min-height:44px;padding:4px 2px!important;margin:0 0 4px!important;
  border-bottom:0!important;font:600 15px/1.2 var(--font-body)!important;letter-spacing:0!important;text-transform:none!important;color:var(--paper)!important}
html.dockOn body.has-image #reorderZone .stepPanel > summary.stepHdr > span{text-transform:none;letter-spacing:0}
html.dockOn body.has-image #reorderZone .stepPanel[data-step="targeted"] > summary.stepHdr > span[style]{display:none}
html.dockOn body.has-image #reorderZone .stepPanel > summary.stepHdr .wbSum{display:none!important}
html.dockOn body.has-image #reorderZone .stepPanel > summary.stepHdr .stepArrow,html.dockOn body.has-image #reorderZone [data-solo] > summary.stepHdr .stepDot{display:none}
html.dockOn body.has-image #reorderZone > [data-solo] > summary{display:flex!important;cursor:default}
/* 3. Reset panel (and Light's Auto levels) live in the section header as small buttons instead of a row of their own. */
summary.stepHdr .hdrActs{margin-left:auto;display:inline-flex;align-items:center;gap:6px}
summary.stepHdr .hdrActs + .stepDot{margin-left:8px!important}
summary.stepHdr .hdrActs button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;min-width:34px;padding:0 10px;margin:0;border-radius:6px;
  border:1px solid var(--line2);background:transparent;color:var(--paper-dim);font:500 12px/1 var(--font-body);letter-spacing:0;text-transform:none;cursor:pointer}
summary.stepHdr .hdrActs button.ptResetBtn{padding:0;width:34px}
summary.stepHdr .hdrActs button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
summary.stepHdr .hdrActs button:hover{border-color:var(--safelight);color:var(--paper)}
.panelTools:empty{display:none}
summary.stepHdr #btnAuto{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;margin:0 0 0 auto;border-radius:6px;border:1px solid var(--line2);background:transparent;color:var(--paper-dim);font:500 12px/1 var(--font-body);letter-spacing:0;text-transform:none}
summary.stepHdr #btnAuto + .hdrActs{margin-left:6px}
/* 4. Selected toggles (Histogram/Parade, curve channel, crop ratio, HSL group) as a tint with an orange edge, not a solid orange pill. */
#scopeModeRow button.btnGhostSmall.on,#curveTabs button.btnGhostSmall.on,#cropRow button.btnGhostSmall.on,#maskChips button.btnGhostSmall.on,
html body #hslTabs button.btnGhostSmall.on,html.studioOn body.has-image #hslTabs button.btnGhostSmall.on,html.dockOn body.has-image #hslTabs button.btnGhostSmall.on{
  background:rgba(194,67,27,.16)!important;border-color:var(--safelight)!important;color:var(--paper)!important}
/* ---- Desktop matches the phone (build 127) ---- */
html.studioOn body.has-image #scopeModeRow button.btnGhostSmall{border-radius:6px!important}
html.studioOn body.has-image #studioBrand{gap:10px;font:400 14px/1 var(--font-mono)!important;letter-spacing:0!important}
html.studioOn body.has-image #studioBrand .labBadge{width:26px;height:26px;flex:none}
html.studioOn body.has-image #studioBrand .sbWord b{font-weight:700;opacity:1;margin:0}
html.studioOn body.has-image #studioBrand .sbPath{color:var(--st-dim,#8a867d)}
html.studioOn body.has-image .toolbar .filelabel,html.studioOn body.has-image .toolbar button.btnGhost,
html.studioOn body.has-image .toolbar #btnUndo,html.studioOn body.has-image .toolbar #btnRedo,
html.studioOn body.has-image .toolbar .ptIconBtn,html.studioOn body.has-image .toolbar html.studioOn body.has-image .toolbar #filterDbBtn{border-radius:6px!important}
html.studioOn body.has-image .toolbar button.btnGhost,html.studioOn body.has-image .toolbar #btnUndo,html.studioOn body.has-image .toolbar #btnRedo{font:500 12.5px/1 var(--font-mono)!important}
.keyBtn.keySm .kMore{margin-left:-9px}
html.studioOn body.has-image #reorderZone summary.stepHdr{font:600 15px/1.2 var(--font-body)!important;letter-spacing:0!important;text-transform:none!important;color:var(--st-text,#eceae4)!important;padding:16px 0 10px!important}
html.studioOn body.has-image #reorderZone summary.stepHdr > span{text-transform:none;letter-spacing:0}
html.studioOn body.has-image #reorderZone .stepPanel[data-step="targeted"] > summary.stepHdr > span[style]{display:none}
html.studioOn body.has-image #reorderZone summary.stepHdr .wbSum{display:none}
html.studioOn body.has-image #reorderZone > [data-solo] > summary{display:flex!important}
html.dockOn body.has-image #exportSection > summary.secHead,html.studioOn body.has-image #exportSection > summary.secHead{display:flex!important;align-items:center;gap:8px;min-height:44px;
  font:600 15px/1.2 var(--font-body)!important;letter-spacing:0!important;text-transform:none!important;color:var(--paper)!important;border-bottom:0!important}
html.dockOn body.has-image #exportSection > summary.secHead > span,html.studioOn body.has-image #exportSection > summary.secHead > span{text-transform:none;letter-spacing:0}
html.dockOn body.has-image #exportSection > summary.secHead .stepChip,html.studioOn body.has-image #exportSection > summary.secHead .stepChip{display:none!important}
/* ---- Home: Decode first (folded), then Load (builds 127-128) ---- */
#emptyStateGroup.lab .labDec > summary{list-style:none;cursor:pointer}
#emptyStateGroup.lab .labDec > summary::-webkit-details-marker{display:none}
#emptyStateGroup.lab .labDec > summary::after,#emptyStateGroup.lab .labDec > summary::before{content:none!important;display:none!important}
#emptyStateGroup.lab .labDecSum{font:400 13px/1.3 var(--font-mono);color:#c9c5bc}
#emptyStateGroup.lab .labDecArrow{color:#8a867d;font-size:12px;transition:transform .15s}
#emptyStateGroup.lab .labDec[open] .labDecArrow{transform:rotate(90deg)}
#emptyStateGroup.lab .labDec[open] > summary{color:#8a867d}
#emptyStateGroup.lab .labDec > :not(summary){margin-top:2px}
#emptyStateGroup.lab .labDec{display:flex;flex-direction:column;gap:12px}
/* ---- Home load control as a command prompt (build 126) ---- */
#emptyStateGroup.lab .labTerm{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:8px;background:#050506;border:1px solid #1d1f23;transition:border-color .2s}
#emptyStateGroup.lab #dropzone.dragover .labTerm{border-color:#c2431b}
#emptyStateGroup.lab .ltStatus{font:400 11.5px/1.5 var(--font-mono);color:#8a867d}
#emptyStateGroup.lab .ltStatus b{font-weight:400;color:#c9c5bc}
#emptyStateGroup.lab .ltStatus .slBusy{display:none;color:#c2431b}
body.imgLoading #emptyStateGroup.lab .ltStatus .slIdle{display:none}
body.imgLoading #emptyStateGroup.lab .ltStatus .slBusy{display:inline}
#emptyStateGroup.lab label.labGo.ltPrompt{display:flex!important;align-items:center!important;gap:10px!important;height:auto!important;min-height:44px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;cursor:pointer;
  font:400 17px/1 var(--font-mono)!important;letter-spacing:0!important;text-transform:none!important;color:#eceae4!important;justify-content:flex-start!important}
#emptyStateGroup.lab label.labGo.ltPrompt::before,#emptyStateGroup.lab label.labGo.ltPrompt::after{content:none!important;display:none!important}
#emptyStateGroup.lab label.labGo.ltPrompt:hover .ltCmd{text-decoration:underline;text-decoration-color:#c2431b;text-underline-offset:4px}
#emptyStateGroup.lab label.labGo.ltPrompt:focus-within{outline:2px solid #c2431b;outline-offset:4px;border-radius:2px!important}
#emptyStateGroup.lab .ltCaret{color:#c2431b}
#emptyStateGroup.lab .ltCursor{width:10px;height:20px;background:#c2431b;animation:ltBlink 1.05s steps(1) infinite}
body.imgLoading #emptyStateGroup.lab .ltCursor{animation:none;opacity:.35}
@keyframes ltBlink{50%{opacity:0}}
#emptyStateGroup.lab .ltHint{font:400 11.5px/1.5 var(--font-mono);color:#8a867d}
#emptyStateGroup.lab .labTerm input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){#emptyStateGroup.lab .ltCursor{animation:none}}

/* ---- Cards everywhere (build 116) ---- */
.dGrp .dBody > :first-child{margin-top:0}
.dGrp .dBody > details:not(.dGrp) > summary{font-size:12px}
#exportSection > .dGrp:first-of-type{margin-top:12px}
/* ---- Slim white balance (build 116) ---- */
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
details[data-step="wb"] .wbSlim{margin-top:10px;border:1px solid var(--line2);border-radius:10px;background:rgba(255,255,255,.015);padding:0 12px}
details[data-step="wb"] .wbSlimHd{display:flex;align-items:baseline;gap:10px;padding:11px 2px 4px}
details[data-step="wb"] .wbSlimT{font-weight:600;font-size:13.5px;color:var(--paper);white-space:nowrap}
details[data-step="wb"] .wbSlimS{font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
details[data-step="wb"] .wbRow{display:flex;align-items:center;gap:10px;min-height:52px;border-bottom:1px solid var(--line)}
details[data-step="wb"] .wbNum{width:22px;height:22px;flex:none;border-radius:50%;border:1px solid var(--line2);color:var(--muted);font-family:var(--font-mono);font-size:11px;display:flex;align-items:center;justify-content:center}
details[data-step="wb"] .wbRow.on .wbNum{border-color:var(--safelight);color:var(--safelight)}
details[data-step="wb"] .wbRowTx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
details[data-step="wb"] .wbRowTx b{font-weight:600;font-size:13px;color:var(--paper)}
details[data-step="wb"] .wbRowSt{font-family:var(--font-mono);font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
details[data-step="wb"] .wbRow.on .wbRowSt{color:var(--phosphor-dim)}
details[data-step="wb"] .wbIco{width:44px;height:40px;min-height:0;padding:0;margin:0;flex:none;display:flex;align-items:center;justify-content:center}
details[data-step="wb"] .wbIco.wbGhost{background:transparent;color:var(--muted)}
details[data-step="wb"] .wbIco.armed{border-color:var(--safelight);background:rgba(194,67,27,.18);color:var(--paper)}
details[data-step="wb"] .wbGainsIn{margin:0;border:0;border-radius:0;background:transparent}
details[data-step="wb"] .wbGainsIn > summary{padding:0 2px;min-height:44px}
details[data-step="wb"] .wbGainsIn .wbGainsBody{padding:0 2px 12px}
/* ---- Build 139: the name bubble a long press shows under a rail icon (src/dock.js railNames) ---- */
.railName{position:fixed;z-index:400;padding:6px 10px;border-radius:6px;background:var(--panel-bg,#17191c);border:1px solid var(--line2,#2a2d33);
  color:var(--paper,#eceae4);font:500 12px/1.2 var(--font-mono);white-space:nowrap;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.35)}
html.dockOn body.has-image .toolbar > [data-lbl], html.dockOn body.has-image .toolbar .ptTools > [data-lbl]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
/* ---- Build 139: Share, Before | after and Look link under Export Image (src/share.js) ---- */
.shareRow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}
.shareRow button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 6px!important;font-size:12px!important;white-space:nowrap;width:auto!important;margin:0!important}
.shareRow button{flex-direction:column;gap:5px!important;min-height:60px!important;font-size:11px!important}
.shareRow button svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.shareRow button.busy{opacity:.55}
.shareNote{margin:8px 2px 0!important;font-size:11.5px!important;line-height:1.45!important;color:var(--muted)!important}
/* Predict from your filters (build 148) */
.fpSearch{width:100%;box-sizing:border-box;padding:10px 12px;border-radius:8px;border:1px solid var(--line2);background:transparent;color:inherit;font:inherit}
.fpStack{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.fpChip{display:inline-flex;align-items:center;gap:6px;padding:4px 4px 4px 10px;border:1px solid var(--line2);border-radius:999px;font-size:12px}
.fpChip small{opacity:.65;font-size:10px;letter-spacing:.03em}
.fpChip button{border:0;background:none;color:inherit;font-size:16px;line-height:1;padding:2px 6px;cursor:pointer;min-height:28px}
/* Build 180: filter picker */
.fpChip{min-height:34px;box-sizing:border-box;background:var(--surface2)}
.fpChip button{min-width:32px;min-height:32px}
.fpSearch{min-height:44px;font-size:16px}
.fpResults{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.fpResults:empty{display:none}
.fpResults .fpNone{margin:2px 0}
.fpHit{display:grid;grid-template-columns:1fr auto;grid-template-areas:"n a" "d a";align-items:center;gap:1px 10px;text-align:left;width:100%;min-height:48px;padding:7px 10px;border:1px solid var(--line2);border-radius:8px;background:none;color:inherit;font:inherit;cursor:pointer}
.fpHit:hover{border-color:var(--safelight)}
.fpHitN{grid-area:n;font-size:14px;font-weight:500}
.fpHitD{grid-area:d;font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fpHitA{grid-area:a;font:500 12px var(--font-mono);color:var(--safelight);white-space:nowrap}
.fpHit.on{border-color:var(--safelight);background:var(--surface2)}
.fpHit.on .fpHitA{color:var(--phosphor)}
.fpAlias{margin:2px 0;font-size:11.5px}
/* Build 181: prediction vs photo, and next steps */
/* Build 183: the stack picker now sits in Export, under "Record the filter stack" */
.fpPick{margin:6px 0 4px 22px;display:flex;flex-direction:column;gap:6px}
.fpPick .fpStack{margin:0}
.fpPick .fpStack:empty{display:none}
.fpPick #fpClear{align-self:flex-start}
.fpPick .fpSearch{min-height:40px;font-size:15px}
/* Build 185: dust removal */
#dustList{display:flex;flex-direction:column;gap:4px;margin-top:8px}
#dustList:empty{display:none}
.dustRow{display:flex;align-items:center;gap:8px;padding:4px 4px 4px 10px;border:1px solid var(--line2);border-radius:8px;font-size:12.5px;cursor:pointer}
.dustRow.sel{border-color:var(--safelight)}
.dustRow span{flex:1}
.dustRow .dustDel{min-width:32px;min-height:32px;border:0;background:none;color:inherit;font-size:16px;cursor:pointer}
#dustAdd.armed,#dustAdd.armed:hover{background:var(--safelight) !important;border-color:var(--safelight) !important;color:var(--bg) !important}
#dustMarks{position:absolute;inset:0;pointer-events:none;z-index:5}
#dustMarks i{position:absolute;transform:translate(-50%,-50%);border-radius:50%;box-sizing:border-box}
#dustMarks .dSpot{border:1.5px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.6)}
#dustMarks .dSpot.sel{border-color:var(--safelight)}
#dustMarks .dSrc{border:1.5px dashed rgba(255,255,255,.85);box-shadow:0 0 0 1px rgba(0,0,0,.4)}
.dustRow .btnGhostSmall{min-height:30px;padding:0 9px;font-size:11.5px}
.dustRow .dustPick.armed{border-color:var(--safelight);color:var(--safelight)}

.dGrp #rawDeconvBox{padding-bottom:6px;border-bottom:1px dashed var(--line2);margin-bottom:4px}

#plainSharpenSub{display:none}
body.rawOpen #plainSharpenSub{display:block}

/* Build 304: the credits line under the histogram (a footer in the page, behind the controls sheet) peeked out above a
   short picture such as a 16:9 video, with the sheet's handle across its last line. On the phone layout it stays hidden;
   the credits and privacy links are on the home page. */
html.dockOn body.has-image #main > footer{display:none!important}
/* Build 312: the video button only while a video is open (the toolbar rules above force display with !important) */
html body:not(.has-video) #bVidTab, html.dockOn body.has-image:not(.has-video) .toolbar > #bVidTab, html.studioOn body.has-image:not(.has-video) .toolbar > #bVidTab{display:none!important}

/* ================= Build 366: desktop studio, second pass =================
   Left panel (spectrum, what the stack does, channels, history), tabs and histogram in one head on the right, a plainer
   top bar. Same palette and tokens as before; only the structure and the density change. */
#studioLeft,#studioFile{display:none}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image{--stL:clamp(236px,16.5vw,300px);--stR:clamp(316px,22.5vw,396px);grid-template-columns:var(--stL) minmax(0,1fr) var(--stR);grid-template-rows:48px minmax(0,1fr)}
  html.studioOn body.has-image #preview{max-height:calc(100vh - 48px - 26px - 60px) !important;max-height:calc(100dvh - 48px - 26px - 60px) !important}

  /* ---- top bar: brand, back, file | undo redo, tools, filter database ---- */
  html.studioOn body.has-image .toolbar{height:48px;padding:0 12px;gap:6px}
  html.studioOn body.has-image #studioBrand{margin-right:10px;font-size:15px;font-weight:600;letter-spacing:0}
  html.studioOn body.has-image #studioBrand b{font-weight:400;opacity:.65;margin-left:4px}
  html.studioOn body.has-image .toolbar #bReset,html.studioOn body.has-image .toolbar #btnStudioExport,html.studioOn body.has-image .toolbar #bVidTab[style*="display: none"]{display:none !important}
  html.studioOn body.has-image .toolbar .filelabel,html.studioOn body.has-image .toolbar #bHome,
  html.studioOn body.has-image .toolbar #btnUndo,html.studioOn body.has-image .toolbar #btnRedo{font-size:0 !important;line-height:0;width:34px;height:34px;padding:0;border-radius:8px;border:1px solid var(--st-hair);background:var(--st-raise);gap:0}
  html.studioOn body.has-image .toolbar .filelabel>span,html.studioOn body.has-image .toolbar #bHome>span,html.studioOn body.has-image .toolbar #bHome>svg{display:none}
  html.studioOn body.has-image .toolbar .filelabel::before,html.studioOn body.has-image .toolbar #bHome::before,
  html.studioOn body.has-image .toolbar #btnUndo::before,html.studioOn body.has-image .toolbar #btnRedo::before{content:'';flex:none;width:18px !important;height:18px !important;margin:0;position:static;border-radius:0;filter:none !important;background:currentColor !important;background-color:currentColor !important;
    -webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
  html.studioOn body.has-image .toolbar #bHome{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5L10 3.5l7 6M5 8.5V16h3.5v-4.5h3V16H15V8.5'/%3E%3C/svg%3E");order:2}
  html.studioOn body.has-image .toolbar .filelabel{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E");order:1}
  html.studioOn body.has-image .toolbar #btnUndo{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4L3 8l4 4M3 8h8a5 5 0 010 10'/%3E%3C/svg%3E");margin-left:auto;border-radius:8px 3px 3px 8px;margin-right:-4px}
  html.studioOn body.has-image .toolbar #btnRedo{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4l4 4-4 4M17 8H9a5 5 0 000 10'/%3E%3C/svg%3E");border-radius:3px 8px 8px 3px}
  html.studioOn body.has-image #studioFile{display:flex;align-items:baseline;gap:10px;order:4;margin-left:10px;min-width:0;white-space:nowrap;overflow:hidden;font:500 13px/1 ui-sans-serif,system-ui,sans-serif;color:var(--st-text)}
  html.studioOn body.has-image #studioFile .sfN{overflow:hidden;text-overflow:ellipsis;max-width:34vw}
  html.studioOn body.has-image #studioFile small{font:400 11.5px/1 ui-sans-serif,system-ui,sans-serif;color:var(--st-faint)}
  html.studioOn body.has-image .toolbar .ptTools{margin-left:12px;gap:4px;order:12}
  html.studioOn body.has-image .toolbar .ptIconBtn{width:34px;height:34px;border-radius:8px;border:1px solid var(--st-hair);background:var(--st-raise);font-size:15px}
  html.studioOn body.has-image .toolbar .ptIconBtn:hover,html.studioOn body.has-image .toolbar #bHome:hover,html.studioOn body.has-image .toolbar .filelabel:hover,
  html.studioOn body.has-image .toolbar #btnUndo:hover,html.studioOn body.has-image .toolbar #btnRedo:hover{background:var(--st-raise2);border-color:var(--st-hair2)}
  html.studioOn body.has-image .toolbar #filterDbBtn{order:14;width:auto;height:34px;padding:0 13px 0 11px;gap:8px;margin-left:12px;border-radius:8px;border:1px solid var(--st-hair);background:var(--st-raise);color:var(--st-text);
    font:500 13px/1 ui-sans-serif,system-ui,sans-serif;white-space:nowrap}
  html.studioOn body.has-image .toolbar #filterDbBtn svg{width:18px;height:18px;color:var(--safelight)}
  html.studioOn body.has-image .toolbar #filterDbBtn::after{content:'Filter database'}
  html.studioOn body.has-image .toolbar #filterDbBtn:hover{background:var(--st-raise2);border-color:var(--st-hair2)}

  /* ---- left panel ---- */
  html.studioOn body.has-image #studioLeft{display:block;grid-column:1;grid-row:2;min-height:0;overflow-y:auto;overflow-x:hidden;background:var(--st-panel);border-right:1px solid var(--st-hair);
    scrollbar-width:thin;scrollbar-color:var(--st-hair2) transparent;font:400 12.5px/1.4 ui-sans-serif,system-ui,sans-serif;color:var(--st-dim)}
  #studioLeft details.stSec,#studioLeft #stChanHome > details{display:block;margin:0;padding:0;border:0;border-bottom:1px solid var(--st-hair);background:transparent;border-radius:0}
  #studioLeft .stH,#studioLeft #stChanHome > details > summary{display:flex;align-items:center;gap:8px;height:34px;padding:0 14px;margin:0;list-style:none;cursor:pointer;
    background:#101114;border-bottom:1px solid var(--st-hair);font:600 10.5px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:var(--st-dim)}
  #studioLeft #stChanHome > details > summary .dS,#studioLeft #stChanHome > details > summary .dDot{display:none}
  #studioLeft #stChanHome > details > summary .dT{font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit}
  #studioLeft .stH::after,#studioLeft #stChanHome > details > summary::after,#studioLeft #stSpecPick > details > summary::before{display:none !important}
  #studioLeft .stH::-webkit-details-marker,#studioLeft #stChanHome > details > summary::-webkit-details-marker{display:none}
  #studioLeft .stH::before,#studioLeft #stChanHome > details > summary::before{content:'';width:0;height:0;border:4px solid transparent;border-left:5px solid var(--st-faint);border-right:0;transition:transform .15s}
  #studioLeft details[open] > .stH::before,#studioLeft #stChanHome > details[open] > summary::before{transform:rotate(90deg)}
  #studioLeft .stN{margin-left:auto;font:500 11px/1 var(--font-mono,ui-monospace,monospace);color:var(--st-faint);letter-spacing:0}
  #studioLeft .stB,#studioLeft #stChanHome > details > .dBody{padding:12px 14px 14px}
  #studioLeft .stNote{margin:6px 0 0;font-size:11px;line-height:1.4;color:var(--st-faint)}
  #studioLeft #stSpecPick > details{border:0;background:transparent;margin:0 0 10px;padding:0}
  #studioLeft #stSpecPick > details > summary{display:flex;align-items:center;gap:8px;height:34px;padding:0 10px;list-style:none;cursor:pointer;background:var(--st-raise);border:1px solid var(--st-hair2);border-radius:8px}
  #studioLeft #stSpecPick > details > summary .dT{font:500 12.5px/1 ui-sans-serif,system-ui,sans-serif;color:var(--st-text);flex:none}
  #studioLeft #stSpecPick > details > summary .dS{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;color:var(--st-faint);text-align:right}
  #studioLeft #stSpecPick > details > summary .dDot{display:none}
  #studioLeft #stSpecPick > details > summary::after{content:'' !important;width:7px;height:7px;border:solid var(--st-dim);border-width:0 1.5px 1.5px 0;margin:0 3px 3px 4px;transform:rotate(45deg) !important;transition:transform .15s}
  #studioLeft #stSpecPick > details[open] > summary::after{transform:rotate(-135deg) !important;margin-top:4px}
  #studioLeft #stSpecPick > details[open] > summary{border-color:var(--safelight)}
  #studioLeft #stSpecPick .dBody{padding:10px 0 0}
  #studioLeft #stSpecPick .dBody > p.note{display:none}
  #studioLeft #stSpecCv{display:block;width:100%;height:112px;border:1px solid var(--st-hair);border-radius:8px;background:#0a0b0d}
  #studioLeft .stKey{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:8px;font-size:11px;color:var(--st-faint)}
  #studioLeft .stKey i{display:inline-block;width:9px;height:3px;border-radius:2px;margin-right:5px;vertical-align:middle}
  #studioLeft .stKey .f{background:var(--safelight)}#studioLeft .stKey .cr{background:#d63a3a}#studioLeft .stKey .cg{background:#6fae7f}#studioLeft .stKey .cb{background:#6f9fc7}
  #studioLeft .stKey .u{background:#7a5ad6}#studioLeft .stKey .v{background:#6fae7f}#studioLeft .stKey .r{background:var(--safelight)}
  #studioLeft .stKey em{flex-basis:100%;font-style:normal;margin-top:1px}
  #studioLeft .stLead{margin:0 0 10px;font-size:13px;line-height:1.45;color:var(--st-text)}
  #studioLeft .stCards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px}
  #studioLeft .stCards div{background:var(--st-raise);border:1px solid var(--st-hair);border-radius:8px;padding:7px 4px 6px;text-align:center;min-width:0}
  #studioLeft .stCards small{display:block;font-size:10px;letter-spacing:.04em;color:var(--st-faint);margin-bottom:4px;white-space:nowrap}
  #studioLeft .stCards span{display:block;font:500 12px/1.1 var(--font-mono,ui-monospace,monospace);color:var(--st-text);white-space:nowrap}
  #studioLeft .stComp{display:grid;gap:8px}
  #studioLeft .stCR{display:grid;grid-template-columns:8px 12px minmax(0,1fr) 54px;align-items:center;gap:8px;color:var(--st-text)}
  #studioLeft .stCR b{width:8px;height:8px;border-radius:50%}
  #studioLeft .stBar{display:flex;height:6px;border-radius:3px;overflow:hidden;background:#0a0b0d}
  #studioLeft .stBar i{display:block;height:100%}
  #studioLeft .stBar .u{background:#7a5ad6}#studioLeft .stBar .v{background:#6fae7f}#studioLeft .stBar .r{background:var(--safelight)}
  #studioLeft .stCP{font:400 11px/1 var(--font-mono,ui-monospace,monospace);color:var(--st-dim);text-align:right;white-space:nowrap}
  #studioLeft .stHist{display:flex;flex-direction:column;max-height:240px;overflow-y:auto;margin:-12px -14px 0;padding:4px 0;scrollbar-width:thin;scrollbar-color:var(--st-hair2) transparent}
  #studioLeft .stHI{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:6px;height:28px;padding:0 14px;border:0;border-left:3px solid transparent;border-radius:0;background:transparent;color:var(--st-dim);cursor:pointer;text-align:left;font:inherit}
  #studioLeft .stHI i{font:400 11px/1 var(--font-mono,ui-monospace,monospace);font-style:normal;color:var(--st-faint);text-align:right}
  #studioLeft .stHI span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #studioLeft .stHI:hover{background:var(--st-raise)}
  #studioLeft .stHI.on{background:var(--st-raise2);border-left-color:var(--safelight);color:var(--st-text)}
  #studioLeft .stHI.fut{opacity:.5}
  #studioLeft .stBtns{display:flex;gap:8px;margin-top:12px}
  #studioLeft .stBtns button,#studioLeft .stWide{flex:1;height:32px;border:1px solid var(--st-hair2);border-radius:8px;background:var(--st-raise);color:var(--st-text);font:500 12.5px/1 ui-sans-serif,system-ui,sans-serif;cursor:pointer}
  #studioLeft .stBtns button:hover,#studioLeft .stWide:hover{background:var(--st-raise2)}
  #studioLeft .stWide{width:100%;border-color:var(--safelight)}

  /* ---- right: one sticky head holds the histogram and the five tabs ---- */
  html.studioOn body.has-image #reorderZone{padding:0 16px 56px}
  html.studioOn body.has-image #studioHead{position:sticky;top:0;z-index:6;margin:0 -16px 4px;background:var(--st-panel);border-bottom:1px solid var(--st-hair)}
  html.studioOn body.has-image #studioHead > #scopeDetails{position:static;margin:0;padding:12px 16px 10px;border:0;background:transparent}
  html.studioOn body.has-image #studioHead > #dock{display:flex;flex-direction:row;align-items:stretch;justify-content:stretch;gap:0;position:static;grid-column:auto;padding:0;
    background:#101114;border:0;border-top:1px solid var(--st-hair)}
  html.studioOn body.has-image #studioHead > #dock button{flex:1;width:auto;height:50px;gap:4px;border-radius:0;font-size:10.5px;letter-spacing:.03em;background:transparent;box-shadow:none}
  html.studioOn body.has-image #studioHead > #dock button svg{width:19px;height:19px}
  html.studioOn body.has-image #studioHead > #dock button:hover{background:var(--st-raise)}
  html.studioOn body.has-image #studioHead > #dock button.on{background:var(--st-panel);color:var(--st-text);box-shadow:none}
  html.studioOn body.has-image #studioHead > #dock button.on svg{color:var(--safelight)}
  html.studioOn body.has-image #studioHead > #dock button.on::before{left:14px;right:14px;top:auto;bottom:0;width:auto;height:2px;border-radius:2px 2px 0 0}
  html.studioOn body.has-image #histogram{height:84px;border-radius:8px}

  /* ---- modules: compact bars with the modified dot at the left ---- */
  html.studioOn body.has-image #reorderZone summary.stepHdr{padding:14px 0 8px}

  html.studioOn body.has-image #reorderZone .dGrp > summary,html.studioOn body.has-image #reorderZone .stepPanel > summary.stepHdr{display:flex;align-items:center;gap:10px;min-height:40px !important;padding:0 6px 0 2px !important}
  html.studioOn body.has-image #reorderZone .dGrp > summary .dDot,html.studioOn body.has-image #reorderZone .stepPanel > summary .dDot{order:-1;opacity:1;width:8px;height:8px;background:transparent;border:1.5px solid #6b6962;box-sizing:border-box}
  html.studioOn body.has-image #reorderZone .dGrp.mod > summary .dDot{background:var(--safelight);border-color:var(--safelight);box-shadow:0 0 8px var(--accent-glow)}
  html.studioOn body.has-image #reorderZone .dGrp > summary .dT,html.studioOn body.has-image #reorderZone .stepPanel > summary.stepHdr,html.studioOn body.has-image #reorderZone .stepPanel > summary.stepHdr > span{font-size:13px !important;font-weight:500 !important;letter-spacing:0 !important;text-transform:none !important}
  html.studioOn body.has-image #reorderZone .stepPanel > summary.stepHdr{color:var(--st-text);padding-top:0 !important;padding-bottom:0 !important}
  html.studioOn body.has-image #reorderZone .stepPanel > summary.stepHdr button{width:28px;height:28px;min-height:0;padding:0;border-radius:8px}
  html.studioOn body.has-image #reorderZone > [data-solo] > summary{display:flex !important}
  html.studioOn body.has-image .sl label{justify-content:flex-start;gap:4px}
  html.studioOn body.has-image .sl label b{margin-left:auto}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  /* ---- the stage: the photo takes all the room there is ---- */
  html.stNoL.studioOn body.has-image{grid-template-columns:0 minmax(0,1fr) var(--stR)}
  html.stNoR.studioOn body.has-image{grid-template-columns:var(--stL) minmax(0,1fr) 0}
  html.stNoL.stNoR.studioOn body.has-image{grid-template-columns:0 minmax(0,1fr) 0}
  html.stNoL.studioOn body.has-image #studioLeft,html.stNoR.studioOn body.has-image #reorderZone{display:none !important}
  html.studioOn body.has-image #previewSticky{padding:14px 16px 12px;background:radial-gradient(120% 90% at 50% 40%,#17181c 0%,var(--st-bg) 100%)}
  html.studioOn body.has-image #previewWrap{border-radius:6px;box-shadow:0 0 0 1px var(--st-hair2),0 28px 70px -24px rgba(0,0,0,.75)}
  html.studioOn body.has-image #preview,html.studioOn body.has-image #previewOrig{border-radius:6px}
  html.studioOn body.has-image #cw > #cmpBar{width:min(440px,70%);padding:5px 16px;bottom:2px;column-gap:12px}
  html.studioOn body.has-image #holdHint{bottom:52px}
  .stTog{position:absolute;top:50%;width:16px;height:64px;margin-top:-32px;padding:0;border:1px solid var(--st-hair);background:var(--st-raise);color:var(--st-faint);cursor:pointer;z-index:14;
    display:grid;place-items:center;opacity:.55;transition:opacity .15s,background .15s}
  .stTog:hover{opacity:1;background:var(--st-raise2);color:var(--st-text)}
  .stTog svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  #stTogL{left:0;border-left:0;border-radius:0 8px 8px 0}#stTogR{right:0;border-right:0;border-radius:8px 0 0 8px}
  html.stNoL #stTogL svg,html.stNoR #stTogR svg{transform:scaleX(-1)}

  /* ---- histogram head ---- */
  html.studioOn body.has-image #studioHead > #scopeDetails{padding:12px 16px 10px}
  html.studioOn body.has-image #scopeMeta{gap:6px;margin-top:8px}
  html.studioOn body.has-image #scopeModeRow{margin:0 4px 0 0;gap:4px}
  html.studioOn body.has-image #scopeModeRow button.btnGhostSmall{min-height:26px;height:26px;padding:0 11px;border-radius:6px;font-size:11.5px}
  html.studioOn body.has-image #scopeMeta > label{position:relative;height:26px;padding:0 10px;border:1px solid var(--st-hair);border-radius:6px;background:var(--st-raise);font-size:11.5px;white-space:nowrap}
  html.studioOn body.has-image #scopeMeta > label input[type=checkbox]{position:absolute;opacity:0;width:100%;height:100%;left:0;top:0;margin:0;cursor:pointer}
  html.studioOn body.has-image #scopeMeta > label:has(input:checked){border-color:var(--safelight);color:var(--st-text)}
  html.studioOn body.has-image #scopeMeta > label:has(input:focus-visible){outline:2px solid var(--safelight);outline-offset:1px}

  /* ---- sliders: a real fill, from the centre on the ones that go both ways ---- */
  html.studioOn body.has-image #reorderZone .sl:not(.wb) input[type=range]::-webkit-slider-runnable-track{height:4px !important;border-radius:2px !important;
    background:linear-gradient(to right,var(--st-hair2) 0,var(--st-hair2) calc(var(--lo,0) * 1%),var(--safelight) calc(var(--lo,0) * 1%),var(--safelight) calc(var(--hi,var(--val,50)) * 1%),var(--st-hair2) calc(var(--hi,var(--val,50)) * 1%),var(--st-hair2) 100%) !important}
  html.studioOn body.has-image #reorderZone .sl:not(.wb) input[type=range]::-moz-range-track{height:4px !important;border-radius:2px !important;background:var(--st-hair2) !important}
  html.studioOn body.has-image #reorderZone .sl:not(.wb) input[type=range]::-moz-range-progress{height:4px;background:var(--safelight)}
  html.studioOn body.has-image #reorderZone .sl:not(.wb) input[type=range]::-webkit-slider-thumb{width:14px !important;height:14px !important;margin-top:-5px !important;border-radius:50% !important;
    background:#f1eee8 !important;border:0 !important;box-shadow:0 0 0 2px var(--st-panel),0 1px 6px rgba(0,0,0,.5) !important}
  html.studioOn body.has-image #reorderZone .sl:not(.wb) input[type=range]::-moz-range-thumb{width:14px !important;height:14px !important;border-radius:50% !important;background:#f1eee8 !important;border:0 !important;box-shadow:0 0 0 2px var(--st-panel) !important}
  html.studioOn body.has-image #reorderZone .sl:not(.wb) input[type=range]:hover::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--st-panel),0 0 0 5px rgba(194,67,27,.35) !important}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  /* ---- one header style on both sides: small capitals on a darker bar, full width ---- */
  html.studioOn body.has-image #reorderZone{padding:0 0 56px}
  html.studioOn body.has-image #studioHead{margin:0 0 0}
  html.studioOn body.has-image #reorderZone > .panel > *:not(summary):not(.dGrp):not(details),html.studioOn body.has-image #reorderZone > details > *:not(summary):not(.dGrp):not(details){margin-left:14px;margin-right:14px}
  html.studioOn body.has-image #reorderZone .dGrp{border:0 !important;border-bottom:1px solid var(--st-hair) !important;margin:0 !important}
  html.studioOn body.has-image #reorderZone .dGrp > summary,html.studioOn body.has-image #reorderZone .stepPanel > summary.stepHdr{height:34px;min-height:34px !important;padding:0 14px !important;background:#101114;border-bottom:1px solid var(--st-hair);gap:9px}
  html.studioOn body.has-image #reorderZone .dGrp > summary .dT,html.studioOn body.has-image #reorderZone .stepPanel > summary.stepHdr,html.studioOn body.has-image #reorderZone .stepPanel > summary.stepHdr > span{
    font:600 10.5px/1 ui-sans-serif,system-ui,sans-serif !important;letter-spacing:.13em !important;text-transform:uppercase !important;color:var(--st-dim) !important}
  html.studioOn body.has-image #reorderZone .dGrp[open] > summary .dT{color:var(--st-text) !important}
  html.studioOn body.has-image #reorderZone .dGrp > .dBody,html.studioOn body.has-image #reorderZone .dGrp > div:not(.dBody){padding:12px 14px 14px}
  html.studioOn body.has-image #reorderZone .dGrp > summary::after{font-size:9px;color:var(--st-faint)}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image #reorderZone .dGrp > .dBody,html.studioOn body.has-image #reorderZone .dGrp > div:not(.dBody){padding:8px 14px 12px}
  html.studioOn body.has-image #reorderZone .dBody > .sl,html.studioOn body.has-image #reorderZone .dGrp > .sl{margin:0 0 8px !important;padding:0}
  html.studioOn body.has-image #reorderZone .dBody .sl label{margin-bottom:5px}
  html.studioOn body.has-image #reorderZone .dBody .sl input[type=range]{height:20px}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image #reorderZone .wbSlim{margin:10px 14px 4px;padding:0 12px 4px}
  html.studioOn body.has-image #reorderZone .wbSlim > .dGrp,html.studioOn body.has-image #reorderZone .wbSlim > #wbTempGrp{border:1px solid var(--st-hair) !important;border-radius:10px !important;margin:12px 0 8px !important;overflow:hidden;padding:0}
  html.studioOn body.has-image #reorderZone .wbSlim > .dGrp > summary{border-bottom:0}
  html.studioOn body.has-image #reorderZone .wbSlim > .dGrp[open] > summary{border-bottom:1px solid var(--st-hair)}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image #reorderZone > .panel > summary button,html.studioOn body.has-image #reorderZone > .panel > summary .miniBtn{white-space:nowrap !important;flex:none}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image #reorderZone > .panel > summary{gap:8px}
  html.studioOn body.has-image #reorderZone > .panel > summary > *{margin-left:0 !important}
  html.studioOn body.has-image #reorderZone > .panel > summary button{padding-left:10px !important;padding-right:10px !important;width:auto !important;min-width:34px;height:28px !important;font-size:12px !important;letter-spacing:0 !important;text-transform:none !important}
  html.studioOn body.has-image #reorderZone > .panel > summary .stepHdr,html.studioOn body.has-image #reorderZone > .panel > summary > span:first-of-type{margin-right:auto}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image #reorderZone > .panel > summary.stepHdr > :last-child{margin-left:auto !important}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image .toolbar .filelabel,html.studioOn body.has-image .toolbar #bHome,html.studioOn body.has-image .toolbar #btnUndo,html.studioOn body.has-image .toolbar #btnRedo{display:inline-flex !important;align-items:center;justify-content:center;box-sizing:border-box}
  html.studioOn body.has-image .toolbar .filelabel::before{margin:0 !important}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image .toolbar .filelabel,html.studioOn body.has-image .toolbar #bHome,html.studioOn body.has-image .toolbar #btnUndo,html.studioOn body.has-image .toolbar #btnRedo{width:34px !important;height:34px !important;min-height:0 !important;align-self:center}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image .toolbar .filelabel,html.studioOn body.has-image .toolbar #bHome,html.studioOn body.has-image .toolbar #btnUndo,html.studioOn body.has-image .toolbar #btnRedo{padding:0 !important;justify-content:center !important}
  /* Reset all stays in the header as well as under History */
  html.studioOn body.has-image .toolbar #bReset{display:inline-flex !important;align-items:center;order:11;height:34px;padding:0 12px;margin-left:12px;border-radius:8px;border:1px solid var(--st-hair);background:var(--st-raise);color:var(--st-text);font:500 13px/1 ui-sans-serif,system-ui,sans-serif;white-space:nowrap}
  html.studioOn body.has-image .toolbar #bReset:hover{background:var(--st-raise2);border-color:var(--st-hair2)}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image .toolbar #btnUndo{order:8}
  html.studioOn body.has-image .toolbar #btnRedo{order:9}
  html.studioOn body.has-image .toolbar #bReset{order:10}
}

@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image .toolbar .stHdrTog{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:8px;border:1px solid var(--st-hair);background:var(--st-raise);color:var(--st-text);cursor:pointer}
  html.studioOn body.has-image .toolbar .stHdrTog:hover{background:var(--st-raise2);border-color:var(--st-hair2)}
  html.studioOn body.has-image .toolbar .stHdrTog svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  html.studioOn.stNoL body.has-image #stHdrL,html.studioOn.stNoR body.has-image #stHdrR{color:var(--st-faint);background:transparent}
  html.studioOn body.has-image .toolbar #stHdrL{order:3;margin-left:10px}
  html.studioOn body.has-image .toolbar #stHdrR{order:15;margin-left:6px}
}
/* Build 371: the before/after bar is a dark frosted pill so it stays readable when the photo is zoomed in */
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image #cw > #cmpBar#cmpBar{width:min(460px,72%) !important;padding:0 20px !important;height:50px;bottom:18px !important;border-radius:26px !important;
    background:rgba(10,10,12,.84) !important;border:1px solid #3a3a3f !important;box-shadow:0 8px 24px rgba(0,0,0,.6) !important;
    -webkit-backdrop-filter:blur(10px) !important;backdrop-filter:blur(10px) !important;column-gap:14px;align-items:center}
  html.studioOn body.has-image #cmpBar#cmpBar .cmpBarLabels span{font-weight:600 !important;letter-spacing:.14em !important;color:var(--st-text) !important}
  html.studioOn body.has-image #cmpBar #cmpRange{height:24px}
  html.studioOn body.has-image #cmpBar #cmpRange::-webkit-slider-thumb{width:22px !important;height:22px !important;border:2px solid #efe9e2 !important;background:#0a0a0b !important;margin-top:-9px}
  html.studioOn body.has-image #cmpBar #cmpRange::-moz-range-thumb{width:18px !important;height:18px !important;border:2px solid #efe9e2 !important;background:#0a0a0b !important}
}
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image #cmpBar#cmpBar #cmpRange::-webkit-slider-runnable-track{background:#4a4a50 !important;height:4px !important;border-radius:2px}
  html.studioOn body.has-image #cmpBar#cmpBar #cmpRange::-moz-range-track{background:#4a4a50 !important;height:4px !important;border-radius:2px}
}
/* Build 372: slimmer before/after pill */
@media (min-width:1000px) and (orientation:landscape), (min-width:1100px){
  html.studioOn body.has-image #cw > #cmpBar#cmpBar{width:min(330px,62%) !important;height:36px !important;padding:0 16px !important;bottom:14px !important;border-radius:18px !important;column-gap:10px !important;box-shadow:0 6px 18px rgba(0,0,0,.55) !important}
  html.studioOn body.has-image #cmpBar#cmpBar .cmpBarLabels span{font-size:9.5px !important;letter-spacing:.12em !important}
  html.studioOn body.has-image #cmpBar#cmpRange,html.studioOn body.has-image #cmpBar #cmpRange{height:18px}
  html.studioOn body.has-image #cmpBar #cmpRange::-webkit-slider-thumb{width:16px !important;height:16px !important;border-width:2px !important;margin-top:-6px !important}
  html.studioOn body.has-image #cmpBar#cmpBar #cmpRange::-webkit-slider-runnable-track{height:3px !important}
  html.studioOn body.has-image #cmpBar#cmpBar #cmpRange::-moz-range-track{height:3px !important}
}

/* Build 376: studio polish */
@media (min-width:1000px){
  /* histogram chips: one tidy row */
  html.studioOn body.has-image #scopeMeta{flex-wrap:wrap !important;gap:6px 8px;align-items:center}
  html.studioOn body.has-image #scopeModeRow,html.studioOn body.has-image #clipToggle,html.studioOn body.has-image #cmykToggle{margin:0 !important}
  html.studioOn body.has-image #scopeMeta > *{flex:0 0 auto}
  html.studioOn body.has-image #scopeModeRow{order:1}
  html.studioOn body.has-image #clipToggle{order:2}
  html.studioOn body.has-image #cmykToggle{order:3}
  html.studioOn body.has-image #clipKey{order:4}
  /* one Reset all: the header's. The History one is a quiet link */
  #studioLeft .stBtns{margin-top:6px}
  #studioLeft .stBtns button#stReset{flex:0 0 auto;height:auto;padding:4px 0;border:0;background:none;color:var(--st-faint);font-size:12px;text-decoration:underline;text-underline-offset:3px}
  #studioLeft .stBtns button#stReset:hover{background:none;color:var(--st-text)}
  /* section reset icons: no box, appear on hover */
  html.studioOn body.has-image .stepHdr .ptResetBtn{border:0 !important;background:transparent !important;box-shadow:none !important;opacity:0;transition:opacity .15s}
  html.studioOn body.has-image .stepHdr:hover .ptResetBtn,html.studioOn body.has-image .stepHdr .ptResetBtn:focus-visible{opacity:.7}
  /* canvas sits on a lifted mat so the photo has an edge against the black panels */
  html.studioOn body.has-image #cw{background:#0e0e11 !important}
  html.studioOn body.has-image #holdHint{background:transparent !important}
  /* header: file name centred between the left and right tools */
  html.studioOn body.has-image .toolbar #studioFile{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);order:unset;margin:0;pointer-events:none;text-align:center}
}

/* Build 378: zoom control, export tab, tighter left panel */
@media (min-width:1000px){
  html.studioOn body.has-image #zoomBadge{display:none !important}
  #stZoom{display:none}
  html.studioOn body.has-image #stZoom{display:flex;position:absolute;right:14px;bottom:14px;z-index:12;height:36px;border-radius:18px;background:rgba(10,10,12,.84);border:1px solid var(--st-hair2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 6px 18px rgba(0,0,0,.55);overflow:hidden}
  #stZoom button{min-width:36px;padding:0 10px;border:0;background:none;color:var(--st-dim);font:500 15px/1 ui-sans-serif,system-ui,sans-serif;cursor:pointer}
  #stZoom button#stZf{min-width:52px;font-size:12px;letter-spacing:.04em;border-left:1px solid var(--st-hair);border-right:1px solid var(--st-hair)}
  #stZoom button:hover{color:var(--st-text);background:rgba(255,255,255,.06)}
  /* Export tab: a section header like the others, and a button that fits the panel */
  html.studioOn body.has-image #exportSection#exportSection > summary.secHead{font:600 11px/1 ui-sans-serif,system-ui,sans-serif !important;letter-spacing:.14em !important;text-transform:uppercase !important;color:var(--st-dim) !important;min-height:34px !important;padding:0 14px !important}
  html.studioOn body.has-image #exportSection#exportSection > summary.secHead > span{text-transform:uppercase !important;letter-spacing:.14em !important;font:inherit !important}
  html.studioOn body.has-image #bDl.keyBtn{width:calc(100% - 28px) !important;max-width:none !important;box-sizing:border-box !important;margin-left:14px !important;margin-right:14px !important}
  /* left panel: a little tighter, so the Aerochrome section clears the fold on a laptop */
  #studioLeft #stSpecCv{height:96px}
  #studioLeft .stB,#studioLeft #stChanHome > details > .dBody{padding:10px 14px 12px}
  #studioLeft .stLead{margin-bottom:8px}
  #studioLeft .stCards{margin-bottom:10px}
  #studioLeft .stComp{gap:6px}
}

/* Build 379: left panel denser, Aerochrome trichrome open */
@media (min-width:1000px){
  #studioLeft .stLead{font-size:12.5px;line-height:1.4;margin-bottom:8px}
  #studioLeft .stCards{gap:4px;margin-bottom:8px}
  #studioLeft .stCards div{padding:5px 2px 4px}
  #studioLeft .stCards small{margin-bottom:2px;font-size:9.5px}
  #studioLeft .stComp{gap:5px}
  #studioLeft #stSpecCv{height:84px}
  #studioLeft .stKey{margin-top:6px;gap:3px 10px}
  #studioLeft .stHist{max-height:112px}
  #studioLeft .stBtns{margin-top:2px}
  #studioLeft .stBtns button#stReset{padding:2px 0}
  #studioLeft #stSpecPick > details{margin-bottom:8px}
}

/* Build 380: depth, type and motion polish for the studio */
@media (min-width:1000px){
  html.studioOn body.has-image{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
  /* the canvas: a soft pool of light behind the photo instead of a flat fill */
  html.studioOn body.has-image #cw{background:radial-gradient(ellipse 70% 62% at 50% 46%,#17171c 0%,#0f0f12 62%,#0a0a0c 100%) !important}
  html.studioOn body.has-image #previewWrap{box-shadow:0 40px 90px -26px rgba(0,0,0,.85),0 14px 30px -14px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.07) !important}
  /* panels read as layers: a hairline of light on the edge facing the photo, and on each section header */
  html.studioOn body.has-image #studioLeft{box-shadow:inset -1px 0 0 rgba(255,255,255,.05)}
  html.studioOn body.has-image #studioHead{box-shadow:0 1px 0 rgba(255,255,255,.03),0 10px 18px -14px rgba(0,0,0,.8)}
  #studioLeft .stH,html.studioOn body.has-image .stepHdr,html.studioOn body.has-image details.dGrp > summary{box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
  /* numbers keep their width so a slider readout does not jitter while you drag */
  html.studioOn body.has-image .sl label b,html.studioOn body.has-image .stCP,html.studioOn body.has-image .stCards span,html.studioOn body.has-image #zoomLevel,#stZoom button{font-variant-numeric:tabular-nums}
  /* one easing for every hover and press */
  html.studioOn body.has-image button,html.studioOn body.has-image summary,html.studioOn body.has-image .stHI,html.studioOn body.has-image .pb{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,opacity .16s ease}
  html.studioOn body.has-image button:active:not(:disabled){transform:translateY(.5px)}
  html.studioOn body.has-image input[type=range]::-webkit-slider-thumb{transition:transform .12s ease,box-shadow .12s ease}
  html.studioOn body.has-image input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.12)}
  html.studioOn body.has-image input[type=range]:active::-webkit-slider-thumb{transform:scale(1.2);box-shadow:0 0 0 6px rgba(214,58,58,.18)}
  /* panels open and close with a short fade rather than snapping */
  @keyframes stOpen{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
  html.studioOn body.has-image details[open] > :not(summary){animation:stOpen .18s ease both}
}
@media (prefers-reduced-motion:reduce){html.studioOn body.has-image *{animation:none !important;transition:none !important}}

/* Build 382: landing page, desktop: a real drop zone and matching secondary rows */
@media (min-width:1000px){
 /* drop zone */
 #emptyStateGroup#emptyStateGroup.lab .labTerm{display:flex !important;flex-direction:column;gap:10px;align-items:stretch}
 #emptyStateGroup#emptyStateGroup.lab .labGo.ltPrompt{display:flex !important;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:150px !important;border:1.5px dashed rgba(255,255,255,.22) !important;border-radius:14px !important;background:rgba(255,255,255,.02) !important;color:#f1ede6 !important;cursor:pointer;transition:border-color .16s,background .16s}
 #emptyStateGroup#emptyStateGroup.lab .labGo.ltPrompt:hover{border-color:#d63a3a !important;background:rgba(214,58,58,.06) !important}
 #emptyStateGroup#emptyStateGroup.lab .labGo.ltPrompt .ltCmd{font:500 20px/1.1 Inter,system-ui,sans-serif !important;letter-spacing:0 !important;text-transform:none !important}
 #emptyStateGroup#emptyStateGroup.lab .labGo.ltPrompt::after{content:'or drop a photo here';font:400 13px/1 Inter,system-ui,sans-serif;color:#8a867d}
 #emptyStateGroup#emptyStateGroup.lab .labFmtChip{margin-top:12px;text-align:left !important;font:500 11.5px/1 ui-monospace,Menlo,monospace;letter-spacing:.08em;color:#8a867d}
 /* secondary rows: one style */
 #emptyStateGroup#emptyStateGroup.lab #triStart,#emptyStateGroup#emptyStateGroup.lab #plGo{display:flex !important;align-items:center;justify-content:space-between;width:100%;height:50px;padding:0 16px !important;border:1px solid rgba(255,255,255,.12) !important;border-radius:10px !important;background:rgba(255,255,255,.02) !important;color:#e4e0d8 !important;font:500 14px/1 Inter,system-ui,sans-serif !important;text-align:left !important;cursor:pointer}
 #emptyStateGroup#emptyStateGroup.lab #triStart:hover,#emptyStateGroup#emptyStateGroup.lab #plGo:hover{border-color:rgba(255,255,255,.3) !important;background:rgba(255,255,255,.05) !important}
 #emptyStateGroup#emptyStateGroup.lab #triStart::after,#emptyStateGroup#emptyStateGroup.lab #plGo::after{content:'\2192';color:#8a867d}
 #emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool{display:flex !important;align-items:center;justify-content:space-between;height:50px;padding:0 16px !important;border:1px solid rgba(255,255,255,.12) !important;border-radius:10px !important;background:rgba(255,255,255,.02) !important;color:#e4e0d8 !important;text-align:left !important;text-decoration:none}
 #emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool .flTitle{display:flex !important;width:100%;justify-content:space-between !important;font:500 14px/1 Inter,system-ui,sans-serif !important}

 #emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool .flArrow{display:inline !important;color:#8a867d}
 #emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool .flTitle::after,#emptyStateGroup#emptyStateGroup.lab #triStart .triDots,#emptyStateGroup#emptyStateGroup.lab #plGo::before{display:none !important}
 #emptyStateGroup#emptyStateGroup.lab .labTerm{margin-bottom:6px}

 #emptyStateGroup#emptyStateGroup.lab .labTerm{display:contents !important}
 #emptyStateGroup#emptyStateGroup.lab #dropzone .labPanel{display:flex !important;flex-direction:column !important;gap:10px !important;height:auto !important}
 #emptyStateGroup#emptyStateGroup.lab .labGo.ltPrompt{order:1}
 #emptyStateGroup#emptyStateGroup.lab .labLoadRow{order:2;margin:0 !important;height:auto !important}
 #emptyStateGroup#emptyStateGroup.lab .labFmtChip{height:auto !important;margin:2px 0 6px !important;padding:0 !important;justify-content:flex-start !important}
 #emptyStateGroup#emptyStateGroup.lab #triStart{order:3;margin:0 !important}
 #emptyStateGroup#emptyStateGroup.lab .labGo.ltPrompt::after{display:block !important}
 #emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool{flex-direction:row !important}
 #emptyStateGroup#emptyStateGroup.lab #triStart > *{--x:1}

 #emptyStateGroup#emptyStateGroup.lab #triStart::after,#emptyStateGroup#emptyStateGroup.lab #plGo::after{position:static !important;width:auto !important;height:auto !important;background:none !important;border-radius:0 !important;box-shadow:none !important;animation:none !important;margin:0 !important;font-size:14px}
 #emptyStateGroup#emptyStateGroup.lab .labGo.ltPrompt .ltCmd::after{content:'or drop a photo here';display:block;margin-top:8px;font:400 13px/1 Inter,system-ui,sans-serif;color:#8a867d;text-align:center}
 #emptyStateGroup#emptyStateGroup.lab #landingLinks{margin-top:10px !important}

 #emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool .flTitle{color:#e4e0d8 !important;font-weight:500 !important}
 #emptyStateGroup#emptyStateGroup.lab .labGo.ltPrompt .ltCmd{text-align:center;display:block}
}

/* Build 383: right panel calmer. Section headers lose their heavy bars, tabs and header icons share one weight */
@media (min-width:1000px){
  html.studioOn body.has-image #reorderZone#reorderZone .dGrp > summary,html.studioOn body.has-image #reorderZone#reorderZone .stepPanel > summary.stepHdr,html.studioOn body.has-image #reorderZone#reorderZone details > summary.secHead{
    background:transparent !important;border:0 !important;border-top:1px solid var(--st-hair) !important;box-shadow:none !important;height:40px !important;min-height:40px !important;padding:0 16px !important}
  html.studioOn body.has-image #reorderZone#reorderZone .dGrp{border:0 !important;background:transparent !important}
  html.studioOn body.has-image #reorderZone#reorderZone .dGrp > summary .dT,html.studioOn body.has-image #reorderZone#reorderZone .stepPanel > summary.stepHdr,html.studioOn body.has-image #reorderZone#reorderZone .stepPanel > summary.stepHdr > span{
    font:600 11.5px/1 ui-sans-serif,system-ui,sans-serif !important;letter-spacing:.11em !important;text-transform:uppercase !important;color:#b9b5ac !important}
  html.studioOn body.has-image #reorderZone#reorderZone .dGrp[open] > summary .dT,html.studioOn body.has-image #reorderZone#reorderZone .stepPanel[open] > summary.stepHdr > span{color:#f1ede6 !important}
  html.studioOn body.has-image #reorderZone#reorderZone .dGrp > summary:hover .dT{color:#f1ede6 !important}
  /* one thin chevron, turning when open, in place of the filled triangles */
  html.studioOn body.has-image #reorderZone#reorderZone .dGrp > summary::after{content:'' !important;width:6px !important;height:6px !important;border:solid #6f6c66 !important;border-width:0 1.5px 1.5px 0 !important;margin:0 4px 3px 8px !important;font-size:0 !important;transform:rotate(45deg) !important;transition:transform .16s ease,border-color .16s ease !important}
  html.studioOn body.has-image #reorderZone#reorderZone .dGrp[open] > summary::after{transform:rotate(-135deg) !important;margin-bottom:-1px !important;border-color:#b9b5ac !important}
  /* the little state ring: smaller and quieter until the group has something changed in it */
  html.studioOn body.has-image #reorderZone#reorderZone .dGrp > summary .dDot{width:7px !important;height:7px !important;border-width:1.5px !important;border-color:#55534e !important}
  /* sliders: slimmer track, softer thumb, readout without the dotted underline until hovered */
  html.studioOn body.has-image #reorderZone#reorderZone .sl:not(.wb) input[type=range]::-webkit-slider-runnable-track{height:3px !important}
  html.studioOn body.has-image #reorderZone#reorderZone .sl label b{text-decoration:none !important;border-bottom:1px dotted transparent !important;transition:border-color .16s ease}
  html.studioOn body.has-image #reorderZone#reorderZone .sl label b:hover{border-bottom-color:#8a867d !important}
  html.studioOn body.has-image #reorderZone#reorderZone .sl label{font-size:13px;color:#a8a49b}
  /* icons: the tab icons and the top-bar icons at one size and weight */
  #dock button svg,.toolbar .stHdrTog svg,.toolbar button svg{stroke-width:1.6 !important}
  #dock button svg{width:20px;height:20px}
  html.studioOn body.has-image #reorderZone#reorderZone .stepPanel > summary .stepArrow{font-size:9px !important;color:#6f6c66 !important}
  html.studioOn body.has-image #reorderZone#reorderZone .stepPanel > summary .stepChip{display:none !important}
  html.studioOn body.has-image #exportSection#exportSection > summary.secHead,html.studioOn body.has-image #exportSection#exportSection > summary.secHead > span{color:#b9b5ac !important}
}

/* Build 384: left panel headers match the right, one-row scopes control, rounded swap buttons, grouped top bar */
html:not(.studioOn):not(.dockOn) [data-step="wb"] .stepChip + span{margin-left:.4em}
@media (min-width:1000px){
  /* 1. left panel: the same header as the right panel */
  #studioLeft .stH,#studioLeft #stChanHome > details > summary{height:40px !important;padding:0 16px !important;background:transparent !important;border:0 !important;border-top:1px solid var(--st-hair) !important;box-shadow:none !important;
    font:600 11.5px/1 ui-sans-serif,system-ui,sans-serif !important;letter-spacing:.11em !important;color:#b9b5ac !important}
  #studioLeft details[open] > .stH,#studioLeft #stChanHome > details[open] > summary,#studioLeft .stH:hover{color:#f1ede6 !important}
  #studioLeft details.stSec:first-of-type > .stH{border-top:0 !important}
  #studioLeft .stH::before,#studioLeft #stChanHome > details > summary::before{order:5;width:6px !important;height:6px !important;border:solid #6f6c66 !important;border-width:0 1.5px 1.5px 0 !important;margin:0 4px 3px 8px;transform:rotate(45deg) !important;transition:transform .16s ease,border-color .16s ease}
  #studioLeft details[open] > .stH::before,#studioLeft #stChanHome > details[open] > summary::before{transform:rotate(-135deg) !important;margin-bottom:-1px;border-color:#b9b5ac !important}
  #studioLeft .stN{margin-left:auto}
  #studioLeft .stN + *{margin-left:0}
  #studioLeft #stChanHome > details > summary{display:flex}
  #studioLeft .stH:not(:has(.stN))::before,#studioLeft #stChanHome > details > summary::before{margin-left:auto}
  /* 3. scopes: Histogram | Parade as one joined control, then two small toggles, all on one row */
  html.studioOn body.has-image #scopeMeta{flex-wrap:nowrap !important;gap:8px !important}
  html.studioOn body.has-image #scopeModeRow{gap:0 !important;margin:0 !important}
  html.studioOn body.has-image #scopeModeRow button.btnGhostSmall{border-radius:0 !important;min-height:28px;padding:4px 12px;margin-left:-1px}
  html.studioOn body.has-image #scopeModeRow button.btnGhostSmall:first-child{border-radius:7px 0 0 7px !important;margin-left:0}
  html.studioOn body.has-image #scopeModeRow button.btnGhostSmall:last-child{border-radius:0 7px 7px 0 !important}
  html.studioOn body.has-image #scopeModeRow button.btnGhostSmall.on{position:relative;z-index:1}
  html.studioOn body.has-image #clipToggle,html.studioOn body.has-image #cmykToggle{padding:4px 10px !important;white-space:nowrap}
  /* 4. swap and view buttons: rounded cards with a clear selected state */
  html.studioOn body.has-image #matrixDetails .swapRow{gap:6px !important;border:0 !important;margin:8px 0 14px !important}
  html.studioOn body.has-image #matrixDetails .swapRow .swapBtn{min-height:44px;border:1px solid var(--st-hair2) !important;border-radius:9px !important;background:rgba(255,255,255,.02) !important;box-shadow:none !important;color:#b9b5ac !important;transition:border-color .16s ease,background-color .16s ease,color .16s ease}
  html.studioOn body.has-image #matrixDetails .swapRow .swapBtn:hover{border-color:#5a5852 !important;color:#f1ede6 !important}
  html.studioOn body.has-image #matrixDetails .swapRow .swapBtn.on{background:rgba(214,58,58,.12) !important;border-color:rgba(214,58,58,.7) !important;color:#f1ede6 !important;box-shadow:none !important}
  /* 5. top bar: tools grouped with a hairline between groups */
  html.studioOn body.has-image .toolbar #bReset{margin-left:20px}
  html.studioOn body.has-image .toolbar .ptTools{margin-left:20px}
  html.studioOn body.has-image .toolbar #filterDbBtn{margin-left:20px}
  html.studioOn body.has-image .toolbar #stHdrR{margin-left:20px}
  html.studioOn body.has-image .toolbar #bReset,html.studioOn body.has-image .toolbar .ptTools,html.studioOn body.has-image .toolbar #filterDbBtn,html.studioOn body.has-image .toolbar #stHdrR{position:relative}
  html.studioOn body.has-image .toolbar #bReset::before,html.studioOn body.has-image .toolbar .ptTools::before,html.studioOn body.has-image .toolbar #filterDbBtn::before,html.studioOn body.has-image .toolbar #stHdrR::before{content:'';position:absolute;left:-11px;top:7px;bottom:7px;width:1px;background:var(--st-hair2)}
  /* the big step headers use the same thin chevron as the groups */
  html.studioOn body.has-image #reorderZone#reorderZone .stepPanel > summary .stepArrow{display:none !important}
  html.studioOn body.has-image #reorderZone#reorderZone .stepPanel > summary.stepHdr::after{content:'' !important;display:block !important;margin-left:auto;width:6px;height:6px;border:solid #6f6c66;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);transition:transform .16s ease,border-color .16s ease;position:static !important}
  html.studioOn body.has-image #reorderZone#reorderZone .stepPanel[open] > summary.stepHdr::after{transform:rotate(-135deg);border-color:#b9b5ac;margin-top:5px}
  html.studioOn body.has-image #reorderZone#reorderZone .stepPanel > summary.stepHdr{align-items:center !important}
  html.studioOn body.has-image #reorderZone#reorderZone .stepPanel > summary.stepHdr::after{background:none !important;box-shadow:none !important;opacity:1 !important;top:auto !important;right:auto !important;left:auto !important;bottom:auto !important;animation:none !important;border-radius:0 !important}
}

/* Build 385: top of the right panel as one block, quieter buttons, grey pickers flattened, Export tab finished */
@media (min-width:1000px){
  /* 1. histogram, controls and tabs read as one unit */
  html.studioOn body.has-image #studioHead #histogram,html.studioOn body.has-image #studioHead canvas#histogram{border-radius:9px;border:1px solid var(--st-hair2)}
  html.studioOn body.has-image #studioHead > #dock{background:transparent !important;border:0 !important;border-top:1px solid var(--st-hair) !important;border-bottom:1px solid var(--st-hair) !important;margin-top:10px}
  html.studioOn body.has-image #studioHead > #dock button.on::before,html.studioOn body.has-image #dock button.on::before{left:18px !important;right:18px !important;top:auto !important;bottom:0 !important;width:auto !important;height:2px !important;border-radius:2px 2px 0 0 !important}
  html.studioOn body.has-image #studioHead > #dock button{color:#8a867d}
  html.studioOn body.has-image #studioHead > #dock button:hover{color:#d6d2c9;background:transparent}
  html.studioOn body.has-image #studioHead > #dock button.on{color:#f1ede6 !important;background:transparent !important}
  /* 2. the small ghost buttons share one look */
  html.studioOn body.has-image .ptAutoBtn,html.studioOn body.has-image .ptResetBtn,html.studioOn body.has-image #btnAuto,html.studioOn body.has-image .btnGhostSmall:not(#scopeModeRow .btnGhostSmall){height:28px;min-height:28px;padding:0 11px;border:1px solid var(--st-hair2) !important;border-radius:7px !important;background:rgba(255,255,255,.025) !important;color:#c9c5bc !important;font:500 12px/1 ui-sans-serif,system-ui,sans-serif;box-shadow:none !important}
  html.studioOn body.has-image .ptAutoBtn:hover,html.studioOn body.has-image #btnAuto:hover{border-color:#5a5852 !important;color:#f1ede6 !important}
  /* 3. grey pickers: rows on the panel, not a card inside a card */
  html.studioOn body.has-image #reorderZone#reorderZone .wbSlim{border:0 !important;background:transparent !important;margin:6px 0 4px !important;padding:0 16px !important}
  html.studioOn body.has-image #reorderZone#reorderZone .wbSlim .wbSlimHd{margin:6px 0 8px}
  html.studioOn body.has-image #reorderZone#reorderZone .wbSlim .wbSlimT{font:600 11.5px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:#b9b5ac}
  html.studioOn body.has-image #reorderZone#reorderZone .wbSlim .wbRow{border:0 !important;border-top:1px solid var(--st-hair) !important;padding:10px 0 !important}
  html.studioOn body.has-image #reorderZone#reorderZone .wbSlim .wbIco{width:34px !important;height:34px !important;border:1px solid var(--st-hair2) !important;border-radius:8px !important;background:rgba(255,255,255,.025) !important}
  html.studioOn body.has-image #reorderZone#reorderZone .wbSlim > .dGrp,html.studioOn body.has-image #reorderZone#reorderZone .wbSlim > #wbTempGrp{border:0 !important;border-radius:0 !important;margin:4px -16px 0 !important}
  /* 4. Export: custom radios and checkboxes, calmer help text, one strong button */
  html.studioOn body.has-image #exportSection input[type=radio],html.studioOn body.has-image #exportSection input[type=checkbox]{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin:0 8px 0 0;flex:none;border:1.5px solid #5a5852;background:transparent;display:inline-grid;place-content:center;vertical-align:-3px;cursor:pointer;transition:border-color .16s ease,background-color .16s ease}
  html.studioOn body.has-image #exportSection input[type=radio]{border-radius:50%}
  html.studioOn body.has-image #exportSection input[type=checkbox]{border-radius:4px}
  html.studioOn body.has-image #exportSection input[type=radio]::after{content:'';width:8px;height:8px;border-radius:50%;background:#d63a3a;transform:scale(0);transition:transform .14s ease}
  html.studioOn body.has-image #exportSection input[type=checkbox]::after{content:'';width:9px;height:5px;border:solid #f1ede6;border-width:0 0 2px 2px;transform:rotate(-45deg) translate(1px,-1px) scale(0);transition:transform .14s ease}
  html.studioOn body.has-image #exportSection input[type=radio]:checked{border-color:#d63a3a}
  html.studioOn body.has-image #exportSection input[type=radio]:checked::after{transform:scale(1)}
  html.studioOn body.has-image #exportSection input[type=checkbox]:checked{border-color:#d63a3a;background:#d63a3a}
  html.studioOn body.has-image #exportSection input[type=checkbox]:checked::after{transform:rotate(-45deg) translate(1px,-1px) scale(1)}
  html.studioOn body.has-image #exportSection input[type=radio]:hover,html.studioOn body.has-image #exportSection input[type=checkbox]:hover{border-color:#8a867d}
  html.studioOn body.has-image #exportSection .note,html.studioOn body.has-image #exportSection p.note{font-size:11.5px !important;line-height:1.5 !important;color:#7f7b73 !important}
  html.studioOn body.has-image #bDl.keyBtn{background:#d63a3a !important;border-color:#d63a3a !important;color:#fff !important;border-radius:10px !important;transition:background-color .16s ease,border-color .16s ease}
  html.studioOn body.has-image #bDl.keyBtn:hover{background:#e04a4a !important;border-color:#e04a4a !important}
  html.studioOn body.has-image #bDl.keyBtn svg{stroke:#fff}
  /* 5. the two pills as a pair */
  html.studioOn body.has-image #cw > #cmpBar#cmpBar,html.studioOn body.has-image #stZoom{border:1px solid rgba(255,255,255,.1) !important;background:rgba(10,10,12,.84) !important;height:36px}
  /* 6. history: a clearer current step */
  #studioLeft .stHI{height:30px}
  #studioLeft .stHI.on{font-weight:600;color:#f1ede6}
  #studioLeft .stHI i{color:#6f6c66}
  /* 7. the canvas as a framed mat */
  html.studioOn body.has-image #cw{border-radius:12px !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04) !important}
}

/* Build 386: the lists and forms inside the groups */
@media (min-width:1000px){
  /* look and preset cards: rounded, quiet, a clear selected state */
  html.studioOn body.has-image #reorderZone#reorderZone .pb{border:1px solid var(--st-hair2) !important;border-left:1px solid var(--st-hair2) !important;border-radius:9px !important;background:rgba(255,255,255,.02) !important;box-shadow:none !important;padding:10px 12px !important;transition:border-color .16s ease,background-color .16s ease}
  html.studioOn body.has-image #reorderZone#reorderZone .pb:hover{border-color:#5a5852 !important}
  html.studioOn body.has-image #reorderZone#reorderZone .pb.on{border-color:rgba(214,58,58,.7) !important;background:rgba(214,58,58,.1) !important}
  html.studioOn body.has-image #reorderZone#reorderZone .pgrid{gap:8px !important}
  /* dropdowns: dark, rounded, our own chevron */
  html.studioOn body.has-image #reorderZone select{-webkit-appearance:none;appearance:none;height:34px;padding:0 32px 0 12px;border:1px solid var(--st-hair2);border-radius:8px;color:#e4e0d8;font:400 13px/1 Inter,system-ui,sans-serif;cursor:pointer;
    background:#101114 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%238a867d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;transition:border-color .16s ease}
  html.studioOn body.has-image #reorderZone select:hover{border-color:#5a5852}
  html.studioOn body.has-image #reorderZone select:focus-visible{outline:2px solid rgba(214,58,58,.6);outline-offset:1px}
  /* tick boxes and radios everywhere in the right panel, not only Export */
  html.studioOn body.has-image #reorderZone input[type=radio],html.studioOn body.has-image #reorderZone input[type=checkbox]{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin:0 8px 0 0;flex:none;border:1.5px solid #5a5852;background:transparent;display:inline-grid;place-content:center;vertical-align:-3px;cursor:pointer;transition:border-color .16s ease,background-color .16s ease}
  html.studioOn body.has-image #reorderZone input[type=radio]{border-radius:50%}
  html.studioOn body.has-image #reorderZone input[type=checkbox]{border-radius:4px}
  html.studioOn body.has-image #reorderZone input[type=radio]::after{content:'';width:8px;height:8px;border-radius:50%;background:#d63a3a;transform:scale(0);transition:transform .14s ease}
  html.studioOn body.has-image #reorderZone input[type=checkbox]::after{content:'';width:9px;height:5px;border:solid #f1ede6;border-width:0 0 2px 2px;transform:rotate(-45deg) translate(1px,-1px) scale(0);transition:transform .14s ease}
  html.studioOn body.has-image #reorderZone input[type=radio]:checked{border-color:#d63a3a}
  html.studioOn body.has-image #reorderZone input[type=radio]:checked::after{transform:scale(1)}
  html.studioOn body.has-image #reorderZone input[type=checkbox]:checked{border-color:#d63a3a;background:#d63a3a}
  html.studioOn body.has-image #reorderZone input[type=checkbox]:checked::after{transform:rotate(-45deg) translate(1px,-1px) scale(1)}
  html.studioOn body.has-image #reorderZone input[type=radio]:hover,html.studioOn body.has-image #reorderZone input[type=checkbox]:hover{border-color:#8a867d}
  /* Aerochrome form: even rows, a clear gap under the button rows */
  html.studioOn body.has-image #ffDetails .ffRow{display:flex;align-items:center;gap:10px;margin:0 0 8px}
  html.studioOn body.has-image #ffDetails .ffRow:has(select){display:grid;grid-template-columns:84px minmax(0,1fr)}
  html.studioOn body.has-image #ffDetails .ffRow select{min-width:0;width:100%}
  html.studioOn body.has-image #ffDetails button{height:30px !important;min-height:30px !important;padding:0 14px !important;border:1px solid var(--st-hair2) !important;border-radius:8px !important;background:rgba(255,255,255,.025) !important;color:#e4e0d8 !important;font:500 12.5px/1 Inter,system-ui,sans-serif;cursor:pointer;transition:border-color .16s ease}
  html.studioOn body.has-image #ffDetails button:hover{border-color:#5a5852}
  html.studioOn body.has-image #dustDetails .dBody > :first-child{margin-bottom:12px}
  /* a little less air between a group header and its first control */
  html.studioOn body.has-image #reorderZone .dGrp > .dBody{padding-top:6px}
}

/* Build 387: the phone layout takes the desktop's control styling. Looks only: every touch target keeps its size. */
html.dockOn body.has-image #reorderZone#reorderZone .dGrp > summary::after{content:'' !important;width:7px !important;height:7px !important;border:solid #7a7770 !important;border-width:0 1.6px 1.6px 0 !important;margin:0 6px 4px 10px !important;font-size:0 !important;transform:rotate(45deg) !important;transition:transform .16s ease,border-color .16s ease !important}
html.dockOn body.has-image #reorderZone#reorderZone .dGrp[open] > summary::after{transform:rotate(-135deg) !important;margin-bottom:-2px !important;border-color:#c9c5bc !important}
/* tick boxes and radios */
html.dockOn body.has-image #reorderZone input[type=radio],html.dockOn body.has-image #reorderZone input[type=checkbox]{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin:0 10px 0 0;flex:none;border:1.5px solid #5a5852;background:transparent;display:inline-grid;place-content:center;vertical-align:-4px;cursor:pointer;transition:border-color .16s ease,background-color .16s ease}
html.dockOn body.has-image #reorderZone input[type=radio]{border-radius:50%}
html.dockOn body.has-image #reorderZone input[type=checkbox]{border-radius:5px}
html.dockOn body.has-image #reorderZone input[type=radio]::after{content:'';width:10px;height:10px;border-radius:50%;background:#d63a3a;transform:scale(0);transition:transform .14s ease}
html.dockOn body.has-image #reorderZone input[type=checkbox]::after{content:'';width:11px;height:6px;border:solid #f1ede6;border-width:0 0 2px 2px;transform:rotate(-45deg) translate(1px,-1px) scale(0);transition:transform .14s ease}
html.dockOn body.has-image #reorderZone input[type=radio]:checked{border-color:#d63a3a}
html.dockOn body.has-image #reorderZone input[type=radio]:checked::after{transform:scale(1)}
html.dockOn body.has-image #reorderZone input[type=checkbox]:checked{border-color:#d63a3a;background:#d63a3a}
html.dockOn body.has-image #reorderZone input[type=checkbox]:checked::after{transform:rotate(-45deg) translate(1px,-1px) scale(1)}
/* dropdowns */
html.dockOn body.has-image #reorderZone select{-webkit-appearance:none;appearance:none;min-height:44px;padding:0 36px 0 12px;border:1px solid #2c2d33;border-radius:9px;color:#e4e0d8;font:400 15px/1 Inter,system-ui,sans-serif;
  background:#101114 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%238a867d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center}
html.dockOn body.has-image #ffDetails .ffRow{display:flex;align-items:center;gap:10px;margin:0 0 10px}
html.dockOn body.has-image #ffDetails .ffRow:has(select){display:grid;grid-template-columns:92px minmax(0,1fr)}
html.dockOn body.has-image #ffDetails .ffRow select{min-width:0;width:100%}
/* look cards and swap buttons */
html.dockOn body.has-image #reorderZone#reorderZone .pb{border:1px solid #2c2d33 !important;border-left:1px solid #2c2d33 !important;border-radius:10px !important;background:rgba(255,255,255,.02) !important;box-shadow:none !important}
html.dockOn body.has-image #reorderZone#reorderZone .pb.on{border-color:rgba(214,58,58,.7) !important;background:rgba(214,58,58,.1) !important}
html.dockOn body.has-image #reorderZone#reorderZone .pgrid{gap:8px !important}
html.dockOn body.has-image #matrixDetails .swapRow{gap:8px !important;border:0 !important}
html.dockOn body.has-image #matrixDetails .swapRow .swapBtn{border:1px solid #2c2d33 !important;border-radius:10px !important;background:rgba(255,255,255,.02) !important;box-shadow:none !important;color:#b9b5ac !important}
html.dockOn body.has-image #matrixDetails .swapRow .swapBtn.on{background:rgba(214,58,58,.12) !important;border-color:rgba(214,58,58,.7) !important;color:#f1ede6 !important;box-shadow:none !important}
/* grey pickers: rows, not a card inside a card */
html.dockOn body.has-image #reorderZone#reorderZone .wbSlim{border:0 !important;background:transparent !important;padding:0 2px !important}
html.dockOn body.has-image #reorderZone#reorderZone .wbSlim .wbRow{border:0 !important;border-top:1px solid #1f2024 !important}
html.dockOn body.has-image #reorderZone#reorderZone .wbSlim .wbIco{border:1px solid #2c2d33 !important;border-radius:10px !important;background:rgba(255,255,255,.025) !important}
html.dockOn body.has-image #reorderZone#reorderZone .wbSlim > .dGrp,html.dockOn body.has-image #reorderZone#reorderZone .wbSlim > #wbTempGrp{border:0 !important;border-top:1px solid #1f2024 !important;border-radius:0 !important}
/* small buttons and the Export button */
html.dockOn body.has-image #reorderZone .ptAutoBtn,html.dockOn body.has-image #reorderZone .ptResetBtn,html.dockOn body.has-image #reorderZone #btnAuto,html.dockOn body.has-image #reorderZone .btnGhostSmall{border:1px solid #2c2d33 !important;border-radius:9px !important;background:rgba(255,255,255,.025) !important;box-shadow:none !important}
html.dockOn body.has-image #dustDetails .btnGhostSmall{min-height:40px;padding:0 14px;font-size:13px}
html.dockOn body.has-image #exportSection .note,html.dockOn body.has-image #exportSection p.note{color:#7f7b73 !important}
html.dockOn body.has-image #bDl.keyBtn{background:#d63a3a !important;border-color:#d63a3a !important;color:#fff !important;border-radius:12px !important}
html.dockOn body.has-image #bDl.keyBtn svg{stroke:#fff}
html.dockOn body.has-image #ffDetails button{min-height:44px !important;padding:0 18px !important;border:1px solid #2c2d33 !important;border-radius:10px !important;background:rgba(255,255,255,.025) !important;color:#e4e0d8 !important}

/* Build 388: pop-ups in the studio style. The RAW decode card, messages. */
#decodeTipVeil{background:rgba(5,6,8,.62) !important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
#decodeTip#decodeTip{width:min(430px,calc(100vw - 32px));padding:24px 24px 20px;background:#141518;border:1px solid #2c2d33;border-top:1px solid #2c2d33;border-radius:16px;box-shadow:0 30px 80px -20px rgba(0,0,0,.8);font:400 13px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;scrollbar-width:thin}
#decodeTip#decodeTip #decodeTipT{font-size:17px;font-weight:600;letter-spacing:-.005em;color:#f1ede6}
#decodeTip#decodeTip .dtFile{margin-top:4px;font:500 11.5px/1.3 ui-monospace,Menlo,monospace;color:#8a867d}
#decodeTip#decodeTip .dtRow{margin-top:18px;padding-top:16px;border-top:1px solid #23242a}
#decodeTip#decodeTip .dtLbl{font-size:13.5px;font-weight:500;color:#e4e0d8}
#decodeTip#decodeTip .dtSeg{border:1px solid #2c2d33;border-radius:9px;padding:2px;background:#0d0e10;gap:2px}
#decodeTip#decodeTip .dtSeg button{min-height:32px;padding:0 13px;border-radius:7px;color:#8a867d;font-weight:500;transition:background-color .16s ease,color .16s ease}
#decodeTip#decodeTip .dtSeg button:hover{color:#e4e0d8}
#decodeTip#decodeTip .dtSeg button[aria-pressed="true"]{background:#2a2b31;color:#f1ede6;box-shadow:none}
#decodeTip#decodeTip .dtHint{margin-top:8px;font-size:12px;line-height:1.5;color:#7f7b73}
#decodeTip#decodeTip .dtNever{margin-top:16px;color:#a8a49b}
#decodeTip#decodeTip .dtNever input{-webkit-appearance:none;appearance:none;width:18px;height:18px;flex:none;border:1.5px solid #5a5852;border-radius:5px;background:transparent;display:inline-grid;place-content:center;cursor:pointer}
#decodeTip#decodeTip .dtNever input::after{content:'';width:10px;height:5px;border:solid #f1ede6;border-width:0 0 2px 2px;transform:rotate(-45deg) translate(1px,-1px) scale(0)}
#decodeTip#decodeTip .dtNever input:checked{border-color:#d63a3a;background:#d63a3a}
#decodeTip#decodeTip .dtNever input:checked::after{transform:rotate(-45deg) translate(1px,-1px) scale(1)}
#decodeTip#decodeTip .dtBtns{margin-top:20px;gap:10px}
#decodeTip#decodeTip .dtBtns button{min-width:96px;min-height:44px;padding:0 20px;border:1px solid #3d4048;border-radius:10px;font:600 14px/1 Inter,ui-sans-serif,system-ui,sans-serif;transition:background-color .16s ease,border-color .16s ease}
#decodeTip#decodeTip .dtBtns button:hover{border-color:#5a5852}
#decodeTip#decodeTip .dtBtns button.dtOk{background:#d63a3a;border-color:#d63a3a;color:#fff}
#decodeTip#decodeTip .dtBtns button.dtOk:hover{background:#e04a4a;border-color:#e04a4a}
#decodeTip#decodeTip button:focus-visible{outline:2px solid rgba(214,58,58,.7);outline-offset:2px}
#toast#toast{bottom:28px;padding:11px 18px;border:1px solid #2c2d33;border-left:1px solid #2c2d33;border-radius:10px;background:rgba(20,21,24,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 14px 40px -12px rgba(0,0,0,.8);font:500 13px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;color:#f1ede6;max-width:min(560px,calc(100vw - 32px))}
/* the RAW decode progress card: larger, in the studio style, with the three stages drawn as three bars */
#rawProg#rawProg{min-width:0;width:min(360px,calc(100vw - 32px));box-sizing:border-box;padding:20px 22px 20px;border:1px solid #2c2d33;border-radius:16px;background:#141518;color:#f1ede6;font:400 13px/1.45 Inter,ui-sans-serif,system-ui,sans-serif;box-shadow:0 30px 80px -20px rgba(0,0,0,.85),0 0 0 100vmax rgba(5,6,8,.5)}
#rawProg#rawProg .rpStage{font-size:15px;font-weight:600}
#rawProg#rawProg .rpTime{opacity:1;color:#8a867d;font:500 12px/1.6 ui-monospace,Menlo,monospace}
#rawProg#rawProg .rpSteps{opacity:1;color:#8a867d;font-size:12px;margin-top:3px}
#rawProg#rawProg .rpBar{display:none}
#rawProg .rpSeg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:16px}
#rawProg .rpSeg i{display:block;height:4px;border-radius:2px;background:#2a2b31;position:relative;overflow:hidden}
#rawProg[data-step="1"] .rpSeg i:nth-child(1),#rawProg[data-step="2"] .rpSeg i:nth-child(-n+2){background:#b9b5ac}
#rawProg[data-step="0"] .rpSeg i:nth-child(1)::after,#rawProg[data-step="1"] .rpSeg i:nth-child(2)::after,#rawProg[data-step="2"] .rpSeg i:nth-child(3)::after{content:'';position:absolute;top:0;bottom:0;width:45%;border-radius:2px;background:#d63a3a;animation:rpSlide 1.2s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){#rawProg .rpSeg i::after{animation:none !important;left:0;width:100% !important;opacity:.7}}
@media (min-width:1000px){html.studioOn body.has-image #toast#toast{bottom:66px}}

/* Build 389: the remaining square buttons inside the groups, even card heights */
html.studioOn body.has-image #reorderZone#reorderZone .swapBtn:not(#matrixDetails .swapRow .swapBtn),html.dockOn body.has-image #reorderZone#reorderZone .swapBtn:not(#matrixDetails .swapRow .swapBtn),
html.studioOn body.has-image #reorderZone#reorderZone #btnAddBand,html.dockOn body.has-image #reorderZone#reorderZone #btnAddBand{
  border:1px solid #2c2d33 !important;border-radius:8px !important;background:rgba(255,255,255,.025) !important;box-shadow:none !important;color:#c9c5bc !important;font-family:Inter,ui-sans-serif,system-ui,sans-serif !important;transition:border-color .16s ease,background-color .16s ease,color .16s ease}
html.studioOn body.has-image #reorderZone#reorderZone .swapBtn:not(#matrixDetails .swapRow .swapBtn):hover,html.studioOn body.has-image #reorderZone#reorderZone #btnAddBand:hover{border-color:#5a5852 !important;color:#f1ede6 !important}
html.studioOn body.has-image #reorderZone#reorderZone .swapBtn.on:not(#matrixDetails .swapRow .swapBtn),html.dockOn body.has-image #reorderZone#reorderZone .swapBtn.on:not(#matrixDetails .swapRow .swapBtn){background:rgba(214,58,58,.12) !important;border-color:rgba(214,58,58,.7) !important;color:#f1ede6 !important}
html.studioOn body.has-image #reorderZone#reorderZone #btnAddBand{height:32px;padding:0 14px}
html.studioOn body.has-image #reorderZone#reorderZone .pgrid,html.dockOn body.has-image #reorderZone#reorderZone .pgrid{align-items:stretch}
html.studioOn body.has-image #reorderZone#reorderZone .pgrid .pb,html.dockOn body.has-image #reorderZone#reorderZone .pgrid .pb{height:100%}

/* Build 394: panel rails, changed-slider markers, camera details line */
.stRail,#stInfo{display:none}
@media (min-width:1000px){
  html.studioOn body.has-image .stRail{position:absolute;top:50%;transform:translateY(-50%);z-index:12;flex-direction:column;gap:2px;padding:4px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(10,10,12,.84);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 6px 18px rgba(0,0,0,.55)}
  html.studioOn body.has-image #stRailL{left:12px}
  html.studioOn body.has-image #stRailR{right:12px}
  html.studioOn.stNoL body.has-image #stRailL,html.studioOn.stNoR body.has-image #stRailR{display:flex}
  .stRail button{display:grid;place-content:center;width:36px;height:36px;border:0;border-radius:10px;background:none;color:#a8a49b;cursor:pointer;transition:background-color .16s ease,color .16s ease}
  .stRail button:hover{background:rgba(255,255,255,.08);color:#f1ede6}
  .stRail button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  /* a moved slider: a small red dot before its name, the name brighter; the group header shows how many */
  html.studioOn body.has-image #reorderZone#reorderZone .sl.chg > label{color:#f1ede6}
  html.studioOn body.has-image #reorderZone#reorderZone .sl.chg > label::before{content:'';display:inline-block;width:5px;height:5px;margin:0 7px 2px 0;border-radius:50%;background:#d63a3a;vertical-align:middle}
  html.studioOn body.has-image #reorderZone#reorderZone .dGrp > summary .dT[data-chg]::after{content:attr(data-chg);display:inline-grid;place-content:center;min-width:16px;height:16px;margin-left:8px;padding:0 4px;border-radius:8px;background:rgba(214,58,58,.2);color:#f1ede6;font:600 10px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:0;vertical-align:1px}
  html.studioOn body.has-image #stInfo:not([hidden]){display:block;position:absolute;left:0;right:0;top:12px;z-index:5;text-align:center;font:500 11.5px/1 ui-monospace,Menlo,monospace;letter-spacing:.04em;color:#7f7b73;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 60px}
}

/* Build 395: one floating bar on the photo: compare | view | zoom */
#stBar{display:none}
@media (min-width:1000px){
  html.studioOn body.has-image #cw{--bw:min(760px,calc(100% - 28px))}
  html.studioOn body.has-image #stBar{display:flex;align-items:center;position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:11;width:var(--bw);height:44px;box-sizing:border-box;padding:0 6px;border:1px solid rgba(255,255,255,.1);border-radius:22px;background:rgba(12,12,14,.84);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 14px 40px -10px rgba(0,0,0,.8)}
  #stBar .stBarCmp{flex:1 1 0;min-width:0;height:100%}
  #stBar .stBarG{display:flex;align-items:center;gap:2px;height:28px;padding:0 8px;border-left:1px solid rgba(255,255,255,.1);flex:none}
  #stBar .stBarG button{height:30px;padding:0 10px;border:0;border-radius:15px;background:none;color:#b9b5ac;font:500 12.5px/1 Inter,ui-sans-serif,system-ui,sans-serif;white-space:nowrap;cursor:pointer;transition:background-color .16s ease,color .16s ease}
  #stBar .stBarG button:hover{color:#f1ede6;background:rgba(255,255,255,.06)}
  #stBar .stBarG button.on{background:rgba(255,255,255,.13);color:#f1ede6}
  #stBar #stZm,#stBar #stZp{min-width:30px;padding:0 6px;font-size:15px}
  #stBar #stZf{min-width:44px;font-variant-numeric:tabular-nums}
  html.studioOn body.has-image #stBar #stZoom{position:static !important;display:flex !important;height:28px !important;border:0 !important;border-left:1px solid rgba(255,255,255,.1) !important;border-radius:0 !important;background:none !important;box-shadow:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;overflow:visible !important}
  /* the compare control sits over the bar's first segment, with no box of its own */
  html.studioOn body.has-image #cw > #cmpBar#cmpBar{left:calc(50% - var(--bw) / 2 + 10px) !important;right:auto !important;bottom:20px !important;transform:none !important;width:calc(var(--bw) - 400px) !important;min-width:150px;height:36px !important;border:0 !important;background:none !important;box-shadow:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;z-index:12 !important}
  html.studioOn body.has-image #toast#toast{bottom:76px}
}
@media (min-width:1000px) and (max-width:1279px){
  /* narrow windows: the view switch stays in the Looks tab only, so the bar never crowds */
  html.studioOn body.has-image #stBar #stView{display:none}
  html.studioOn body.has-image #cw > #cmpBar#cmpBar{width:calc(var(--bw) - 170px) !important}
}
@media (min-width:1000px) and (max-width:1279px){
  /* the file line in the top bar ran under the undo buttons in narrow windows */
  html.studioOn body.has-image #studioFile{display:none}
}

/* Build 396: phone home page gets the desktop's menu rows (trichrome, filter database, planner) */
@media (max-width:999px){
  #emptyStateGroup#emptyStateGroup.lab #triStart,#emptyStateGroup#emptyStateGroup.lab #plGo,#emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool{display:flex !important;flex-direction:row !important;align-items:center;justify-content:space-between !important;width:100%;box-sizing:border-box;height:54px;min-height:0 !important;margin:0 !important;padding:0 16px !important;border:1px solid rgba(255,255,255,.12) !important;border-radius:12px !important;background:rgba(255,255,255,.025) !important;color:#e4e0d8 !important;font:500 15px/1 Inter,system-ui,sans-serif !important;text-align:left !important;text-decoration:none;cursor:pointer}
  #emptyStateGroup#emptyStateGroup.lab #triStart:active,#emptyStateGroup#emptyStateGroup.lab #plGo:active,#emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool:active{background:rgba(255,255,255,.07) !important;border-color:rgba(255,255,255,.3) !important}
  #emptyStateGroup#emptyStateGroup.lab #triStart::after,#emptyStateGroup#emptyStateGroup.lab #plGo::after{content:'\2192' !important;position:static !important;display:inline !important;width:auto !important;height:auto !important;margin:0 !important;background:none !important;border-radius:0 !important;box-shadow:none !important;animation:none !important;color:#8a867d;font-size:15px}
  #emptyStateGroup#emptyStateGroup.lab #triStart .triDots,#emptyStateGroup#emptyStateGroup.lab #triStart .ltCaret,#emptyStateGroup#emptyStateGroup.lab #plGo .ltCaret,#emptyStateGroup#emptyStateGroup.lab #plGo::before,#emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool .flTitle::after{display:none !important}
  #emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool .flTitle{display:flex !important;width:100%;align-items:center;justify-content:space-between !important;font:500 15px/1 Inter,system-ui,sans-serif !important;color:#e4e0d8 !important}
  #emptyStateGroup#emptyStateGroup.lab #landingLinks a.labTool .flArrow{display:inline !important;color:#8a867d}
  #emptyStateGroup#emptyStateGroup.lab #triStart{margin-top:22px !important}
  #emptyStateGroup#emptyStateGroup.lab #landingLinks{margin:10px 0 0 !important;padding:0 !important}
  #emptyStateGroup#emptyStateGroup.lab #planner{margin-top:10px !important;padding-top:0 !important}
}

/* Build 396: phone before/after control matches the desktop bar: one translucent pill, small caps labels, ring thumb */
@media (max-width:999px){
  html.dockOn body.has-image #previewSticky > #cmpBar#cmpBar{box-sizing:border-box;height:42px;margin:8px 12px 8px !important;padding:0 8px 0 16px !important;border:1px solid rgba(255,255,255,.1) !important;border-radius:21px !important;background:rgba(255,255,255,.035) !important;column-gap:12px !important}
  html.dockOn body.has-image #cmpBar#cmpBar .cmpBarLabels span{font:600 10px/1 ui-sans-serif,system-ui,sans-serif !important;letter-spacing:.12em !important;text-transform:uppercase;color:#d9d5cc !important}
  html.dockOn body.has-image #cmpBar#cmpBar #cmpRange{height:24px}
  html.dockOn body.has-image #cmpBar#cmpBar #cmpRange::-webkit-slider-runnable-track{background:#4a4a50 !important;height:3px !important;border-radius:2px}
  html.dockOn body.has-image #cmpBar#cmpBar #cmpRange::-moz-range-track{background:#4a4a50 !important;height:3px !important;border-radius:2px}
  html.dockOn body.has-image #cmpBar#cmpBar #cmpRange::-webkit-slider-thumb{width:20px !important;height:20px !important;border:2px solid #efe9e2 !important;border-radius:50% !important;background:#0a0a0b !important;margin-top:-8.5px !important}
  html.dockOn body.has-image #cmpBar#cmpBar #cmpRange::-moz-range-thumb{width:16px !important;height:16px !important;border:2px solid #efe9e2 !important;border-radius:50% !important;background:#0a0a0b !important}
  html.dockOn body.has-image #cmpBar#cmpBar #btnScopesToggle{width:32px;height:32px;border:0 !important;border-radius:16px !important;background:none !important}
}
