.bp-shell{
  padding:18px;
  margin:18px 0;
  width:min(1600px,96vw);
  margin-left:50%;
  transform:translateX(-50%);
}
.bp-head{
  display:flex;
  gap:16px;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:16px;
}
.bp-head h1{
  margin:10px 0 6px;
  font-size:clamp(1.7rem,3vw,2.4rem);
}
.bp-head p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  max-width:82ch;
}
.bp-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.bp-layout{
  display:grid;
  grid-template-columns:230px minmax(0,1fr) 220px;
  gap:14px;
  align-items:start;
}
.bp-tools,.bp-info{
  padding:14px;
  position:sticky;
  top:88px;
}
.bp-tools h2,.bp-info h2{
  margin:0 0 10px;
  font-size:1.05rem;
}
.bp-tool-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.bp-tool{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 11px;
  border-radius:12px;
  border:1px solid var(--border);
  color:var(--text);
  background:rgba(255,255,255,.035);
  cursor:pointer;
  text-align:left;
}
.bp-tool:hover,.bp-tool.active{
  border-color:rgba(255,30,30,.65);
  background:rgba(255,30,30,.12);
}
.bp-tool small{
  color:var(--muted);
}
.bp-check{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0;
  color:var(--muted);
}
.bp-help{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:.92rem;
}
.bp-help strong{color:var(--text);}
.bp-stage-wrap{
  position:relative;
  min-width:0;
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:rgba(0,0,0,.42);
  box-shadow:var(--shadow);
}
#bpCanvas{
  display:block;
  width:100%;
  height:auto;
  cursor:crosshair;
  touch-action:none;
}
#bpCanvas.can-pan,
#bpCanvas.is-panning{
  cursor:grab;
}
#bpCanvas.is-panning{
  cursor:grabbing;
}
.bp-status{
  position:absolute;
  left:12px;
  bottom:12px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.68);
  color:var(--muted);
  font-size:.88rem;
  pointer-events:none;
}
.bp-line{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid var(--border);
}
.bp-line span:last-child{color:var(--text);}
.bp-muted{color:var(--muted);line-height:1.55;}
@media (max-width:1100px){
  .bp-layout{grid-template-columns:1fr;}
  .bp-tools,.bp-info{position:static;}
  .bp-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
  .bp-head{flex-direction:column;}
  .bp-tool-grid{grid-template-columns:1fr;}
}

.bp-mini-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin:12px 0;
}
#bpSelectMode.active{
  border-color:rgba(255,30,30,.85);
  background:rgba(255,30,30,.18);
  box-shadow:0 0 14px rgba(255,30,30,.18);
}


.bp-count-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin:0 0 10px;
}
.bp-count-summary div{
  padding:10px 8px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.035);
  text-align:center;
}
.bp-count-summary strong{
  display:block;
  font-size:1.2rem;
  line-height:1;
  color:var(--text);
}
.bp-count-summary span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:.78rem;
}
