/* Editors stay inside the existing bounded, scrolling tray. */
.shade-control{min-width:0;margin:8px 0 12px}.shade-editor{padding:0;border:1px solid #425538;border-radius:12px;background:#202c27}.shade-editor>summary{display:flex;align-items:center;gap:9px;cursor:pointer;min-height:44px;padding:9px 12px;font-size:12px;color:#e8f0dd;list-style:none}.shade-editor>summary::after{content:'+';margin-left:auto;font-size:18px}.shade-editor[open]>summary::after{content:'−'}.shade-editor[open]{padding-bottom:4px}.shade-chip{display:inline-block;width:22px;height:22px;border-radius:6px;border:1px solid #9db189;flex-shrink:0}.shade-pick{display:flex;gap:10px;align-items:center;padding:8px 12px 14px}.shade-pick input[type=color]{width:58px;height:44px;border-radius:8px;padding:3px;background:#26352a;border:1px solid #567445}.shade-pick input[type=text]{width:100%;min-width:0;min-height:44px;background:#13201c;color:#e8f0dd;border:1px solid #567445;border-radius:9px;padding:9px 12px;font-size:16px}.shade-editor>.direct-range{margin:0 12px 12px}.shade-editor .direct-range label{font-size:12px}.shade-editor .direct-range-row{gap:8px}.shade-editor .direct-range-row button{width:36px;min-height:44px}.creative-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 14px}.creative-tabs button,.creative-frame-grid button{min-height:44px}.creative-frame-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:13px}.creative-frame-grid button{padding:7px 5px;font-size:11px}.creative-section[hidden]{display:none!important}.creative-section .direct-range{margin-bottom:14px}.creative-section>.direct-button{width:100%}#reshapeDesignButton{width:100%;margin-top:12px}#desktopReshapePhoto{width:100%;margin:8px 0}#photoTintColor[hidden]{display:none!important}.quick-swatches{grid-template-columns:repeat(8,minmax(0,1fr))!important}.quick-swatches button{min-height:32px}.shade-control input:focus-visible,.shade-editor>summary:focus-visible{outline:2px solid #c8fa63;outline-offset:2px}
@media(max-width:960px){.mobile-editor.direct-workflow #desktopReshapePhoto{display:none}.mobile-editor.direct-workflow #mobileContent .shade-editor{padding-top:0}.mobile-editor.direct-workflow #mobileContent .shade-editor>.direct-range{display:block!important}.mobile-editor.direct-workflow #mobileContent .quick-swatches{gap:6px}.mobile-editor.direct-workflow #mobileContent .shade-editor input{touch-action:pan-y}}

/* Spectrum and shade are the first controls; secondary controls fold away. */
.shade-editor[open]{display:flex;flex-direction:column}.shade-editor>summary{order:0}.shade-editor>.direct-range[data-color-axis=hue]{order:1}.shade-editor>.direct-range[data-color-axis=lightness]{order:2}.shade-editor>.shade-eyedropper{order:3}.shade-editor>.shade-pick{order:4}.shade-editor>.shade-more{order:5}
.shade-editor>.direct-range{margin:2px 12px 8px}.shade-editor .direct-range>div:first-child{margin-bottom:2px}.shade-editor .direct-range-row>button{width:44px;min-height:44px}.shade-pick{padding:8px 12px}.shade-more{margin:0 12px 10px;border-top:1px solid #41533b}.shade-more>summary{min-height:44px;display:flex;align-items:center;font-size:11px;color:#bdcdae;cursor:pointer}.shade-more .direct-range{margin-bottom:0}.shade-eyedropper{margin:2px 12px 4px;min-height:44px;font-size:12px}
.shade-control input.color-track{appearance:none;-webkit-appearance:none;height:44px;min-width:0;margin:0;background:transparent;cursor:pointer;accent-color:auto}
.color-track::-webkit-slider-runnable-track{height:16px;border-radius:10px;background:var(--color-track);border:1px solid #879077}
.color-track::-moz-range-track{height:16px;border-radius:10px;background:var(--color-track);border:1px solid #879077}
.color-track::-moz-range-progress{background:transparent}
.color-track::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:26px;height:26px;margin-top:-6px;border:3px solid #ffffff;border-radius:50%;background:#20262a;box-shadow:0 1px 5px #0008}
.color-track::-moz-range-thumb{width:20px;height:20px;border:3px solid #ffffff;border-radius:50%;background:#20262a;box-shadow:0 1px 5px #0008}
.color-track:disabled{opacity:.4;cursor:default}.quick-color>.quick-color-head,[data-background-body=canvas]>.custom-backdrop{display:none!important}
.background-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.background-choices button{min-height:44px;min-width:0;padding:8px 4px;font-size:11px}.background-choices button[data-background=custom]{background:linear-gradient(120deg,#714459,#37617e,#526d3d);color:#fff}
.canvas-background-launch{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:62px;width:62px;min-height:44px;align-self:center;flex-shrink:0;border:1px solid #4b5c40;border-radius:10px;background:#243029;color:#e5efd9;font-size:9px;line-height:12px;padding:4px;margin-left:7px}.canvas-background-chip{width:20px;height:17px;border-radius:4px;border:1px solid #a7b095}.canvas-background-chip.is-transparent{background:repeating-conic-gradient(#b7b7b7 0% 25%,#fff 0% 50%) 0 0/8px 8px}
.canvas-color-picker{position:absolute;top:8px;left:8px;right:8px;z-index:25;display:flex;align-items:center;gap:6px;padding:8px;border:1px solid #627653;border-radius:12px;background:#14201bf2;box-shadow:0 4px 20px #0007;color:#edf8e3}.canvas-color-picker[hidden],.canvas-color-loupe[hidden]{display:none!important}.canvas-color-caption{flex:1;min-width:0;display:grid;gap:5px}.canvas-color-caption strong{font-size:12px}.canvas-color-caption output{font-size:11px;line-height:15px}.canvas-color-picker button{min-width:52px;min-height:44px;padding:7px;border-radius:9px;font-size:11px}.canvas-color-picker button:not(.primary){background:#30432c}.canvas-color-picker .primary{min-width:65px}.canvas-color-loupe{position:fixed;z-index:100;width:104px;height:123px;border:2px solid #e7f5d6;border-radius:10px;background:#1b2420;padding:4px;pointer-events:none;box-shadow:0 4px 18px #0009}.canvas-color-loupe canvas{display:block;width:92px;height:92px;image-rendering:pixelated;background:repeating-conic-gradient(#bababa 0% 25%,#fff 0% 50%) 0 0/8px 8px}.canvas-color-loupe small{display:block;text-align:center;color:#fff;font-size:11px;line-height:17px}.canvas-color-crosshair{position:absolute;top:45px;left:45px;width:10px;height:10px;border:1px solid #fff;outline:1px solid #000}.picking-artwork-color #selectionUI,.picking-artwork-color #selectionActions{visibility:hidden}.picking-artwork-color #artboard{cursor:crosshair}
@media(max-width:960px){.mobile-editor #backgroundControls .background-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.mobile-editor #backgroundControls .background-choices [data-background=cream]{display:none}.mobile-editor #backgroundControls .background-choices button{font-size:10px}.mobile-editor #objectPicker{padding-right:8px}.mobile-editor .canvas-background-launch{width:58px;min-width:58px;margin-left:5px}.mobile-editor .shade-editor>.direct-range{margin-top:0;margin-bottom:4px}}
@media(max-width:960px){.mobile-editor.direct-workflow #objectPicker{height:48px;min-height:48px;flex-basis:48px;padding-top:1px;padding-bottom:1px}}
