/* Oct 28 (t1208u): Pick a Preset + Export — one gutter, titled sections, integrated ⋯, portal menu. */
:root { --g28: 16px; }
/* ---------- Pick a Preset sheet */
.m-pg-head { padding: calc(14px * var(--ui, 1)) var(--g28) calc(12px * var(--ui, 1)) !important; align-items: center !important; }
.m-pg-head .eyebrow { margin: 0 0 2px !important; opacity: .6; }
.m-pg-head .display { margin: 0 !important; font-size: 1.25rem !important; line-height: 1.1 !important; }
.m-pg-head .m-x { width: calc(36px * var(--ui, 1)) !important; height: calc(36px * var(--ui, 1)) !important; }
.m-pg-sheet .m-pg-body { padding: 0 var(--g28) calc(16px * var(--ui, 1)) !important; display: flex; flex-direction: column; }
.m-pg-sheet .m-field, .m-pg-sheet .m-look, .m-pg-sheet .m-mine { margin: 0 !important; padding: 0 !important; width: 100% !important; }
.m-field:has(> .m-mine) > .eyebrow { display: none !important; }
.mp-sec { display: flex; align-items: baseline; gap: calc(8px * var(--ui, 1)); flex-wrap: wrap; margin: calc(16px * var(--ui, 1)) 0 calc(8px * var(--ui, 1)); padding: 0; }
.mp-sec-t, .x28-sec h4 { margin: 0; font: 600 .72rem/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.88); }
.mp-sec-n, .x28-sec p { flex-basis: 100%; margin: 2px 0 0; font-size: .74rem; line-height: 1.35; color: rgba(255,255,255,.5); }
.mp-sec-c { font-size: .7rem; color: rgba(255,255,255,.45); }
.mp-sec-list { margin-top: calc(20px * var(--ui, 1)); }
.mp .mp-save { display: grid !important; grid-template-columns: auto 1fr auto; gap: calc(8px * var(--ui, 1)) !important; margin: 0 !important; padding: 0 !important; width: 100%; }
.mp .mp-save > * { height: calc(40px * var(--ui, 1)) !important; min-height: calc(40px * var(--ui, 1)) !important; margin: 0 !important; box-sizing: border-box; border-radius: 8px !important; }
.mp .mp-save .mp-name { min-width: 0; width: 100% !important; padding: 0 calc(12px * var(--ui, 1)) !important; font-size: calc(16px * var(--ui, 1)) !important; }
.mp .mp-save .btn { padding: 0 calc(14px * var(--ui, 1)) !important; display: inline-flex !important; align-items: center; gap: calc(6px * var(--ui, 1)); }
.mp .mp-list { display: flex !important; flex-direction: column; gap: calc(6px * var(--ui, 1)) !important; margin: 0 !important; padding: 0 !important; }
.mp .mp-group { display: flex; flex-direction: column; gap: calc(4px * var(--ui, 1)); margin: 0 !important; padding: 0 !important; border: 0 !important; }
.mp .mp-row { position: relative; display: flex !important; align-items: center; gap: 0 !important; margin: 0 !important; padding: 0 !important; width: 100% !important;
  border: 1px solid rgba(255,255,255,.1) !important; border-radius: 10px !important; background: rgba(255,255,255,.03) !important; box-shadow: none !important; overflow: hidden; }
.mp .mp-row::before, .mp .mp-row::after, .mp .mp-item::before, .mp .mp-item::after { display: none !important; }
.mp .mp-row.on { border-color: var(--accent, #5ef08a) !important; background: color-mix(in oklab, var(--accent, #5ef08a) 10%, transparent) !important; }
.mp .mp-item { flex: 1 1 auto; min-width: 0; display: flex !important; align-items: center; gap: calc(12px * var(--ui, 1)); padding: calc(8px * var(--ui, 1)) calc(4px * var(--ui, 1)) calc(8px * var(--ui, 1)) calc(8px * var(--ui, 1)) !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-align: left; height: auto !important; min-height: calc(56px * var(--ui, 1)); }
.mp .mp-item > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp .mp-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.mp .mp-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .55; font-size: .7rem; }
.mp .mp-dupn { font-style: normal; font-weight: 500; font-size: .7rem; opacity: .55; margin-left: calc(4px * var(--ui, 1)); }
.mp .mp-sw { flex: none; width: calc(40px * var(--ui, 1)) !important; height: calc(40px * var(--ui, 1)) !important; border-radius: 6px !important; background-size: cover !important; background-position: center !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12) !important; }
.mp .mp-more-wrap { position: static !important; flex: none; align-self: stretch; display: flex; margin: 0 !important; }
.mp .mp-more { width: calc(44px * var(--ui, 1)) !important; height: auto !important; min-height: 0 !important; margin: 0 !important; border: 0 !important; border-left: 1px solid rgba(255,255,255,.08) !important; border-radius: 0 !important; background: none !important; display: grid; place-items: center; color: rgba(255,255,255,.75); }
.mp .mp-more svg { width: calc(16px * var(--ui, 1)); height: calc(16px * var(--ui, 1)); }
.mp .mp-more.open, .mp .mp-more:active { background: rgba(255,255,255,.08) !important; color: #fff; }
.mp-dd.mp-dd-portal { position: fixed !important; z-index: 2147483000 !important; right: auto !important; bottom: auto !important; min-width: calc(184px * var(--ui, 1)); padding: calc(6px * var(--ui, 1)) !important; margin: 0 !important;
  background: #16161a !important; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 10px !important; box-shadow: 0 12px 32px rgba(0,0,0,.55) !important; display: flex; flex-direction: column; gap: 2px; }
.mp-dd.mp-dd-portal[hidden] { display: none !important; }
.mp-dd-portal .mp-dd-i { display: block; width: 100%; height: calc(40px * var(--ui, 1)); padding: 0 calc(12px * var(--ui, 1)) !important; text-align: left; border: 0 !important; border-radius: 6px !important; background: none !important; color: #fff; font-size: .88rem; font-weight: 500; }
.mp-dd-portal .mp-dd-i:active, .mp-dd-portal .mp-dd-i:hover { background: rgba(255,255,255,.08) !important; }
.mp-dd-portal .mp-dd-i.danger { color: #ff6b6b; }
.mp .mp-hint, .mp .mp-empty { margin: calc(12px * var(--ui, 1)) 0 0 !important; padding: calc(14px * var(--ui, 1)) !important; border: 1px dashed rgba(255,255,255,.12); border-radius: 10px; text-align: center; font-size: .76rem; color: rgba(255,255,255,.5); }
.mp .mp-rename, .mp .mp-confirm { display: flex; align-items: center; gap: calc(6px * var(--ui, 1)); width: 100%; padding: calc(8px * var(--ui, 1)) !important; }
.mp .mp-rename input { flex: 1; min-width: 0; height: calc(40px * var(--ui, 1)); font-size: calc(16px * var(--ui, 1)); padding: 0 calc(10px * var(--ui, 1)); }
.mp .mp-rename .btn, .mp .mp-confirm .btn { height: calc(40px * var(--ui, 1)); padding: 0 calc(12px * var(--ui, 1)); }
.mp .mp-confirm span { flex: 1; font-size: .8rem; }
/* ---------- Export pane (phone) */
html.phone .m-pane #exportPop.ex21.x28 { padding: 0 var(--g28) calc(20px * var(--ui, 1)) !important; display: flex !important; flex-direction: column; gap: 0 !important; }
html.phone .m-pane #exportPop.ex21.x28 > .pop-head { padding: calc(14px * var(--ui, 1)) 0 calc(6px * var(--ui, 1)) !important; margin: 0 !important; border: 0 !important; }
html.phone .m-pane #exportPop.ex21.x28 .x28-sec { display: flex; flex-wrap: wrap; margin: calc(18px * var(--ui, 1)) 0 calc(8px * var(--ui, 1)); }
html.phone .m-pane #exportPop.ex21.x28 > .row, html.phone .m-pane #exportPop.ex21.x28 > .ex-file, html.phone .m-pane #exportPop.ex21.x28 > .ex-dd-grid, html.phone .m-pane #exportPop.ex21.x28 > .ex-tip, html.phone .m-pane #exportPop.ex21.x28 > .status, html.phone .m-pane #exportPop.ex21.x28 > .prog, html.phone .m-pane #exportPop.ex21.x28 > .ex-acts { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; box-sizing: border-box; }
html.phone .m-pane #exportPop.ex21.x28 > .row.m-proj, html.phone .m-pane #exportPop.ex21.x28 > .row.m-loop-row { display: grid !important; grid-template-columns: calc(92px * var(--ui, 1)) minmax(0,1fr); align-items: center; gap: calc(10px * var(--ui, 1)); padding: 0 !important; margin: 0 0 calc(8px * var(--ui, 1)) !important; border: 0 !important; background: none !important; }
html.phone .m-pane #exportPop.ex21.x28 > .row > label.eyebrow { margin: 0 !important; font-size: .74rem; color: rgba(255,255,255,.6); letter-spacing: .02em; text-transform: none; font-family: inherit !important; font-size: .82rem !important; color: rgba(255,255,255,.7) !important; }
html.phone .m-pane #exportPop.ex21.x28 .m-proj input, html.phone .m-pane #exportPop.ex21.x28 .m-proj .doc { height: calc(40px * var(--ui, 1)) !important; min-height: calc(40px * var(--ui, 1)) !important; width: 100% !important; box-sizing: border-box; font-size: calc(16px * var(--ui, 1)); }
html.phone .m-pane #exportPop.ex21.x28 .m-loop-slot { justify-self: start; }
html.phone .m-pane #exportPop.ex21.x28 .m-loop-slot > * { height: calc(40px * var(--ui, 1)) !important; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-file { padding: calc(8px * var(--ui, 1)) calc(12px * var(--ui, 1)) !important; border-radius: 8px !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px calc(8px * var(--ui, 1)); background: rgba(255,255,255,.03) !important; border: 1px solid rgba(255,255,255,.08) !important; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-file .ex-k { font-size: .7rem; opacity: .5; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-file code { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-file .ex-pat { display: none !important; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-dd-grid { display: flex !important; flex-direction: column; gap: calc(8px * var(--ui, 1)) !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.phone .m-pane #exportPop.ex21.x28 .ex-dd { display: grid !important; grid-template-columns: calc(92px * var(--ui, 1)) minmax(0,1fr); align-items: center; gap: calc(10px * var(--ui, 1)); position: relative; }
html.phone .m-pane #exportPop.ex21.x28 .ex-dd-k { font-size: .82rem !important; color: rgba(255,255,255,.7) !important; letter-spacing: .02em !important; text-transform: none !important; font-family: inherit !important; }
html.phone .m-pane #exportPop.ex21.x28 .ex-dd-sel { height: calc(40px * var(--ui, 1)) !important; min-height: calc(40px * var(--ui, 1)) !important; border-radius: 8px !important; padding: 0 calc(12px * var(--ui, 1)) !important; }
html.phone .m-pane #exportPop.ex21.x28 .ex-dd-menu { z-index: 50; }
html.phone .m-pane #exportPop.ex21.x28 > .row.spec { padding: calc(10px * var(--ui, 1)) calc(12px * var(--ui, 1)) !important; margin: 0 0 calc(8px * var(--ui, 1)) !important; border-radius: 8px; border: 1px solid rgba(255,255,255,.08) !important; background: rgba(255,255,255,.03) !important; font-size: .76rem; display: flex; flex-wrap: wrap; gap: calc(4px * var(--ui, 1)) calc(10px * var(--ui, 1)); }
html.phone .m-pane #exportPop.ex21.x28 > .status { margin: calc(6px * var(--ui, 1)) 0 0 !important; padding: 0 !important; font-size: .74rem; color: rgba(255,255,255,.5); }
html.phone .m-pane #exportPop.ex21.x28 > .ex-tip { margin: calc(8px * var(--ui, 1)) 0 0 !important; padding: 0 !important; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-acts { display: grid !important; grid-template-columns: 1fr 1fr; gap: calc(8px * var(--ui, 1)); margin-top: calc(14px * var(--ui, 1)) !important; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-acts #exGo { grid-column: 1 / -1; height: calc(48px * var(--ui, 1)) !important; font-size: .95rem; justify-content: center; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-acts .btn-ghost { height: calc(40px * var(--ui, 1)) !important; justify-content: center; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-acts #exQueueAdd:only-of-type, html.phone .m-pane #exportPop.ex21.x28 > .ex-acts #exCancel[hidden] + * { grid-column: auto; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-acts:not(:has(#exCancel:not([hidden]))) #exQueueAdd { grid-column: 1 / -1; }

/* t1215u pass 2: invisible 44px hit areas for the small icon buttons on touch (no visual change) */
@media (pointer: coarse) {
  #fsBtn, .mini.kf, .mx-dock-more { position: relative; }
  #fsBtn::after, .mini.kf::after, .mx-dock-more::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(44px * var(--ui, 1)); height: calc(44px * var(--ui, 1)); translate: -50% -50%; }
}
/* t1215u desktop: Layer Stack "+ Add" was dark-on-dark (1.04:1) — readable label */
html:not(.phone) #layersPanel #addLayer.add-btn:not(.open) { color: rgb(255 255 255 / .85) !important; }
html:not(.phone) #layersPanel #addLayer.add-btn:not(.open):hover { border-color: rgb(255 255 255 / .4) !important; color: #fff !important; }
/* t1215u desktop nits: one 38px header row (Export/Members Only matched Full Screen + Stage), readable "Stage" key,
   panel drag handle lifted clear of bottom-left + buttons */
html:not(.phone) header.nav #exportBtn { height: calc(38px * var(--ui, 1)) !important; min-height: calc(38px * var(--ui, 1)) !important; box-sizing: border-box; }
html:not(.phone) .nav .stage-nav .sbx-ss-k { color: rgb(255 255 255 / .62) !important; }
html:not(.phone) .desk-grab { z-index: 30; }
html:not(.phone) .app.desk-lay > .stage > .desk-grab { top: calc(8px * var(--ui, 1)) !important; bottom: auto !important; left: calc(50% - calc(9px * var(--ui, 1))) !important; right: auto !important; z-index: 40 !important; }
html:not(.phone) header.nav .hist-b { height: calc(38px * var(--ui, 1)) !important; min-height: calc(38px * var(--ui, 1)) !important; box-sizing: border-box; }

/* t1219u: Pick a Preset phone — the sheet body is the one scroller (iOS), inline count chip, quiet helper, one aligned list */
html.phone .m-presets-glass .m-pg-body { display: block !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; min-height: 0 !important; flex: 1 1 auto !important; }
html.phone .m-presets-glass .m-pg-body *, html.phone .m-presets-glass .m-mine, html.phone .m-presets-glass .m-mine .mp-list { flex-shrink: 0 !important; }
html.phone .m-presets-glass .m-mine .mp-list, html.phone .m-presets-glass .m-pg-body :has(> .m-mine), html.phone .m-presets-glass .m-mine { overflow: visible !important; height: auto !important; max-height: none !important; }
.mp-sec { flex-wrap: wrap; align-items: center !important; }
.mp-sec-list { flex-wrap: nowrap !important; }
.mp-sec-c:not(:empty) { display: inline-grid; place-items: center; min-width: calc(20px * var(--ui, 1)); height: calc(18px * var(--ui, 1)); padding: 0 calc(6px * var(--ui, 1)); border-radius: 9px; background: rgba(255,255,255,.1); font: 600 .66rem/1 var(--mono, ui-monospace, monospace); color: rgba(255,255,255,.75); }
.mp-sec-n { font-size: .7rem !important; color: rgba(255,255,255,.42) !important; margin-top: 0 !important; }
/* group: card + sub rows share one left edge / width; ⋯ in one 44px column */
.mp .mp-group { gap: 0 !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 10px !important; overflow: hidden; background: rgba(255,255,255,.02); }
.mp .mp-group > .mp-row { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; text-decoration: none !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
.mp .mp-group > .mp-row::after, .mp .mp-group > .mp-row *::after { border-bottom: 0 !important; }
.mp .mp-group.on { border-color: var(--accent, #5ef08a) !important; }
.mp .mp-group > .mp-row.on { background: rgba(255,255,255,.04) !important; }
.mp .mp-group .sp-nest { margin: 0 !important; padding: 0 !important; border: 0 !important; width: 100% !important; box-sizing: border-box; }
.mp .mp-group .sp-nest::before { display: none !important; }
.mp .mp-group .sp-row { display: flex !important; align-items: center; margin: 0 !important; padding: 0 !important; border: 0 !important; border-top: 1px solid rgba(255,255,255,.06) !important; border-radius: 0 !important; outline: 0 !important; box-shadow: none !important; background: none !important; width: 100% !important; }
.mp .mp-group .sp-row:first-child { border-top: 0 !important; }
.mp .mp-group .sp-row .sp-item { flex: 1 1 auto; min-width: 0; display: flex !important; align-items: center; gap: calc(12px * var(--ui, 1)); margin: 0 !important; padding: calc(8px * var(--ui, 1)) 0 calc(8px * var(--ui, 1)) calc(12px * var(--ui, 1)) !important; min-height: calc(48px * var(--ui, 1)); border: 0 !important; outline: 0 !important; box-shadow: none !important; background: none !important; text-align: left; }
.mp .mp-group .sp-row .sp-n { flex: none; width: calc(24px * var(--ui, 1)); height: calc(24px * var(--ui, 1)); display: grid !important; place-items: center; border-radius: 6px; border: 1px solid rgba(255,255,255,.25) !important; background: transparent !important; color: rgba(255,255,255,.7) !important; font: 600 .72rem/1 var(--mono, ui-monospace, monospace); font-style: normal; }
.mp .mp-group .sp-row.on { background: rgba(255,255,255,.06) !important; box-shadow: inset 3px 0 0 var(--accent, #fff) !important; }
.mp .mp-group .sp-row.on .sp-n { background: #fff !important; border-color: #fff !important; color: #000 !important; }
.mp .mp-group .sp-row .sp-more-wrap, .mp .mp-row .mp-more-wrap { flex: none; width: calc(44px * var(--ui, 1)) !important; margin: 0 !important; display: flex; justify-content: center; }
.mp .mp-group .sp-row .sp-more-wrap > button, .mp .mp-row .mp-more-wrap > button { width: calc(44px * var(--ui, 1)) !important; height: calc(44px * var(--ui, 1)) !important; margin: 0 !important; border: 0 !important; }
.mp .mp-group .sp-new { display: flex !important; align-items: center; gap: calc(12px * var(--ui, 1)); width: 100% !important; margin: 0 !important; min-height: calc(44px * var(--ui, 1)); padding: 0 calc(12px * var(--ui, 1)) !important; border: 0 !important; border-top: 1px solid rgba(255,255,255,.06) !important; border-radius: 0 !important; background: none !important; color: rgba(255,255,255,.75); }
.mp .mp-group .sp-new svg { width: calc(24px * var(--ui, 1)); }
.mp .mp-group .sp-new small { display: none; }

/* t1220u: Custom Gradient — toolbar · track · visual picker · swatch+hex · even swatch grid */
.gx.gx-v2 { display: flex !important; flex-direction: column; gap: calc(10px * var(--ui, 1)); }
.gx.gx-v2 > * { margin: 0 !important; }
.gx.gx-v2 .gx-acts { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: calc(8px * var(--ui, 1)) !important; width: 100% !important; order: 0; }
.gx.gx-v2 .gx-acts .gx-btn { width: 100% !important; height: calc(44px * var(--ui, 1)) !important; min-height: calc(44px * var(--ui, 1)) !important; margin: 0 !important; display: grid !important; place-items: center; border-radius: 8px !important; }
.gx.gx-v2 .gx-head { display: flex; justify-content: space-between; align-items: baseline; }
.gx.gx-v2 .gx-head .gx-k { font: 600 .68rem/1 var(--mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.gx.gx-v2 .gx-head .gx-meta { font-size: .7rem; color: rgba(255,255,255,.45); }
.gx.gx-v2 .gx-bar { height: calc(44px * var(--ui, 1)) !important; border-radius: 8px; margin: 0 !important; }
.gx-pk { display: flex; flex-direction: column; gap: calc(10px * var(--ui, 1)); }
.gx-sv { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(200px * var(--ui, 1)); border-radius: 10px; touch-action: none; cursor: crosshair;
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue, red)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.gx-sv-dot { position: absolute; width: calc(22px * var(--ui, 1)); height: calc(22px * var(--ui, 1)); margin: calc(-11px * var(--ui, 1)) 0 0 calc(-11px * var(--ui, 1)); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.5); pointer-events: none; }
.gx-hue { position: relative; height: calc(28px * var(--ui, 1)); border-radius: 14px; touch-action: none; cursor: ew-resize; margin: calc(8px * var(--ui, 1)) 0;
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); }
.gx-hue::before { content: ""; position: absolute; inset: calc(-8px * var(--ui, 1)) 0; }
.gx-hue-dot { position: absolute; top: 50%; width: calc(22px * var(--ui, 1)); height: calc(32px * var(--ui, 1)); margin: calc(-16px * var(--ui, 1)) 0 0 calc(-11px * var(--ui, 1)); border-radius: 8px; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5); pointer-events: none; }
.gx.gx-v2 .gx-edit { display: grid !important; grid-template-columns: calc(44px * var(--ui, 1)) 1fr auto; align-items: center; gap: calc(10px * var(--ui, 1)); }
.gx.gx-v2 .gx-sw { width: calc(44px * var(--ui, 1)) !important; height: calc(44px * var(--ui, 1)) !important; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.gx.gx-v2 .gx-hex { height: calc(44px * var(--ui, 1)); min-width: 0; width: 100%; box-sizing: border-box; padding: 0 calc(12px * var(--ui, 1)); border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: #fff; font: 500 calc(15px * var(--ui, 1))/1 var(--mono, ui-monospace, monospace); letter-spacing: .06em; }
.gx.gx-v2 .gx-hex[readonly] { pointer-events: none; }
.gx-hex-ed { height: calc(44px * var(--ui, 1)); padding: 0 calc(14px * var(--ui, 1)); border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: none; color: rgba(255,255,255,.85); font-size: .8rem; }
.gx.gx-v2 .gx-swatches { display: grid !important; grid-template-columns: repeat(8, minmax(0, 1fr)) !important; gap: calc(8px * var(--ui, 1)) !important; }
.gx.gx-v2 .gx-chip { width: 100% !important; height: auto !important; aspect-ratio: 1; min-height: calc(32px * var(--ui, 1)); margin: 0 !important; border-radius: 8px !important; border: 0 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); position: relative; }
.gx.gx-v2 .gx-chip.on { box-shadow: 0 0 0 2px #050505, 0 0 0 4px #fff !important; }
.gx.gx-v2 .gx-chip::after { content: ""; position: absolute; inset: calc(-4px * var(--ui, 1)); }
.gx.gx-v2 .gx-tip { font-size: .7rem !important; color: rgba(255,255,255,.42) !important; line-height: 1.3; }
.gx.gx-v2 .gx-hsl { display: none !important; }

/* t1221u: Export tab (phone) — one 16px gutter for every block, summary card, grouped cards, wrapping target segments, pinned Export */
html.phone .m-pane #exportPop.ex21.x28 > * { box-sizing: border-box !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
html.phone .m-pane #exportPop.ex21.x28 > :is(.ex-dd-grid, .row.spec, .m-proj, .m-loop-row, .sp-ex) { width: 100% !important; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-file { display: grid !important; grid-template-columns: 1fr; gap: calc(4px * var(--ui, 1)) !important; padding: calc(12px * var(--ui, 1)) calc(14px * var(--ui, 1)) !important; border-radius: 10px !important; background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.12) !important; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-file .ex-k { position: static !important; font: 600 .62rem/1 var(--mono, ui-monospace, monospace) !important; letter-spacing: .12em; text-transform: uppercase; opacity: .5; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-file code { white-space: normal !important; overflow-wrap: anywhere; font-size: .86rem !important; line-height: 1.3; color: #fff; }
html.phone .m-pane #exportPop.ex21.x28 > .x28-sec { margin: calc(18px * var(--ui, 1)) 0 calc(8px * var(--ui, 1)) !important; padding: 0 !important; }
html.phone .m-pane #exportPop.ex21.x28 > .x28-sec h4 { font-size: .66rem !important; letter-spacing: .12em !important; color: rgba(255,255,255,.7) !important; }
html.phone .m-pane #exportPop.ex21.x28 > .x28-sec p { display: none !important; }
html.phone .m-pane #exportPop.ex21.x28 > :is(.m-proj, .m-loop-row, .ex-dd-grid) { padding: calc(10px * var(--ui, 1)) calc(12px * var(--ui, 1)) !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.08) !important; background: rgba(255,255,255,.025) !important; }
html.phone .m-pane #exportPop.ex21.x28 > .m-proj + .x28-sec + .m-loop-row { margin-top: -1px !important; }
html.phone .m-pane #exportPop.ex21.x28 .ex-dd { grid-template-columns: calc(88px * var(--ui, 1)) minmax(0,1fr) !important; }
html.phone .m-pane #exportPop.ex21.x28 .sp-ex { display: grid !important; gap: calc(8px * var(--ui, 1)); padding: 0 !important; }
html.phone .m-pane #exportPop.ex21.x28 .sp-ex-list { display: flex !important; flex-wrap: wrap !important; gap: calc(6px * var(--ui, 1)) !important; padding: calc(4px * var(--ui, 1)) !important; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
html.phone .m-pane #exportPop.ex21.x28 .sp-ex-list > button { flex: 1 1 auto; min-height: calc(40px * var(--ui, 1)); padding: 0 calc(12px * var(--ui, 1)) !important; border-radius: 8px !important; white-space: nowrap; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-acts { position: sticky !important; bottom: 0; z-index: 5; padding: calc(12px * var(--ui, 1)) 0 calc(calc(8px * var(--ui, 1)) + env(safe-area-inset-bottom)) !important; background: linear-gradient(to top, #0c0c0e 75%, transparent) !important; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-acts #exGo { border-radius: 10px !important; }

/* t1222u: Export footer — fixed to the sheet (the sheet is transformed, so fixed = sheet box), lifted by the clipped amount
   (--m-vis-off) so it always sits on the visible bottom edge, above the tab bar; content pads under it */
html.phone .m-sheet[data-pane="export"]:not(.closed) .m-pane #exportPop.ex21.x28 > .ex-acts {
  position: fixed !important; left: 0 !important; right: 0 !important; bottom: var(--m-vis-off, 0px) !important; top: auto !important; z-index: 20; order: 0 !important;
  margin: 0 !important; width: auto !important; max-width: none !important; padding: calc(10px * var(--ui, 1)) calc(16px * var(--ui, 1)) calc(calc(10px * var(--ui, 1)) + env(safe-area-inset-bottom)) !important;
  background: #0c0c0e !important; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 -10px 20px -8px rgba(0,0,0,.7); }
html.phone .m-sheet[data-pane="export"]:not(.closed) .m-pane #exportPop.ex21.x28 { padding-bottom: calc(140px * var(--ui, 1)) !important; }
html.phone .m-sheet:not([data-pane="export"]) #exportPop .ex-acts { position: static !important; }

/* t1222u: Controls (phone) — every control is one row: label left (same 27% column as sliders), control right.
   Toggles become small switches; selects are compact pills in the slider/value column; denser cards. */
html.phone .inspector .ctl:is(:has(> .toggle), :has(> .sel-pill), :has(> .color-pill), .fx-src) {
  display: grid !important; grid-template-columns: minmax(0, 27%) minmax(0, 1fr) auto !important; align-items: center !important;
  column-gap: 0 !important; row-gap: 0 !important; min-height: calc(44px * var(--ui, 1)) !important; margin: 2px 0 0 !important; padding: 0 !important; }
html.phone .inspector .ctl:is(:has(> .toggle), :has(> .sel-pill), :has(> .color-pill), .fx-src) > .ctl-top { display: contents !important; }
html.phone .inspector .ctl:is(:has(> .toggle), :has(> .sel-pill), :has(> .color-pill), .fx-src) .lb { grid-area: 1 / 1 !important; font-size: calc(13px * var(--ui, 1)) !important; line-height: 1.2; padding-right: calc(8px * var(--ui, 1)); overflow-wrap: anywhere; }
html.phone .inspector .ctl:is(:has(> .toggle), :has(> .sel-pill), :has(> .color-pill), .fx-src) .ctl-top .mini { grid-area: 1 / 3 !important; width: calc(30px * var(--ui, 1)) !important; height: calc(44px * var(--ui, 1)) !important; }
html.phone .inspector .ctl:is(:has(> .toggle), :has(> .sel-pill), :has(> .color-pill), .fx-src):not(.dirty) .ctl-top .reset { display: none !important; }
html.phone .inspector .ctl:is(:has(> .sel-pill), :has(> .color-pill), .fx-src) > :is(.sel-pill, .color-pill) { grid-area: 1 / 2 !important; width: 100% !important; min-width: 0 !important; height: calc(36px * var(--ui, 1)) !important; min-height: calc(36px * var(--ui, 1)) !important; margin: 0 !important; font-size: calc(13px * var(--ui, 1)) !important; position: relative; }
html.phone .inspector .ctl .sel-pill::after, html.phone .inspector .ctl .color-pill::after { content: ""; position: absolute; inset: calc(-4px * var(--ui, 1)) 0; }
/* switch */
html.phone .inspector .ctl > .toggle { grid-area: 1 / 2 !important; justify-self: end !important; position: relative !important; width: calc(44px * var(--ui, 1)) !important; min-width: calc(44px * var(--ui, 1)) !important; height: calc(26px * var(--ui, 1)) !important; min-height: calc(26px * var(--ui, 1)) !important;
  padding: 0 !important; margin: 0 !important; border-radius: 13px !important; border: 1px solid rgba(255,255,255,.25) !important; background: rgba(255,255,255,.08) !important; font-size: 0 !important; cursor: pointer; transition: background .15s; }
html.phone .inspector .ctl > .toggle > span { display: none !important; }
html.phone .inspector .ctl > .toggle > b { border: 0 !important; box-shadow: none !important; padding: 0 !important; position: absolute !important; top: calc(3px * var(--ui, 1)) !important; left: calc(3px * var(--ui, 1)) !important; width: calc(18px * var(--ui, 1)) !important; height: calc(18px * var(--ui, 1)) !important; margin: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.75) !important; transition: transform .15s; }
html.phone .inspector .ctl > .toggle.on { background: var(--accent, #36f07a) !important; border-color: var(--accent, #36f07a) !important; }
html.phone .inspector .ctl > .toggle.on > b { transform: translateX(18px); background: #050505 !important; }
html.phone .inspector .ctl > .toggle::after { content: ""; position: absolute; inset: calc(-9px * var(--ui, 1)) calc(-4px * var(--ui, 1)); }
/* Source: helper becomes one muted line under the row */
html.phone .inspector .ctl.fx-src > .note { grid-column: 1 / -1 !important; grid-row: 2 !important; margin: 2px 0 calc(4px * var(--ui, 1)) !important; font-size: calc(11px * var(--ui, 1)) !important; line-height: 1.3 !important; color: rgba(255,255,255,.42) !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* denser cards */
html.phone .inspector .sec-title { min-height: calc(40px * var(--ui, 1)) !important; padding: calc(4px * var(--ui, 1)) calc(6px * var(--ui, 1)) calc(4px * var(--ui, 1)) calc(14px * var(--ui, 1)) !important; gap: calc(10px * var(--ui, 1)) !important; }
html.phone .inspector .sec-title .tt { font-size: calc(14px * var(--ui, 1)) !important; }
html.phone .inspector .sec-title .ix, html.phone .inspector .sec-title .ct { font-size: calc(11px * var(--ui, 1)) !important; }
html.phone .inspector .sec-title .pm { width: calc(28px * var(--ui, 1)) !important; height: calc(28px * var(--ui, 1)) !important; position: relative; }
html.phone .inspector .sec-title .pm::after { content: ""; position: absolute; inset: calc(-8px * var(--ui, 1)); }
html.phone .inspector .sec-body { padding: 0 calc(14px * var(--ui, 1)) calc(8px * var(--ui, 1)) !important; }
html.phone .inspector .sec + .sec { margin-top: calc(6px * var(--ui, 1)) !important; }
html.phone .inspector .ctl:has(> .sl) { min-height: calc(40px * var(--ui, 1)) !important; margin-top: 0 !important; }
html.phone .inspector .ctl:has(> .sl) > .sl { height: calc(40px * var(--ui, 1)) !important; }

/* =====================================================================
   t1235u: LOOK MANAGER redesign — one balanced 56px row under the playback bar.
   [LOOK MANAGER / Name] | [1 Base][2 Preset 2][+ Add] ........ [n looks][Fade][⋯]
   ===================================================================== */
html:not(.phone) .sp-bar.sp-v2 {
  display: flex !important; align-items: center !important; flex-wrap: nowrap !important;
  gap: calc(12px * var(--ui, 1)) !important; padding: calc(8px * var(--ui, 1)) calc(8px * var(--ui, 1)) calc(8px * var(--ui, 1)) calc(14px * var(--ui, 1)) !important; min-height: calc(56px * var(--ui, 1)) !important;
  background: rgb(10 10 12 / .92) !important; border: 1px solid rgb(255 255 255 / .10) !important;
}
html:not(.phone) .sp-bar.sp-v2 .sp-head.sp-v2-head {
  flex: 0 1 auto !important; min-width: 0; max-width: 34%; display: grid !important;
  grid-template-columns: auto auto; grid-auto-flow: row; align-items: center; gap: calc(3px * var(--ui, 1)) calc(6px * var(--ui, 1)) !important; height: auto !important; min-height: 0 !important;
}
html:not(.phone) .sp-bar.sp-v2 .sp-k { grid-column: 1 / -1; font: 600 calc(9px * var(--ui, 1))/1 var(--font-mono) !important; letter-spacing: .18em !important; color: rgb(255 255 255 / .42) !important; padding-left: 0 !important; background: none !important; }
html:not(.phone) .sp-bar.sp-v2 .sp-hname { height: calc(22px * var(--ui, 1)) !important; margin-left: calc(-4px * var(--ui, 1)) !important; padding: 0 calc(4px * var(--ui, 1)) !important; min-width: 0; }
html:not(.phone) .sp-bar.sp-v2 .sp-hname b { font: 600 calc(14px * var(--ui, 1))/1.1 var(--font-sans, sans-serif) !important; color: #fff !important; }
html:not(.phone) .sp-bar.sp-v2 .sp-hname svg { opacity: .55 !important; width: calc(10px * var(--ui, 1)) !important; height: calc(10px * var(--ui, 1)) !important; }
html:not(.phone) .sp-bar.sp-v2 .sp-hdel { height: calc(22px * var(--ui, 1)) !important; padding: 0 calc(6px * var(--ui, 1)) !important; font-size: calc(10px * var(--ui, 1)) !important; }
html:not(.phone) .sp-bar.sp-v2 .sp-hform { min-width: 0; }
.sp-v2-div { flex: none; width: 1px; height: calc(28px * var(--ui, 1)); background: rgb(255 255 255 / .10); }
.sp-v2-list { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: calc(6px * var(--ui, 1)); overflow-x: auto; scrollbar-width: none; }
.sp-v2-list::-webkit-scrollbar { display: none; }
.sp-bar .sp-v2-chip {
  position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; gap: calc(8px * var(--ui, 1)); height: calc(36px * var(--ui, 1)); max-width: calc(180px * var(--ui, 1));
  padding: 0 calc(12px * var(--ui, 1)) 0 calc(6px * var(--ui, 1)); border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .03); color: rgb(255 255 255 / .72);
  font: 600 calc(12px * var(--ui, 1))/1 var(--font-sans, sans-serif); border-radius: 0; cursor: pointer;
}
.sp-v2-chip i { display: grid; place-items: center; width: calc(22px * var(--ui, 1)); height: calc(22px * var(--ui, 1)); font: 600 calc(10px * var(--ui, 1))/1 var(--font-mono); font-style: normal; border: 1px solid rgb(255 255 255 / .2); color: rgb(255 255 255 / .6); }
.sp-v2-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-v2-chip:hover { border-color: rgb(255 255 255 / .34); color: #fff; }
.sp-v2-chip.on { border-color: #fff; background: rgb(255 255 255 / .08); color: #fff; }
.sp-v2-chip.on i { background: #fff; color: #050505; border-color: #fff; }
.sp-v2-chip .sp-fill { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.sp-bar.sp-single .sp-v2-chip { cursor: default; }
html:not(.phone) .sp-bar.sp-v2 .sp-v2-add {
  flex: none !important; width: auto !important; height: calc(36px * var(--ui, 1)) !important; min-height: calc(36px * var(--ui, 1)) !important; display: inline-flex !important; align-items: center; gap: calc(6px * var(--ui, 1));
  padding: 0 calc(12px * var(--ui, 1)) 0 calc(10px * var(--ui, 1)) !important; border: 1px dashed rgb(255 255 255 / .26) !important; background: transparent !important;
  color: rgb(255 255 255 / .7) !important; font: 600 calc(10px * var(--ui, 1))/1 var(--font-mono) !important; letter-spacing: .08em !important; text-transform: uppercase;
}
html:not(.phone) .sp-bar.sp-v2 .sp-v2-add:hover { border-style: solid !important; border-color: #fff !important; color: #fff !important; }
html:not(.phone) .sp-bar.sp-v2 .sp-v2-add svg { width: calc(10px * var(--ui, 1)) !important; height: calc(10px * var(--ui, 1)) !important; }
.sp-v2-tail { flex: none; display: flex; align-items: center; gap: calc(8px * var(--ui, 1)); }
.sp-v2-count { font: 500 calc(9px * var(--ui, 1))/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .34); white-space: nowrap; }
html:not(.phone) .sp-bar.sp-v2 .sp-v2-fade { height: calc(36px * var(--ui, 1)) !important; }
html:not(.phone) .sp-bar.sp-v2 .sp-v2-more {
  width: calc(36px * var(--ui, 1)) !important; height: calc(36px * var(--ui, 1)) !important; min-height: calc(36px * var(--ui, 1)) !important; padding: 0 !important; display: grid !important; place-items: center;
  border: 1px solid rgb(255 255 255 / .14) !important; background: transparent !important; color: rgb(255 255 255 / .75) !important;
}
html:not(.phone) .sp-bar.sp-v2 .sp-v2-more:hover { border-color: #fff !important; color: #fff !important; }
html:not(.phone) .sp-bar.sp-v2 .sp-v2-more svg { width: calc(16px * var(--ui, 1)); height: calc(16px * var(--ui, 1)); }
@media (max-width: 1100px) { .sp-v2-count { display: none; } html:not(.phone) .sp-bar.sp-v2 .sp-head.sp-v2-head { max-width: 30%; } }
/* t1235u narrow column (tablet / small desktop): tight two rows — name + ⋯ on top, chips + fade below */
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow { flex-wrap: wrap !important; row-gap: calc(8px * var(--ui, 1)) !important; padding: calc(8px * var(--ui, 1)) calc(8px * var(--ui, 1)) calc(8px * var(--ui, 1)) calc(12px * var(--ui, 1)) !important; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-head.sp-v2-head { order: 1; flex: 1 1 0 !important; max-width: none; grid-template-columns: minmax(0,auto) auto; }
html:not(.phone) .sp-bar.sp-v2 .sp-k { white-space: nowrap; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-div { display: none; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-tail { order: 2; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-count { display: none; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-list { order: 3; flex: 1 1 100%; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-tail { display: contents; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-more { order: 2; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-list { flex: 1 1 0; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-fade { order: 4; flex: none; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-fade span { display: none; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-chip { max-width: calc(120px * var(--ui, 1)); }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-head.sp-v2-head { flex-basis: calc(100% - calc(56px * var(--ui, 1))) !important; }
html:not(.phone) .sp-bar.sp-v2 .sp-hdel { justify-self: start; width: auto !important; }
html:not(.phone) .sp-bar.sp-v2.sp-v2-narrow .sp-v2-chip { max-width: calc(104px * var(--ui, 1)); padding-right: calc(10px * var(--ui, 1)); }

/* =====================================================================
   t1236u: LOOK MANAGER as a refined window — header bar + hairline + body. Regular weights only.
   ===================================================================== */
html:not(.phone) .sp-bar.sp-v3 {
  display: flex !important; flex-direction: column !important; gap: 0 !important; padding: 0 !important; min-height: 0 !important;
  background: #0b0b0d !important; border: 1px solid rgb(255 255 255 / .10) !important;
}
.sp-v3-top { display: flex; align-items: center; justify-content: space-between; gap: calc(12px * var(--ui, 1)); height: calc(40px * var(--ui, 1)); padding: 0 calc(6px * var(--ui, 1)) 0 calc(14px * var(--ui, 1)); background: #0e0e10; border-bottom: 1px solid rgb(255 255 255 / .08); }
html:not(.phone) .sp-bar.sp-v3 .sp-v3-title { margin: 0 !important; display: flex !important; align-items: center; gap: calc(8px * var(--ui, 1)); font: 500 calc(11px * var(--ui, 1))/1 var(--font-mono) !important; letter-spacing: .16em !important; text-transform: uppercase; color: rgb(255 255 255 / .78) !important; white-space: nowrap; }
.sp-v3-right { display: flex; align-items: center; gap: calc(10px * var(--ui, 1)); }
.sp-v3-right .sp-v2-count { display: inline !important; font: 400 calc(10px * var(--ui, 1))/1 var(--font-mono); letter-spacing: .12em; color: rgb(255 255 255 / .4); }
html:not(.phone) .sp-bar.sp-v3 .sp-v2-more { width: calc(28px * var(--ui, 1)) !important; height: calc(28px * var(--ui, 1)) !important; min-height: calc(28px * var(--ui, 1)) !important; border-color: transparent !important; }
html:not(.phone) .sp-bar.sp-v3 .sp-v2-more:hover { border-color: rgb(255 255 255 / .2) !important; }
.sp-v3-body { display: flex; align-items: center; gap: calc(12px * var(--ui, 1)); padding: calc(10px * var(--ui, 1)) calc(10px * var(--ui, 1)) calc(10px * var(--ui, 1)) calc(14px * var(--ui, 1)); min-width: 0; flex-wrap: wrap; row-gap: calc(8px * var(--ui, 1)); }
html:not(.phone) .sp-bar.sp-v3 .sp-v3-name { display: flex !important; align-items: center; gap: calc(8px * var(--ui, 1)); flex: 0 1 auto; min-width: 0; max-width: calc(240px * var(--ui, 1)); height: calc(36px * var(--ui, 1)) !important; }
html:not(.phone) .sp-bar.sp-v3 .sp-hname { height: calc(28px * var(--ui, 1)) !important; margin: 0 0 0 calc(-4px * var(--ui, 1)) !important; padding: 0 calc(4px * var(--ui, 1)) !important; min-width: 0; }
html:not(.phone) .sp-bar.sp-v3 .sp-hname b { font: 400 calc(13px * var(--ui, 1))/1.2 var(--font-sans, sans-serif) !important; color: rgb(255 255 255 / .88) !important; }
html:not(.phone) .sp-bar.sp-v3 .sp-hdel { flex: none !important; width: auto !important; max-width: max-content !important; height: calc(26px * var(--ui, 1)) !important; padding: 0 calc(8px * var(--ui, 1)) !important; font: 400 calc(10px * var(--ui, 1))/1 var(--font-mono) !important; }
.sp-bar.sp-v3 .sp-v2-list { flex: 1 1 auto; min-width: 0; padding-right: 2px; }
.sp-bar.sp-v3 .sp-v2-chip { font-weight: 400; height: calc(32px * var(--ui, 1)); }
.sp-bar.sp-v3 .sp-v2-chip i { font-weight: 400; width: calc(20px * var(--ui, 1)); height: calc(20px * var(--ui, 1)); }
html:not(.phone) .sp-bar.sp-v3 .sp-v2-add { height: calc(32px * var(--ui, 1)) !important; min-height: calc(32px * var(--ui, 1)) !important; font-weight: 400 !important; }
html:not(.phone) .sp-bar.sp-v3 .sp-v2-fade { height: calc(32px * var(--ui, 1)) !important; flex: none; margin-left: auto; }
/* narrow (≈360px column at 1024): name row, then chips (wrap, never clip), fade on its own right edge */
html:not(.phone) .sp-bar.sp-v3.sp-v2-narrow .sp-v3-name { flex: 1 1 100% !important; max-width: none; }
html:not(.phone) .sp-bar.sp-v3.sp-v2-narrow .sp-v2-list { flex: 1 1 100%; flex-wrap: wrap; overflow: visible; }
html:not(.phone) .sp-bar.sp-v3.sp-v2-narrow .sp-v2-chip { max-width: calc(140px * var(--ui, 1)); }
html:not(.phone) .sp-bar.sp-v3.sp-v2-narrow .sp-v2-fade span { display: inline; }
/* t1239u: sheet swipe — header area is a drag surface */
html.phone .m-presets-glass .m-pg-head, html.phone .m-modal .m-modal-head, html.phone .m-modal .m-grab { touch-action: none; }
html.phone .m-swiping { will-change: transform; }

/* t1240u: phone Controls — EVERY toggle / dropdown / colour is one row, wherever the controls render (sheet pane or inspector).
   Class-based (.ctl-row set in app.js) so it no longer depends on :has() or the .inspector ancestor. */
html.phone .ctl.ctl-row.ctl-row {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto !important; align-items: center !important;
  column-gap: calc(8px * var(--ui, 1)) !important; row-gap: 0 !important; min-height: calc(40px * var(--ui, 1)) !important; margin: 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important; }
html.phone .ctl.ctl-row.ctl-row > .ctl-top { display: contents !important; }
html.phone .ctl.ctl-row.ctl-row .lb { grid-area: 1 / 1 !important; margin: 0 !important; padding: 0 calc(8px * var(--ui, 1)) 0 0 !important; font: inherit; font-size: calc(13px * var(--ui, 1)) !important; line-height: 1.2 !important; color: rgb(255 255 255 / .82) !important; overflow-wrap: anywhere; }
html.phone .ctl.ctl-row.ctl-row .ctl-top > :not(.lb):not(.reset):not(.mini) { display: none !important; }
html.phone .ctl.ctl-row.ctl-row .ctl-top .mini { grid-area: 1 / 3 !important; width: calc(28px * var(--ui, 1)) !important; height: calc(40px * var(--ui, 1)) !important; }
html.phone .ctl.ctl-row.ctl-row:not(.dirty) .ctl-top .reset { display: none !important; }
html.phone .ctl.ctl-row.ctl-row .ctl-top .reset { grid-area: 1 / 3 !important; }
html.phone .ctl.ctl-row.ctl-row > :is(.sel-pill, .color-pill) { grid-area: 1 / 2 !important; justify-self: end !important; width: auto !important; min-width: calc(96px * var(--ui, 1)) !important; max-width: 62vw !important;
  height: calc(32px * var(--ui, 1)) !important; min-height: calc(32px * var(--ui, 1)) !important; margin: 0 !important; padding: 0 calc(10px * var(--ui, 1)) !important; font-size: calc(12.5px * var(--ui, 1)) !important; position: relative; }
html.phone .ctl.ctl-row.ctl-row > .toggle { grid-area: 1 / 2 !important; justify-self: end !important; position: relative !important; display: block !important;
  width: calc(36px * var(--ui, 1)) !important; min-width: calc(36px * var(--ui, 1)) !important; max-width: calc(36px * var(--ui, 1)) !important; height: calc(20px * var(--ui, 1)) !important; min-height: calc(20px * var(--ui, 1)) !important;
  padding: 0 !important; margin: 0 !important; border-radius: 10px !important; border: 1px solid rgb(255 255 255 / .25) !important; background: rgb(255 255 255 / .08) !important; font-size: 0 !important; box-shadow: none !important; }
html.phone .ctl.ctl-row.ctl-row > .toggle > span { display: none !important; }
html.phone .ctl.ctl-row.ctl-row > .toggle > b { position: absolute !important; top: 2px !important; left: 2px !important; width: calc(14px * var(--ui, 1)) !important; height: calc(14px * var(--ui, 1)) !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgb(255 255 255 / .8) !important; box-shadow: none !important; transition: transform .15s; }
html.phone .ctl.ctl-row.ctl-row > .toggle.on { background: var(--accent, #36f07a) !important; border-color: var(--accent, #36f07a) !important; }
html.phone .ctl.ctl-row.ctl-row > .toggle.on > b { transform: translateX(16px); background: #050505 !important; }
html.phone .ctl.ctl-row.ctl-row > .toggle::after { content: ""; position: absolute; inset: calc(-12px * var(--ui, 1)) calc(-6px * var(--ui, 1)); }
@media (prefers-reduced-motion: reduce) { html.phone .ctl.ctl-row > .toggle > b, html.phone .m-swiping { transition: none !important; } }

/* t1241u: Export corner-radius rule (desktop + phone):
   - Structural containers, cards, inputs, segmented groups, dropdown pills and menus: SQUARE (0) — matches the app chrome.
   - Primary action buttons (Render & Download, Add To Queue, Cancel): 2px — a hair of softening to read as "press me".
   - On/off switches are square too (t1245u): square track + square sliding knob, on = accent fill. Nothing is fully rounded. */
html body #exportPop#exportPop, html body #exportPop#exportPop :is(.row, .seg, .seg button, .ex-file, .ex-more, .ex-more summary, .x28-sec, .ex-dd, .ex-dd-grid > *, .sel-pill, input, code, .prog, .prog i, .ex-tip, .ex-tip-i, .ex-queue, .ex-queue li, .menu, .m-proj, .m-loop-row *) { border-radius: 0 !important; }
html body #exportPop#exportPop :is(.ex-acts .btn, #exGo, #exQueueAdd, #exCancel) { border-radius: 2px !important; }
#exportPop .x28-sec h4 { text-transform: none; }
#exportPop .x28-sec p { font-size: calc(11px * var(--ui, 1)); line-height: 1.35; color: rgb(255 255 255 / .45); margin-top: 2px; }
html.phone .ctl.ctl-row.ctl-row > .note { grid-column: 1 / -1 !important; grid-row: 2 !important; margin: 0 0 calc(4px * var(--ui, 1)) !important; font-size: calc(11px * var(--ui, 1)) !important; line-height: 1.3 !important; color: rgb(255 255 255 / .42) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.phone .ctl.ctl-row.ctl-row > .toggle > b::before, html.phone .ctl.ctl-row.ctl-row > .toggle > b::after, html.phone .ctl.ctl-row.ctl-row > .toggle::before { content: none !important; display: none !important; }

/* t1245u: every on/off switch is square to match the UI — square track, square sliding knob, accent fill when on */
html body .toggle, html body .toggle > b, html body .toggle::before, html body .toggle > b::before,
html.phone .ctl.ctl-row.ctl-row > .toggle, html.phone .ctl.ctl-row.ctl-row > .toggle > b,
html.phone .inspector .ctl > .toggle, html.phone .inspector .ctl > .toggle > b { border-radius: 0 !important; }
