.inbox-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--control-quiet-bg);
  color: inherit;
  border: 1px solid var(--header-edge, #465365);
  box-shadow: var(--control-shadow);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font: inherit;
  cursor: pointer;
  margin-left: 10px;
}
.inbox-toggle i {
  font-size: 22px;
}
.inbox-badge {
  background: #547bf0;
  color: #fff;
  border-radius: var(--radius-lg);
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
}
.inbox-badge[hidden] {
  display: none;
}
.inbox-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 24px));
  max-height: 80dvh;
  border: 1px solid #465365;
  border-radius: var(--radius-lg);
  background: #192331;
  color: #f3f6fb;
  padding: 22px;
}
.inbox-dialog::backdrop {
  background: #070b11bb;
}
.inbox-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.inbox-dialog h2 {
  margin: 0;
  font-size: 23px;
}
.inbox-dialog button,
.commerce button {
  border: 1px solid #596b86;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font: inherit;
  background: #25364c;
  color: #fff;
  cursor: pointer;
}
.inbox-dialog button:disabled,
.commerce button:disabled {
  opacity: 0.5;
  cursor: default;
}
.inbox-dialog > button {
  margin: 10px 8px 0 0;
}
.inbox-dialog .inbox-reload {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}
.inbox-reload i { font-size: 22px; }
.inbox-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid #354152;
}
.inbox-entry-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.inbox-entry .inbox-delete {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
  background: transparent;
}
.inbox-entry a {
  font-weight: 650;
  color: #d4e1ff;
}
.inbox-entry p {
  margin: 6px 0;
  line-height: 1.5;
  color: #d1dae7;
}
.inbox-entry time {
  font-size: 12px;
  color: #a7b7cc;
}
.inbox-entry.unread a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #84a3ff;
  margin-right: 9px;
}
.commerce {
  max-width: 780px;
  margin: 40px auto;
  padding: 0 20px 60px;
  color: #f3f6fb;
}
.commerce h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 12px;
}
.commerce p {
  line-height: 1.6;
  color: #c4d0e0;
}
.commerce .card {
  padding: 24px;
  margin: 20px 0;
  background: #1b2737;
  border: 1px solid #3b4b61;
  border-radius: var(--radius-lg);
}
.commerce .price {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}
.commerce .primary {
  background: #426bdd;
  border-color: #6387ed;
}
.commerce button.action-success {
  background: #17633f;
  border-color: #54b881;
}
.commerce button.action-danger {
  background: #962f40;
  border-color: #ed8190;
}
.commerce button.action-warning {
  background: #e7b84b;
  border-color: #ffda80;
  color: #241b09;
}
.commerce button:hover:not(:disabled) {
  filter: brightness(1.15);
}
.commerce button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.commerce .creator-confirm {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #596b86;
  border-radius: var(--radius-lg);
  background: #1b2737;
  color: #f3f6fb;
}
.creator-confirm::backdrop {
  background: #070b11c9;
}
.creator-confirm h2 {
  margin-top: 0;
}
.commerce .confirmation-error {
  color: #ffb8c0;
}
.confirmation-error:empty {
  display: none;
}
.commerce label {
  display: block;
  margin: 16px 0 7px;
}
.commerce input {
  box-sizing: border-box;
  width: 100%;
  background: #101924;
  color: #fff;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-md);
  padding: 12px;
  font: inherit;
}
.commerce .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.commerce .queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #3b4b61;
  padding: 14px 0;
}
.commerce a {
  color: #b4caff;
}
.commerce .support {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.commerce [hidden] {
  display: none !important;
}
.commerce .status {
  min-height: 25px;
}
.commerce ul {
  padding-left: 20px;
  line-height: 1.8;
}
.commerce #creator-code {
  letter-spacing: 3px;
  font-size: 22px;
  font-weight: 700;
}
.creator-body {
  margin: 0;
  background: #111924;
  font-family: system-ui, sans-serif;
}
.creator-body .topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #334055;
  color: #fff;
}
.creator-body .topbar a {
  color: inherit;
  text-decoration: none;
}
@media (max-width: 480px) {
  .inbox-toggle:not(.inbox-menu-item) > span:not(.inbox-badge) {
    display: none;
  }
  .inbox-toggle:not(.inbox-menu-item) {
    padding: 8px;
  }
  .commerce {
    margin-top: 24px;
  }
  .commerce .card {
    padding: 18px;
  }
  .creator-body .topbar {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .creator-body .topbar .brand-art {
    width: 120px;
  }
  .creator-body .topbar > a:not(.brand) {
    font-size: 13px;
  }
  .creator-body .topbar .inbox-toggle {
    margin-left: 0;
  }
  .commerce .queue-row {
    flex-wrap: wrap;
  }
}
