/* PXLGEN Oct 21 round (Camaron). Loaded last. Site copy only (public/generator-app); see /home/box/pxl-backup/pxlgen-oct21/NOTES.md.
   Rules: #050505 / #111214, square edges, clear glass with no blur, glowing white edges, 44px targets, never strobing. */

/* ---- 1. brand: the inline 5-block mark next to PXLGEN, always drawn */
.nav .brand .logo{display:block!important;flex:none;width:calc(24px * var(--ui, 1));height:calc(24px * var(--ui, 1));filter:drop-shadow(0 0 6px rgb(255 255 255/.35))}
html.phone .nav .brand .logo{width:calc(22px * var(--ui, 1));height:calc(22px * var(--ui, 1))}
.nav .brand{gap:calc(10px * var(--ui, 1))}
/* the closed View Settings card was still drawn (oct20.css display:grid!important beat [hidden]): an empty bar over the top
   left of the editor, on top of the logo on phones. Closed means gone. */
.sbx-rs-panel[hidden],.sbx-menu[hidden]{display:none!important}

/* ---- 9. snappier motion: shorter, no overshoot, transforms only */
:root{--ease-out-expo:cubic-bezier(.2,.85,.25,1);--ease-spring:cubic-bezier(.25,.9,.3,1.06);--o21-fast:.16s;--o21-mid:.26s}
.pop,.pill-menu,.add-menu,.menu{animation-duration:var(--o21-mid)!important}
.seg button,.btn,.chip-tgl,.tp-btn,.m-tabs button,.sb-chip,.sbx-trig,.gx-btn,.layer{transition-duration:var(--o21-fast)!important}
.m-sheet{transition:transform var(--o21-mid) var(--ease-out-expo),clip-path var(--o21-mid) var(--ease-out-expo),visibility 0s!important;will-change:transform}
.m-sheet.closed{transition:transform .22s var(--ease-out-expo),clip-path .22s var(--ease-out-expo),visibility 0s .22s!important}
.m-modal.open{transition:transform var(--o21-mid) var(--ease-out-expo),visibility 0s!important}
html.phone.land .canvas-wrap{transition-duration:.22s!important}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ---- 2. phone tab bar: docked flush to the bottom, solid #111214 (nothing shows through), one glowing white top edge,
   the selected tab marked by a centred glowing bar. Matches the sheet's bottom edge exactly. */
html.phone{--m-tabs-h:60px}
html.phone:not(.land) .m-tabs{left:0!important;right:0!important;bottom:0!important;height:calc(calc(60px * var(--ui, 1)) + env(safe-area-inset-bottom))!important;padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)!important;gap:0!important;
  grid-template-columns:repeat(4,1fr)!important;background:#111214!important;border:0!important;border-top:1px solid rgb(255 255 255/.28)!important;box-shadow:0 -1px 14px -4px rgb(255 255 255/.18)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;transform:none!important}
html.phone .m-tabs::before,html.phone .m-tabs::after{display:none!important}
html.phone .m-tabs button{position:relative;height:calc(60px * var(--ui, 1));min-height:calc(44px * var(--ui, 1));background:none!important;box-shadow:none!important;color:rgb(255 255 255/.55)!important;gap:calc(4px * var(--ui, 1))!important}
html.phone .m-tabs button::before,html.phone .m-tabs button::after{content:none!important}
html.phone .m-tabs button[aria-selected="true"]{color:#fff!important}
html.phone .m-tabs button[aria-selected="true"]::before{content:""!important;display:block!important;position:absolute;top:-1px;left:50%;width:calc(28px * var(--ui, 1));height:2px;transform:translateX(-50%);background:#fff;box-shadow:0 0 10px 1px rgb(255 255 255/.55)}
html.phone:not(.land) .m-sheet{bottom:calc(calc(60px * var(--ui, 1)) + env(safe-area-inset-bottom))!important}
html.phone:not(.land) .m-home{bottom:calc(calc(60px * var(--ui, 1)) + env(safe-area-inset-bottom))!important}
/* desktop Playback dock: one row, controls aligned on one baseline, the Go Pro link pinned right */
html:not(.phone):not(.tablet) .dock{align-items:center}
html:not(.phone):not(.tablet) .dock .dsep{align-self:stretch;margin:calc(6px * var(--ui, 1)) 2px}

/* ---- 5. gradient editor (Oct 23): premium square PXL, working picker, clear hierarchy */
.gx{display:grid;gap:calc(10px * var(--ui, 1));margin-top:calc(10px * var(--ui, 1));padding:calc(12px * var(--ui, 1));border:1px solid rgb(255 255 255/.14);background:#0b0b0d}
.gx-head{display:flex;align-items:baseline;justify-content:space-between;gap:calc(10px * var(--ui, 1))}
.gx-k{font:500 calc(10px * var(--ui, 1))/1 var(--font-mono);letter-spacing:.16em;text-transform:uppercase;color:rgb(255 255 255/.5)}
.gx-meta{font:500 calc(10.5px * var(--ui, 1))/1 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:rgb(255 255 255/.4)}
.gx-acts{display:grid;grid-template-columns:1fr;gap:calc(6px * var(--ui, 1))}
.gx-acts.three{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.gx-acts.one{grid-template-columns:1fr}
.gx-acts .gx-btn{min-height:calc(44px * var(--ui, 1));height:calc(44px * var(--ui, 1));display:inline-flex;align-items:center;justify-content:center;gap:calc(8px * var(--ui, 1));padding:0 calc(10px * var(--ui, 1));border:1px solid rgb(255 255 255/.18);background:rgb(255 255 255/.03);color:#fff;font-size:calc(12.5px * var(--ui, 1));font-weight:600;border-radius:0}
.gx-acts .gx-btn svg{width:calc(11px * var(--ui, 1));height:calc(11px * var(--ui, 1))}
.gx-acts .gx-btn:hover{border-color:#fff}
.gx-acts .gx-btn:disabled{opacity:.35}
.gx-acts .gx-btn span{white-space:nowrap}
.gx-bar{position:relative;height:calc(44px * var(--ui, 1))!important;margin:0!important;cursor:copy;border:1px solid rgb(255 255 255/.28);box-shadow:inset 0 0 0 1px rgb(0 0 0/.45);border-radius:0}
.gx-stop{position:absolute;top:50%;width:calc(18px * var(--ui, 1))!important;height:calc(44px * var(--ui, 1))!important;margin:0!important;transform:translate(-50%,-50%);border:2px solid #fff!important;border-radius:0!important;box-shadow:0 0 0 1px #050505,0 2px 10px rgb(0 0 0/.55);padding:0;cursor:grab;touch-action:none;z-index:1}
.gx-stop::before{content:"";position:absolute;left:calc(-14px * var(--ui, 1));right:calc(-14px * var(--ui, 1));top:0;bottom:0}
.gx-stop.on{z-index:2;box-shadow:0 0 0 1px #050505,0 0 0 3px rgb(255 255 255/.35),0 2px 12px rgb(0 0 0/.6)}
.gx-stop.off{opacity:.35}
.gx-stop:active{cursor:grabbing}
.gx-edit{display:grid;grid-template-columns:calc(44px * var(--ui, 1)) minmax(0,1fr) auto;align-items:center;gap:calc(10px * var(--ui, 1));min-height:calc(44px * var(--ui, 1))}
.gx-sw{position:relative;width:calc(44px * var(--ui, 1));height:calc(44px * var(--ui, 1));border:1px solid rgb(255 255 255/.35);box-shadow:inset 0 0 0 1px #050505;cursor:pointer;overflow:hidden;background:#222}
.gx-sw input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}
.gx-hex{font:600 calc(13px * var(--ui, 1))/1 var(--font-mono);letter-spacing:.04em;color:#fff}
.gx-tip{font:500 calc(10.5px * var(--ui, 1))/1.2 var(--font-mono);letter-spacing:.04em;color:rgb(255 255 255/.4);text-align:right}
.gx-note{display:none!important}
.gx-sel{display:none!important}
.gx-pick{display:none!important}
button.custom span{font:600 calc(11px * var(--ui, 1))/1 var(--font-mono);letter-spacing:.08em;text-transform:uppercase}

/* ---- 6. export: file name first, Format, Resolution, More (Frame Rate), spec, go */
.pop.ex21{width:calc(380px * var(--ui, 1));border-radius:0!important;padding:0 0 calc(16px * var(--ui, 1))!important;background:linear-gradient(180deg,rgb(255 255 255/.06),rgb(255 255 255/.01) 40%),#111214!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:1px solid rgb(255 255 255/.24)!important;box-shadow:inset 0 1px 0 rgb(255 255 255/.3),0 0 22px -6px rgb(255 255 255/.22),0 30px 80px -24px #000!important;max-height:calc(100vh - calc(110px * var(--ui, 1)));overflow:auto}
.pop.ex21 .pop-head{padding:calc(14px * var(--ui, 1)) calc(6px * var(--ui, 1)) calc(12px * var(--ui, 1)) calc(16px * var(--ui, 1));border-bottom:1px solid rgb(255 255 255/.1);display:flex;align-items:center;justify-content:space-between}
.pop.ex21 .pop-head .display{font-size:calc(20px * var(--ui, 1));margin:2px 0 0}
.pop.ex21 #exportClose{width:calc(44px * var(--ui, 1));height:calc(44px * var(--ui, 1))}
.pop.ex21>.row,.pop.ex21 .ex-more,.pop.ex21 .status,.pop.ex21 .ex-acts,.pop.ex21 .prog{margin-left:calc(16px * var(--ui, 1));margin-right:calc(16px * var(--ui, 1))}
.pop.ex21>.row{margin-top:calc(14px * var(--ui, 1))}
.pop.ex21 .seg button{height:calc(40px * var(--ui, 1));border-radius:0!important}
.ex-file{margin:calc(14px * var(--ui, 1)) calc(16px * var(--ui, 1)) 0;padding:calc(10px * var(--ui, 1)) calc(12px * var(--ui, 1));border:1px solid rgb(255 255 255/.22);background:#050505;box-shadow:0 0 14px -6px rgb(255 255 255/.3);display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:calc(10px * var(--ui, 1));row-gap:calc(4px * var(--ui, 1));align-items:baseline}
.ex-file .ex-k{font:500 calc(10px * var(--ui, 1))/1 var(--font-mono);letter-spacing:.16em;text-transform:uppercase;color:rgb(255 255 255/.5)}
.ex-file code{font:600 calc(13px * var(--ui, 1))/1.3 var(--font-mono);color:#fff;overflow-wrap:anywhere}
.ex-file .ex-pat{grid-column:2;font:400 calc(11px * var(--ui, 1))/1.2 var(--font-mono);letter-spacing:.04em;color:rgb(255 255 255/.45)}
.pop.ex21 .sp-ex-file{display:none!important}
.pop.ex21 .note{font-size:calc(12px * var(--ui, 1));color:rgb(255 255 255/.55);margin-top:calc(6px * var(--ui, 1))}
.ex-more{margin-top:calc(14px * var(--ui, 1));border:1px solid rgb(255 255 255/.14)}
.ex-more summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:calc(44px * var(--ui, 1));padding:0 calc(12px * var(--ui, 1));cursor:pointer;font-size:calc(13px * var(--ui, 1));color:rgb(255 255 255/.8)}
.ex-more summary::-webkit-details-marker{display:none}
.ex-more summary::after{content:"+";font:500 calc(16px * var(--ui, 1))/1 var(--font-mono);color:rgb(255 255 255/.6);margin-left:calc(10px * var(--ui, 1))}
.ex-more[open] summary::after{content:"–"}
.ex-more .ex-more-v{margin-left:auto;font:400 calc(11px * var(--ui, 1))/1 var(--font-mono);color:rgb(255 255 255/.5)}
.ex-more .ex-more-v b{color:#fff;font-weight:600}
.ex-more[open] .ex-more-v{display:none}
.ex-more .row{margin:0 calc(12px * var(--ui, 1)) calc(12px * var(--ui, 1))!important}
.pop.ex21 .spec{margin-top:calc(14px * var(--ui, 1))!important;border-radius:0!important;border-style:solid!important;border-color:rgb(255 255 255/.1)!important;padding:calc(10px * var(--ui, 1)) calc(12px * var(--ui, 1))!important}
.pop.ex21 .ex-acts .btn{min-height:calc(48px * var(--ui, 1));border-radius:0!important}
html.phone .m-pane #exportPop.ex21{width:auto;max-height:none;overflow:visible;border:0!important;box-shadow:none!important;background:none!important;padding:0 0 calc(24px * var(--ui, 1))!important}
html.phone #exportPop.ex21 .pop-head{padding-left:calc(18px * var(--ui, 1))}
html.phone #exportPop.ex21>.row,html.phone #exportPop.ex21 .ex-file,html.phone #exportPop.ex21 .ex-more,html.phone #exportPop.ex21 .status,html.phone #exportPop.ex21 .ex-acts,html.phone #exportPop.ex21 .prog{margin-left:calc(18px * var(--ui, 1));margin-right:calc(18px * var(--ui, 1))}
html.phone #exportPop.ex21 .ex-file code{font-size:calc(14px * var(--ui, 1))}

/* ---- 7. View / Render Settings: a Done button at the foot, always reachable; capped to the screen with its own scroll */
.sbx-rs-panel:not([hidden]){max-height:min(calc(600px * var(--ui, 1)),calc(100vh - calc(24px * var(--ui, 1))));overflow:auto;overscroll-behavior:contain}
.sbx-rs-done{position:sticky;bottom:0;margin:calc(4px * var(--ui, 1)) calc(14px * var(--ui, 1)) 0;min-height:calc(44px * var(--ui, 1));border:1px solid rgb(255 255 255/.5);background:#f4f4f2;color:#050505;font-weight:600;font-size:calc(13px * var(--ui, 1));box-shadow:0 0 16px -4px rgb(255 255 255/.45);cursor:pointer}
.o21-scrim-d{position:fixed;inset:0;z-index:94;background:rgb(0 0 0/.35)}

/* ---- 8. full screen: three groups. Top right: View Settings + Exit. Bottom left: Play. Bottom centre: the stage bar.
   One tap on the picture hides / shows them (no auto-hide timer); a hint says so once. */
.canvas-wrap.fs-on.fs-idle .stage-bar,.canvas-wrap.fs-on.fs-idle .fs-btn{opacity:1!important;pointer-events:auto!important}
.canvas-wrap.fs-on.fs-idle,.canvas-wrap.fs-on.fs-idle *{cursor:auto!important}
.canvas-wrap.fs-on .fs-btn{top:calc(calc(16px * var(--ui, 1)) + env(safe-area-inset-top))!important;right:calc(calc(16px * var(--ui, 1)) + env(safe-area-inset-right))!important;bottom:auto!important;left:auto!important;height:calc(44px * var(--ui, 1))!important;width:auto!important;min-width:calc(44px * var(--ui, 1));padding:0 calc(14px * var(--ui, 1))!important;z-index:8!important;opacity:1!important;background:rgb(17 18 20/.82)!important;border:1px solid rgb(255 255 255/.3)!important;box-shadow:0 0 14px -4px rgb(255 255 255/.3)!important;display:flex!important;align-items:center;gap:calc(8px * var(--ui, 1))}
.canvas-wrap.fs-on .sbx-vo-gear{top:calc(calc(16px * var(--ui, 1)) + env(safe-area-inset-top))!important;right:calc(calc(16px * var(--ui, 1)) + calc(170px * var(--ui, 1)) + env(safe-area-inset-right))!important;width:calc(44px * var(--ui, 1))!important;height:calc(44px * var(--ui, 1))!important;background:rgb(17 18 20/.82)!important;border-color:rgb(255 255 255/.3)!important;z-index:8}
html.phone .canvas-wrap.fs-on .fs-btn span{display:none}
html.phone .canvas-wrap.fs-on .sbx-vo-gear{right:calc(calc(16px * var(--ui, 1)) + calc(52px * var(--ui, 1)) + env(safe-area-inset-right))!important}
.fs21-play{display:none}
.canvas-wrap.fs-on .fs21-play{display:grid;place-items:center;position:absolute;z-index:8;left:calc(calc(16px * var(--ui, 1)) + env(safe-area-inset-left));bottom:calc(calc(18px * var(--ui, 1)) + env(safe-area-inset-bottom));width:calc(44px * var(--ui, 1));height:calc(44px * var(--ui, 1));background:rgb(17 18 20/.82);border:1px solid rgb(255 255 255/.3);color:#fff;box-shadow:0 0 14px -4px rgb(255 255 255/.3);cursor:pointer}
.canvas-wrap.fs-on .fs21-play svg{width:calc(14px * var(--ui, 1));height:calc(14px * var(--ui, 1))}
html:not(.phone) .canvas-wrap.fs-on>.stage-bar.sbx-fs{border-radius:0!important;background:rgb(17 18 20/.82)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:1px solid rgb(255 255 255/.28)!important;box-shadow:0 0 16px -4px rgb(255 255 255/.25)!important;max-width:calc(100% - calc(160px * var(--ui, 1)))!important}
html:not(.phone) .canvas-wrap.fs-on>.stage-bar .sbx-ss-trig,html:not(.phone) .canvas-wrap.fs-on>.stage-bar .sbx-stage,html:not(.phone) .canvas-wrap.fs-on>.stage-bar .sb-walls{display:none!important}
html.phone .canvas-wrap.fs-on .stage-bar{left:calc(calc(72px * var(--ui, 1)) + env(safe-area-inset-left))!important;right:calc(calc(16px * var(--ui, 1)) + env(safe-area-inset-right))!important;bottom:calc(calc(18px * var(--ui, 1)) + env(safe-area-inset-bottom))!important;border-radius:0!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgb(17 18 20/.82)!important}
.canvas-wrap.fs-on .stage-bar,.canvas-wrap.fs-on .fs-btn,.canvas-wrap.fs-on .sbx-vo-gear,.canvas-wrap.fs-on .fs21-play{transition:opacity .18s var(--ease-out-expo),transform .18s var(--ease-out-expo)!important}
.canvas-wrap.fs-on.fs21-hide .stage-bar,.canvas-wrap.fs-on.fs21-hide .fs-btn,.canvas-wrap.fs-on.fs21-hide .sbx-vo-gear,.canvas-wrap.fs-on.fs21-hide .fs21-play{opacity:0!important;pointer-events:none!important}
.canvas-wrap.fs-on.fs21-hide,.canvas-wrap.fs-on.fs21-hide *{cursor:none!important}
.fs21-hint{position:absolute;z-index:8;left:50%;top:calc(calc(22px * var(--ui, 1)) + env(safe-area-inset-top));transform:translateX(-50%);padding:0 calc(12px * var(--ui, 1));height:calc(32px * var(--ui, 1));display:flex;align-items:center;font:500 calc(12px * var(--ui, 1))/1 var(--font-sans,inherit);color:#fff;background:rgb(17 18 20/.82);border:1px solid rgb(255 255 255/.25);pointer-events:none;opacity:0;transition:opacity .25s}
.fs21-hint.on{opacity:1}

/* qa:mobile: real 44px targets in the phone inspector header (the ::before hit area doesn't count for the audit) */
html.phone .insp-head .acts .icon{width:calc(44px * var(--ui, 1))!important;height:calc(44px * var(--ui, 1))!important}
html.phone .insp-head .acts{gap:calc(4px * var(--ui, 1))!important}
html.phone .insp-head .info-btn{width:calc(44px * var(--ui, 1))!important;height:calc(44px * var(--ui, 1))!important;display:inline-grid;place-items:center}
