/* nov03b (Camaron, Nov 3 batch). Loaded last.
   1 preview overlay buttons: one size, one inset, one row per corner (normal + full screen, 2D + 3D)
   2 one Full Screen control: the preview's top-right one (top-bar duplicate hidden; F key still works)
   3 full screen + controls: preview sits above the sheet (mobile.js publishes --m-sheet-top), nothing overlaps
   4 one shared translucent sheet / tab-bar glass for normal + full screen
   5 slim Controls dropdowns (match the number boxes)
   6 Color control: label + reset on one line, compact swatch grid, flat gradient editor */

:root { --ob: 36px; --ob-in: 8px; --ob-gap: 6px; --m-glass-bg: rgb(10 10 12 / .72); --m-glass-blur: blur(14px) saturate(1.15); --m-glass-line: rgb(255 255 255 / .12); }

/* ---- 2 */
/* t1529: app Full Screen button restored (64829d0 hid it as a "duplicate" of the preview Full Screen) */

/* ---- 1 phone + tablet, normal view */
html:is(.phone, .tablet) .canvas-wrap:not(.fs-on) :is(#fsBtn.fs-btn-view, .sbx-vo-gear, .sbx-vo-drift, #pvSeg.pv-seg) {
  width: var(--ob) !important; height: var(--ob) !important; min-width: var(--ob) !important; min-height: var(--ob) !important;
  padding: 0 !important; border-radius: 2px !important; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
}
html:is(.phone, .tablet) .canvas-wrap:not(.fs-on) #fsBtn.fs-btn-view { top: var(--ob-in) !important; right: var(--ob-in) !important; left: auto !important; bottom: auto !important; }
html:is(.phone, .tablet) .canvas-wrap:not(.fs-on) .sbx-vo-gear { top: var(--ob-in) !important; right: calc(var(--ob-in) + var(--ob) + var(--ob-gap)) !important; left: auto !important; bottom: auto !important; }
html:is(.phone, .tablet) .canvas-wrap:not(.fs-on) #pvSeg.pv-seg { bottom: var(--ob-in) !important; left: var(--ob-in) !important; top: auto !important; right: auto !important; }
html:is(.phone, .tablet) .canvas-wrap:not(.fs-on) .sbx-vo-drift { bottom: var(--ob-in) !important; right: var(--ob-in) !important; top: auto !important; left: auto !important; }
html:is(.phone, .tablet) :is(#fsBtn, .sbx-vo-gear, .sbx-vo-drift, #pvSeg, .fs21-play, .cine-ui-btn) { position: absolute; }
html:is(.phone, .tablet) :is(#fsBtn, .sbx-vo-gear, .sbx-vo-drift, #pvSeg, .fs21-play, .cine-ui-btn)::after { content: ""; position: absolute; inset: -4px; }
html:is(.phone, .tablet) :is(#fsBtn, .sbx-vo-gear, .sbx-vo-drift, #pvSeg) svg { width: 15px !important; height: 15px !important; }
/* short (collapsed) preview: corner buttons would collide — keep only Full Screen + the 2D/3D toggle */
html:is(.phone, .tablet) .canvas-wrap.ob-short:not(.fs-on) :is(.sbx-vo-gear, .sbx-vo-drift) { display: none !important; }
html:is(.phone, .tablet) .canvas-wrap.ob-short:not(.fs-on) #pvSeg.pv-seg { bottom: auto !important; top: var(--ob-in) !important; }
/* transport row: one 44px row, 36px buttons */
html.phone #dock.dock { height: 44px !important; align-items: center !important; }
html.phone #dock :is(#playBtn, .mx-dock-more) { width: var(--ob) !important; height: var(--ob) !important; min-width: var(--ob) !important; min-height: var(--ob) !important; padding: 0 !important; border-radius: 2px !important; position: relative; flex: none; }
html.phone #dock :is(#playBtn, .mx-dock-more)::after { content: ""; position: absolute; inset: -4px; }
html.phone #dock #playBtn { margin-left: var(--ob-in) !important; }
html.phone #dock .mx-dock-more { margin-right: var(--ob-in) !important; }

/* ---- 1 full screen (phone + tablet): top-right row gear · Look Manager · Exit; bottom row play · 2D/3D · scrub · camera */
html:is(.phone, .tablet).pxl-cine { --fs-t: calc(12px + env(safe-area-inset-top, 0px)); --fs-r: calc(12px + env(safe-area-inset-right, 0px)); --fs-l: calc(12px + env(safe-area-inset-left, 0px)); --fs-b: calc(12px + env(safe-area-inset-bottom, 0px)); --fob: 40px; }
html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on :is(#fsBtn.fs-btn-view, .cine-ui-btn, .sbx-vo-gear, .sbx-vo-drift, #pvSeg.pv-seg, .fs21-play) {
  width: var(--fob) !important; height: var(--fob) !important; min-width: var(--fob) !important; min-height: var(--fob) !important; padding: 0 !important;
  border-radius: 2px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; flex-direction: row !important; margin: 0 !important;
}
html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on #fsBtn.fs-btn-view { top: var(--fs-t) !important; right: var(--fs-r) !important; left: auto !important; bottom: auto !important; font-size: 0 !important; }
html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on #fsBtn.fs-btn-view > :not(svg) { display: none !important; }
html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on .fs-btn.cine-ui-btn.cine-ui-btn { top: var(--fs-t) !important; right: calc(var(--fs-r) + var(--fob) + 8px) !important; left: auto !important; bottom: auto !important; }
html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on .sbx-vo-gear { top: var(--fs-t) !important; right: calc(var(--fs-r) + 2 * (var(--fob) + 8px)) !important; left: auto !important; bottom: auto !important; }
html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on .fs21-play { bottom: var(--fs-b) !important; left: var(--fs-l) !important; top: auto !important; right: auto !important; }
html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on #pvSeg.pv-seg { bottom: var(--fs-b) !important; left: calc(var(--fs-l) + var(--fob) + 8px) !important; top: auto !important; right: auto !important; }
html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on .sbx-vo-drift { bottom: var(--fs-b) !important; right: var(--fs-r) !important; top: auto !important; left: auto !important; }
html.phone.pxl-cine body .canvas-wrap.fs-on #stageBar.stage-bar {
  position: absolute !important; left: calc(var(--fs-l) + 2 * (var(--fob) + 8px)) !important; right: calc(var(--fs-r) + var(--fob) + 8px) !important;
  bottom: calc(var(--fs-b) + 13px) !important; top: auto !important; width: auto !important; height: 14px !important; box-sizing: border-box !important; margin: 0 !important;
}
html.phone.pxl-cine.cine-ui body .canvas-wrap.fs-on #stageBar.stage-bar { bottom: 21px !important; }
html:is(.phone, .tablet).pxl-cine .canvas-wrap.fs-on .fs21-hint { top: calc(var(--fs-t) + 52px) !important; }
html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on :is(#pvSeg, .fs21-play, .sbx-vo-drift, .sbx-vo-gear, .cine-ui-btn, #fsBtn) svg { margin: 0 !important; }

/* ---- 3 full screen + controls (phone): preview only above the sheet, so its buttons + transport row stay clear */
html.phone.pxl-cine.cine-ui body .canvas-wrap.fs-on { bottom: calc(100% - var(--m-sheet-top, 50%)) !important; height: auto !important; }
html.phone.pxl-cine.cine-ui body .canvas-wrap.fs-on :is(.fs21-play, #pvSeg.pv-seg, .sbx-vo-drift, #stageBar.stage-bar) { bottom: 8px !important; }
html.phone.pxl-cine.cine-ui .fs21-hint { display: none !important; }

/* ---- 4 one glass for sheet + tab bar, normal and full screen */
html.phone :is(.m-sheet, .m-tabs) { background: var(--m-glass-bg) !important; -webkit-backdrop-filter: var(--m-glass-blur) !important; backdrop-filter: var(--m-glass-blur) !important; border-color: var(--m-glass-line) !important; }
html.phone .m-tabs { border-top: 1px solid var(--m-glass-line) !important; }
html.phone .m-sheet .m-pane, html.phone .m-sheet .m-body { background: transparent !important; }
html.phone.pxl-cine.cine-ui :is(.m-tabs, .m-sheet) { background: var(--m-glass-bg) !important; }

/* ---- 5 slim dropdowns: 30px box like the number boxes, 44px tap area via ::after */
html.phone body .m-sheet .inspector .ctl .sel-pill, html.phone .inspector .ctl > .sel-pill,
html.phone .inspector .ctl:is(:has(> .toggle), :has(> .sel-pill), :has(> .color-pill), .fx-src) > .sel-pill {
  height: 30px !important; min-height: 30px !important; padding: 0 8px 0 10px !important; font-size: 13px !important; line-height: 1 !important;
  border-radius: 0 !important; gap: 6px !important; position: relative; white-space: nowrap; align-self: center;
}
html.phone .inspector .ctl .sel-pill::after { content: ""; position: absolute; inset: -7px 0; }
html.phone .inspector .ctl .sel-pill svg { width: 10px !important; height: 10px !important; margin-left: auto; flex: none; }
html.phone .inspector .ctl:has(> .sel-pill) { min-height: 44px !important; padding-top: 0 !important; padding-bottom: 0 !important; align-items: center !important; }
html:not(.phone):not(.tablet) .inspector .ctl > .sel-pill { height: calc(28px * var(--ui, 1)) !important; min-height: calc(28px * var(--ui, 1)) !important; }

/* ---- 6 Color: label + reset on one line, 6-col chips, flat gradient editor */
html.phone .inspector .ctl.ctl-enum:has(> .swatches) { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; grid-template-rows: auto auto !important; align-items: center !important; row-gap: 6px !important; column-gap: 8px !important; padding: 6px 0 8px !important; }
html.phone .inspector .ctl.ctl-enum:has(> .swatches) .lb { grid-column: 1; grid-row: 1; display: block !important; font-size: 13px; width: auto !important; writing-mode: horizontal-tb !important; white-space: nowrap !important; height: auto !important; word-break: normal !important; }
html.phone .inspector .ctl.ctl-enum:has(> .swatches) .reset { grid-column: 2 !important; grid-row: 1 !important; justify-self: end; margin: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; position: static !important; width: 28px !important; height: 28px !important; }
html.phone .inspector .ctl.ctl-enum:has(> .swatches) > .swatches { grid-column: 1 / -1 !important; grid-row: 2 !important; width: 100% !important; display: grid !important; grid-template-columns: repeat(6, minmax(0,1fr)) !important; gap: 6px !important; margin: 0 !important; }
html.phone .inspector .ctl.ctl-enum > .swatches > .pal { width: auto !important; height: 28px !important; min-height: 28px !important; border-radius: 0 !important; margin: 0 !important; position: relative; }
html.phone .inspector .ctl.ctl-enum > .swatches > .pal::after { content: ""; position: absolute; inset: -4px -1px; }
html.phone .inspector .ctl.ctl-enum > .swatches > :is(.pal.custom, .gx, .pal-hint, :not(.pal)) { grid-column: 1 / -1; }
html.phone .inspector .ctl.ctl-enum > .swatches > .pal.custom { height: 32px !important; }
html.phone .inspector .swatches .gx { border: 0 !important; background: none !important; padding: 4px 0 0 !important; margin: 0 !important; box-shadow: none !important; }
html.phone .inspector .swatches .gx :is(.gx-box, .gx-ed, .gx-inner) { border: 0 !important; padding: 0 !important; background: none !important; }
html.phone .inspector .swatches .gx-acts { padding: 0 !important; margin: 0 0 6px !important; gap: 6px !important; border: 0 !important; background: none !important; }
html.phone .inspector .swatches .gx-acts .gx-btn { height: 32px !important; min-height: 32px !important; width: auto !important; min-width: 32px !important; border-radius: 2px !important; position: relative; }
html.phone .inspector .swatches .gx-acts .gx-btn.gx-ico { width: 32px !important; }
html.phone .inspector .swatches .gx-acts .gx-btn::after { content: ""; position: absolute; inset: -6px -3px; }
html.phone .inspector .swatches .pal-hint { margin: 2px 0 0 !important; }

/* t1471u: the Color row's empty value slot made an implicit 3rd grid column, so reset sat 36px right of the chip grid's edge and the chips/gradient editor stopped short — drop the slot, reset lands flush with the grid's right edge */
html.phone .inspector .ctl.ctl-enum:has(> .swatches) > div:empty { display: none !important; }
html.phone .inspector .ctl.ctl-enum:has(> .swatches) { grid-template-columns: minmax(0,1fr) 28px !important; }
/* t1471u: 2D/3D toggle stacks its three glyphs in one grid cell; the shared inline-flex rule laid them side by side so the cube sat off-centre in full screen */
html:is(.phone, .tablet) body .canvas-wrap #pvSeg.pv-seg.vtog-ico, html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on #pvSeg.pv-seg.vtog-ico.vtog-ico { display: inline-grid !important; place-items: center !important; }
html:is(.phone, .tablet) body .canvas-wrap #pvSeg.pv-seg.vtog-ico svg, html:is(.phone, .tablet).pxl-cine body .canvas-wrap.fs-on #pvSeg.pv-seg.vtog-ico.vtog-ico svg { grid-area: 1 / 1 !important; margin: 0 !important; }

/* iPad full screen + controls: play and 2D/3D stay together beside the floating Layers panel */
html.tablet.pxl-cine.cine-ui body .canvas-wrap.fs-on #pvSeg.pv-seg { left: calc(var(--cine-lw, 288px) + 24px + var(--fob) + 8px) !important; bottom: calc(var(--cine-lmh, 140px) + 20px) !important; }

/* Nov 3: desktop Look Manager account sync status */
.sp-head .sp-sync { margin-left: auto; font-size: calc(11px * var(--ui, 1)); opacity: .6; white-space: nowrap; letter-spacing: 0; }
.sp-head .sp-sync-pending { opacity: .8; }

/* ---- Nov 4 (t1479u) Presets sheet / Look Manager: one header, one Save, My Looks right under it */
.m-pane-looks .m-pane-head .eyebrow { display: none !important; }
.mp .mp-cur.mp-cur-v2 { flex-wrap: nowrap !important; align-items: center !important; gap: 10px !important; padding: 10px 10px 10px 12px !important; border-radius: 0 !important; }
.mp .mp-cur-v2 .mp-cur-n { flex: 1 1 auto; min-width: 0; gap: 2px; }
.mp .mp-cur-v2 .mp-cur-n b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp .mp-cur-v2 .mp-cur-n small { font-size: 11px; letter-spacing: .02em; text-transform: none; opacity: .6; display: inline-flex; align-items: center; gap: 6px; }
.mp .mp-cur-v2 .mp-cur-n small::before { content: ""; width: 6px; height: 6px; background: #f5b83d; flex: none; }
.mp .mp-cur-v2.is-saved .mp-cur-n small::before { background: #3ddc84; }
.mp .mp-cur-v2 .mp-cur-a { flex: none; flex-wrap: nowrap !important; align-items: center; gap: 6px !important; }
.mp .mp-cur-save { min-height: 36px !important; height: 36px !important; padding: 0 14px !important; border-radius: 2px !important; display: inline-flex !important; align-items: center; gap: 6px; font-size: 13px !important; }
.mp .mp-cur-save svg { width: 12px; height: 12px; }
.mp .mp-cur-save:disabled { opacity: .45; }
.mp .mp-cur-v2 .mp-more { width: 36px !important; height: 36px !important; border-radius: 2px !important; }
.mp .mp-sec.mp-sec-list { display: flex !important; align-items: center !important; gap: 8px !important; margin: 14px 0 8px !important; }
.mp .mp-sec-list .mp-sec-t { margin: 0 !important; }
html .mp .mp-sec-list .mp-sync { flex-shrink: 1 !important; min-width: 0 !important; display: block !important; margin: 0 !important; font-size: 11px; opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
html body .mp .mp-sec-list .mp-new { min-width: 0 !important; margin-left: auto !important; flex: none; min-height: 30px !important; height: 30px !important; padding: 0 10px !important; border-radius: 2px !important; display: inline-flex !important; align-items: center; gap: 5px; font-size: 12px !important; position: relative; }
.mp .mp-sec-list .mp-new::after { content: ""; position: absolute; inset: -7px 0; }
.mp .mp-sec-list .mp-new svg { width: 11px; height: 11px; }
/* quieter sub-look rows: only the live look keeps its ⋯ (tap a row to reach its options), muted meta */
.mp .sp-nest .sp-row:not(.on) .sp-more-wrap { display: none !important; }
.mp .sp-nest .sp-item small { opacity: .5; }
.mp .sp-nest .sp-row:not(.on) .sp-item b { font-weight: 500; opacity: .85; }
/* name window input */
.mp-ask .mp-ask-in { width: 100%; box-sizing: border-box; height: 40px; margin: 10px 0 12px; padding: 0 10px; border-radius: 0; border: 1px solid rgb(255 255 255 / .2); background: rgb(0 0 0 / .4); color: #fff; font: inherit; font-size: 16px; }
html body .mp :is(.mp-row, .mp-group, .mp-cur) { border-radius: 0 !important; }
html.phone .m-presets-glass .m-pg-head { padding-top: 10px !important; padding-bottom: 8px !important; min-height: 0 !important; }
html body .mp-dd, html body .mp-dd .mp-dd-i, html body .mp :is(.mp-th, .mp-thumb, .mp-chip) { border-radius: 0 !important; }
