/* Approved desktop concept: compress the selector whitespace, not its targets. */
#sheet-explorer .ss-sheet-upper{
  padding-block:11.2px;
  gap:7px;
}
#sheet-explorer .ss-sheet-stage{
  /* Reserved inside the same backdrop; the playback deck never covers the
     canvas, labels or its drag surface, even when the sheet is edge-on. */
  padding-block-end:58px;
}
#sheet-explorer .ss-sheet-stage .ss-sheet-controls{
  position:absolute;
  z-index:3;
  inset-inline-end:clamp(12px,2%,24px);
  inset-block-end:11px;
  box-sizing:border-box;
  inline-size:min(500px,calc(100% - 24px));
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:6px;
  border:1px solid #4b6d84;
  border-radius:13px;
  background:linear-gradient(135deg,#142a3c,#091722 86%);
  box-shadow:inset 0 0 0 3px #071421b8,0 5px 14px #020a13a8;
}
#sheet-explorer .ss-sheet-stage .ss-sheet-controls button{
  inline-size:auto;
  margin:0;
  padding-inline:12px;
  white-space:nowrap;
  font-size:.74rem;
}
#sheet-explorer .ss-sheet-stage #se-play{
  min-inline-size:132px;
  background:#24495d;
  border-color:#52768a;
}
#sheet-explorer .ss-sheet-stage #se-play::before{
  content:"";
  display:inline-block;
  inline-size:8px;
  block-size:9px;
  margin-inline-end:7px;
  background:currentColor;
  clip-path:polygon(0 0,100% 50%,0 100%);
}
#sheet-explorer .ss-sheet-stage #se-play[aria-pressed="true"]::before{
  clip-path:polygon(0 0,34% 0,34% 100%,0 100%,0 0,64% 0,100% 0,100% 100%,64% 100%,64% 0);
}
#sheet-explorer .ss-sheet-stage .ss-sheet-controls label{
  display:flex;
  gap:9px;
  min-inline-size:0;
  padding-inline:9px 5px;
  border-inline-start:1px solid #39576b;
  font-weight:600;
  font-size:.72rem;
}
#sheet-explorer .ss-sheet-stage .ss-sheet-controls input{
  inline-size:100%;
  min-inline-size:0;
  margin-inline:0;
  accent-color:#9ce1f0;
}
#sheet-explorer .ss-sheet-stage .ss-sheet-hint{
  inset-inline:clamp(171px,17%,240px) min(535px,46%);
  inset-block-end:16px;
  text-align:start;
}
#sheet-explorer .ss-sheet-summary{
  border-top:1px solid #294453;
  padding-block-start:12px;
}
@media(max-width:900px){
  #sheet-explorer .ss-sheet-stage .ss-brand-float,
  #sheet-explorer .ss-sheet-stage .ss-factory-photo-mark{
    inset-block-end:58px;
  }
  #sheet-explorer .ss-sheet-stage .ss-sheet-hint{
    inset-inline:clamp(112px,20%,155px) 14px;
    inset-block-end:61px;
    text-align:end;
    font-size:.69rem;
  }
}
@media(max-width:640px){
  #sheet-explorer .ss-sheet-stage{
    padding-block-end:115px;
  }
  #sheet-explorer .ss-sheet-stage .ss-sheet-controls{
    inset-inline:10px;
    inline-size:auto;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:6px;
  }
  #sheet-explorer .ss-sheet-stage #se-play{
    min-inline-size:0;
  }
  #sheet-explorer .ss-sheet-stage .ss-sheet-controls label{
    grid-column:1 / -1;
    border-inline-start:none;
    padding:0 7px;
    min-block-size:38px;
  }
  #sheet-explorer .ss-sheet-stage .ss-sheet-hint{
    inset-inline:clamp(68px,22%,98px) 12px;
    inset-block-end:102px;
    text-align:end;
  }
  #sheet-explorer .ss-sheet-stage .ss-brand-float,
  #sheet-explorer .ss-sheet-stage .ss-factory-photo-mark{
    inset-block-end:111px;
  }
}
@media(max-width:540px){
  #sheet-explorer .ss-sheet-upper{
    padding-block:9.1px;
    gap:5.6px;
  }
}
@media(pointer:coarse){
  #sheet-explorer .ss-sheet-stage .ss-sheet-controls :is(#se-play,#se-reset){
    min-block-size:44px;
  }
  #sheet-explorer .ss-sheet-stage .ss-sheet-controls input{
    min-block-size:30px;
  }
}
@media(min-width:641px) and (pointer:coarse){
  #sheet-explorer .ss-sheet-stage{padding-block-end:69px}
}

/* Floating tabs: controls share the scene backdrop, not the canvas drag area. */
#sheet-explorer .ss-sheet-floating .ss-sheet-stage{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,28%);
 padding-block-start:54px;
}
#sheet-explorer .ss-sheet-floating .ss-sheet-profile-bar{
 position:absolute;z-index:4;inset:13px clamp(12px,2%,24px) auto;
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
}
#sheet-explorer .ss-sheet-floating .ss-sheet-profile-bar button{
 min-inline-size:0;min-block-size:35px;background:#102638ee;border-radius:9px;
}
#sheet-explorer .ss-sheet-floating .ss-sheet-profile-bar button[aria-pressed=true]{background-color:#18374c}
#sheet-explorer .ss-sheet-floating .ss-sheet-live{top:63px;left:clamp(12px,2%,24px);z-index:1}
#sheet-explorer .ss-sheet-floating canvas{min-width:0;height:clamp(254px,25vw,316px)}
#sheet-explorer .ss-sheet-floating .ss-sheet-live-specs{
 align-self:center;min-width:0;margin-inline-start:0;
 padding-inline-end:clamp(14px,3vw,42px);color:#bdeaf3;
}
#sheet-explorer .ss-sheet-live-specs::before{
 content:"";display:block;width:45px;height:2px;background:#7be5f5;margin-bottom:10px;
}
#sheet-explorer .ss-sheet-live-specs strong{
 display:block;color:#f2f9ff;font-size:clamp(.98rem,1.47vw,1.25rem);line-height:1.23;
}
#sheet-explorer .ss-sheet-live-specs p{font-size:.79rem;line-height:1.42;margin:7px 0 0}
#sheet-explorer .ss-sheet-floating .ss-sheet-lower{
 padding-block:10px;gap:6px;
}
#sheet-explorer .ss-sheet-floating .ss-sheet-summary{
 padding:3px clamp(12px,2%,24px);border-top:1px solid #294453;
}
#sheet-explorer .ss-sheet-floating .ss-sheet-summary p{
 margin:0;max-width:none;font-size:.7rem;line-height:1.35;color:#acc6d7!important;
}
@media(max-width:820px){
 #sheet-explorer .ss-sheet-floating .ss-sheet-stage{grid-template-columns:minmax(0,1fr)}
 #sheet-explorer .ss-sheet-floating .ss-sheet-live-specs{padding:0 14px 15px}
 #sheet-explorer .ss-sheet-floating .ss-sheet-live-specs::before{margin-bottom:6px}
 #sheet-explorer .ss-sheet-floating .ss-sheet-stage :is(.ss-brand-float,.ss-factory-photo-mark,.ss-sheet-hint){display:none}
}
@media(max-width:540px){
 #sheet-explorer .ss-sheet-floating .ss-sheet-stage{padding-block-start:104px}
 #sheet-explorer .ss-sheet-floating .ss-sheet-live{top:111px}
 #sheet-explorer .ss-sheet-floating .ss-sheet-profile-bar{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #sheet-explorer .ss-sheet-floating canvas{height:234px}
 #sheet-explorer .ss-sheet-floating .ss-sheet-lower .ss-sheet-choice-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
}
@media(pointer:coarse){
 #sheet-explorer .ss-sheet-floating .ss-sheet-profile-bar button{min-block-size:44px}
 #sheet-explorer .ss-sheet-floating .ss-sheet-stage{padding-block-start:63px}
 #sheet-explorer .ss-sheet-floating .ss-sheet-live{top:72px}
}
@media(max-width:540px) and (pointer:coarse){
 #sheet-explorer .ss-sheet-floating .ss-sheet-stage{padding-block-start:112px}
 #sheet-explorer .ss-sheet-floating .ss-sheet-live{top:118px}
}
/* Reclaim heading whitespace so the complete tool fits common laptop windows. */
#sheet-explorer:has(.ss-sheet-floating) .ss-sheet-heading{max-width:none;margin-bottom:14px}
#sheet-explorer:has(.ss-sheet-floating) .ss-sheet-heading h2{font-size:clamp(1.8rem,3.4vw,2.85rem);margin-bottom:8px}
#sheet-explorer:has(.ss-sheet-floating) .ss-sheet-heading p{margin-block:0;max-width:none}
@media(min-width:821px){
 #sheet-explorer:has(.ss-sheet-floating) .ss-sheet-heading h2 br{display:none}
}
