.login-brand-catalogkings {
  --portal-brand-font: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --login-page-bg: #f3f5f7;
  --login-window-bg: transparent;
  --login-stage-bg:
    linear-gradient(135deg, rgba(0, 166, 223, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(23, 72, 118, 0.13), transparent 46%),
    #f3f5f7;
  --login-logo-plate-bg: transparent;
  --login-logo-plate-border: transparent;
  --login-logo-frame-width: 420px;
  --login-logo-frame-height: 210px;
  --login-logo-max-width: 360px;
  --login-logo-max-height: 162px;
  --login-heading-color: #20242a;
  --login-input-text: #20242a;
  --login-input-border: #dce2e8;
  --login-input-focus-bg: #fff8cf;
  --login-action-bg: #174876;
  --login-action-bg-hover: #10365a;
  --login-action-text: #ffffff;
  --login-footer-bg: #20242a;
  --login-muted-text: #596677;
  --login-footer-text: #cbd3dc;
  --portal-address-icon-color: #174876;
  --portal-address-edit-bg: linear-gradient(180deg, #fbfdff 0%, #edf5fa 48%, #e3eef5 100%);
  --catalogkings-email-topbar: linear-gradient(
    90deg,
    #00a6df 0 25%,
    #ec008c 25% 50%,
    #ffcf00 50% 75%,
    #20242a 75% 100%
  );

  /*
   * Client-upload skin. These values are adapted from the approved 2025
   * Catalog Kings HTML email family: neutral paper, dark ink, cyan structure,
   * and a small yellow highlight. Following owner review, the portal's navy
   * (#174876) is the primary action color; magenta remains in the logo artwork
   * rather than dominating controls. The upload layout consumes these variables
   * without duplicating a brand-specific page template.
   */
  --upload-font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --upload-page-bg:
    linear-gradient(135deg, rgba(0, 166, 223, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(23, 72, 118, 0.13), transparent 46%),
    #f3f5f7;
  --upload-card-bg: #ffffff;
  --upload-ink: #20242a;
  --upload-muted: #596677;
  --upload-rule: #dce2e8;
  --upload-header-bg: #ffffff;
  --upload-header-ink: #20242a;
  --upload-header-muted: #4d5966;
  --upload-logo-plate-bg: transparent;
  --upload-logo-plate-border: transparent;
  --upload-primary: #174876;
  --upload-primary-hover: #10365a;
  --upload-primary-text: #ffffff;
  --upload-secondary: #00a6df;
  --upload-accent-soft: #f5fbff;
  --upload-accent-border: #b9e2f4;
  --upload-drop-bg: #fff8d8;
  --upload-highlight: #ffcf00;
  --upload-spectrum: var(--catalogkings-email-topbar);
  --upload-header-topbar-height: 6px;
  --upload-header-bottombar-height: 0;
  --upload-summary-bg: #20242a;
  --upload-summary-text: #ffffff;
  --upload-footer-bg: #20242a;
  --upload-footer-text: #cbd3dc;
  --upload-button-radius: 8px;
  --upload-card-radius: 10px;
}

/*
 * Match the approved Catalog Kings email header on every Portal surface. The
 * uploader owns an inset card, so its bar is rendered by .upload-header above;
 * all other Portal pages receive the same exact four-segment bar at page top.
 */
body.login-brand-catalogkings:not(.client-upload-page)::before {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--catalogkings-email-topbar);
  content: "";
  pointer-events: none;
}

/* A quieter version of the uploader title face for section headings. Keep the
 * established navy supplied by --upload-primary, but avoid the former 800
 * weight competing visually with the page's main title. */
.login-brand-catalogkings.client-upload-page legend {
  font-family: var(--upload-font-family);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.login-brand-catalogkings.client-upload-page .upload-header p {
  font-size: 14px;
  line-height: 1.45;
}

/* Match the approved Catalog Kings title weight without changing the badge
 * typography used by the other hostname-selected uploader themes. */
.login-brand-catalogkings.client-upload-page .upload-badge {
  font-weight: 700;
}

.login-brand-catalogkings.client-upload-page #review-button {
  font-weight: 700;
}

.login-brand-catalogkings.client-upload-page #upload-dialog-done {
  font-weight: 700;
}

/* Bring the upload-progress treatment back to the magenta segment of the
 * Catalog Kings logo without returning magenta to general portal actions. */
.login-brand-catalogkings.client-upload-page .upload-dialog progress {
  accent-color: #ec008c;
}

.login-brand-catalogkings.client-upload-page .upload-dialog progress::-webkit-progress-value,
.login-brand-catalogkings.client-upload-page .upload-dialog progress::-moz-progress-bar {
  background: linear-gradient(180deg, #ec008c 0%, #ff73bd 100%);
}

@media (max-width: 600px) {
  .login-brand-catalogkings.client-upload-page legend {
    font-size: 17px;
  }

  .login-brand-catalogkings.client-upload-page .upload-header p {
    font-size: 13px;
  }
}
