/* Scoped inline branding UI — dashboard only (body.ps713-dashboard) */
body.ps713-dashboard .studio-brand-card {
  position: relative;
}
body.ps713-dashboard .brand-palette-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.12s, transform 0.12s;
}
body.ps713-dashboard .brand-palette-btn:hover {
  border-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.18);
}
body.ps713-dashboard .brand-accent-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  color: #e5e5ea;
}
body.ps713-dashboard .brand-accent-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
body.ps713-dashboard #nav-business-name {
  cursor: default;
  user-select: none;
}
body.ps713-dashboard .brand-nav-name-input {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #f5f5f7;
  background: rgba(28, 28, 30, 0.95);
  border: 1px solid rgba(10, 132, 255, 0.45);
  border-radius: 8px;
  padding: 4px 10px;
  min-width: 120px;
  max-width: 220px;
}
body.ps713-dashboard #brand-popover.brand-popover {
  position: fixed;
  z-index: 8000;
  min-width: 200px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}
body.ps713-dashboard #brand-popover.brand-popover.is-open {
  opacity: 1;
  pointer-events: auto;
}
body.ps713-dashboard #brand-popover .brand-popover__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
body.ps713-dashboard #brand-popover .brand-popover__label {
  font-size: 12px;
  font-weight: 600;
  color: #a1a1a6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.ps713-dashboard #brand-popover .brand-popover__close {
  border: none;
  background: none;
  color: #8e8e93;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
body.ps713-dashboard #brand-popover .brand-popover__close:hover {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.06);
}
body.ps713-dashboard #brand-popover .brand-popover__color {
  width: 100%;
  height: 44px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1c1c1e;
  cursor: pointer;
}
body.ps713-dashboard #brand-popover .brand-popover__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  gap: 8px;
}
body.ps713-dashboard #brand-popover .brand-popover__apply {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #5a8f6e;
  color: #000;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
body.ps713-dashboard .brand-saved-flash {
  position: absolute;
  top: 10px;
  right: 46px;
  font-size: 11px;
  font-weight: 700;
  color: #5a8f6e;
  white-space: nowrap;
  pointer-events: none;
  animation: brand-flash-in 0.15s ease;
}
body.ps713-dashboard .studio-brand-card .brand-saved-flash {
  right: 46px;
}
body.ps713-dashboard .brand-saved-flash--inline {
  position: static;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 34px;
  animation: brand-flash-in 0.15s ease;
}
body.ps713-dashboard .nav-toolbar {
  flex-wrap: wrap;
}
@keyframes brand-flash-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 600px) {
  body.ps713-dashboard #brand-popover.brand-popover {
    min-width: 200px;
  }
}
