/*
 * Broadimage Apple material system
 * Approved by Fernando — 2026-07-29
 *
 * Scope: visual tokens, typography, material surfaces, borders, controls,
 * focus, and primary actions. This file intentionally does not alter content,
 * routes, form behavior, media, account controls, or menu geometry.
 */

:root {
  --bi-apple-page-light: #f5f5f7;
  --bi-apple-page-dark: #020407;
  --bi-apple-ink-light: #1d1d1f;
  --bi-apple-ink-dark: #f5f5f7;
  --bi-apple-muted-light: #515154;
  --bi-apple-muted-dark: #c7c7cc;
  --bi-apple-quiet-light: #6e6e73;
  --bi-apple-quiet-dark: #aeaeb2;
  --bi-apple-blue: #0071e3;
  --bi-apple-blue-hover: #0076df;
  --bi-apple-blue-active: #006edb;
  --bi-apple-link-light: #0066cc;
  --bi-apple-link-dark: #2997ff;
  --bi-apple-danger-light: #d70015;
  --bi-apple-danger-dark: #ff453a;
  --bi-apple-success-light: #248a3d;
  --bi-apple-success-dark: #30d158;
  --bi-apple-card-light: rgba(255, 255, 255, 0.72);
  --bi-apple-card-dark: rgba(12, 15, 20, 0.78);
  --bi-apple-card-strong-light: rgba(255, 255, 255, 0.88);
  --bi-apple-card-strong-dark: rgba(17, 20, 27, 0.9);
  --bi-apple-field-light: rgba(255, 255, 255, 0.66);
  --bi-apple-field-dark: rgba(27, 31, 39, 0.72);
  --bi-apple-line-light: rgba(60, 60, 67, 0.28);
  --bi-apple-line-dark: rgba(235, 235, 245, 0.2);
  --bi-apple-separator-light: rgba(60, 60, 67, 0.18);
  --bi-apple-separator-dark: rgba(235, 235, 245, 0.13);
  --bi-apple-card-radius: 16px;
  --bi-apple-cell-radius: 10px;
  --bi-apple-button-radius: 999px;
  --bi-apple-control-height: 44px;
  --bi-apple-card-shadow-light:
    0 22px 64px rgba(27, 31, 38, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --bi-apple-card-shadow-dark:
    0 26px 76px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --bi-apple-liquid-shadow-light:
    0 12px 34px rgba(31, 40, 52, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --bi-apple-liquid-shadow-dark:
    0 14px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html.light {
  color-scheme: light;
  --bi-bg: var(--bi-apple-page-light);
  --bi-fg: var(--bi-apple-ink-light);
  --bi-muted: var(--bi-apple-muted-light);
  --bi-muted-2: var(--bi-apple-quiet-light);
  --bi-muted-3: var(--bi-apple-quiet-light);
  --bi-link: var(--bi-apple-link-light);
  --bi-border: var(--bi-apple-line-light);
  --bi-card-bg: var(--bi-apple-card-light);
  --bi-input-bg: var(--bi-apple-field-light);
  --bi-input-border: var(--bi-apple-line-light);
  --bi-btn-bg: var(--bi-apple-blue);
  --bi-btn-fg: #fff;
  --bi-strong: var(--bi-apple-ink-light);
  --ink: var(--bi-apple-ink-light);
  --muted: var(--bi-apple-muted-light);
  --quiet: var(--bi-apple-quiet-light);
  --page: var(--bi-apple-page-light);
  --card: var(--bi-apple-card-light);
  --card-strong: var(--bi-apple-card-strong-light);
  --field: var(--bi-apple-field-light);
  --line: var(--bi-apple-line-light);
  --wire: var(--bi-apple-blue);
  --wire-deep: var(--bi-apple-blue-active);
  --wire-text: var(--bi-apple-link-light);
  --focus: var(--bi-apple-blue);
  --shadow: var(--bi-apple-card-shadow-light);
}

html.dark {
  color-scheme: dark;
  --bi-bg: var(--bi-apple-page-dark);
  --bi-fg: var(--bi-apple-ink-dark);
  --bi-muted: var(--bi-apple-muted-dark);
  --bi-muted-2: var(--bi-apple-quiet-dark);
  --bi-muted-3: var(--bi-apple-quiet-dark);
  --bi-link: var(--bi-apple-link-dark);
  --bi-border: var(--bi-apple-line-dark);
  --bi-card-bg: var(--bi-apple-card-dark);
  --bi-input-bg: var(--bi-apple-field-dark);
  --bi-input-border: var(--bi-apple-line-dark);
  --bi-btn-bg: var(--bi-apple-blue);
  --bi-btn-fg: #fff;
  --bi-strong: var(--bi-apple-ink-dark);
  --ink: var(--bi-apple-ink-dark);
  --muted: var(--bi-apple-muted-dark);
  --quiet: var(--bi-apple-quiet-dark);
  --page: var(--bi-apple-page-dark);
  --card: var(--bi-apple-card-dark);
  --card-strong: var(--bi-apple-card-strong-dark);
  --field: var(--bi-apple-field-dark);
  --line: var(--bi-apple-line-dark);
  --wire: var(--bi-apple-blue);
  --wire-deep: var(--bi-apple-blue-active);
  --wire-text: var(--bi-apple-link-dark);
  --focus: var(--bi-apple-link-dark);
  --shadow: var(--bi-apple-card-shadow-dark);
}

html.light body {
  color: var(--bi-apple-ink-light);
  background-color: var(--bi-apple-page-light);
  background-image:
    radial-gradient(circle at 18% -8%, rgba(255, 255, 255, 0.96), transparent 34rem),
    linear-gradient(155deg, #f8f8fa 0%, var(--bi-apple-page-light) 58%, #efeff2 100%);
  background-attachment: fixed;
}

html.dark body {
  color: var(--bi-apple-ink-dark);
  background-color: var(--bi-apple-page-dark);
  background-image:
    radial-gradient(circle at 80% 6%, rgba(41, 151, 255, 0.13), transparent 34rem),
    radial-gradient(circle at 12% 92%, rgba(0, 113, 227, 0.06), transparent 30rem),
    linear-gradient(155deg, #020407 0%, #06090e 54%, #020407 100%);
  background-attachment: fixed;
}

html.light body::before,
html.dark body::before {
  opacity: 0 !important;
  background-image: none !important;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/*
 * Standard material: cards and cells remain in the content layer.
 */
:where(
  .registration-card,
  .page > .biwiz,
  .access-card,
  .kpi,
  .contact-card,
  .contact-form,
  .city,
  .toc,
  .notice,
  .important,
  .box,
  .card,
  .agent-card,
  .choice-fieldset,
  .permission-box,
  .agreement-box,
  .biwiz-consent,
  .geo-suggestions,
  .review-panel,
  .customer-id-card
) {
  border: 1px solid var(--bi-border, var(--line)) !important;
  border-radius: var(--bi-apple-card-radius) !important;
  background: var(--bi-card-bg, var(--card)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

html.light :where(
  .registration-card,
  .page > .biwiz,
  .access-card,
  .kpi,
  .contact-card,
  .contact-form,
  .city,
  .toc,
  .notice,
  .important,
  .box,
  .card,
  .agent-card
) {
  box-shadow: var(--bi-apple-card-shadow-light);
}

html.dark :where(
  .registration-card,
  .page > .biwiz,
  .access-card,
  .kpi,
  .contact-card,
  .contact-form,
  .city,
  .toc,
  .notice,
  .important,
  .box,
  .card,
  .agent-card
) {
  box-shadow: var(--bi-apple-card-shadow-dark);
}

.page > .biwiz {
  width: 100%;
  max-width: 640px;
  padding: clamp(20px, 5vw, 38px);
}

header.site-header {
  border-bottom-color: var(--bi-border, var(--line)) !important;
  background: var(--bi-card-bg, var(--card)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
  backdrop-filter: blur(22px) saturate(145%) !important;
}

footer.site-footer {
  border-top-color: var(--bi-border, var(--line)) !important;
  background: var(--bi-card-bg, var(--card)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

/*
 * Liquid Glass: header controls only. Width, height, radius, icon geometry,
 * and burger-line dimensions deliberately remain owned by existing CSS.
 */
:where(
  #biMenuBtn,
  #langToggle,
  /* Editorial home header, joined 2026-08-16 so every control carries the same
   * material as the burger instead of a hand-copied rgba(0,0,0,.55)/blur(6px).
   * Membership only — geometry stays owned by index.html, per the note above. */
  .bi-home-portal,
  #biVideoToggle,
  #biHelpBtn,
  #biAcctBtn,
  .theme-switch,
  .editorial-theme-switch,
  .editorial-locale-control,
  .editorial-menu-button,
  #dashHamBtn,
  .sh-burger
) {
  border-color: rgba(255, 255, 255, 0.24) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035) 48%, rgba(0, 0, 0, 0.08)),
    rgba(20, 24, 31, 0.46) !important;
  box-shadow: var(--bi-apple-liquid-shadow-dark) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
}

/* Some legacy homepages declare the language surface later with an
 * ID-level !important rule. Keep its existing 44px geometry and only
 * raise specificity enough to apply the approved Liquid Glass material.
 */
html #langToggle {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035) 48%, rgba(0, 0, 0, 0.08)),
    rgba(20, 24, 31, 0.46) !important;
}

html.light :where(
  #biMenuBtn,
  #langToggle,
  /* Inert today — the editorial home page sets no theme class, so html.light never
   * matches there. Joined anyway so the four controls can never be left on dark glass
   * against a light bar the day that page gains a theme. Same reasoning that fixed the
   * two-marks-painting bug: write every state explicitly rather than lean on a default. */
  .bi-home-portal,
  #biVideoToggle,
  #biHelpBtn,
  #biAcctBtn,
  .theme-switch,
  .editorial-theme-switch,
  .editorial-locale-control,
  .editorial-menu-button
) {
  color: var(--bi-apple-ink-light);
  border-color: rgba(255, 255, 255, 0.82) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.48) 52%, rgba(225, 228, 234, 0.42)),
    rgba(255, 255, 255, 0.58) !important;
  box-shadow: var(--bi-apple-liquid-shadow-light) !important;
}

html.light #langToggle {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.48) 52%, rgba(225, 228, 234, 0.42)),
    rgba(255, 255, 255, 0.58) !important;
}

body.contributor-dashboard:not(.dark) :where(#dashHamBtn, .sh-burger) {
  color: var(--bi-apple-ink-light);
  border-color: rgba(255, 255, 255, 0.82) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.48) 52%, rgba(225, 228, 234, 0.42)),
    rgba(255, 255, 255, 0.58) !important;
  box-shadow: var(--bi-apple-liquid-shadow-light) !important;
}

html.light #biMenuBtn span {
  background: var(--bi-apple-ink-light) !important;
}

html.dark #biMenuBtn span {
  background: var(--bi-apple-ink-dark) !important;
}

body.contributor-dashboard:not(.dark) :where(#dashHamBtn, .sh-burger) span {
  background: var(--bi-apple-ink-light) !important;
}

body.contributor-dashboard.dark :where(#dashHamBtn, .sh-burger) span {
  background: var(--bi-apple-ink-dark) !important;
}

:where(
  #biMenuBtn,
  #langToggle,
  /* joined with the material above — a background hover cannot work on these controls
   * anyway, because the Liquid Glass background carries !important. brightness() is the
   * hover the burger already uses, so this is what "same as Menu" actually means. */
  .bi-home-portal,
  #biVideoToggle,
  #biHelpBtn,
  #biAcctBtn,
  .theme-switch,
  .editorial-theme-switch,
  .editorial-locale-control,
  .editorial-menu-button,
  #dashHamBtn,
  .sh-burger
):hover {
  filter: brightness(1.06);
}

/*
 * Neutral form cells. Focus is a separate blue ring and never recolors the
 * physical cell border.
 */
:where(
  .contact-form input:not([type="checkbox"]):not([type="radio"]),
  .contact-form select,
  .contact-form textarea,
  .biwiz input:not([type="checkbox"]):not([type="radio"]),
  .biwiz select,
  .registration-card input:not([type="checkbox"]):not([type="radio"]),
  .registration-card select,
  .registration-card textarea,
  .modal form input:not([type="checkbox"]):not([type="radio"]),
  .modal form select,
  .modal form textarea
) {
  min-height: var(--bi-apple-control-height) !important;
  padding: 10px 12px !important;
  color: var(--bi-fg, var(--ink)) !important;
  background: var(--bi-input-bg, var(--field)) !important;
  border: 1px solid var(--bi-input-border, var(--line)) !important;
  border-radius: var(--bi-apple-cell-radius) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  font-size: 16px !important;
}

:where(
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .biwiz input,
  .biwiz select,
  .registration-card input,
  .registration-card select,
  .registration-card textarea,
  .modal form input,
  .modal form select,
  .modal form textarea
):focus,
:where(
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .biwiz input,
  .biwiz select,
  .registration-card input,
  .registration-card select,
  .registration-card textarea,
  .modal form input,
  .modal form select,
  .modal form textarea
):focus-visible {
  border-color: var(--bi-input-border, var(--line)) !important;
  outline: 3px solid var(--focus, var(--bi-apple-blue)) !important;
  outline-offset: 2px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

:where(
  .contact-form label,
  .biwiz label:not(.biwiz-check),
  .registration-card label:not(.choice)
) {
  font-size: 14px !important;
}

:where(
  .helper,
  .biwiz-help,
  .biwiz-hint,
  .biwiz-field-err,
  .biwiz-strength-word,
  .field-hint,
  .field-error,
  .required-note,
  .step-copy,
  .recaptcha-notice
) {
  font-size: 14px !important;
}

/*
 * Apple web primary button: #0071E3 in both appearances, #0076DF hover,
 * #006EDB pressed, white label, capsule edge, and a restrained glass layer.
 */
:where(
  .button-primary,
  .biwiz-next,
  .biwiz-submit,
  .opm-login-submit,
  .contact-form button[type="submit"],
  .content .login,
  #npSubmit,
  .bdg-btn.primary,
  #metaSubmit
) {
  min-height: var(--bi-apple-control-height) !important;
  padding: 10px 18px !important;
  color: #fff !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 48%),
    var(--bi-apple-blue) !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  border-radius: var(--bi-apple-button-radius) !important;
  box-shadow:
    0 10px 28px rgba(0, 86, 176, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
  backdrop-filter: blur(22px) saturate(170%) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

:where(
  .button-primary,
  .biwiz-next,
  .biwiz-submit,
  .opm-login-submit,
  .contact-form button[type="submit"],
  .content .login,
  #npSubmit,
  .bdg-btn.primary,
  #metaSubmit
):hover:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 48%),
    var(--bi-apple-blue-hover) !important;
}

:where(
  .button-primary,
  .biwiz-next,
  .biwiz-submit,
  .opm-login-submit,
  .contact-form button[type="submit"],
  .content .login,
  #npSubmit,
  .bdg-btn.primary,
  #metaSubmit
):active:not(:disabled) {
  background: var(--bi-apple-blue-active) !important;
  transform: translateY(0) scale(0.985);
}

:where(
  .button-secondary,
  .biwiz-back,
  .biwiz-keep,
  .content .signup
) {
  min-height: var(--bi-apple-control-height) !important;
  padding: 10px 18px !important;
  color: var(--bi-fg, var(--ink)) !important;
  background: var(--bi-card-bg, var(--card)) !important;
  border: 1px solid var(--bi-border, var(--line)) !important;
  border-radius: var(--bi-apple-button-radius) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  font-size: 14px !important;
  font-weight: 600 !important;
}

.biwiz-danger,
.btn-danger,
#cloneClearAll,
#cloneDeleteSelected {
  color: #fff !important;
  background: var(--bi-apple-danger-light) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

html.dark .biwiz-danger,
body.contributor-dashboard.dark .btn-danger,
body.contributor-dashboard.dark #cloneClearAll,
body.contributor-dashboard.dark #cloneDeleteSelected {
  background: var(--bi-apple-danger-dark) !important;
}

.btn-success,
#finishBtn {
  color: #fff !important;
  background: var(--bi-apple-success-light) !important;
}

body.contributor-dashboard.dark :where(.btn-success, #finishBtn) {
  color: #001806 !important;
  background: var(--bi-apple-success-dark) !important;
}

/*
 * Registration details: blue is reserved for progress, links, focus, and
 * actions. Decorative blue borders/backgrounds become neutral material.
 */
.registration-card::before {
  display: none !important;
}

:where(
  .reference-preview,
  .design-preview-banner,
  .design-preview-notice,
  .review-panel,
  .customer-id-card
) {
  border-color: var(--bi-border, var(--line)) !important;
  background: rgba(127, 127, 127, 0.055) !important;
}

:where(.reference-preview, .design-preview-notice, .review-panel) {
  border-left-color: var(--bi-border, var(--line)) !important;
}

:where(.eyebrow, .status-kicker, .design-preview-banner strong) {
  color: var(--bi-muted, var(--muted)) !important;
}

:where(.progress-fill, .biwiz-progress-fill) {
  background: linear-gradient(90deg, var(--bi-apple-blue-active), var(--bi-apple-blue)) !important;
}

.progress-track {
  background: var(--bi-border, var(--line)) !important;
}

.editorial-phone-country-control {
  min-height: var(--bi-apple-control-height) !important;
  background: var(--bi-input-bg, var(--field)) !important;
  border: 1px solid var(--bi-input-border, var(--line)) !important;
  border-radius: var(--bi-apple-cell-radius) !important;
}

.editorial-phone-country-control:focus-within {
  outline: 3px solid var(--focus) !important;
  outline-offset: 2px !important;
}

.editorial-phone-country-control select {
  border-radius: 0 var(--bi-apple-cell-radius) var(--bi-apple-cell-radius) 0 !important;
}

.choice input,
.biwiz-check input {
  accent-color: var(--bi-apple-blue) !important;
}

/*
 * Home-page curtains. Media, logos, badges, the user avatar, menu contents,
 * and hero positioning are deliberately excluded.
 */
.modal form,
.opm-panel {
  color: var(--bi-apple-ink-dark) !important;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), transparent 42%),
    rgba(8, 11, 16, 0.88) !important;
  border: 1px solid var(--bi-apple-line-dark) !important;
  border-radius: var(--bi-apple-card-radius) !important;
  box-shadow: var(--bi-apple-card-shadow-dark) !important;
  -webkit-backdrop-filter: blur(26px) saturate(150%) !important;
  backdrop-filter: blur(26px) saturate(150%) !important;
}

.opm-login-submit {
  width: 100%;
  justify-content: center;
}

.content :where(button, a.login) {
  min-height: var(--bi-apple-control-height);
  font-size: 14px !important;
}

/*
 * Contributor dashboard. A body class is added only to dashboard.html so
 * these rules cannot leak into either protected video homepage.
 */
body.contributor-dashboard {
  --bg: var(--bi-apple-page-light);
  --fg: var(--bi-apple-ink-light);
  --muted: var(--bi-apple-muted-light);
  --brand: var(--bi-apple-blue);
  --brand-2: var(--bi-apple-blue-hover);
  --card: var(--bi-apple-card-light);
  --border: var(--bi-apple-line-light);
  --input-bg: var(--bi-apple-field-light);
  --radius: var(--bi-apple-card-radius);
  --bi-primary-1: var(--bi-apple-blue);
  --bi-primary-2: var(--bi-apple-blue-active);
  color: var(--fg);
  background-color: var(--bi-apple-page-light);
  background-image:
    radial-gradient(circle at 18% -8%, rgba(255, 255, 255, 0.96), transparent 34rem),
    linear-gradient(155deg, #f8f8fa 0%, var(--bi-apple-page-light) 58%, #efeff2 100%);
  background-attachment: fixed;
  font-size: 15px;
}

body.contributor-dashboard.dark {
  --bg: var(--bi-apple-page-dark);
  --fg: var(--bi-apple-ink-dark);
  --muted: var(--bi-apple-muted-dark);
  --brand: var(--bi-apple-blue);
  --brand-2: var(--bi-apple-link-dark);
  --card: var(--bi-apple-card-dark);
  --border: var(--bi-apple-line-dark);
  --input-bg: var(--bi-apple-field-dark);
  color: var(--fg);
  background-color: var(--bi-apple-page-dark);
  background-image:
    radial-gradient(circle at 80% 6%, rgba(41, 151, 255, 0.13), transparent 34rem),
    radial-gradient(circle at 12% 92%, rgba(0, 113, 227, 0.06), transparent 30rem),
    linear-gradient(155deg, #020407 0%, #06090e 54%, #020407 100%);
}

body.contributor-dashboard :where(
  .card,
  .panel,
  .sh-section,
  .modal-inner,
  .cMS-glass,
  .users-console,
  .editorial-buyers-admin
) {
  border-color: var(--border) !important;
  border-radius: var(--bi-apple-card-radius) !important;
  background: var(--card) !important;
  box-shadow: var(--bi-apple-card-shadow-light);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

body.contributor-dashboard :where(
  .card,
  .panel,
  .sh-section,
  .modal-inner,
  .cMS-glass,
  .users-console,
  .editorial-buyers-admin
) {
  border: 1px solid var(--border) !important;
}

body.contributor-dashboard.dark :where(
  .card,
  .panel,
  .sh-section,
  .modal-inner,
  .cMS-glass,
  .users-console,
  .editorial-buyers-admin
) {
  box-shadow: var(--bi-apple-card-shadow-dark);
}

body.contributor-dashboard main.wrap :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea
),
body.contributor-dashboard .modal-inner :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea
) {
  min-height: var(--bi-apple-control-height) !important;
  color: var(--fg) !important;
  background: var(--input-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--bi-apple-cell-radius) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  font-size: 16px !important;
}

body.contributor-dashboard main.wrap :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea
):focus-visible,
body.contributor-dashboard .modal-inner :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea
):focus-visible {
  border-color: var(--border) !important;
  outline: 3px solid var(--brand-2) !important;
  outline-offset: 2px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.contributor-dashboard main.wrap :where(
  .bdg-btn,
  .sh-btn,
  .btn,
  .btn-block,
  .btn-ghost,
  .btn-danger,
  .btn-success,
  .actionBtn,
  #metaSubmit,
  #metaReset,
  #browseImagesBtn,
  #selectAllBtn,
  #deselectAllBtn,
  #cloneClearAll,
  #cloneDeleteSelected,
  #finishBtn
),
body.contributor-dashboard .modal-inner :where(
  .bdg-btn,
  .sh-btn,
  .btn,
  .btn-block,
  .btn-ghost,
  .btn-danger,
  .btn-success,
  .actionBtn
) {
  border-radius: var(--bi-apple-button-radius) !important;
  font-size: 14px !important;
}

body.contributor-dashboard main.wrap :where(
  #metaSubmit,
  #metaReset,
  #browseImagesBtn,
  #selectAllBtn,
  #deselectAllBtn,
  #cloneClearAll,
  #cloneDeleteSelected,
  #finishBtn,
  .sh-btn,
  .bdg-btn,
  .btn,
  .btn-block,
  .btn-ghost,
  .btn-danger,
  .btn-success,
  .actionBtn
),
body.contributor-dashboard .modal-inner :where(
  .bdg-btn,
  .sh-btn,
  .btn,
  .btn-block,
  .btn-ghost,
  .btn-danger,
  .btn-success,
  .actionBtn
) {
  min-height: var(--bi-apple-control-height) !important;
}

body.contributor-dashboard main.wrap :where(
  #metaSubmit,
  #browseImagesBtn,
  #selectAllBtn,
  .sh-btn,
  .bdg-btn.primary,
  .actionBtn.primary
),
body.contributor-dashboard .modal-inner :where(
  .bdg-btn.primary,
  .sh-btn,
  .actionBtn.primary
) {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 48%),
    var(--bi-apple-blue);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 10px 28px rgba(0, 86, 176, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body.contributor-dashboard main.wrap :where(
  #metaSubmit,
  #browseImagesBtn,
  #selectAllBtn,
  .sh-btn,
  .bdg-btn.primary,
  .actionBtn.primary
):hover:not(:disabled),
body.contributor-dashboard .modal-inner :where(
  .bdg-btn.primary,
  .sh-btn,
  .actionBtn.primary
):hover:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 48%),
    var(--bi-apple-blue-hover) !important;
}

body.contributor-dashboard main.wrap :where(
  #metaSubmit,
  #browseImagesBtn,
  #selectAllBtn,
  .sh-btn,
  .bdg-btn.primary,
  .actionBtn.primary
):active:not(:disabled),
body.contributor-dashboard .modal-inner :where(
  .bdg-btn.primary,
  .sh-btn,
  .actionBtn.primary
):active:not(:disabled) {
  background: var(--bi-apple-blue-active) !important;
}

body.contributor-dashboard main.wrap :where(button, .bdg-btn, .btn, .actionBtn):disabled,
body.contributor-dashboard .modal-inner :where(button, .bdg-btn, .btn, .actionBtn):disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.contributor-dashboard main.wrap .btn-ghost,
body.contributor-dashboard .modal-inner .btn-ghost {
  color: var(--fg);
  background: var(--card);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.contributor-dashboard main.wrap :where(
  label,
  button,
  .tab,
  .gallery-meta,
  .progress-caption,
  .progress-label,
  .meta,
  .session,
  .helper
),
body.contributor-dashboard .modal-inner :where(
  label,
  button,
  .helper
) {
  font-size: max(12px, 0.875rem);
}

/*
 * Public information pages: meaningful text remains at least 14px; metadata
 * stays at least 12px. This does not resize logos or media.
 */
.page :where(p, ul, ol) {
  font-size: max(14px, 0.875rem);
}

.page :where(.desc, .helper, .lede-form) {
  font-size: max(12px, 0.75rem);
}

.page :where(.meta, .label),
footer.site-footer,
footer.site-footer .copy,
.bi-drawer-footer,
.editorial-drawer-footer {
  font-size: max(12px, 0.75rem);
}

.page a,
.site-footer a,
.editorial-drawer-external {
  color: var(--bi-link, var(--wire-text));
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html.light :where(
    .registration-card,
    .access-card,
    .contact-card,
    .contact-form,
    .kpi,
    .city,
    header.site-header
  ) {
    background: rgba(255, 255, 255, 0.96) !important;
  }

  html.dark :where(
    .registration-card,
    .access-card,
    .contact-card,
    .contact-form,
    .kpi,
    .city,
    header.site-header
  ) {
    background: rgba(10, 13, 18, 0.97) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(button, a, input, select, textarea) {
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  :where(
    .registration-card,
    .access-card,
    .contact-card,
    .contact-form,
    .kpi,
    .city,
    input,
    select,
    textarea,
    button
  ) {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }

  :where(.button-primary, .biwiz-next, .biwiz-submit, #metaSubmit) {
    border: 2px solid Highlight !important;
  }
}

/*
 * Apple system v6 — approved combined runtime theme
 * Fernando approval: 2026-07-30
 *
 * This additive layer supersedes only presentation from v5:
 * - system UI typography (SF Pro on Apple platforms)
 * - flat Apple light / graphite dark page canvases, without page gradients
 * - 9px, 44px-minimum Apple controls
 * - neutral Liquid Glass navigation and control surfaces
 * - Apple blue reserved for actions, selection, links, progress, and focus
 * - web-safe embedded SVG masks for dashboard action symbols
 *
 * Routes, ids, events, media, account controls, feature labels, and API
 * behavior remain owned by the existing documents and scripts.
 */
:root {
  --bi-apple-system-font:
    system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --bi-apple-system-mono:
    ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  --bi-apple-button-radius: 9px;
  --bi-apple-control-height: 44px;
  --bi-apple-page-light: #f5f5f7;
  --bi-apple-page-dark: #020407;
  --bi-apple-surface-light: rgba(255, 255, 255, 0.86);
  --bi-apple-surface-dark: rgba(28, 28, 30, 0.84);
  --bi-apple-raised-light: rgba(255, 255, 255, 0.94);
  --bi-apple-raised-dark: rgba(36, 36, 38, 0.9);
  --bi-apple-field-light: rgba(242, 242, 247, 0.9);
  --bi-apple-field-dark: rgba(44, 44, 46, 0.82);
  --bi-apple-line-light: rgba(60, 60, 67, 0.24);
  --bi-apple-line-dark: rgba(235, 235, 245, 0.18);
  --bi-apple-liquid-light: rgba(255, 255, 255, 0.64);
  --bi-apple-liquid-dark: rgba(44, 44, 46, 0.58);
  --bi-apple-liquid-strong-light: rgba(255, 255, 255, 0.8);
  --bi-apple-liquid-strong-dark: rgba(52, 52, 56, 0.72);
}

html body,
html body :where(
  *:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands)
) {
  font-family: var(--bi-apple-system-font) !important;
}

html body :where(
  code,
  pre,
  kbd,
  samp,
  .eba-mono,
  .customer-id-value,
  .customer-id-reference,
  [data-machine-value]
) {
  font-family: var(--bi-apple-system-mono) !important;
  font-variant-numeric: tabular-nums;
}

html,
body {
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.light body,
html.dark body,
body.contributor-dashboard,
body.contributor-dashboard.dark {
  background-image: none !important;
  background-attachment: initial !important;
}

html.light body,
body.contributor-dashboard:not(.dark) {
  background-color: var(--bi-apple-page-light) !important;
}

html.dark body,
body.contributor-dashboard.dark {
  background-color: var(--bi-apple-page-dark) !important;
}

html.light {
  --bi-card-bg: var(--bi-apple-surface-light);
  --bi-input-bg: var(--bi-apple-field-light);
}

html.dark {
  --bi-card-bg: var(--bi-apple-surface-dark);
  --bi-input-bg: var(--bi-apple-field-dark);
}

/*
 * Buttons and interactive controls. Primary actions are solid #0071E3;
 * the restrained highlight comes from the inset edge, not a blue gradient.
 */
:where(
  .button-primary,
  .biwiz-next,
  .biwiz-submit,
  .opm-login-submit,
  .contact-form button[type="submit"],
  .content .login,
  #npSubmit,
  .bdg-btn.primary,
  #metaSubmit
) {
  min-height: var(--bi-apple-control-height) !important;
  padding: 10px 18px !important;
  color: #fff !important;
  background: var(--bi-apple-blue) !important;
  background-image: none !important;
  border: 1px solid #459cf0 !important;
  border-radius: var(--bi-apple-button-radius) !important;
  box-shadow:
    0 8px 22px rgba(0, 113, 227, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

:where(
  .button-primary,
  .biwiz-next,
  .biwiz-submit,
  .opm-login-submit,
  .contact-form button[type="submit"],
  .content .login,
  #npSubmit,
  .bdg-btn.primary,
  #metaSubmit
):hover:not(:disabled) {
  background: var(--bi-apple-blue-hover) !important;
  background-image: none !important;
}

:where(
  .button-primary,
  .biwiz-next,
  .biwiz-submit,
  .opm-login-submit,
  .contact-form button[type="submit"],
  .content .login,
  #npSubmit,
  .bdg-btn.primary,
  #metaSubmit
):active:not(:disabled) {
  background: var(--bi-apple-blue-active) !important;
  transform: translateY(0) scale(0.985);
}

:where(
  .button-secondary,
  .biwiz-back,
  .biwiz-keep,
  .content .signup
) {
  border-radius: var(--bi-apple-button-radius) !important;
}

/*
 * Dashboard palette. Content stays standard material; navigation, segmented
 * controls, and action controls receive neutral Liquid Glass.
 */
body.contributor-dashboard {
  --bg: var(--bi-apple-page-light);
  --fg: var(--bi-apple-ink-light);
  --muted: var(--bi-apple-muted-light);
  --brand: var(--bi-apple-blue);
  --brand-2: var(--bi-apple-blue);
  --card: var(--bi-apple-surface-light);
  --border: var(--bi-apple-line-light);
  --input-bg: var(--bi-apple-field-light);
  --glass: var(--bi-apple-liquid-light);
  --glass-line: rgba(255, 255, 255, 0.86);
  --cyan: var(--bi-apple-blue);
  --radius: 14px;
}

body.contributor-dashboard.dark {
  --bg: var(--bi-apple-page-dark);
  --fg: var(--bi-apple-ink-dark);
  --muted: var(--bi-apple-muted-dark);
  --brand: var(--bi-apple-blue);
  --brand-2: var(--bi-apple-link-dark);
  --card: var(--bi-apple-surface-dark);
  --border: var(--bi-apple-line-dark);
  --input-bg: var(--bi-apple-field-dark);
  --glass: var(--bi-apple-liquid-dark);
  --glass-line: rgba(255, 255, 255, 0.22);
  --cyan: var(--bi-apple-link-dark);
}

body.contributor-dashboard main.wrap button {
  min-height: var(--bi-apple-control-height);
  border: 1px solid var(--border);
  border-radius: var(--bi-apple-button-radius) !important;
  color: var(--fg);
  background: var(--bi-apple-liquid-strong-light);
  background-image: none;
  box-shadow:
    0 7px 20px rgba(31, 40, 52, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
}

body.contributor-dashboard.dark main.wrap button {
  background: var(--bi-apple-liquid-strong-dark);
  background-image: none;
  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.contributor-dashboard main.wrap :where(
  #metaSubmit,
  #browseImagesBtn,
  #selectAllBtn,
  .sh-btn:not(.ghost):not(.danger),
  .bdg-btn.primary,
  .actionBtn.primary,
  .btn-success,
  #finishBtn
),
dialog.cM-dlg :where(.cM-dlgbtn-primary),
.eba-console .eba-button-primary,
dialog.eba-dialog .eba-button-primary {
  color: #fff !important;
  background: var(--bi-apple-blue) !important;
  background-image: none !important;
  border-color: #459cf0 !important;
  box-shadow:
    0 8px 22px rgba(0, 113, 227, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

/* The legacy ID rule carries ID-level !important specificity. Keep this
 * explicit ID override so green remains a status color, never an action. */
body.contributor-dashboard #finishBtn {
  color: #fff !important;
  background: var(--bi-apple-blue) !important;
  background-image: none !important;
  border-color: #459cf0 !important;
  box-shadow:
    0 8px 22px rgba(0, 113, 227, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

body.contributor-dashboard #finishBtn:hover:not(:disabled) {
  background: var(--bi-apple-blue-hover) !important;
}

body.contributor-dashboard main.wrap :where(
  #metaSubmit,
  #browseImagesBtn,
  #selectAllBtn,
  .sh-btn:not(.ghost):not(.danger),
  .bdg-btn.primary,
  .actionBtn.primary,
  .btn-success,
  #finishBtn
):hover:not(:disabled),
dialog.cM-dlg .cM-dlgbtn-primary:hover:not(:disabled),
.eba-console .eba-button-primary:hover:not(:disabled),
dialog.eba-dialog .eba-button-primary:hover:not(:disabled) {
  background: var(--bi-apple-blue-hover) !important;
}

body.contributor-dashboard main.wrap :where(
  .btn-danger,
  .sh-btn.danger,
  #cloneClearAll,
  #cloneDeleteSelected
),
dialog.cM-dlg .cM-dlgbtn-danger,
.eba-console .eba-button-danger {
  color: var(--bi-apple-danger-light) !important;
  background: rgba(215, 0, 21, 0.07) !important;
  background-image: none !important;
  border-color: rgba(215, 0, 21, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

body.contributor-dashboard.dark main.wrap :where(
  .btn-danger,
  .sh-btn.danger,
  #cloneClearAll,
  #cloneDeleteSelected
),
body.contributor-dashboard.dark dialog.cM-dlg .cM-dlgbtn-danger,
body.contributor-dashboard.dark .eba-console .eba-button-danger {
  color: var(--bi-apple-danger-dark) !important;
  background: rgba(255, 69, 58, 0.11) !important;
  border-color: rgba(255, 69, 58, 0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body.contributor-dashboard main.wrap :where(
  .btn-ghost,
  .bdg-btn:not(.primary),
  .sh-btn.ghost,
  .set-back
),
dialog.cM-dlg .cM-dlgbtn:not(.cM-dlgbtn-primary):not(.cM-dlgbtn-danger),
.eba-console .eba-button-secondary,
dialog.eba-dialog .eba-button-secondary {
  color: var(--fg) !important;
  background: var(--bi-apple-liquid-strong-light) !important;
  background-image: none !important;
  border-color: var(--border) !important;
  box-shadow:
    0 7px 20px rgba(31, 40, 52, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

body.contributor-dashboard.dark main.wrap :where(
  .btn-ghost,
  .bdg-btn:not(.primary),
  .sh-btn.ghost,
  .set-back
),
body.contributor-dashboard.dark dialog.cM-dlg .cM-dlgbtn:not(.cM-dlgbtn-primary):not(.cM-dlgbtn-danger),
body.contributor-dashboard.dark .eba-console .eba-button-secondary,
body.contributor-dashboard.dark dialog.eba-dialog .eba-button-secondary {
  color: var(--fg) !important;
  background: var(--bi-apple-liquid-strong-dark) !important;
  border-color: var(--border) !important;
  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

body.contributor-dashboard main.wrap button:hover:not(:disabled),
dialog.cM-dlg button:hover:not(:disabled),
.eba-console button:hover:not(:disabled),
dialog.eba-dialog button:hover:not(:disabled) {
  transform: translateY(-1px);
}

body.contributor-dashboard main.wrap button:active:not(:disabled),
dialog.cM-dlg button:active:not(:disabled),
.eba-console button:active:not(:disabled),
dialog.eba-dialog button:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

/*
 * Left rail and Settings navigation retain their existing geometry and event
 * model while adopting the approved neutral glass and Apple selection states.
 */
body.contributor-dashboard #leftLinkRail {
  background: var(--bi-apple-liquid-light) !important;
  border-color: var(--bi-apple-line-light) !important;
  box-shadow:
    0 12px 32px rgba(31, 40, 52, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  -webkit-backdrop-filter: blur(26px) saturate(170%) !important;
  backdrop-filter: blur(26px) saturate(170%) !important;
}

body.contributor-dashboard.dark #leftLinkRail {
  background: var(--bi-apple-liquid-dark) !important;
  border-color: var(--bi-apple-line-dark) !important;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

body.contributor-dashboard #leftLinkRail .sidebar-sample-square,
body.contributor-dashboard #leftLinkRail .sidebar-sample-square.tab {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  color: var(--muted) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.contributor-dashboard #leftLinkRail .sidebar-sample-square .sb-ico {
  width: 19px;
  height: 19px;
  min-width: 19px;
  flex-basis: 19px;
  color: currentColor !important;
}

body.contributor-dashboard #leftLinkRail .sidebar-sample-square:hover {
  color: var(--fg) !important;
  background: rgba(60, 60, 67, 0.065) !important;
}

body.contributor-dashboard.dark #leftLinkRail .sidebar-sample-square:hover {
  background: rgba(255, 255, 255, 0.065) !important;
}

body.contributor-dashboard #leftLinkRail .sidebar-sample-square.tab.active {
  color: var(--bi-apple-link-light) !important;
  background: rgba(0, 122, 255, 0.1) !important;
  box-shadow: none !important;
}

body.contributor-dashboard.dark #leftLinkRail .sidebar-sample-square.tab.active {
  color: var(--bi-apple-link-dark) !important;
  background: rgba(10, 132, 255, 0.1) !important;
}

body.contributor-dashboard #leftLinkRail .sidebar-sample-label {
  color: currentColor !important;
  font-family: var(--bi-apple-system-font) !important;
  font-weight: 600 !important;
}

body.contributor-dashboard :where(.sh-wrap, .sh-topbar, .sh-drawer) {
  background-image: none !important;
}

body.contributor-dashboard .sh-wrap {
  background: var(--card) !important;
  border-color: var(--border) !important;
}

body.contributor-dashboard .sh-topbar {
  background: rgba(255, 255, 255, 0.76) !important;
  border-bottom-color: var(--border) !important;
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
}

body.contributor-dashboard.dark .sh-topbar {
  background: rgba(28, 28, 30, 0.78) !important;
}

body.contributor-dashboard .sh-drawer {
  color: var(--fg);
  background: rgba(245, 245, 247, 0.92) !important;
  border-right: 1px solid var(--border);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
  backdrop-filter: blur(28px) saturate(175%);
}

body.contributor-dashboard.dark .sh-drawer {
  background: rgba(28, 28, 30, 0.92) !important;
}

body.contributor-dashboard .sh-drawer :where(header, .sh-foot) {
  border-color: var(--border);
}

body.contributor-dashboard .sh-drawer :where(header b, .sh-close, .sh-navgroup) {
  color: var(--muted);
}

body.contributor-dashboard .sh-wrap[data-panel] .sh-navlink {
  min-height: 44px;
  padding: 9px 14px;
  margin: 1px 8px;
  width: calc(100% - 16px);
  color: var(--muted);
  border-radius: 9px;
  font-family: var(--bi-apple-system-font) !important;
  font-size: 13px;
  font-weight: 500;
}

body.contributor-dashboard .sh-wrap[data-panel] .sh-navlink:hover {
  color: var(--fg);
  background: rgba(60, 60, 67, 0.065);
}

body.contributor-dashboard.dark .sh-wrap[data-panel] .sh-navlink:hover {
  background: rgba(255, 255, 255, 0.065);
}

body.contributor-dashboard .sh-wrap[data-panel] .sh-navlink[aria-current="true"] {
  color: var(--bi-apple-link-light);
  background: rgba(0, 122, 255, 0.1);
  box-shadow: none;
  font-weight: 600;
}

body.contributor-dashboard.dark .sh-wrap[data-panel] .sh-navlink[aria-current="true"] {
  color: var(--bi-apple-link-dark);
  background: rgba(10, 132, 255, 0.1);
}

body.contributor-dashboard :where(
  .sh-title,
  .sh-title small,
  .sh-sec-head,
  #shLiveEndpoints .card > h3,
  .sh-wrap[data-panel] .set-card-label,
  .sh-wrap[data-panel] .set-card-status,
  .sh-wrap[data-panel] .set-back,
  .sidebar-sample-label
) {
  font-family: var(--bi-apple-system-font) !important;
}

body.contributor-dashboard .sh-wrap[data-panel] .set-card {
  background: var(--bi-apple-raised-light);
  background-image: none;
  border-color: var(--border);
  border-radius: 14px !important;
  padding: 13px !important;
  box-shadow: none;
}

body.contributor-dashboard.dark .sh-wrap[data-panel] .set-card {
  background: var(--bi-apple-raised-dark);
}

body.contributor-dashboard .sh-wrap[data-panel] .set-card-ic {
  color: var(--bi-apple-link-light);
  background: rgba(0, 122, 255, 0.1);
  background-image: none;
}

body.contributor-dashboard.dark .sh-wrap[data-panel] .set-card-ic {
  color: var(--bi-apple-link-dark);
  background: rgba(10, 132, 255, 0.1);
}

body.contributor-dashboard .sh-wrap[data-panel] .set-card:hover {
  border-color: color-mix(in srgb, var(--bi-apple-blue) 42%, var(--border));
  background: var(--bi-apple-raised-light);
  background-image: none;
}

body.contributor-dashboard.dark .sh-wrap[data-panel] .set-card:hover {
  background: var(--bi-apple-raised-dark);
}

body.contributor-dashboard .sh-wrap[data-panel] .set-card-status {
  color: var(--muted) !important;
  background: rgba(127, 127, 127, 0.08);
  border-color: var(--border);
}

body.contributor-dashboard .sh-form :where(input, select, textarea),
body.contributor-dashboard :where(.cM-searchinput, .eba-field input, .eba-field select, .eba-field textarea) {
  color: var(--fg) !important;
  background: var(--input-bg) !important;
  border-color: var(--border) !important;
  border-radius: 9px !important;
}

body.contributor-dashboard :where(
  .sh-form input,
  .sh-form select,
  .sh-form textarea,
  .cM-searchinput,
  .eba-field input,
  .eba-field select,
  .eba-field textarea
):focus-visible {
  border-color: var(--border) !important;
  outline: 3px solid var(--bi-apple-blue) !important;
  outline-offset: 2px !important;
}

body.contributor-dashboard :where(
  input[type="checkbox"],
  input[type="radio"]
) {
  accent-color: var(--bi-apple-blue);
}

/*
 * Users & Roles and Editorial Buyers: neutral materials, blue focus/actions,
 * red destructive actions, and system monospace for machine references.
 */
.eba-console {
  --eba-ink: var(--fg);
  --eba-muted: var(--muted);
  --eba-line: var(--border);
  --eba-panel: var(--bi-apple-raised-light);
  --eba-soft: var(--bi-apple-field-light);
  --eba-teal: var(--bi-apple-blue);
  --eba-teal-dark: var(--bi-apple-blue-active);
  --eba-blue: var(--bi-apple-link-light);
  --eba-red: var(--bi-apple-danger-light);
  font-family: var(--bi-apple-system-font) !important;
}

body.dark .eba-console {
  --eba-ink: var(--fg);
  --eba-muted: var(--muted);
  --eba-line: var(--border);
  --eba-panel: var(--bi-apple-raised-dark);
  --eba-soft: var(--bi-apple-field-dark);
  --eba-teal: var(--bi-apple-blue);
  --eba-teal-dark: var(--bi-apple-blue-active);
  --eba-blue: var(--bi-apple-link-dark);
  --eba-red: var(--bi-apple-danger-dark);
}

.eba-console :focus-visible,
dialog.eba-dialog :focus-visible,
dialog.cM-dlg :focus-visible {
  outline-color: var(--bi-apple-blue) !important;
}

.eba-console :where(
  .eba-console-heading,
  .eba-detail-heading,
  .eba-ledger-country
),
dialog.eba-dialog .eba-dialog-head h2 {
  font-family: var(--bi-apple-system-font) !important;
  letter-spacing: -0.015em;
}

.eba-console :where(.eba-card, .eba-filterbar, .eba-ledger, .eba-application) {
  background-image: none !important;
}

.eba-console .eba-filterbar {
  background: var(--eba-soft);
  border-color: var(--eba-line);
}

.eba-console .eba-application[aria-current="true"] {
  background: rgba(0, 122, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--bi-apple-blue);
}

body.dark .eba-console .eba-application[aria-current="true"] {
  background: rgba(10, 132, 255, 0.1);
}

.eba-console .eba-ledger-card-issued,
.eba-console .eba-ledger-card-current {
  box-shadow: inset 0 3px 0 var(--bi-apple-blue);
}

dialog.cM-dlg,
dialog.eba-dialog {
  color: #f5f5f7 !important;
  background: rgba(28, 28, 30, 0.92) !important;
  background-image: none !important;
  border: 1px solid rgba(235, 235, 245, 0.2) !important;
  border-radius: 16px !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  -webkit-backdrop-filter: blur(28px) saturate(175%);
  backdrop-filter: blur(28px) saturate(175%);
}

dialog.cM-dlg :where(input, select, textarea),
dialog.eba-dialog :where(input, select, textarea) {
  color: #f5f5f7 !important;
  background: rgba(44, 44, 46, 0.86) !important;
  border-color: rgba(235, 235, 245, 0.2) !important;
}

dialog.eba-dialog :where(.eba-dialog-warning, .eba-dialog-note) {
  color: #d1d1d6;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(235, 235, 245, 0.18);
}

dialog.cM-dlg button,
dialog.eba-dialog button,
.eba-console .eba-button {
  min-height: var(--bi-apple-control-height);
  border-radius: var(--bi-apple-button-radius) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/*
 * Embedded, web-safe Apple-style line symbols. These are local CSS masks, not
 * SF Symbols or an external icon font, so they are redistributable on the web.
 */
[data-bi-icon="key"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='m11 12 9-9M15 8l3 3M17 6l2 2'/%3E%3C/svg%3E");
}
[data-bi-icon="refresh"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6v6h-6M18.5 9A8 8 0 1 0 20 15'/%3E%3C/svg%3E");
}
[data-bi-icon="server"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='6' rx='2'/%3E%3Crect x='3' y='14' width='18' height='6' rx='2'/%3E%3Cpath d='M7 7h.01M7 17h.01M11 7h7M11 17h7'/%3E%3C/svg%3E");
}
[data-bi-icon="mail-key"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h7M3 7l9 6 9-6'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3Cpath d='m18.5 15.5 3-3M20 14l1.5 1.5'/%3E%3C/svg%3E");
}
[data-bi-icon="mail-pen"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5M3 7l9 6 9-6M16 19l4.5-4.5a1.4 1.4 0 0 1 2 2L18 21l-3 .7Z'/%3E%3C/svg%3E");
}
[data-bi-icon="trash"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 15H6L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E");
}
[data-bi-icon="check-circle"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.7 2.7L16.5 9'/%3E%3C/svg%3E");
}
[data-bi-icon="x-circle"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9 9 6 6M15 9l-6 6'/%3E%3C/svg%3E");
}
[data-bi-icon="pencil"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4Z'/%3E%3C/svg%3E");
}
[data-bi-icon="eye"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
[data-bi-icon="eye-off"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.1 10.1 0 0 1 12 20c-7 0-11-8-11-8a18.5 18.5 0 0 1 5.06-5.94M9.9 4.24A9.1 9.1 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19M1 1l22 22M9.88 9.88a3 3 0 1 0 4.24 4.24'/%3E%3C/svg%3E");
}
[data-bi-icon="lock"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='10' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
[data-bi-icon="unlock"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='10' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 9.5-2'/%3E%3C/svg%3E");
}
[data-bi-icon="images"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
}
[data-bi-icon="warning"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0ZM12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
[data-bi-icon="plus"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
[data-bi-icon="search"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
}
[data-bi-icon="user-plus"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8' cy='7' r='4'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E");
}
[data-bi-icon="link"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.1.1l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1M14 11a5 5 0 0 0-7.1-.1l-2 2A5 5 0 0 0 12 20l1.1-1.1'/%3E%3C/svg%3E");
}
[data-bi-icon="globe"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
}
[data-bi-icon="chevron-left"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
}
[data-bi-icon="chevron-right"] {
  --bi-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

button[data-bi-icon]::before,
.bi-action-symbol[data-bi-icon] {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: var(--bi-action-icon);
  mask-image: var(--bi-action-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.bi-action-symbol[data-bi-icon] {
  vertical-align: -0.2em;
  margin-right: 7px;
}

@media (max-width: 620px) {
  :where(
    .biwiz-actions,
    .sh-actions,
    .cM-actionbar,
    .eba-action-bar,
    .eba-filter-actions,
    dialog.cM-dlg .cM-dlg-f,
    dialog.eba-dialog .eba-dialog-foot
  ) > :where(button, .button-primary, .button-secondary, .bdg-btn) {
    width: 100%;
    justify-content: center;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body.contributor-dashboard #leftLinkRail,
  body.contributor-dashboard .sh-topbar,
  body.contributor-dashboard .sh-drawer,
  dialog.cM-dlg,
  dialog.eba-dialog {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  body.contributor-dashboard #leftLinkRail,
  body.contributor-dashboard .sh-topbar,
  body.contributor-dashboard .sh-drawer {
    background: #f5f5f7 !important;
  }

  body.contributor-dashboard.dark #leftLinkRail,
  body.contributor-dashboard.dark .sh-topbar,
  body.contributor-dashboard.dark .sh-drawer,
  dialog.cM-dlg,
  dialog.eba-dialog {
    background: #1c1c1e !important;
  }
}

@media (forced-colors: active) {
  button[data-bi-icon]::before,
  .bi-action-symbol[data-bi-icon] {
    background-color: CanvasText;
  }
}
