/* Baskibu Designer 0.23.0-dev56 — discoverable background + relaxed contextual toolbar */

/* --------------------------------------------------------------------------
   1) Background is a frequent design action. Keep it one click from canvas.
   -------------------------------------------------------------------------- */
.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-quick-dock {
  position:absolute !important;
  z-index:226 !important;
  right:18px !important;
  bottom:18px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  pointer-events:none !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-quick-dock > * {
  pointer-events:auto !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-background-quick {
  margin:0 !important;
  order:0 !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-background-quick .bbd-background-micro-v45__trigger {
  min-height:40px !important;
  padding:0 13px 0 8px !important;
  gap:8px !important;
  border:1px solid rgba(148,163,184,.42) !important;
  border-radius:13px !important;
  background:rgba(255,255,255,.975) !important;
  color:#334155 !important;
  font-size:11px !important;
  font-weight:760 !important;
  box-shadow:0 10px 28px rgba(15,23,42,.11),0 2px 6px rgba(15,23,42,.04) !important;
  backdrop-filter:blur(14px) !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-background-quick .bbd-background-micro-v45__swatch {
  width:20px !important;
  height:20px !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-background-quick .bbd-background-micro-v45__trigger > span:last-child {
  display:inline !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-background-quick .bbd-background-micro-v45__popover {
  left:auto !important;
  right:0 !important;
  top:auto !important;
  bottom:calc(100% + 9px) !important;
  width:268px !important;
  z-index:8400 !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 [data-bbd-v55-background][hidden] {
  display:none !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56.is-preview-mode .bbd-v56-quick-dock {
  display:none !important;
}

/* --------------------------------------------------------------------------
   2) Selected-object toolbar: four calm, readable primary actions.
   Secondary controls are available from Daha.
   -------------------------------------------------------------------------- */
.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar {
  min-height:48px !important;
  gap:5px !important;
  padding:5px !important;
  border-radius:15px !important;
  overflow:visible !important;
  max-width:calc(100% - 24px) !important;
  background:rgba(255,255,255,.975) !important;
  border:1px solid rgba(148,163,184,.38) !important;
  box-shadow:0 14px 36px rgba(15,23,42,.12),0 2px 7px rgba(15,23,42,.04) !important;
  backdrop-filter:blur(16px) saturate(1.08) !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar button {
  min-width:74px !important;
  min-height:38px !important;
  height:38px !important;
  padding:0 10px !important;
  gap:7px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  border-radius:10px !important;
  font-size:10.5px !important;
  font-weight:720 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar .bbd-context-icon {
  width:16px !important;
  height:16px !important;
  flex:0 0 16px !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar .bbd-context-label {
  display:none !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar .bbd-context-label-short {
  display:inline !important;
  overflow:visible !important;
  text-overflow:clip !important;
  max-width:none !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar [data-bbd-context-action="more"] {
  min-width:56px !important;
  padding-inline:9px !important;
}

/* More menu is no longer a cramped utility list. */
.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-object-popover.bbd-context-more-menu {
  width:286px !important;
  max-width:calc(100vw - 28px) !important;
  padding:8px !important;
  border-radius:16px !important;
  box-shadow:0 20px 54px rgba(15,23,42,.16) !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-object-popover .bbd-command-menu__header {
  padding:8px 9px 10px !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-object-popover .bbd-command-menu__item {
  min-height:44px !important;
  padding:8px 10px !important;
  gap:10px !important;
  border-radius:10px !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-object-popover .bbd-command-menu__item strong {
  font-size:11px !important;
  line-height:1.25 !important;
}

.bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-object-popover .bbd-command-menu__item small {
  margin-top:2px !important;
  font-size:9px !important;
  line-height:1.35 !important;
}

@media (max-width:760px) {
  .bbd-modal[data-layout="bottom-sheet"] .bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-quick-dock {
    right:10px !important;
    bottom:74px !important;
  }

  .bbd-modal[data-layout="bottom-sheet"] .bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-background-quick .bbd-background-micro-v45__trigger {
    min-height:38px !important;
    padding:0 10px 0 7px !important;
  }

  .bbd-modal[data-layout="bottom-sheet"] .bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-background-quick .bbd-background-micro-v45__trigger > span:last-child {
    display:inline !important;
  }

  .bbd-modal[data-layout="bottom-sheet"] .bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar {
    gap:3px !important;
    padding:4px !important;
    max-width:calc(100% - 16px) !important;
    overflow-x:auto !important;
    scrollbar-width:none !important;
  }

  .bbd-modal[data-layout="bottom-sheet"] .bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar::-webkit-scrollbar {
    display:none !important;
  }

  .bbd-modal[data-layout="bottom-sheet"] .bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar button {
    min-width:66px !important;
    min-height:36px !important;
    height:36px !important;
    padding:0 8px !important;
    gap:5px !important;
    font-size:9.5px !important;
  }

  .bbd-modal[data-layout="bottom-sheet"] .bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar [data-bbd-context-action="more"] {
    min-width:52px !important;
  }
}

@media (max-width:390px) {
  .bbd-modal[data-layout="bottom-sheet"] .bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar button {
    min-width:61px !important;
    padding-inline:7px !important;
  }
}

@media (prefers-reduced-motion:reduce) {
  .bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-context-route-toolbar,
  .bbd-app.bbd-pro-workspace-v0230-dev56 .bbd-v56-background-quick .bbd-background-micro-v45__trigger {
    transition:none !important;
  }
}
