/* PXLGEN Oct 20 phone + view pass (home-demo-flow). Loaded last. Dark, square, no blur. */

/* ---- view: one FPS readout (the editor's own, folded into the label line); gear + fullscreen as one top-right cluster */
.hud{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-radius:0!important}
.hud.tr{display:none!important}
.hud.tl #fps{cursor:pointer;color:rgb(255 255 255/.7);white-space:nowrap}
.hud.tl #fps::before{content:"·";margin:0 .45em;color:rgb(255 255 255/.35)}
.hud.tl #fps[hidden]{display:none}
.hud.tl #fps:hover{color:#fff}
/* t1086u: cluster rules live in oct23.css (gear|fs top row; drift under gear) */
.sbx-vo-fps{display:none!important}
.canvas-wrap:not(.fs-on) .fs-btn.fs-btn-view{top:calc(12px * var(--ui, 1));bottom:auto;right:calc(12px * var(--ui, 1));width:calc(28px * var(--ui, 1));height:calc(28px * var(--ui, 1))}
html.phone .canvas-wrap:not(.fs-on) .fs-btn.fs-btn-view{top:calc(8px * var(--ui, 1));right:calc(8px * var(--ui, 1));width:calc(32px * var(--ui, 1));height:calc(32px * var(--ui, 1))}
html.phone .hud.tl{top:calc(8px * var(--ui, 1));height:calc(24px * var(--ui, 1));max-width:calc(100% - calc(100px * var(--ui, 1)));font-size:calc(10.5px * var(--ui, 1))}
html.phone .hud.tl #fps{position:relative}
html.phone .hud.tl #fps::after{content:"";position:absolute;left:calc(-6px * var(--ui, 1));right:calc(-6px * var(--ui, 1));top:50%;height:calc(44px * var(--ui, 1));transform:translateY(-50%)}

/* ---- top bar (phone): menu · logo · Looks · Randomize. Undo/Redo sit by the timeline, the lock lives on the Export tab */
html.phone .nav .hist,html.phone .nav .nav-export{display:none!important}
html.phone .dock .hist{display:flex;flex:none;gap:0}
html.phone .dock .hist-b{position:relative;width:calc(28px * var(--ui, 1));height:calc(30px * var(--ui, 1));display:grid;place-items:center;border:0;background:none;color:rgb(255 255 255/.75)}
html.phone .dock .hist-b:disabled{opacity:.3}
html.phone .dock .hist-b::before{content:"";position:absolute;left:0;right:0;top:50%;height:calc(44px * var(--ui, 1));transform:translateY(-50%)}
html.phone .dock .hist-b svg{width:calc(14px * var(--ui, 1));height:calc(14px * var(--ui, 1))}

/* ---- timeline: one slim row, times inline */
html.phone .dock{height:calc(38px * var(--ui, 1))!important;padding:0 calc(6px * var(--ui, 1))!important;gap:calc(4px * var(--ui, 1))!important}
html.phone .dock .play{width:calc(32px * var(--ui, 1))!important;height:calc(32px * var(--ui, 1))!important;position:relative}
html.phone .dock .play::before{content:"";position:absolute;left:0;right:0;top:50%;height:calc(44px * var(--ui, 1));transform:translateY(-50%)}
html.phone .dock .chip-tgl,html.phone .dock .tp-btn{width:calc(40px * var(--ui, 1))!important;height:calc(38px * var(--ui, 1))!important}
html.phone .dock .chip-tgl::before,html.phone .dock .tp-btn::before{left:-2px!important;right:-2px!important}
html.phone .dock .chip-tgl::before,html.phone .dock .tp-btn::before{content:"";position:absolute;left:0;right:0;top:50%;height:calc(44px * var(--ui, 1));transform:translateY(-50%)}
html.phone .dock .chip-tgl:has(input:checked)::after{left:calc(11px * var(--ui, 1));right:calc(11px * var(--ui, 1));bottom:calc(5px * var(--ui, 1))}
html.phone .scrub{display:flex!important;flex-direction:row!important;align-items:center;gap:calc(6px * var(--ui, 1))!important}
html.phone .scrub .timeline{flex:1;min-width:calc(40px * var(--ui, 1))}
html.phone .scrub-meta{display:flex;gap:2px;flex:none;font-size:calc(10.5px * var(--ui, 1));margin:0!important}
html.phone .scrub-meta #tcEnd::before{content:"/ "}

/* ---- sheet: small handle */
html.phone .m-grab{height:calc(14px * var(--ui, 1))!important}
html.phone .m-handle{width:calc(28px * var(--ui, 1))!important;height:calc(3px * var(--ui, 1))!important}

/* ---- one header grammar for every sheet: a row with the title (15px semibold) left and small square actions right */
html.phone .insp-head{display:flex;align-items:center;gap:calc(6px * var(--ui, 1));padding:calc(4px * var(--ui, 1)) calc(12px * var(--ui, 1)) calc(8px * var(--ui, 1))!important;flex-wrap:nowrap}
html.phone .insp-head .row1{order:2;margin-left:auto;min-height:0}
html.phone .insp-head .row1 .eyebrow{display:none}
html.phone .insp-head .ttl{order:1;display:flex;align-items:baseline;gap:calc(6px * var(--ui, 1));min-width:0;margin:0!important;font-family:var(--font-sans,inherit);font-size:calc(15.5px * var(--ui, 1))!important;font-weight:600;letter-spacing:0;text-transform:none;font-stretch:100%}
html.phone .insp-head .ttl .t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.phone .insp-head .ttl .n{font-size:calc(11px * var(--ui, 1))!important;margin:0!important;vertical-align:baseline}
html.phone .insp-head .ttl .info-btn{width:calc(24px * var(--ui, 1));height:calc(24px * var(--ui, 1));flex:none;position:relative}
html.phone .insp-head .ttl .info-btn::before{content:"";position:absolute;inset:calc(-10px * var(--ui, 1))}
html.phone .insp-head .acts .icon,html.phone .o20-btn{position:relative;width:calc(32px * var(--ui, 1));height:calc(32px * var(--ui, 1));border-radius:0}
html.phone .insp-head .acts .icon::before{content:"";position:absolute;left:0;right:0;top:50%;height:calc(44px * var(--ui, 1));transform:translateY(-50%)}
html.phone .insp-head .acts{gap:calc(6px * var(--ui, 1))}
html.phone .sec-title{padding:calc(6px * var(--ui, 1)) calc(10px * var(--ui, 1)) calc(6px * var(--ui, 1)) calc(12px * var(--ui, 1))!important;min-height:calc(36px * var(--ui, 1))}
html.phone .sec-title .pm{width:calc(32px * var(--ui, 1));height:calc(32px * var(--ui, 1))}

/* Layers: preset row + layers row on one grid, shared edges, same small buttons */
html.phone .sp-head{display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:calc(6px * var(--ui, 1)) calc(8px * var(--ui, 1));padding:calc(4px * var(--ui, 1)) calc(12px * var(--ui, 1)) 0!important;margin:0!important;border:0!important}
html.phone .sp-head .sp-k{display:none}
html.phone .sp-head .sp-hname{justify-self:start;display:inline-flex;height:calc(32px * var(--ui, 1));min-height:0;align-items:center;gap:calc(6px * var(--ui, 1));min-width:0;font-size:calc(15.5px * var(--ui, 1));font-weight:600}
html.phone .sp-head .sp-hname b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.phone .sp-head .sp-meta{grid-column:1;grid-row:2;justify-self:start;height:calc(20px * var(--ui, 1));display:inline-flex;align-items:center;padding:0 calc(6px * var(--ui, 1));border:1px solid rgb(255 255 255/.16);font:500 calc(11px * var(--ui, 1))/1 var(--font-sans,inherit);letter-spacing:0;text-transform:none;color:rgb(255 255 255/.6)}
html.phone .sp-head .sp-plus{grid-column:2;grid-row:1}
html.phone #layersPanel .panel-head{display:flex;align-items:center;justify-content:space-between;gap:calc(8px * var(--ui, 1));padding:calc(6px * var(--ui, 1)) calc(12px * var(--ui, 1)) calc(8px * var(--ui, 1))!important;margin:0!important;border-bottom:1px solid rgb(255 255 255/.07)!important}
html.phone #layersPanel .panel-head .eyebrow{font-family:var(--font-sans,inherit);font-size:calc(13px * var(--ui, 1));font-weight:600;letter-spacing:0;text-transform:none;color:#fff}
html.phone #layersPanel .panel-head .eyebrow i{display:none}
html.phone #layersPanel .panel-head .eyebrow b{font-weight:500;color:rgb(255 255 255/.5)}
html.phone #layersPanel .panel-head .eyebrow b::before{content:"· "}
html.phone .sp-head .sp-plus,html.phone #addLayer{position:relative;height:calc(32px * var(--ui, 1))!important;min-height:0!important;padding:0 calc(10px * var(--ui, 1))!important;display:inline-flex;align-items:center;gap:calc(6px * var(--ui, 1));border:1px solid rgb(255 255 255/.22)!important;background:transparent!important;font:600 calc(12.5px * var(--ui, 1))/1 var(--font-sans,inherit)!important;letter-spacing:0!important;color:#fff!important;border-radius:0!important}
html.phone .sp-head .sp-plus svg,html.phone #addLayer svg{width:calc(12px * var(--ui, 1));height:calc(12px * var(--ui, 1))}
html.phone .sp-head .sp-plus::before,html.phone #addLayer::before{content:"";position:absolute;left:0;right:0;top:50%;height:calc(44px * var(--ui, 1));transform:translateY(-50%)}
/* Looks / Export headers: the same row */
html.phone .m-pane-head,html.phone #exportPop .pop-head{display:flex;align-items:center;justify-content:space-between;gap:calc(8px * var(--ui, 1));padding:calc(4px * var(--ui, 1)) calc(12px * var(--ui, 1)) calc(8px * var(--ui, 1))!important;margin:0!important}
html.phone .m-pane-head .eyebrow,html.phone #exportPop .pop-head .eyebrow{display:none}
html.phone .m-pane-head h3,html.phone #exportPop .pop-head h3{margin:0!important;font-family:var(--font-sans,inherit);font-size:calc(15.5px * var(--ui, 1))!important;font-weight:600;letter-spacing:0;text-transform:none;font-stretch:100%}

/* ---- bottom tabs: floating clear glass (no blur), bright edge + thin rim light; lit active tab */
html.phone .m-tabs{left:calc(calc(10px * var(--ui, 1)) + env(safe-area-inset-left))!important;right:calc(calc(10px * var(--ui, 1)) + env(safe-area-inset-right))!important;bottom:calc(calc(8px * var(--ui, 1)) + env(safe-area-inset-bottom))!important;height:calc(56px * var(--ui, 1))!important;padding:calc(4px * var(--ui, 1))!important;gap:calc(4px * var(--ui, 1))!important;grid-template-columns:repeat(4,1fr)!important;border-radius:0!important;
  background:linear-gradient(180deg,rgb(255 255 255/.07),rgb(255 255 255/.02)) ,rgb(10 10 12/.62)!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/.32),inset 0 -1px 0 rgb(255 255 255/.06),0 12px 34px -12px rgb(0 0 0/.9)!important}
html.phone .m-tabs button{border-radius:0!important;color:rgb(255 255 255/.5)!important;font-size:calc(11.5px * var(--ui, 1))!important;gap:calc(3px * var(--ui, 1))!important}
html.phone .m-tabs button[aria-selected="true"]{color:#fff!important;background:rgb(255 255 255/.1)!important;box-shadow:inset 0 0 0 1px rgb(255 255 255/.3),0 0 16px -2px rgb(255 255 255/.22)}
html.phone .m-tabs button[aria-selected="true"] svg{filter:drop-shadow(0 0 4px rgb(255 255 255/.6))}
html.phone .m-body{padding-bottom:calc(calc(76px * var(--ui, 1)) + env(safe-area-inset-bottom))}
html.phone .m-menu-btn .m-mb-ar{display:none}
html.phone .dock .mx-song{margin-left:calc(4px * var(--ui, 1))!important}
html.phone .sp-head .sp-hname{position:relative;height:calc(32px * var(--ui, 1))!important;min-height:0!important}
html.phone .sp-head .sp-hname::before{content:"";position:absolute;left:0;right:0;top:50%;height:calc(46px * var(--ui, 1));transform:translateY(-50%)}
html.phone .dock .hist{position:static!important;inset:auto!important;transform:none!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;height:auto!important;width:auto!important}
html.phone .dock .scrub-meta #tcEnd{display:none}
html.phone .m-pal-global{padding-left:calc(12px * var(--ui, 1))!important;padding-right:calc(12px * var(--ui, 1))!important}
html.phone .insp-head .acts .icon{width:calc(32px * var(--ui, 1))!important;height:calc(32px * var(--ui, 1))!important;min-width:0!important}
html.phone .insp-head .acts{gap:calc(12px * var(--ui, 1))!important}
html.phone .dock .wm-up{margin-left:calc(16px * var(--ui, 1))!important}
html.phone .sp-head .sp-hname b{display:flex;align-items:center;height:calc(32px * var(--ui, 1))}
html.phone .sp-head .sp-hname{border:0!important;padding-top:0!important;padding-bottom:0!important}

/* Oct 21 View Settings card (same look as the site): clear glass, hard edges, bright rim, static edge glow */
.sbx-rs-panel{padding:0!important;gap:0!important;border-radius:0!important;background:linear-gradient(180deg,rgb(255 255 255/.07),rgb(255 255 255/.015) 38%),rgb(10 10 12/.92)!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/.35),0 0 18px -4px rgb(255 255 255/.18),0 22px 50px -18px rgb(0 0 0/.95)!important;display:grid!important;grid-auto-rows:max-content;row-gap:calc(12px * var(--ui, 1))!important;padding-bottom:calc(14px * var(--ui, 1))!important}
.sbx-rs-head{position:sticky;top:0;z-index:2;min-height:calc(44px * var(--ui, 1));padding:0 calc(4px * var(--ui, 1)) 0 calc(14px * var(--ui, 1));border-bottom:1px solid rgb(255 255 255/.1);background:rgb(14 14 16/.96)}
.sbx-rs-head b{font-size:0!important}
.sbx-rs-head b::before{content:"View Settings";font-size:calc(14px * var(--ui, 1));font-weight:600;color:#fff}
.sbx-rs-stats{font-size:calc(11px * var(--ui, 1))!important;letter-spacing:.04em!important;color:rgb(255 255 255/.55)!important}
.sbx-rs-head .sbx-x{width:calc(44px * var(--ui, 1))!important;height:calc(44px * var(--ui, 1))!important;display:grid;place-items:center;font-size:calc(18px * var(--ui, 1))}
.sbx-rs-row{display:grid!important;grid-template-columns:5rem minmax(0,1fr);align-items:center;gap:0 calc(8px * var(--ui, 1))!important;padding:0 calc(14px * var(--ui, 1))}
.sbx-rs-row:has(input[type=range]){grid-template-columns:5rem minmax(0,1fr)}
.sbx-rs-row .sbx-rs-ends{display:none}
.sbx-rs-l{font:400 calc(12px * var(--ui, 1))/1.2 var(--font-sans,inherit)!important;letter-spacing:0!important;text-transform:none!important;color:rgb(255 255 255/.6)!important;display:grid!important;gap:2px}
.sbx-rs-seg{height:calc(32px * var(--ui, 1));border-color:rgb(255 255 255/.18)!important}
.sbx-rs-seg button{position:relative;height:100%!important;font-size:calc(12px * var(--ui, 1))!important}
.sbx-rs-seg button::before{content:"";position:absolute;left:0;right:0;top:50%;height:calc(44px * var(--ui, 1));transform:translateY(-50%)}
.sbx-rs-seg button[aria-pressed="true"]{font-weight:600;box-shadow:0 0 12px -2px rgb(255 255 255/.45)}
.sbx-rs-reset{margin:0 calc(14px * var(--ui, 1));justify-self:start;padding:0 calc(12px * var(--ui, 1));position:relative}
.sbx-rs-reset::before{content:"";position:absolute;left:0;right:0;top:50%;height:calc(44px * var(--ui, 1));transform:translateY(-50%)}
.o21-scrim{position:fixed;inset:0;z-index:94;background:rgb(0 0 0/.55)}
html.phone .sbx-rs-panel:not([hidden]){left:calc(10px * var(--ui, 1))!important;right:calc(10px * var(--ui, 1))!important;width:auto!important;top:auto!important;bottom:calc(calc(10px * var(--ui, 1)) + env(safe-area-inset-bottom))!important;max-height:min(34rem,calc(100svh - calc(96px * var(--ui, 1))))!important}
