#setmodeView .so-counter-grid .so-counter-flexible{display:grid!important;gap:7px!important;min-width:0!important;padding:9px!important;border:1px solid #3d4149!important;border-radius:12px!important;background:#15181d!important}
#setmodeView .so-counter-flexible .so-counter-label{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;flex-wrap:wrap!important}
#setmodeView .so-counter-flexible .so-counter-label>label{font-size:13px!important;font-weight:750!important;color:#e5e7eb!important;margin:0!important;padding:0!important;background:none!important;border:0!important}
#setmodeView .so-counter-flexible .so-counter-mode{display:flex!important;gap:3px!important;padding:3px!important;border:1px solid #3d4149!important;border-radius:8px!important;background:#0d1014!important}
#setmodeView .so-counter-flexible .so-counter-mode button{width:auto!important;min-width:33px!important;min-height:25px!important;height:auto!important;font-size:11px!important;padding:4px 6px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#9ca3ad!important;line-height:1.3!important}
#setmodeView .so-counter-flexible .so-counter-mode button[aria-pressed=true]{background:#ffd400!important;color:#10151b!important}
#setmodeView .so-counter-flexible .so-counter-control{display:grid!important;grid-template-columns:34px minmax(0,1fr) 34px!important;align-items:stretch!important;gap:7px!important}
#setmodeView .so-counter-flexible .so-counter-control input{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:42px!important;height:auto!important;padding:8px 6px!important;font-size:21px!important;line-height:1.2!important;font-weight:750!important;text-align:center!important;border:1px solid #41464f!important;border-radius:9px!important;background:#0d1014!important;color:#f2f3f5!important}
#setmodeView .so-counter-flexible .so-counter-control>button{min-width:0!important;width:34px!important;height:auto!important;min-height:42px!important;padding:0!important;font-size:21px!important;background:#24282f!important;color:#ffdf4c!important;border:1px solid #41464f!important;border-radius:9px!important}
#setmodeView .so-counter-flexible[data-counter-mode=text] .so-counter-control{grid-template-columns:minmax(0,1fr)!important}
#setmodeView .so-counter-flexible[data-counter-mode=text] .so-counter-control input{text-align:left!important;font-size:17px!important;padding:8px!important}
#setmodeView .so-counter-flexible [hidden]{display:none!important}
@media(max-width:1100px){#setmodeView .so-counter-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important}}

#setmodeView .so-counter-grid{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:10px!important}
#setmodeView .so-counter-grid .so-counter-flexible{flex:0 0 156px!important;width:156px!important;max-width:100%!important;box-sizing:border-box!important;padding:7px!important;gap:5px!important}
#setmodeView .so-counter-flexible .so-counter-label{gap:4px!important}
#setmodeView .so-counter-flexible .so-counter-control{grid-template-columns:27px minmax(0,1fr) 27px!important;gap:4px!important}
#setmodeView .so-counter-flexible .so-counter-control input{min-height:32px!important;height:32px!important;padding:3px!important;font-size:18px!important}
#setmodeView .so-counter-flexible .so-counter-control>button{width:27px!important;min-height:32px!important;height:32px!important;font-size:18px!important}
#setmodeView .so-counter-grid .so-counter-flexible[data-counter-mode=text]{flex:1 1 300px!important;width:auto!important;max-width:540px!important}
#setmodeView .so-counter-flexible[data-counter-mode=text] .so-counter-control{grid-template-columns:minmax(0,1fr)!important}
#setmodeView .so-counter-flexible[data-counter-mode=text] .so-counter-control input{font-size:16px!important;min-height:38px!important;height:38px!important;padding:7px!important}
#setmodeView .so-card-entry{padding:12px 0;border-bottom:1px solid #343943;margin-bottom:8px}

/* Three compact slate fields; only text expands beyond one column. */
#setmodeView .so-counter-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;max-width:480px!important;align-items:start!important}
#setmodeView .so-counter-grid .so-counter-flexible{width:auto!important;max-width:none!important;min-width:0!important;padding:6px!important;gap:4px!important;grid-column:span 1!important}
#setmodeView .so-counter-flexible .so-counter-label{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:4px!important}
#setmodeView .so-counter-flexible .so-counter-label>label{font-size:12px!important;line-height:1.2!important}
#setmodeView .so-counter-flexible .so-counter-mode{padding:2px!important;gap:2px!important;justify-self:start!important}
#setmodeView .so-counter-flexible .so-counter-mode button{min-width:0!important;min-height:22px!important;padding:3px 5px!important;font-size:10px!important;line-height:1.2!important}
#setmodeView .so-counter-flexible .so-counter-control{grid-template-columns:22px minmax(0,1fr) 22px!important;gap:3px!important}
#setmodeView .so-counter-flexible .so-counter-control input{min-height:30px!important;height:30px!important;font-size:16px!important;padding:2px!important}
#setmodeView .so-counter-flexible .so-counter-control>button{width:22px!important;min-height:30px!important;height:30px!important;font-size:16px!important}
#setmodeView .so-counter-grid .so-counter-flexible[data-counter-mode=text]{width:auto!important;max-width:none!important;grid-column:span 2!important}
#setmodeView .so-counter-flexible[data-counter-mode=text] .so-counter-control{grid-template-columns:minmax(0,1fr)!important}
#setmodeView .so-counter-flexible[data-counter-mode=text] .so-counter-control input{min-height:34px!important;height:34px!important;font-size:15px!important;padding:5px!important}

/* Slate headers remain inline; expanded fields share the available grid. */
#setmodeView .so-counter-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:640px!important;align-items:stretch!important}
#setmodeView .so-counter-flexible .so-counter-label{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important;gap:3px!important}
#setmodeView .so-counter-flexible .so-counter-label>label{font-size:11px!important;white-space:nowrap!important}
#setmodeView .so-counter-flexible .so-counter-mode{flex:0 0 auto!important;gap:1px!important;padding:1px!important}
#setmodeView .so-counter-flexible .so-counter-mode button{font-size:9px!important;padding:3px!important;min-height:21px!important}
#setmodeView .so-counter-grid .so-counter-flexible[data-counter-mode=text]{grid-column:auto!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text]){grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(2,auto)!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text])>[data-counter-mode=text]{grid-column:1 / 3!important;grid-row:1 / 3!important;align-content:start!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text])>[data-counter-mode=numeric]{grid-column:3!important;grid-row:auto!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text]~[data-counter-mode=text]){grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto auto!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text]~[data-counter-mode=text])>.so-counter-flexible{grid-column:auto!important;grid-row:auto!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text]~[data-counter-mode=text])>[data-counter-mode=numeric]{grid-column:1 / -1!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text]~[data-counter-mode=text]~[data-counter-mode=text]){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text])>[data-counter-mode=text] .so-counter-control input{min-height:46px!important;height:46px!important}
@media(max-width:360px){#setmodeView .so-counter-flexible .so-counter-label>label{font-size:10px!important}#setmodeView .so-counter-flexible .so-counter-mode button{font-size:8px!important;padding:3px 2px!important}#setmodeView .so-counter-grid .so-counter-flexible{padding:4px!important}}

/* Expanded text uses the full row; numeric fields share the remaining row. */
#setmodeView .so-counter-grid:has(>[data-counter-mode=text]){grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;align-items:start!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text])>.so-counter-flexible{grid-row:auto!important;grid-column:auto!important;align-content:start!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text])>[data-counter-mode=text]{grid-column:1 / -1!important;grid-row:auto!important;order:0!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text])>[data-counter-mode=numeric]{grid-column:auto!important;grid-row:auto!important;order:1!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text]~[data-counter-mode=text])>[data-counter-mode=text]{grid-column:1 / -1!important;grid-row:auto!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text]~[data-counter-mode=text])>[data-counter-mode=numeric]{grid-column:auto!important}
#setmodeView .so-counter-grid:has(>[data-counter-mode=text]~[data-counter-mode=text]~[data-counter-mode=text]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
#setmodeView .so-counter-grid .so-counter-flexible[data-counter-mode=text] .so-counter-control{display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
#setmodeView .so-counter-grid .so-counter-flexible[data-counter-mode=text] .so-counter-control input{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;min-height:38px!important;height:38px!important}

/* Desktop: the three slate controls follow the same full-width column rhythm as
   Camera, physical media and Clip Number. Mobile behavior above stays intact. */
@media(min-width:1101px){
  #setmodeView .so-counter-grid{
    width:100%!important;
    max-width:none!important;
    gap:12px!important;
  }
  #setmodeView .so-counter-grid .so-counter-flexible{
    padding:10px!important;
    gap:7px!important;
  }
  #setmodeView .so-counter-flexible .so-counter-label>label{
    font-size:13px!important;
  }
  #setmodeView .so-counter-flexible .so-counter-mode button{
    font-size:10px!important;
    padding:4px 6px!important;
  }
  #setmodeView .so-counter-flexible .so-counter-control{
    grid-template-columns:32px minmax(0,1fr) 32px!important;
    gap:7px!important;
  }
  #setmodeView .so-counter-flexible .so-counter-control input,
  #setmodeView .so-counter-flexible .so-counter-control>button{
    min-height:40px!important;
    height:40px!important;
  }
  #setmodeView .so-counter-flexible .so-counter-control>button{
    width:32px!important;
  }
  #setmodeView .so-counter-flexible .so-counter-control input{
    font-size:19px!important;
  }
}

/* Mobile: keep the three numeric fields side by side without controls crossing
   into the neighboring card. Text mode keeps the existing expanded reflow. */
@media(max-width:600px){
  #setmodeView .so-counter-grid{
    width:100%!important;
    max-width:none!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
  }
  #setmodeView .so-counter-grid .so-counter-flexible{
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    padding:5px!important;
    gap:5px!important;
    box-sizing:border-box!important;
  }
  #setmodeView .so-counter-flexible .so-counter-label{
    display:flex!important;
    flex-wrap:nowrap!important;
    min-width:0!important;
    gap:3px!important;
  }
  #setmodeView .so-counter-flexible .so-counter-label>label{
    flex:1 1 auto!important;
    min-width:0!important;
    font-size:11px!important;
  }
  #setmodeView .so-counter-flexible .so-counter-mode{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    flex:0 0 64px!important;
    width:64px!important;
    max-width:64px!important;
    min-width:0!important;
    gap:1px!important;
    padding:1px!important;
    box-sizing:border-box!important;
  }
  #setmodeView .so-counter-flexible .so-counter-mode button,
  #setmodeView .so-counter-flexible .so-counter-mode button[aria-pressed]{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:25px!important;
    height:25px!important;
    padding:2px 1px!important;
    margin:0!important;
    font-size:9px!important;
    line-height:1!important;
    box-sizing:border-box!important;
  }
  #setmodeView .so-counter-flexible .so-counter-control{
    width:100%!important;
    min-width:0!important;
    grid-template-columns:24px minmax(0,1fr) 24px!important;
    gap:3px!important;
    box-sizing:border-box!important;
  }
  #setmodeView .so-counter-flexible .so-counter-control input{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:36px!important;
    min-height:36px!important;
    padding:2px!important;
    box-sizing:border-box!important;
  }
  #setmodeView .so-counter-flexible .so-counter-control>button{
    width:24px!important;
    min-width:24px!important;
    max-width:24px!important;
    height:36px!important;
    min-height:36px!important;
    padding:0!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
}

@media(max-width:390px){
  #setmodeView .so-counter-grid{gap:3px!important}
  #setmodeView .so-counter-grid .so-counter-flexible{padding:4px!important}
  #setmodeView .so-counter-flexible .so-counter-mode{flex-basis:58px!important;width:58px!important;max-width:58px!important}
  #setmodeView .so-counter-flexible .so-counter-mode button{font-size:8px!important}
  #setmodeView .so-counter-flexible .so-counter-control{grid-template-columns:22px minmax(0,1fr) 22px!important;gap:2px!important}
  #setmodeView .so-counter-flexible .so-counter-control>button{width:22px!important;min-width:22px!important;max-width:22px!important}
}

/* Build 2607: one flexible text field per slate item. Numeric values remain
   accepted, but there is no mode switch or stepper to collide on small screens. */
#setmodeView .so-counter-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%!important;
  max-width:none!important;
  gap:8px!important;
}
#setmodeView .so-counter-grid .so-counter-plain{
  display:grid!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  padding:9px!important;
  gap:7px!important;
  box-sizing:border-box!important;
}
#setmodeView .so-counter-plain .so-counter-label{
  display:block!important;
  min-width:0!important;
}
#setmodeView .so-counter-plain .so-counter-label>label{
  display:block!important;
  font-size:13px!important;
  line-height:1.2!important;
}
#setmodeView .so-counter-plain .so-counter-control{
  display:block!important;
  width:100%!important;
  min-width:0!important;
}
#setmodeView .so-counter-plain .so-counter-control input{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:42px!important;
  min-height:42px!important;
  padding:7px 9px!important;
  text-align:center!important;
  font-size:18px!important;
  box-sizing:border-box!important;
}
@media(max-width:600px){
  #setmodeView .so-counter-grid{gap:5px!important}
  #setmodeView .so-counter-grid .so-counter-plain{padding:6px!important;gap:5px!important}
  #setmodeView .so-counter-plain .so-counter-label>label{font-size:11px!important}
  #setmodeView .so-counter-plain .so-counter-control input{height:38px!important;min-height:38px!important;padding:5px!important;font-size:16px!important}
}
@media(max-width:360px){
  #setmodeView .so-counter-grid{gap:3px!important}
  #setmodeView .so-counter-grid .so-counter-plain{padding:5px!important}
  #setmodeView .so-counter-plain .so-counter-control input{font-size:15px!important}
}

/* Build 2609: compact steppers + adaptive value preview + focused editor. */
#setmodeView .so-counter-plain .so-slate-value{display:none!important}
#setmodeView .so-counter-plain .so-counter-control{
  grid-template-columns:26px minmax(0,1fr) 26px!important;
  gap:5px!important;
}
#setmodeView .so-counter-plain .so-counter-control>button:not(.so-slate-preview){
  width:26px!important;
  min-width:26px!important;
  max-width:26px!important;
  height:38px!important;
  min-height:38px!important;
  border-radius:8px!important;
  font-size:17px!important;
}
#setmodeView .so-counter-plain .so-slate-preview{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:4px 6px!important;
  overflow:hidden!important;
  border:1px solid #41464f!important;
  border-radius:9px!important;
  background:#0d1014!important;
  color:#f2f3f5!important;
  font-weight:800!important;
  line-height:1.05!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
#setmodeView .so-counter-plain .so-slate-preview span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#setmodeView .so-counter-plain .so-slate-preview.is-short{font-size:18px!important}
#setmodeView .so-counter-plain .so-slate-preview.is-md{font-size:14px!important}
#setmodeView .so-counter-plain .so-slate-preview.is-lg{font-size:11px!important}
#setmodeView .so-counter-plain .so-slate-preview.is-xl{font-size:9px!important}
#setmodeView .so-slate-editor[hidden]{display:none!important}
#setmodeView .so-slate-editor{
  position:fixed!important;
  inset:0!important;
  z-index:100000!important;
  display:grid!important;
  place-items:center!important;
  padding:18px!important;
  background:rgba(2,5,9,.78)!important;
  backdrop-filter:blur(8px);
}
#setmodeView .so-slate-editor-card{
  width:min(460px,100%)!important;
  display:grid!important;
  gap:12px!important;
  padding:20px!important;
  border:1px solid #46505e!important;
  border-radius:18px!important;
  background:#151a22!important;
  box-shadow:0 24px 80px rgba(0,0,0,.55)!important;
  box-sizing:border-box!important;
}
#setmodeView .so-slate-editor-card strong{font-size:20px;color:#fff}
#setmodeView .so-slate-editor-card p{margin:0;color:#b9c0cc;font-size:13px}
#setmodeView .so-slate-editor-card input{
  width:100%!important;
  min-width:0!important;
  min-height:52px!important;
  padding:11px 13px!important;
  border:1px solid #596474!important;
  border-radius:12px!important;
  background:#090d12!important;
  color:#fff!important;
  font-size:18px!important;
  box-sizing:border-box!important;
}
#setmodeView .so-slate-editor-card>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#setmodeView .so-slate-editor-card>div .btn{width:100%!important;margin:0!important}
@media(max-width:600px){
  #setmodeView .so-counter-plain .so-counter-control{grid-template-columns:18px minmax(0,1fr) 18px!important;gap:2px!important}
  #setmodeView .so-counter-plain .so-counter-control>button:not(.so-slate-preview){width:18px!important;min-width:18px!important;max-width:18px!important;height:34px!important;min-height:34px!important;border-radius:6px!important;font-size:14px!important}
  #setmodeView .so-counter-plain .so-slate-preview{height:34px!important;min-height:34px!important;padding:3px!important}
  #setmodeView .so-counter-plain .so-slate-preview.is-short{font-size:17px!important}
  #setmodeView .so-counter-plain .so-slate-preview.is-md{font-size:12px!important}
  #setmodeView .so-counter-plain .so-slate-preview.is-lg{font-size:10px!important}
  #setmodeView .so-counter-plain .so-slate-preview.is-xl{font-size:8px!important}
}

/* Build 2610: one segmented control; longer text receives a full row. */
#setmodeView .so-counter-grid .so-counter-plain{
  border-color:#394351!important;
  border-radius:15px!important;
  background:linear-gradient(155deg,#171c24 0%,#12161d 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
#setmodeView .so-counter-plain .so-counter-label>label{
  color:#e8ebf0!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
}
#setmodeView .so-counter-plain .so-counter-control{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) 24px!important;
  align-items:stretch!important;
  gap:0!important;
  overflow:hidden!important;
  border:1px solid #424c59!important;
  border-radius:11px!important;
  background:#090d12!important;
  box-sizing:border-box!important;
}
#setmodeView .so-counter-plain .so-counter-control>button:not(.so-slate-preview){
  display:grid!important;
  place-items:center!important;
  width:24px!important;
  min-width:24px!important;
  max-width:24px!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#1b212a!important;
  color:#ffd83d!important;
  box-shadow:none!important;
  font-size:15px!important;
  line-height:1!important;
  box-sizing:border-box!important;
}
#setmodeView .so-counter-plain .so-counter-control>button:first-child{border-right:1px solid #38414d!important}
#setmodeView .so-counter-plain .so-counter-control>button:last-child{border-left:1px solid #38414d!important}
#setmodeView .so-counter-plain .so-slate-preview{
  border:0!important;
  border-radius:0!important;
  background:#0b1016!important;
  box-shadow:none!important;
}
#setmodeView .so-counter-plain .so-slate-preview:focus-visible{
  outline:2px solid #ffd400!important;
  outline-offset:-3px!important;
}
@media(max-width:600px){
  #setmodeView .so-counter-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  #setmodeView .so-counter-grid .so-counter-plain{
    padding:7px!important;
    gap:6px!important;
    min-height:82px!important;
  }
  #setmodeView .so-counter-plain .so-counter-control{
    grid-template-columns:20px minmax(0,1fr) 20px!important;
    min-height:36px!important;
  }
  #setmodeView .so-counter-plain .so-counter-control>button:not(.so-slate-preview){
    width:20px!important;
    min-width:20px!important;
    max-width:20px!important;
    height:36px!important;
    min-height:36px!important;
    font-size:13px!important;
  }
  #setmodeView .so-counter-plain .so-slate-preview{
    height:36px!important;
    min-height:36px!important;
    padding:3px 5px!important;
  }
  #setmodeView .so-counter-grid:has(.so-slate-preview:is(.is-md,.is-lg,.is-xl)){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #setmodeView .so-counter-grid .so-counter-plain:has(.so-slate-preview:is(.is-md,.is-lg,.is-xl)){
    grid-column:1 / -1!important;
  }
  #setmodeView .so-counter-plain .so-slate-preview.is-md{font-size:16px!important}
  #setmodeView .so-counter-plain .so-slate-preview.is-lg{font-size:14px!important}
  #setmodeView .so-counter-plain .so-slate-preview.is-xl{font-size:12px!important}
}
@media(max-width:360px){
  #setmodeView .so-counter-grid{gap:5px!important}
  #setmodeView .so-counter-grid .so-counter-plain{padding:6px!important}
}
