/* Scene library control and overlay styles */
.scene-library-control{
  padding:16px 0;
  margin-bottom:12px;
  cursor:pointer;
}
.scene-library-control .title{
  font-size:16px;
  font-weight:600;
}
.scene-library-control .value{
  color:#777;
  margin-left:10px;
}

#sceneLibraryOverlay{
 position:absolute;
 inset:16px;
 display:none;
 z-index:1000;
 background:rgba(255,255,255,.72);
 backdrop-filter:blur(18px) saturate(120%);
 -webkit-backdrop-filter:blur(18px) saturate(120%);
 border:1px solid rgba(255,255,255,.65);
 border-radius:18px;
 box-shadow:0 12px 40px rgba(0,0,0,.08);
 overflow:auto;
}
#sceneLibraryOverlay.open{display:block;}
.scene-overlay-header{
 display:flex;
 justify-content:space-between;
 align-items:center;
 padding:20px;
 position:sticky;
 top:0;
 background:rgba(255,255,255,.35);
}
.scene-overlay-title{font-size:28px;font-weight:650;}
.scene-overlay-close{cursor:pointer;font-size:20px;}

.scene-browser-panel{
background:transparent;
height:100%;
overflow:auto;
}

.scene-browser-header{
font-size:28px;
font-weight:650;
letter-spacing:-.03em;
margin-bottom:14px;
}

.scene-filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
}
.scene-filter-chip{
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.32);
  color:#777;
  border-radius:999px;
  padding:7px 12px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
  transition:border-color .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
}
.scene-filter-chip:hover{
  border-color:#111;
  color:#111;
  background:rgba(255,255,255,.6);
}
.scene-filter-chip.active{
  border-color:#111;
  background:#111;
  color:#fff;
}

.scene-browser-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.scene-browser-card{
  cursor:pointer;
  border:1px solid transparent;
  border-radius:10px;
  padding:6px;
  transition:border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.scene-browser-card:hover{
  border-color:#111;
  background:rgba(255,255,255,.28);
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}
.scene-browser-thumb{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:8px;
  background:#EAEAE6;
  display:block;
}
.scene-browser-name{
  font-size:12px;
  font-weight:600;
  margin-top:8px;
  line-height:1.25;
}
.scene-browser-empty{
  grid-column:1/-1;
  color:#777;
  font-size:12px;
  padding:20px 0;
}

.workspace-hidden{
display:none!important;
}

/* Force workspace visible */
.output-panel{
 display:block !important;
 visibility:visible !important;
 opacity:1 !important;
}
.workspace-hidden{
 display:block !important;
 visibility:visible !important;
 opacity:1 !important;
}
