.studio-heading .bb-actions, .course-detail-top .bb-actions {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
}
.studio-heading .bb-actions { justify-content:flex-end; }
.bb-launch {
  display:inline-flex; align-items:center; gap:7px; padding:9px 12px;
  border:1px solid #afc3d4; border-radius:7px; color:#284c69; background:white;
  font:650 13px/1.3 var(--sans,sans-serif); cursor:pointer;
}
.bb-launch:hover, .bb-launch:focus-visible { color:#173c5d; border-color:#547998; background:#f1f6fa; }
.bb-launch svg { width:16px; height:16px; }
.bb-launch[hidden], main:not(:is([data-view=bench],[data-view=modules],[data-view=board],[data-view=placa])) #projectBreadboard { display:none; }
.ex-card .bb-links { display:flex; flex-wrap:wrap; gap:14px; margin-top:auto; align-items:baseline; }
.ex-card .bb-links .ex-guide-link { margin-top:0; }
#breadboardDialog {
  width:min(1120px,calc(100vw - 24px)); max-width:100%; max-height:min(92dvh,1050px);
  padding:0; border:1px solid #acc1d0; border-radius:12px; background:#fff; color:#1b3449;
  box-shadow:0 16px 64px #142c4540; overflow:hidden;
}
#breadboardDialog[open] { display:flex; flex-direction:column; }
#breadboardDialog::backdrop { background:#0e223e80; }
.bb-dialog-header {
  flex:none; display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:14px clamp(14px,3vw,30px); border-bottom:1px solid #d8e3eb; background:#f7fafc;
}
.bb-dialog-header h2 { margin:0; font-size:clamp(18px,2vw,25px); color:#17354d; line-height:1.2; }
.bb-dialog-header p { margin:3px 0 0; color:#536c81; font-size:14px; overflow-wrap:anywhere; }
.bb-dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.bb-dialog-header button { flex:none; background:white; color:#36556e; border:1px solid #b8cbd8; border-radius:6px; padding:6px 10px; }
#breadboardContent { min-height:0; overflow:auto; padding:clamp(10px,2vw,24px); overscroll-behavior:contain; }
@media(max-width:660px) {
  .studio-heading:has(#projectBreadboard:not([hidden])) { flex-wrap:wrap; }
  .studio-heading .bb-actions { justify-content:flex-start; }
  #breadboardDialog { width:calc(100vw - 10px); max-height:95dvh; border-radius:8px; }
}
