/* ==========================================================================
   BIMPILOTS — On-Page Visual Studio Stylesheet (v10)
   Clean, non-intrusive hover highlights, frosted architectural floating dock,
   inline link/formatting toolbar, block grip pill, and visual modals.
   ========================================================================== */

:root {
  --bp-ed-bg: rgba(255, 255, 255, 0.96);
  --bp-ed-surface: #f8fafc;
  --bp-ed-border: rgba(15, 23, 42, 0.12);
  --bp-ed-text: #0f172a;
  --bp-ed-muted: #64748b;
  --bp-ed-accent: #2563eb;
  --bp-ed-accent-soft: rgba(37, 99, 235, 0.12);
  --bp-ed-success: #059669;
  --bp-ed-warn: #d97706;
  --bp-ed-danger: #dc2626;
  --bp-ed-shadow: 0 18px 42px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06);
  --bp-ed-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Give page gentle bottom padding when dock is active */
html.bp-edit-mode body {
  padding-bottom: 84px !important;
}

/* Subtle hover-only outline on editable text (zero clutter at rest!) */
html.bp-edit-mode:not(.bp-preview-mode) [data-bp-editable="true"] {
  transition: outline-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
  border-radius: 4px;
  cursor: text;
}

html.bp-edit-mode:not(.bp-preview-mode) [data-bp-editable="true"]:hover {
  outline: 1.5px dashed rgba(37, 99, 235, 0.55);
  outline-offset: 3px;
}

html.bp-edit-mode:not(.bp-preview-mode) [data-bp-editable="true"]:focus,
html.bp-edit-mode:not(.bp-preview-mode) .bp-active-el {
  outline: 2px solid #2563eb !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Active block highlight */
html.bp-edit-mode:not(.bp-preview-mode) .bp-hover-block {
  outline: 1.5px solid rgba(37, 99, 235, 0.45);
  outline-offset: 4px;
}

html.bp-edit-mode:not(.bp-preview-mode) .bp-selected-block {
  outline: 2px solid #2563eb !important;
  outline-offset: 4px !important;
}

html.bp-edit-mode:not(.bp-preview-mode) img[data-bp-img-editable="true"] {
  cursor: pointer;
}
html.bp-edit-mode:not(.bp-preview-mode) img[data-bp-img-editable="true"]:hover {
  outline: 2px dashed #2563eb;
  outline-offset: 4px;
}

/* Drag & Drop visual states */
.bp-dragging {
  opacity: 0.42 !important;
  transform: scale(0.99);
}
.bp-drop-before {
  box-shadow: inset 0 4px 0 0 #2563eb, 0 -4px 12px rgba(37, 99, 235, 0.25) !important;
}
.bp-drop-after {
  box-shadow: inset 0 -4px 0 0 #2563eb, 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

/* Preview mode hides all editor indicators except compact banner / bar */
html.bp-preview-mode #bpFloatingToolbar,
html.bp-preview-mode #bpBlockActionPill {
  display: none !important;
}

/* ==========================================================================
   1. Floating Rich Text + Link + Spacing Toolbar (#bpFloatingToolbar)
   ========================================================================== */
#bpFloatingToolbar {
  position: fixed;
  z-index: 999990;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  max-width: min(94vw, 760px);
  background: var(--bp-ed-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bp-ed-border);
  border-radius: 12px;
  box-shadow: var(--bp-ed-shadow);
  font-family: var(--bp-ed-font);
  color: var(--bp-ed-text);
  font-size: 12px;
  user-select: none;
}

.bp-tb-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-right: 6px;
  margin-right: 2px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}
.bp-tb-group:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.bp-tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--bp-ed-text);
  font-family: var(--bp-ed-font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.bp-tb-btn:hover {
  background: rgba(15, 23, 42, 0.07);
}
.bp-tb-btn.bp-tb-danger:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--bp-ed-danger);
}

.bp-tb-select {
  height: 28px;
  padding: 0 6px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 7px;
  background: #ffffff;
  color: var(--bp-ed-text);
  font-family: var(--bp-ed-font);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}
.bp-tb-select:focus {
  border-color: var(--bp-ed-accent);
}

.bp-tb-size-val {
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--bp-ed-muted);
}

.bp-tb-link-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.bp-tb-link-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--bp-ed-muted);
  white-space: nowrap;
}
.bp-tb-link-input {
  flex: 1;
  min-width: 180px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 7px;
  background: #ffffff;
  color: var(--bp-ed-text);
  font-family: var(--bp-ed-font);
  font-size: 12px;
  outline: none;
}
.bp-tb-link-input:focus {
  border-color: var(--bp-ed-accent);
}

/* Color & Spacing Popovers inside Floating Toolbar */
.bp-tb-popover {
  position: relative;
  display: inline-flex;
}
.bp-tb-color-panel,
.bp-tb-spacing-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 215px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--bp-ed-border);
  border-radius: 12px;
  box-shadow: var(--bp-ed-shadow);
  z-index: 999995;
}
.bp-tb-color-panel.open,
.bp-tb-spacing-panel.open {
  display: block;
}
.bp-color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.bp-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.bp-swatch:hover {
  transform: scale(1.12);
}
.bp-custom-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 11px;
  color: var(--bp-ed-muted);
}
.bp-spacing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--bp-ed-text);
}
.bp-spacing-row:last-child {
  margin-bottom: 0;
}
.bp-spacing-val {
  min-width: 36px;
  text-align: center;
  color: var(--bp-ed-accent);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   2. Block Hover / Grip Action Pill (#bpBlockActionPill)
   ========================================================================== */
#bpBlockActionPill {
  position: fixed;
  z-index: 999985;
  display: none;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 9px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.28);
  font-family: var(--bp-ed-font);
  font-size: 11px;
  user-select: none;
}
.bp-pill-tag {
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
}
.bp-pill-grip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  cursor: grab;
}
.bp-pill-grip:active {
  cursor: grabbing;
}
.bp-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #e2e8f0;
  font-family: var(--bp-ed-font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.bp-pill-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.bp-pill-btn.bp-pill-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
}

/* ==========================================================================
   3. Bottom Floating Command Dock (#bpEditBar)
   ========================================================================== */
#bpEditBar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999992;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  background: var(--bp-ed-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--bp-ed-border);
  border-radius: 16px;
  box-shadow: var(--bp-ed-shadow);
  font-family: var(--bp-ed-font);
  color: var(--bp-ed-text);
  white-space: nowrap;
}

.bp-dock-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
}
.bp-dock-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--bp-ed-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.bp-dock-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bp-ed-text);
}

.bp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bp-ed-surface);
  color: var(--bp-ed-muted);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.bp-status-pill.is-dirty {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.bp-status-pill.is-saved {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.bp-dock-sep {
  width: 1px;
  height: 22px;
  background: rgba(15, 23, 42, 0.1);
  flex-shrink: 0;
}

.bp-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #ffffff;
  color: var(--bp-ed-text);
  font-family: var(--bp-ed-font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.bp-dock-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.2);
}
.bp-dock-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.bp-dock-btn.is-active {
  background: var(--bp-ed-accent-soft);
  color: var(--bp-ed-accent);
  border-color: rgba(37, 99, 235, 0.35);
}

.bp-dock-btn-save {
  background: var(--bp-ed-accent);
  color: #ffffff;
  border-color: var(--bp-ed-accent);
  padding: 0 15px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}
.bp-dock-btn-save:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.bp-dock-btn-danger {
  color: var(--bp-ed-danger);
}
.bp-dock-btn-danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fecaca;
}

/* ==========================================================================
   4. Quick Studio Launcher Pill & Disk Notice Banner
   ========================================================================== */
#bpEditModeLauncher {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999980;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--bp-ed-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  color: var(--bp-ed-text);
  font-family: var(--bp-ed-font);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#bpEditModeLauncher:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--bp-ed-accent);
}

#bpSyncBanner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999991;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-family: var(--bp-ed-font);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

/* ==========================================================================
   5. Modals (Auth, Sections, Image Studio, Sync & Export)
   ========================================================================== */
.bp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  font-family: var(--bp-ed-font);
}

.bp-modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--bp-ed-border);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
  color: var(--bp-ed-text);
}

.bp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bp-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--bp-ed-text);
}
.bp-modal-sub {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bp-ed-muted);
}
.bp-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--bp-ed-surface);
  color: var(--bp-ed-muted);
  font-size: 16px;
  cursor: pointer;
}
.bp-modal-close:hover {
  background: #e2e8f0;
  color: var(--bp-ed-text);
}

.bp-field-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-ed-text);
}

.bp-input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: var(--bp-ed-text);
  font-family: var(--bp-ed-font);
  font-size: 13px;
  outline: none;
}
.bp-input:focus {
  border-color: var(--bp-ed-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bp-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.bp-btn-primary {
  flex: 1;
  min-width: 120px;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: var(--bp-ed-accent);
  color: #ffffff;
  font-family: var(--bp-ed-font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bp-btn-primary:hover {
  background: #1d4ed8;
}
.bp-btn-secondary {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: var(--bp-ed-surface);
  color: var(--bp-ed-text);
  font-family: var(--bp-ed-font);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.bp-btn-secondary:hover {
  background: #e2e8f0;
}

.bp-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.bp-section-card {
  text-align: left;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--bp-ed-surface);
  cursor: pointer;
  transition: all 0.14s ease;
}
.bp-section-card:hover {
  border-color: var(--bp-ed-accent);
  background: #eff6ff;
}
.bp-section-card strong {
  display: block;
  font-size: 13px;
  color: var(--bp-ed-text);
  margin-bottom: 3px;
}
.bp-section-card span {
  display: block;
  font-size: 11.5px;
  color: var(--bp-ed-muted);
  line-height: 1.4;
}

.bp-sync-box {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--bp-ed-surface);
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}
.bp-img-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  max-height: 220px;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: var(--bp-ed-surface);
  overflow: hidden;
  margin-bottom: 10px;
}
.bp-img-preview-box img {
  max-width: 100%;
  max-height: 190px;
  object-fit: contain;
  border-radius: 8px;
}

/* ==========================================================================
   6. Editor Toast Notification
   ========================================================================== */
#bpEditorToast {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 999998;
  padding: 9px 16px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-family: var(--bp-ed-font);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#bpEditorToast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   7. Elementor-Style Left Sidebar Panel (#bpElementorPanel)
   ========================================================================== */
html.bp-edit-mode:not(.bp-preview-mode):not(.bp-panel-collapsed) body {
  padding-left: 308px !important;
  transition: padding-left 0.2s ease;
}

html.bp-preview-mode #bpElementorPanel {
  display: none !important;
}

#bpElementorPanel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 999994;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.08);
  font-family: var(--bp-ed-font);
  color: var(--bp-ed-text);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

html.bp-panel-collapsed #bpElementorPanel {
  transform: translateX(-300px);
}

#bpElCollapseBtn {
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  width: 24px;
  height: 52px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 4px 0 12px rgba(15, 23, 42, 0.15);
}

.bp-el-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #0f172a;
  color: #ffffff;
}
.bp-el-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bp-el-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.bp-el-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}
.bp-el-tab {
  padding: 10px 6px;
  border: none;
  background: transparent;
  font-family: var(--bp-ed-font);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--bp-ed-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.14s ease;
}
.bp-el-tab:hover {
  color: var(--bp-ed-text);
  background: rgba(15, 23, 42, 0.03);
}
.bp-el-tab.is-active {
  color: var(--bp-ed-accent);
  border-bottom-color: var(--bp-ed-accent);
  background: #ffffff;
}

.bp-el-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  padding-bottom: 84px;
}

.bp-el-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bp-ed-muted);
  margin: 14px 0 8px;
}
.bp-el-section-label:first-child {
  margin-top: 0;
}

.bp-widget-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.bp-widget-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--bp-ed-text);
  font-family: var(--bp-ed-font);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: center;
}
.bp-widget-tile:hover {
  border-color: var(--bp-ed-accent);
  background: rgba(37, 99, 235, 0.06);
  color: var(--bp-ed-accent);
  transform: translateY(-1px);
}
.bp-widget-icon {
  font-size: 17px;
  line-height: 1;
}

.bp-section-tpl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bp-section-tpl-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  font-family: var(--bp-ed-font);
  transition: all 0.14s ease;
}
.bp-section-tpl-btn:hover {
  border-color: var(--bp-ed-accent);
  background: #f8fafc;
}
.bp-section-tpl-btn strong {
  font-size: 12px;
  color: var(--bp-ed-text);
}
.bp-section-tpl-btn span {
  font-size: 11px;
  color: var(--bp-ed-muted);
}

/* Inspector Controls */
.bp-insp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 11px;
}
.bp-insp-crumb {
  background: transparent;
  border: none;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--bp-ed-muted);
  cursor: pointer;
}
.bp-insp-crumb:hover,
.bp-insp-crumb.is-current {
  background: rgba(37, 99, 235, 0.12);
  color: var(--bp-ed-accent);
  font-weight: 700;
}

.bp-insp-group {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #ffffff;
}
.bp-insp-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--bp-ed-text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bp-insp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.bp-insp-row:last-child {
  margin-bottom: 0;
}
.bp-insp-row label {
  font-size: 11.5px;
  color: var(--bp-ed-muted);
  font-weight: 500;
  min-width: 72px;
}
.bp-insp-input,
.bp-insp-select {
  flex: 1;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 7px;
  font-family: var(--bp-ed-font);
  font-size: 12px;
  color: var(--bp-ed-text);
  background: #ffffff;
}
.bp-insp-range {
  flex: 1;
  accent-color: var(--bp-ed-accent);
}
.bp-insp-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.bp-insp-btn {
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--bp-ed-text);
  font-family: var(--bp-ed-font);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.bp-insp-btn:hover {
  border-color: var(--bp-ed-accent);
  color: var(--bp-ed-accent);
}
.bp-insp-btn.is-danger:hover {
  border-color: var(--bp-ed-danger);
  color: var(--bp-ed-danger);
  background: rgba(220, 38, 38, 0.06);
}

/* Navigator Layer Tree */
.bp-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 11.5px;
  transition: all 0.12s ease;
}
.bp-nav-item:hover,
.bp-nav-item.is-selected {
  border-color: var(--bp-ed-accent);
  background: rgba(37, 99, 235, 0.06);
}
.bp-nav-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--bp-ed-text);
}
.bp-nav-item-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--bp-ed-accent);
  background: rgba(37, 99, 235, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
}
.bp-nav-item-btns {
  display: inline-flex;
  gap: 2px;
}
.bp-nav-mini-btn {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--bp-ed-muted);
  cursor: pointer;
  font-size: 11px;
}
.bp-nav-mini-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--bp-ed-text);
}
