/* Scoped refinements for background editing and the lyrics tool sheet. */
#sheetBackground.ph-ed #backgroundPhotosBox .ph-tools,
#sheetBackground.ph-ed #backgroundVideoBox .ph-tools {
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
  scrollbar-width:none;
  margin:2px 12px 8px!important;
  padding:6px 4px 8px!important;
}
#sheetBackground.ph-ed .ph-tools::-webkit-scrollbar{display:none}
#sheetBackground.ph-ed #backgroundPhotosBox .ph-tool,
#sheetBackground.ph-ed #backgroundVideoBox .ph-tool {
  display:flex!important;
  flex:0 0 82px!important;
  min-width:82px!important;
  min-height:62px!important;
  padding:8px 5px!important;
  white-space:normal;
}
#sheetBackground.bg-plain .composition-bg-tools{
  display:flex!important;
  flex-wrap:nowrap;
  gap:6px;
  margin:8px 14px;
  overflow-x:auto;
}
#sheetBackground.bg-plain .composition-bg-tools .ph-tool{min-width:82px;min-height:62px}

#sheetTextTools .text-tool-group{
  display:flex;
  flex-direction:column;
  gap:0;
  width:100%;
  border:1px solid var(--reference-line,var(--border));
  border-radius:18px;
  overflow:hidden;
  background:var(--surface);
}
html[data-ui=studio] #sheetTextTools .text-tool-group>.list-row{
  min-height:70px;
  margin:0;
  padding:12px 15px;
  border:0!important;
  border-bottom:1px solid var(--reference-line,var(--border))!important;
  border-radius:0!important;
  background:transparent!important;
  animation:none;
}
html[data-ui=studio] #sheetTextTools .text-tool-group>.list-row:last-child{border-bottom:0!important}
#sheetTextTools .list-row .i{flex:0 0 25px;width:25px;height:25px;color:var(--primary)}
html[data-ui=studio] #sheetTextTools .list-row b{font-size:15px;line-height:1.25}
html[data-ui=studio] #sheetTextTools .list-row small{font-size:12px;line-height:1.35;margin-top:4px}

.photo-duration-entry{display:flex;align-items:center;gap:10px}
.photo-duration-entry>input[type=range]{flex:1 1 auto;min-width:0}
.photo-duration-entry label,.photo-exact-label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:var(--text-muted);font-size:13px}
.photo-duration-entry input[type=number],.photo-exact-label input[type=number],.photo-duration-control input[type=number]{width:74px;min-height:38px;padding:5px 7px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;text-align:center;font-variant-numeric:tabular-nums}
#sheetBackground.ph-ed .ph-step{gap:8px;min-width:0}
#sheetBackground.ph-ed .ph-step .photo-exact-label{margin:0 2px}
.bg-detail .ph-one .photo-exact-label{margin-top:10px}
.photo-duration-control input[type=number]{height:32px}
