/* The Upgrade / Add credits button beside every balance (CreditsHelper#upgrade_chip). Quiet, like
   the ⚡ balance badge next to it: a small outlined pill in the site's violet. Low (cannot make a
   10-second video): a small magenta dot, nothing louder. */
.kp-upgrade-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-right: 8px;
  border: 1px solid rgba(103, 73, 223, 0.28);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.kp-upgrade-chip, .kp-upgrade-chip:visited { color: #6c4bea !important; }
.kp-upgrade-chip:hover { background: #f7f5ff; border-color: rgba(103, 73, 223, 0.45); }
.kp-upgrade-chip.is-low::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d94cd7;
  box-shadow: 0 0 0 2px #fff;
}

.kp-rail-balance { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 12px; }
.kp-rail-credits { font-size: 12px; font-weight: 600; color: #4b5563; }
.kp-upgrade-chip--rail { margin-right: 0; padding: 0 9px; min-height: 26px; font-size: 11px; }

@media (max-width: 640px) {
  .kp-upgrade-chip { padding: 0 11px; font-size: 12px; min-height: 30px; margin-right: 6px; }
}
.kp-menu-upgrade { color: #6c4bea !important; font-weight: 600; }

/* The phone editor's Upgrade, first in the Export menu: the same green as the top bar's (2026-12-02). */
.mobile-dropdown-item.kp-menu-upgrade-green { color: #0f8a5f !important; font-weight: 600; } /* beats .mobile-dropdown-item's !important */
.mobile-dropdown-item.kp-menu-upgrade-green::before { content: "\26A1"; margin-right: 2px; }
