/* 9 Nov 2026 (Aziz, on his Pixel): the studio on a phone, see phone.js */
html[data-look] .pp-rows > .field.range output.rv{grid-column:3;grid-row:1}
html[data-look] .pp-rows > .field.range:has(output.rv) input[type=range]{grid-column:2}
output.rv{font:400 14px/1 var(--en,system-ui);font-variant-numeric:tabular-nums;color:var(--ink-2,var(--muted));text-align:end;min-width:40px;justify-self:end}
.field.range.is-sliding output.rv,.field.range.is-sliding input.num{color:var(--ink,var(--fg));font-weight:700}
@media (pointer:coarse){
  /* the finger never lands on the native slider: phone.js moves it only on a sideways slide, from where it is */
  input[type=range]{pointer-events:none}
  .field.range{touch-action:pan-y;-webkit-user-select:none;user-select:none}
  .field.range input[type=range]{height:28px}
  .field.range.is-sliding input[type=range]{--thumb-scale:1.25}
  .field.range.is-sliding input[type=range]::-webkit-slider-thumb{transform:scale(1.25);transition:transform .15s}
}
html[data-look] .lyrics-box .ls-edit-src{display:none;align-self:flex-start;font-size:13px}
html[data-look] .lyrics-box.has-lines .ls-edit-src{display:inline-flex}
/* editing the full text: the old lines list steps aside until «Show lines» makes a new one */
.lyrics-box.editing-src .line-picker,.lyrics-box.editing-src #useLines{display:none}
.lyrics-box.has-lines .field.block:has(#source),.lyrics-box.has-lines #split{display:none}
.lyrics-box.has-lines .line-picker{max-height:none;overflow:visible}
.lyrics-box.has-lines #useLines{position:sticky;bottom:calc(12px + env(safe-area-inset-bottom));z-index:3;box-shadow:0 10px 24px -10px rgba(0,0,0,.45)}

@media (max-width:760px){
  /* the card stays in sight above the controls */
  html[data-look] .editor{gap:0;padding-top:0}
  html[data-look] .workspace{position:sticky;top:0;z-index:20;background:var(--bg);padding:8px 0 4px;min-height:0;height:auto;align-content:start;row-gap:2px;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"stage stage" "top foot";align-items:center}
  html[data-look] .stage{grid-area:stage}
  html[data-look] .ws-top{grid-area:top;min-height:0;padding:2px 0;flex-wrap:nowrap;width:auto}
  html[data-look] .ws-foot{grid-area:foot}
  html[data-look] .ws-top .live,html[data-look] .ws-top .dims,html[data-look] .ws-foot #status{display:none}
  html[data-look] .ws-top .save-row{width:auto}
  html[data-look] .stage{--stage-h:30svh;height:var(--stage-h);min-height:0;padding:10px;transition:height .32s cubic-bezier(.2,.8,.2,1);cursor:zoom-in}
  html.ls-big[data-look] .stage{--stage-h:62svh;cursor:zoom-out}
  html[data-look] #preview{max-height:calc(var(--stage-h) - 20px);width:auto;max-width:100%}
  html[data-look] .ws-foot{min-height:0;padding:2px 0;font-size:13px;justify-content:flex-end}
  html[data-look] .ws-foot .link{margin-inline-start:auto}
  html[data-look] .panel .tabs{top:var(--ws-h,0px)}
  html[data-look] header.ls-top{position:relative}
  html[data-look] .pane{scroll-margin-top:calc(var(--ws-h,0px) + 48px)}
  /* looks, filters and photos: swipe, land on a tile */
  .presets.looks,.photo-strip{scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .presets.looks .preset,.photo-strip > *{scroll-snap-align:start}
  .scroller > button,.scroller .sc-btn{display:none!important}
}
@media (prefers-reduced-motion:reduce){html[data-look] .stage{transition:none}}
@media (max-width:760px){
  html.ls-typing[data-look] .workspace{position:relative}
  html.ls-typing[data-look] .panel .tabs{top:0}
}

/* a phone on its side (short and wide): the card on one side, the controls scroll on the other */
@media (orientation:landscape) and (max-height:500px){
  html[data-look] .editor{grid-template-columns:minmax(0,44%) minmax(0,1fr);gap:16px;padding-top:0;align-items:start}
  html[data-look] .workspace{order:-1;position:sticky;top:0;z-index:2;height:100svh;min-height:0;padding:6px 0;background:var(--bg);display:flex;flex-direction:column;box-shadow:none}
  html[data-look] .ws-top .live,html[data-look] .ws-top .dims,html[data-look] .ws-foot #status{display:none}
  html[data-look] .ws-top,html[data-look] .ws-foot{min-height:0;padding:2px 0;flex-wrap:nowrap}
  html[data-look] .ws-top .save-row{width:auto}
  html[data-look] .stage{flex:1;min-height:0;height:auto;padding:8px}
  html[data-look] #preview{max-height:calc(100svh - 110px);width:auto;max-width:100%}
  html[data-look] .panel .tabs{top:0}
  html[data-look] header.ls-top{position:relative}
}
