.color-native-part{display:none!important}.color-part-tabs{display:flex;gap:8px;overflow-x:auto;padding:3px 2px 8px;scrollbar-width:thin}.color-part-tabs button,.color-undo,.color-editor-close{flex-shrink:0;min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-size:1rem;padding:10px 16px;cursor:pointer}.color-part-tabs button[aria-pressed=true]{background:var(--metal);color:#20211f;border-color:var(--metal)}.color-part-tabs .color-all-parts{border-style:dashed;margin-left:8px}.color-editing-row{display:flex;gap:12px;align-items:center;justify-content:space-between}.studio .color-editing-status{font-size:1rem;color:var(--ink);line-height:1.4;margin:8px 0;min-width:0}.color-undo:disabled{opacity:.4;cursor:default}.color-part-picker{position:sticky;top:0;z-index:2;background:var(--surface);padding-bottom:4px}.color-editor-launch{display:none}.color-editor-controls{min-width:0}.color-dialog-open{overflow:hidden}.color-editor:not([open]),.color-review:not([open]){display:none}.color-review-list{list-style:none;padding:0;margin:20px 0;display:grid;gap:0}.color-review-list li{display:grid;grid-template-columns:24px 1fr;column-gap:12px;border-bottom:1px solid var(--line);padding:14px 0;font-size:1rem;line-height:1.5}.color-review-list i{grid-row:1/3;width:24px;height:24px;border-radius:50%;border:1px solid #aaa;margin-top:4px}.color-review-list span{grid-column:2;color:var(--muted)}.color-review h2:focus{outline:none}.color-editor button:focus-visible,.color-part-tabs button:focus-visible,.color-undo:focus-visible{outline:3px solid var(--metal);outline-offset:2px}
@media(max-width:900px){
 .color-editor-launch{display:block}.color-editor-launch .button{width:100%}.color-editor-controls{display:none}.color-editor[open]{box-sizing:border-box;position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;padding:0;border:0;background:var(--surface);color:var(--ink);display:grid;grid-template-rows:auto minmax(120px,30dvh) minmax(0,1fr) auto;overflow:hidden;overscroll-behavior:none}
 .color-editor::backdrop{background:#20211f}.color-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line)}.color-editor-heading h2{margin:0;font-size:1.125rem;line-height:1.3}.color-editor-heading p{margin:3px 0 0;font-size:.875rem;color:var(--muted)}.color-editor-close{padding:8px 14px}.color-editor-preview{min-height:0;overflow:hidden}.color-editor-preview .studio-preview{position:static;height:100%;margin:0}.color-editor-preview #interactive-preview,.color-editor-preview .preview-frame,.color-editor-preview .print-canvas{height:100%!important;min-height:0}.color-editor-preview .preview-frame{border:0}.color-editor-preview #interactive-preview{position:relative}.color-editor-preview .studio-preview>#product-preview-switch,.color-editor-preview .studio-preview>figure,.color-editor-preview #interactive-preview>.preview-meta,.color-editor-preview #interactive-preview>.selection-status,.color-editor-preview #interactive-preview>.studio-note,.color-editor-preview #interactive-preview>#preview-copy-wrap,.color-editor-preview #interactive-preview>#skip-preview,.color-editor-preview .studio-preview>#source-model-note,.color-editor-preview .studio-preview>#color-preview-note{display:none!important}
 .color-editor-preview .camera-buttons{position:absolute;bottom:8px;right:8px;left:8px;justify-content:flex-end;margin:0;gap:5px;pointer-events:none}.color-editor-preview .camera-buttons button{min-height:36px;padding:6px 10px;background:#222820e8;pointer-events:auto;font-size:.875rem}.color-editor-preview #preview-status:not(:empty){position:absolute;top:4px;left:12px;right:12px;background:#20211fee;padding:8px;margin:0;font-size:.875rem}.color-editor-preview .preview-empty{padding:14px}.color-editor-preview .preview-empty img{display:none}.color-editor-preview .preview-empty p{margin:0;font-size:1rem;line-height:1.4}
 .color-editor-options{min-height:0;overflow:hidden;border-top:1px solid var(--line)}.color-editor .color-editor-controls{height:100%;display:flex;flex-direction:column;overflow:hidden;padding:10px 12px 0}.color-editor .color-part-picker{position:static;flex-shrink:0}.color-editor .color-part-tabs{padding-bottom:6px}.color-editor .color-editing-status{font-size:.9375rem;line-height:1.35;margin:4px 0}.color-editor .color-undo{min-height:40px;padding:8px 12px;font-size:.875rem}.color-editor #region-note,.color-editor #palette-name,.color-editor #palette-change:empty{display:none}.color-editor #palette-change{margin:4px 0;font-size:.875rem;line-height:1.3}.color-editor .palette-controls{padding:4px 0;flex-shrink:0}.color-editor .palette-controls label{margin:0;font-size:.875rem;display:flex;align-items:center;gap:10px}.color-editor .palette-controls input{min-height:40px;margin:0;padding:8px;font-size:1rem;width:0;flex:1}.color-editor .palette-filters{margin:8px 0 0;gap:6px}.color-editor .palette-filters button{min-height:40px;padding:6px 10px;font-size:.9375rem}.color-editor .palette-count{font-size:.875rem!important;line-height:1.35;margin:6px 0 0}.color-editor .palette-clear{min-height:36px;padding:4px 10px;font-size:.875rem;margin:5px 0 0}.color-editor .filament-list{min-height:0;flex:1;max-height:none;overflow-y:auto;overscroll-behavior:contain;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:min-content;align-content:start;margin:4px 0 0;padding:5px 4px 12px;scrollbar-gutter:stable}.color-editor .filament{min-height:78px;padding:10px 5px;gap:6px}.color-editor .filament span{font-size:.875rem;line-height:1.25}.color-editor .filament i{width:26px;height:26px}.color-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:var(--surface)}.color-editor-footer span{font-size:.875rem;color:var(--muted);max-width:120px;line-height:1.3}.color-editor-footer .button{padding:12px 18px;font-size:1rem;min-height:44px}
}
@media(max-width:900px) and (max-height:700px){.color-editor[open]{grid-template-rows:auto minmax(90px,23dvh) minmax(0,1fr) auto}.color-editor-heading{padding:6px 12px}.color-editor .color-part-tabs button{padding:8px 12px}.color-editor .palette-count{display:none}.color-editor-footer{padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}.color-editor .palette-clear{position:absolute;right:14px;z-index:3;background:var(--surface)}}
@media(max-width:900px) and (orientation:landscape) and (max-height:550px){.color-editor[open]{grid-template-columns:40% minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}.color-editor-heading,.color-editor-footer{grid-column:1/-1}.color-editor-preview{grid-column:1;grid-row:2}.color-editor-options{grid-column:2;grid-row:2}.color-editor .palette-controls label{display:none}.color-editor .color-editing-status{font-size:.875rem}.color-editor-footer span{max-width:none}}

.color-editor-footer{flex-direction:row;flex-wrap:nowrap;text-align:left;margin:0;min-height:0}.color-editor-footer .button{flex-shrink:0}

@media(max-width:900px){.color-editor[open]{height:var(--editor-height,100dvh)}.color-editor-short[open]{grid-template-rows:auto 80px minmax(0,1fr) auto}.color-editor-short .color-editor-options{overflow:auto}.color-editor-short .color-editor-controls{height:auto;overflow:visible}.color-editor-short .filament-list{flex:none;min-height:160px;max-height:240px}.color-editor-short .camera-buttons,.color-editor-short .color-editor-product,.color-editor-short .palette-count{display:none}}
/* Phone color editor (Austin 2026-11-04): heading + Indoor/Outdoor switch + 3D model stay pinned; everything from the
   part tabs down scrolls as ONE area; Review colors stays pinned. The list never gets its own scroller (that was the
   tiny-scroll-box bug). The model shrinks with the visible height (--editor-height = visualViewport, set by
   mobile-color-editor.js; dvh fallback) so the scrolling area keeps >= ~240px; the whole model stays in frame. */
@media(max-width:900px) and (orientation:portrait){
 .color-editor[open]{--editor-preview-h:clamp(88px,calc(var(--editor-height,100dvh) - 445px),300px);display:grid;grid-template-rows:auto var(--editor-preview-h) minmax(0,1fr) auto;overflow:hidden;overscroll-behavior:none}
 .color-editor-preview{min-height:0;height:auto}
 .color-editor-options{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .color-editor .color-editor-controls,.color-editor-short .color-editor-controls{height:auto;overflow:visible}
 .color-editor .filament-list,.color-editor-short .filament-list{flex:none;min-height:0;max-height:none;overflow:visible}
 .color-editor-footer{position:static}
}
@media(max-width:900px) and (orientation:portrait) and (max-height:700px){
 .color-editor-heading{padding:6px 12px;gap:6px}
 .color-editor-heading .material-switch-option{min-height:36px;padding:5px 8px}
}
@media(max-width:900px) and (orientation:portrait) and (max-height:760px){
 .color-editor-preview .camera-buttons{left:8px;right:8px;bottom:8px;display:grid;grid-template-columns:1fr 40px 40px;grid-template-rows:36px 36px;gap:4px}
 .color-editor-preview .camera-buttons button{min-height:36px;padding:4px 6px}
 .color-editor-preview #studio-left{grid-area:1/2}.color-editor-preview #studio-right{grid-area:1/3}
 .color-editor-preview #studio-in{grid-area:2/2}.color-editor-preview #studio-out{grid-area:2/3}
 .color-editor-preview #studio-reset{grid-area:2/1;justify-self:start;padding:4px 10px}
}
