.builder-v2-mode-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
  font: 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
  position: relative;
  z-index: 40;
}
.builder-v2-mode-title,
.builder-v2-mode-buttons,
.builder-v2-mode-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.builder-v2-mode-title strong {
  white-space: nowrap;
}
.builder-v2-mode-title span:last-child {
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.builder-v2-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
  flex: 0 0 auto;
}
.builder-v2-mode-shell button {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  padding: 6px 10px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.builder-v2-mode-shell button:hover,
.builder-v2-mode-shell button:focus-visible {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.72);
  outline: none;
}
.builder-v2-mode-shell button.is-active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.builder-v2-audit-panel {
  position: fixed;
  right: 16px;
  top: 116px;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 136px);
  overflow: auto;
  z-index: 2147483000;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.55);
  padding: 14px;
  font: 13px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.builder-v2-audit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.builder-v2-audit-head button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.builder-v2-audit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.builder-v2-audit-grid div {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.7);
  padding: 10px;
}
.builder-v2-audit-grid b {
  display: block;
  font-size: 18px;
  color: #bfdbfe;
}
.builder-v2-audit-grid span,
.builder-v2-audit-note {
  color: #94a3b8;
}
.builder-v2-audit-note {
  margin: 12px 0;
}
.builder-v2-audit-warnings {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #fde68a;
}
.builder-v2-audit-ok {
  color: #86efac;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  padding: 9px 10px;
}
@media (max-width: 900px) {
  .builder-v2-mode-shell {
    align-items: stretch;
    flex-direction: column;
  }
  .builder-v2-mode-buttons,
  .builder-v2-mode-actions {
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .builder-v2-mode-shell button {
    white-space: nowrap;
  }
  .builder-v2-audit-panel {
    top: 142px;
    right: 8px;
  }
}
