/* Blue finishing layer. Core light/dark values live in
   design-tokens.css so Appearance and the newer production components agree. */
:root {
  --tiffany: var(--accent);
  --tiffany-dark: #1e40af;
  --tiffany-link: var(--accent-ink);
  --tiffany-pale: #f4f7fc;
  --surface-dark: #0b1426;
  --text-on-dark: #f4f7fd;
}

/* Keep original brand/carrier artwork and the production navigation geometry. */
.mark img, .auth-logo { filter: none; }
.auth { background: radial-gradient(1100px 640px at 15% 0, var(--accent-soft-strong), transparent 62%), var(--bg); }
.auth .card { border-top-color: var(--tiffany); }
.portal-shell .nav button.active, .portal-shell .nav button.active:hover {
  background: var(--accent-soft-strong);
  color: var(--accent-ink);
}
.portal-shell .nav button.active .nav-icon,
.portal-shell .nav button.active .nav-short svg { color: var(--accent-ink); }

/* Dark blue accent fills pair with white lettering in both Appearance modes. */
.btn.primary, .portal-workspace .btn.primary,
.pool-route-controls #assign, .chat-compose button:not(#chatSlash),
.install-card .install-open {
  background: var(--accent-fill);
  color: var(--on-accent);
}
.btn.primary:hover:not(:disabled), .portal-workspace .btn.primary:hover:not(:disabled),
.pool-route-controls #assign:hover:not(:disabled), .install-card .install-open:hover {
  background: var(--accent-fill-hover);
  color: var(--on-accent);
}
.notification-announcement .notification-icon,
.chat-message-actions .mine { color: var(--on-accent); }
.chat-compose button#chatSlash { color: var(--ink); }
.bonus-pending-note { background: var(--surface-2); }
:where(button, summary, a, input, select, textarea, [tabindex]):focus-visible {
  outline-color: var(--accent);
}

/* Standalone install and TV documents also load the shared token palette. */
.install-page { background: var(--bg); color: var(--ink); }
body.tv-page { background: var(--bg); color: var(--ink); }
.tv-login { background: radial-gradient(ellipse at top right, #2458a855, transparent 65%); }
.tv-login-card { background: var(--surface); border-color: var(--hairline-strong); }
.tv-login-card input { background: var(--bg); color: var(--ink); border-color: #6786ae; }
.tv-login-card button, .tv-clip-picker,
.tv-fx-form .tv-clip-actions button[type=submit] {
  background: var(--accent-fill);
  color: var(--on-accent);
  border-color: #6d95cd;
}
.tv-login-card button:hover, .tv-clip-picker:hover { background: var(--accent-fill-hover); }
.tv-page :is(button, a, input, select):focus-visible { outline-color: var(--tiffany); }
.tv-page .sales-eyebrow { color: var(--tiffany); }

/* Motion preferences apply to hover treatments as well as screen transitions. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .btn:hover:not(:disabled), .workspace-shortcut:hover, .org-card:hover,
  .carrier-card:hover, .announcement-reactions button:hover { transform: none; }
  .notification-toast { animation: none; }
}
@media (forced-colors: active) {
  html, body, .wrap, .top, .sales-board, .sales-rank ol, .sales-feed { scrollbar-color: auto; }
  :where(button, summary, a, input, select, textarea, [tabindex]):focus-visible { outline-color: Highlight; }
}
