/**
 * Quiet product pass.
 * Flat zinc surfaces, one near-white action color, sentence-case labels.
 * Loaded after polaris-polish.css.
 */

:root {
  --surface-0: #09090b;
  --surface-1: #111113;
  --surface-2: #161618;
  --surface-3: #1c1c1f;
  --accent-copper: #f4f4f5;
  --accent-copper-dim: #a1a1aa;
  --accent-copper-bright: #fafafa;
  --text-primary: #f4f4f5;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --elevation-1: none;
  --elevation-2: 0 8px 24px rgba(0, 0, 0, 0.28);
  --elevation-3: 0 16px 40px rgba(0, 0, 0, 0.4);
  --ds-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ds-rail: #111113;
  --ds-rail-2: #111113;
  --ds-accent: #f4f4f5;
  --ds-accent-2: #fafafa;
  --ds-accent-soft: rgba(255, 255, 255, 0.06);
  --ds-accent-soft-2: rgba(255, 255, 255, 0.08);
  --ds-accent-text: #09090b;
  --ds-text: #f4f4f5;
  --ds-text-2: #d4d4d8;
  --ds-text-3: #a1a1aa;
  --ds-text-4: #71717a;
  --ds-info: #a1a1aa;
  --ds-success: #86efac;
  --ds-warning: #fbbf24;
  --ds-danger: #f87171;
  --btn-primary-bg: #f4f4f5;
  --btn-primary-bg-hover: #ffffff;
  --btn-primary-border: #f4f4f5;
  --btn-primary-border-hover: #ffffff;
  --btn-primary-text: #09090b;
  --btn-primary-text-hover: #09090b;
  --btn-primary-shadow: none;
  --btn-secondary-border: rgba(255, 255, 255, 0.14);
  --btn-secondary-border-hover: rgba(255, 255, 255, 0.28);
  --btn-secondary-text: #d4d4d8;
  --btn-secondary-text-hover: #fafafa;
  --btn-outline-primary-bg: transparent;
  --btn-outline-primary-border: rgba(255, 255, 255, 0.16);
  --btn-outline-primary-text: #f4f4f5;
  --px-void: #09090b;
  --px-ink: #111113;
  --px-stage: #09090b;
  --px-lift: #161618;
  --px-inset: #0c0c0e;
  --px-line: rgba(255, 255, 255, 0.08);
  --px-line-strong: rgba(255, 255, 255, 0.14);
  --px-glow: transparent;
  --px-pearl: #f4f4f5;
  --px-pearl-dim: #d4d4d8;
  --px-copper: #f4f4f5;
  --px-copper-dim: #a1a1aa;
  --px-text: #f4f4f5;
  --px-text-2: #d4d4d8;
  --px-text-3: #a1a1aa;
  --px-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --px-r: 12px;
  --px-r-lg: 14px;
}

html,
body,
body.polar-panel,
body.landing {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  background: #09090b !important;
  background-image: none !important;
  color: #f4f4f5 !important;
}

body.polar-panel {
  background: #09090b !important;
}

.px-kicker,
.px-metric-label,
.px-hero-stat-label,
.px-data-kicker {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #a1a1aa !important;
}

.px-overview-hero-main h1,
.px-data-title,
#login h1,
#register h1,
#twofa h1 {
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  color: #fafafa !important;
}

.px-overview-hero,
.px-metric,
.px-hero-stat,
.card,
.dashboard-card,
.modal-content {
  background: #161618 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.px-overview-hero {
  background: #111113 !important;
}

.px-data-head {
  background: transparent !important;
  background-image: none !important;
}

.px-data-head-rail,
.px-stat-chip {
  background: #161618 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.polar-panel {
  --px-sidebar: 232px;
  --px-stage-gap: 12px;
  --px-max: none;
  padding: 12px !important;
  gap: 12px !important;
  background: #09090b !important;
  background-image: none !important;
}

.view-container.polar-shell {
  max-width: none !important;
  justify-self: stretch !important;
}

.polar-shell > .polar-stage,
.polar-arch-overview .polar-stage {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.polar-shell > .polar-stage::before {
  display: none !important;
}

body .page-sidebar.polar-sidebar,
body:not(.sidebar-hidden) .page-sidebar.polar-sidebar {
  background: #111113 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Desktop only. main.min.css scales the rail away below 1350px.
   On phones the drawer must keep translateX so it can close. */
@media (min-width: 901px) {
  body .page-sidebar.polar-sidebar,
  body:not(.sidebar-hidden) .page-sidebar.polar-sidebar {
    transform: none !important;
  }
}

@media (max-width: 900px) {
  body .page-sidebar.polar-sidebar,
  body:not(.sidebar-hidden) .page-sidebar.polar-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: min(84vw, 268px) !important;
    height: 100vh !important;
    max-height: none !important;
    transform: translateX(-105%) !important;
    pointer-events: none !important;
    z-index: 1200 !important;
  }

  body.sidebar-open .page-sidebar.polar-sidebar {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  .polar-mobile-nav-close {
    display: inline-flex !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
  }

  html.mobile-nav-open,
  html.mobile-nav-open body,
  body.sidebar-open::before {
    touch-action: manipulation !important;
  }

  body.sidebar-open::before {
    z-index: 1100 !important;
  }
}

.page-sidebar.polar-sidebar .accordion-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fafafa !important;
  border-left-color: transparent !important;
}

.page-sidebar.polar-sidebar .accordion-menu > li > a.is-active,
.page-sidebar.polar-sidebar li.is-active > a {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fafafa !important;
  border-left-color: #fafafa !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

.page-sidebar.polar-sidebar .accordion-menu > li > a.is-active > svg,
.page-sidebar.polar-sidebar li.is-active > a > svg,
.page-sidebar.polar-sidebar .accordion-menu > li > a:hover > svg {
  color: #fafafa !important;
}

.button.primary,
.btn-primary,
#login .button.primary,
#register .button.primary,
#twofa .button.primary,
#login #login-button,
#register #login-button {
  background: #f4f4f5 !important;
  background-image: none !important;
  border: 1px solid #f4f4f5 !important;
  color: #09090b !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.button.primary:hover,
.btn-primary:hover,
#login .button.primary:hover,
#register .button.primary:hover {
  background: #ffffff !important;
  filter: none !important;
}

.auth-input,
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  background: #111113 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f4f4f5 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.auth-input:focus,
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.28) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

#login p,
#register p,
#twofa p,
.px-overview-hero-main p,
.px-data-lead {
  color: #a1a1aa !important;
}

#register p.email-domain-hint,
.email-domain-hint {
  color: #d4b06a !important;
}

#register p.email-domain-hint.is-blocked,
.email-domain-hint.is-blocked {
  color: var(--ds-danger, #f87171) !important;
}

.dashboard-card-row .dashboard-card {
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dashboard-faq-section {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.admin-kpi-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
}

.admin-kpi-grid .ds-stat-card,
.admin-kpi-grid article,
.admin-settings-grid .card,
.ds-stat-card {
  background: #161618 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.admin-kpi-grid .ds-stat-card,
.admin-kpi-grid article {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  padding: 16px 18px !important;
}

.admin-kpi-grid .ds-stat-label,
.polar-arch-settings .ds-stat-label {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #a1a1aa !important;
}

.admin-kpi-grid .ds-stat-value,
.polar-arch-settings .ds-stat-value {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #fafafa !important;
}

.px-settings-title,
.px-data-title {
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  color: #fafafa !important;
}

.card-title,
.card-header .card-title {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #f4f4f5 !important;
}

.px-readiness-cell span,
.px-readiness-cell strong {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.px-readiness-cell span {
  font-size: 13px !important;
  font-weight: 500 !important;
}

.px-status-pill {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 500 !important;
  background: #111113 !important;
}

.px-status-pill-dot {
  box-shadow: none !important;
}

table thead th,
.table thead th,
.polar-arch-data .table thead th,
.polar-shell .table thead th,
table.table thead th {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #a1a1aa !important;
}

.px-stat-chip-label,
.ds-status-state {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Leftover copper that was hardcoded past the token layer. */
html body.polar-panel .polar-brand-tag,
html body.polar-panel .page-sidebar .profile-role,
html body.polar-panel .polar-profile-meta .profile-role,
html body.landing .polar-brand-tag {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #71717a !important;
}

.page-sidebar .nav-section-label span,
.page-sidebar.polar-sidebar .nav-section-label span,
.page-sidebar .sidebar-section-label,
.page-sidebar .menu-title,
.page-sidebar .nav-section,
.page-sidebar .section-label,
.page-sidebar .sidebar-label,
.px-kicker,
.px-email-gate-kicker,
.px-email-verify-kicker,
.modal-password-confirm .modal-title,
.modal-download-launcher .modal-title {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 500 !important;
  color: #a1a1aa !important;
}

.polar-shell input[type="checkbox"]:checked,
.polar-shell .form-check-input[type="checkbox"]:checked,
body.polar-panel input[type="checkbox"]:checked:not(.form-switch .form-check-input),
body.polar-panel .form-check-input[type="checkbox"]:checked:not(.form-switch .form-check-input) {
  border-color: #f4f4f5 !important;
  background: #f4f4f5 !important;
  box-shadow: none !important;
}

.polar-shell input[type="radio"]:checked,
.polar-shell .form-check-input[type="radio"]:checked,
body.polar-panel input[type="radio"]:checked:not(.form-switch .form-check-input),
body.polar-panel .form-check-input[type="radio"]:checked:not(.form-switch .form-check-input) {
  border-color: #f4f4f5 !important;
  background: #f4f4f5 !important;
  box-shadow: none !important;
}

.progress-bar,
.polar-arch-action #page-gift .btn-block,
.polar-arch-action #page-gift #submit {
  background: #f4f4f5 !important;
  background-image: none !important;
}

.modal .btn-close,
.modal .close,
.modal-password-confirm .close,
.modal-password-confirm .btn-close,
.modal-download-launcher .btn-close {
  color: #f4f4f5 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.polar-shell .modal-content,
.modal-password-confirm {
  border-top-color: rgba(255, 255, 255, 0.14) !important;
  background: #161618 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}

.px-email-gate-input:focus,
.px-email-gate-resend,
.px-email-verify-resend,
.px-email-verify-dismiss,
.dl-help-av a,
.dl-opt-meta code,
.dl-opt-title code,
.dl-teaser-copy code {
  color: #d4d4d8 !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.dl-help-note {
  border-left-color: rgba(255, 255, 255, 0.2) !important;
}

/*
 * Apple liquid glass, as a CSS material.
 * The reference studio draws this with WebGL refraction. Here the same read
 * is frosted panels, a bright rim, and a soft light field behind them.
 */
body.polar-panel {
  background:
    radial-gradient(ellipse 42% 36% at 12% 0%, rgba(186, 214, 255, 0.22), transparent 62%),
    radial-gradient(ellipse 36% 32% at 88% 8%, rgba(255, 214, 236, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 34% at 70% 100%, rgba(176, 230, 214, 0.12), transparent 64%),
    #070709 !important;
  background-image:
    radial-gradient(ellipse 42% 36% at 12% 0%, rgba(186, 214, 255, 0.22), transparent 62%),
    radial-gradient(ellipse 36% 32% at 88% 8%, rgba(255, 214, 236, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 34% at 70% 100%, rgba(176, 230, 214, 0.12), transparent 64%) !important;
}

body .page-sidebar.polar-sidebar,
body:not(.sidebar-hidden) .page-sidebar.polar-sidebar,
.px-overview-hero,
.px-metric,
.px-hero-stat,
.card,
.dashboard-card,
.modal-content,
.polar-shell .modal-content,
.modal-password-confirm,
.px-data-head-rail,
.admin-kpi-grid .ds-stat-card,
.admin-kpi-grid article,
.admin-settings-grid .card,
.ds-stat-card,
#page-pk-tracking .kv-item,
.px-switch {
  background: rgba(22, 22, 26, 0.55) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 28%, rgba(255, 255, 255, 0.02)) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top-color: rgba(255, 255, 255, 0.42) !important;
  border-radius: 18px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 40px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
}

.px-overview-hero {
  background: rgba(16, 16, 20, 0.42) !important;
}

.auth-input,
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  background: rgba(8, 8, 10, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.polar-shell .btn-outline-primary,
.polar-shell .btn-outline-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-top-color: rgba(255, 255, 255, 0.38) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.button.primary,
.btn-primary,
#login .button.primary,
#register .button.primary,
#twofa .button.primary,
#login #login-button,
#register #login-button {
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 20px rgba(0, 0, 0, 0.22) !important;
}

.polar-shell .table,
.polar-shell .table tbody tr,
.card .table {
  background: transparent !important;
}

@media (prefers-reduced-transparency: reduce) {
  body .page-sidebar.polar-sidebar,
  .card,
  .px-metric,
  .px-hero-stat,
  .modal-content,
  .ds-stat-card {
    background: #161618 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
