.bld-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bld-layout { display: grid; grid-template-columns: 200px 1fr 260px; gap: 12px; min-height: 520px; }
.bld-layout.mobile { grid-template-columns: 1fr; }
.bld-pal, .bld-insp {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; overflow: auto;
}
.bld-pal-g h3 { font-size: 0.72rem; letter-spacing: 0.06em; margin: 10px 0 6px; color: #64748b; }
.bld-pal-item {
  display: block; width: 100%; text-align: left; margin: 4px 0; padding: 6px 8px;
  border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; cursor: pointer;
}
.bld-pal-item:disabled { opacity: 0.4; cursor: not-allowed; }
.bld-canvas-wrap { position: relative; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 12px; min-height: 520px; overflow: auto; }
.bld-edges { position: absolute; inset: 0; pointer-events: none; }
.bld-canvas { position: relative; min-height: 900px; min-width: 900px; }
.bld-node {
  position: absolute; width: 220px; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px;
  padding: 8px 10px; box-shadow: 0 6px 16px rgba(15,23,42,.06); cursor: pointer;
}
.bld-node header { font-size: 0.68rem; letter-spacing: 0.06em; color: #64748b; }
.bld-node.selected { border-color: #4f46e5; box-shadow: 0 0 0 2px #c7d2fe; }
.bld-node.has-err { border-color: #dc2626; }
.bld-node-err { color: #991b1b; font-size: 0.75rem; font-weight: 600; margin-top: 4px; }
.bld-when { display: inline-block; font-size: 0.7rem; background: #e0e7ff; color: #3730a3; padding: 1px 6px; border-radius: 6px; }
.bld-insp textarea { width: 100%; font-family: ui-monospace, monospace; font-size: 0.78rem; }
.bld-status { background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: 8px; max-height: 180px; overflow: auto; }
.bld-mobile-note { background: #fef3c7; color: #92400e; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.bld-linear { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 12px 12px 28px; }
.bld-linear .has-err { color: #991b1b; }
.bld-error { border: 1px dashed #fecaca; background: #fef2f2; padding: 16px; border-radius: 12px; }
@media (max-width: 840px) {
  .bld-layout { grid-template-columns: 1fr; }
  .bld-canvas-wrap, .bld-pal { display: none; }
}
