/* PULSO: keep each surface and its text in the same color scheme. */
.app-shell:not(.admin-shell) .activation-hero,
.app-shell:not(.admin-shell) .activation-status-bar {
  color: var(--ops-text);
  background: var(--ops-surface);
  border-color: var(--ops-line-strong);
  box-shadow: none;
}
.app-shell:not(.admin-shell) .activation-hero h1,
.app-shell:not(.admin-shell) .step-heading h2,
.app-shell:not(.admin-shell) .activation-progress-ring strong {
  color: var(--ops-text);
}
.app-shell:not(.admin-shell) .activation-hero p,
.app-shell:not(.admin-shell) .step-heading p,
.app-shell:not(.admin-shell) .instruction-list,
.app-shell:not(.admin-shell) .steps-list,
.app-shell:not(.admin-shell) .activation-progress-ring span {
  color: #b2c3e2;
}
.app-shell:not(.admin-shell) .activation-progress-ring {
  border-color: #2b4167;
  border-top-color: var(--ops-orange);
}
.app-shell:not(.admin-shell) .activation-shell .eyebrow { color: #ffb75c; }
.app-shell:not(.admin-shell) .setup-pill,
.app-shell:not(.admin-shell) .final-checklist li {
  color: #c5d4ee;
  background: #1a3157;
}
.app-shell:not(.admin-shell) .setup-line { background: #3b5278; }
.app-shell:not(.admin-shell) .step-number {
  color: #08152d;
  background: var(--ops-orange);
  box-shadow: none;
}
.app-shell:not(.admin-shell) .step-icon {
  color: #ffb75c;
  background: #332b25;
}
.app-shell:not(.admin-shell) .activation-step.is-complete {
  border-color: #327653;
  background: #102b2d;
}
.app-shell:not(.admin-shell) .activation-step.is-complete .step-number {
  color: #08152d;
  background: #6fe0a6;
}
.app-shell:not(.admin-shell) .setup-pill.done,
.app-shell:not(.admin-shell) .final-checklist li.done,
.app-shell:not(.admin-shell) .connected-summary {
  color: #a7f3cf;
  background: #143d34;
  border-color: #327653;
}
.app-shell:not(.admin-shell) .connected-summary p { color: #b6dccc; }
.app-shell:not(.admin-shell) .provider-action-panel {
  color: var(--ops-text);
  background: #0b1a37;
  border-color: var(--ops-line-strong);
}
.app-shell:not(.admin-shell) .activation-shell .helper-text,
.app-shell:not(.admin-shell) .activation-shell a:not(.btn) { color: #b2c3e2; }
.app-shell:not(.admin-shell) .activation-shell .helper-text a { color: #ffb75c; }

/* The menu's individual rows previously retained white backgrounds. */
.app-shell:not(.admin-shell) .user-menu-popover,
.app-shell:not(.admin-shell) .user-menu-summary,
.app-shell:not(.admin-shell) .user-menu-popover > a,
.app-shell:not(.admin-shell) .user-menu-popover form button {
  color: #eef4ff;
  background: #102044;
  border-color: #334b73;
}
.app-shell:not(.admin-shell) .user-menu-summary strong { color: #fff; }
.app-shell:not(.admin-shell) .user-menu-summary small { color: #b2c3e2; }
.app-shell:not(.admin-shell) .user-menu-popover form { border-color: #334b73; }
.app-shell:not(.admin-shell) .user-menu-popover > a:hover,
.app-shell:not(.admin-shell) .user-menu-popover > a:focus-visible,
.app-shell:not(.admin-shell) .user-menu-popover form button:hover,
.app-shell:not(.admin-shell) .user-menu-popover form button:focus-visible {
  color: #fff;
  background: #1c365e;
  outline: 2px solid #ffb75c;
  outline-offset: -2px;
}
.app-shell:not(.admin-shell) .user-menu-popover form button:hover,
.app-shell:not(.admin-shell) .user-menu-popover form button:focus-visible { color: #ffb8bf; }

/* Beat the operations theme's broad small-text selector. */
.app-shell:not(.admin-shell) .product-wordmark .brand-attribution,
.product-wordmark .brand-attribution {
  color: #432a08;
  background: #ffdc9e;
}

/* Public account pages share PULSO's navy and orange palette. */
.auth-shell {
  --purple: #905000;
  --purple-dark: #713c00;
  --purple-soft: #fff0dc;
  background: #f4f6fa;
  color: #102044;
}
.auth-shell .auth-card { border-color: #dce2ec; }
.auth-shell .muted,
.auth-shell .auth-switch,
.auth-shell .brand-footer { color: #526175; }
.auth-shell .btn-primary {
  color: #08152d;
  background: #ff9518;
  box-shadow: none;
}
.auth-shell .btn-primary:hover { background: #ffab3d; box-shadow: none; }
.auth-shell a:not(.btn),
.auth-shell .link-button { color: #874b00; }
.auth-shell input:focus,
.auth-shell textarea:focus,
.auth-shell select:focus {
  border-color: #905000;
  box-shadow: 0 0 0 3px rgba(255,149,24,.2);
}
.auth-shell .auth-icon { color: #874b00; background: #fff0dc; }

/* Keep portal labels legible: modals live outside the application shell. */
.swiftly-ops-body .modal-dialog .field label { color: #dce7fb; }
.swiftly-ops-body .modal-dialog .field-error { color: #ffb8bf; }
.swiftly-ops-body .modal-dialog .eyebrow { color: #ffb75c; }
.app-shell:not(.admin-shell) .empty-state h3 { color: var(--ops-text); }
.app-shell:not(.admin-shell) .empty-state p { color: #b2c3e2; }

/* Remote gateway pages do not load the Android queue stylesheet. */
.app-shell:not(.admin-shell) .outbox-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.app-shell:not(.admin-shell) .outbox-stats > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--ops-line-strong);
  border-radius: 10px;
  background: var(--ops-surface);
}
.app-shell:not(.admin-shell) .outbox-stats span,
.app-shell:not(.admin-shell) .outbox-stats small { color: #b2c3e2; font-size: 12px; }
.app-shell:not(.admin-shell) .outbox-stats strong { font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.app-shell:not(.admin-shell) .outbox-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--ops-line); margin-top: 16px;
}
.remote-activity-cards { display: none; }
.remote-activity-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.remote-activity-filters input { flex: 1; min-width: 150px; }
.mobile-brand, .campaign-mobile-progress { display: none; }

.app-shell:not(.admin-shell) .audience-filter-bar {
  grid-template-columns: minmax(180px, 1.4fr) minmax(0, 3fr) auto;
}
.audience-advanced-filters { min-width: 0; }
.app-shell:not(.admin-shell) .audience-search { grid-column: auto; }
.audience-advanced-filters summary { display: none; }
.audience-filter-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.audience-filter-options select { min-width: 0; }
.auth-shell .auth-card .stack > .btn-primary { width: 100%; justify-content: center; }
.auth-shell .auth-help, .auth-shell .auth-switch { text-align: center; }
.auth-shell .auth-switch a { display: inline-block; white-space: nowrap; }

@media (max-width: 1100px) and (min-width: 821px) {
  .app-shell:not(.admin-shell) .audience-filter-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .audience-advanced-filters { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 820px) {
  .app-shell:not(.admin-shell) .outbox-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-shell:not(.admin-shell) .outbox-stats > div { padding: 12px; }
  .app-shell:not(.admin-shell) .topbar-title .mobile-brand { display: block; font-size: 16px; }
  .app-shell:not(.admin-shell) .topbar-title:has(.mobile-brand) .workspace-title { display: none; }
  .app-shell:not(.admin-shell) .audience-filter-bar { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
  .audience-advanced-filters { grid-column: 1 / -1; grid-row: 2; }
  .audience-advanced-filters summary {
    display: list-item; cursor: pointer; padding: 12px; border: 1px solid var(--ops-line-strong);
    border-radius: 8px; color: var(--ops-text); font-weight: 600;
  }
  .audience-advanced-filters summary:focus-visible { outline: 2px solid var(--ops-orange); outline-offset: 2px; }
  .audience-filter-options { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 10px; }
  .app-shell:not(.admin-shell) .audience-filter-bar > .btn { width: auto; }
  .campaign-mobile-progress {
    display: block; padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--ops-line-strong);
    border-radius: 9px; background: var(--ops-surface); color: #b2c3e2; font-size: 14px;
  }
  .campaign-mobile-progress strong { color: var(--ops-text); }
  .campaign-wizard-steps { display: none; }
  .remote-activity-table { display: none; }
  .remote-activity-cards { display: grid; gap: 12px; }
  .remote-activity-card { min-width: 0; padding: 14px; border: 1px solid var(--ops-line-strong); border-radius: 9px; }
  .remote-activity-card dl { display: grid; gap: 10px; margin: 12px 0 0; }
  .remote-activity-card dl > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
  .remote-activity-card dt { color: #b2c3e2; }
  .remote-activity-card dd { margin: 0; overflow-wrap: anywhere; }
  .remote-activity-card .danger-text { display: block; overflow-wrap: anywhere; }
  .remote-activity-filters input, .remote-activity-filters select { width: 100%; min-width: 0; }
}

