:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #141217;
  --paper: #211e24;
  --ink: #f3eef2;
  --muted: #c1b6c1;
  --subtle: #3e3641;
  --control-border: #827682;
  --surface-hover: #2b2730;
  --wine: #ffa0a8;
  --red: #ff939c;
  --blush: #3b252e;
  --blush-edge: #76505b;
  --gold: #f1cf81;
  --gold-accent: #e3b65c;
  --gold-soft: #352b20;
  --gold-edge: #65523b;
  --focus: #f4d58c;
  --brand-fill: #b5263b;
  --brand-fill-hover: #971d32;
  --success-ink: #9ed7b4;
  --four-star-ink: #17171a;
  --four-star-charcoal: #303035;
  --four-star-tint: #2b2a2f;
  --four-star-line: #535058;
}

:root[data-theme="dark"] .launchpad-panel .brand-logo,
:root[data-theme="dark"] .employee-gate-card .brand-logo {
  border-radius: 5px;
  background: #fff;
}

:root[data-theme="dark"] .employee-gate-card .brand-logo { padding: .17rem .28rem; }

:root[data-theme="dark"] #toggle-browse {
  border-color: var(--brand-fill);
  background: var(--brand-fill);
  color: #fff;
}

:root[data-theme="dark"] #toggle-browse:is(:hover, [aria-expanded="true"]) {
  border-color: var(--brand-fill-hover);
  background: var(--brand-fill-hover);
}

/* Red text and red button fills have different contrast needs. */
:root[data-theme="dark"] :is(.button-primary, .wingman-chat-form button, .wingman-readplus-chat) {
  border-color: var(--brand-fill);
  background: var(--brand-fill);
  color: #fff;
}

:root[data-theme="dark"] :is(.button-primary, .wingman-chat-form button, .wingman-readplus-chat):hover {
  border-color: var(--brand-fill-hover);
  background: var(--brand-fill-hover);
  color: #fff;
}

:root[data-theme="dark"] .form-status:not(.error) { color: var(--success-ink); }

:root[data-theme="dark"] .employee-account {
  --profile-ink: var(--ink);
  --profile-paper: var(--paper);
  --profile-border: var(--subtle);
  --profile-control-border: var(--control-border);
}

:root[data-theme="dark"] .employee-account :is(.button:hover, details[open] summary.button) {
  background: var(--surface-hover);
}

:root[data-theme="dark"] .employee-account .button:focus-visible { outline-color: var(--focus); }
:root[data-theme="dark"] :is(.hub-announcement-panel, .hub-announcement-popup) .field-hint { color: var(--muted); }

:root[data-theme="dark"] .company-hub-view { --hub-photo-red: #711e31; }

:root[data-theme="dark"] .hub-banner[data-company="sas"] {
  border-color: #733c49;
  background-color: var(--hub-photo-red);
}

:root[data-theme="dark"] .hub-banner-subtitle,
:root[data-theme="dark"] .hub-contact-company[data-company="four-star"],
:root[data-theme="dark"] .launchpad-panel .hub-nav-button[data-route="four-star"][aria-current="page"] {
  color: var(--ink);
}

:root[data-theme="dark"] .hub-contact-company[data-company="four-star"],
:root[data-theme="dark"] .launchpad-panel .hub-nav-button[data-route="four-star"][aria-current="page"] {
  border-block-start: 1px solid var(--four-star-line);
  border-inline-end: 1px solid var(--four-star-line);
}

:root[data-theme="dark"] .hub-weekly-leave-lane[data-company="four-star"] > h3 { color: var(--ink); }

:root[data-theme="dark"] :is(.hub-guide-card, .hub-org)[data-company="four-star"] {
  --hub-team-ink: var(--ink);
}

:root[data-theme="dark"] :is(
  .company-hub-view:not([data-company="four-star"]) .hub-subnav-button[aria-pressed="true"],
  .hub-alphabet-letter[aria-pressed="true"],
  .hub-calendar-today .hub-calendar-day,
  .hub-calendar-controls .button-primary,
  .hub-announcement-popup .button-primary
) {
  background: var(--brand-fill);
}

:root[data-theme="dark"] :is(
  .hub-calendar-today .hub-calendar-day,
  .hub-calendar-controls .button-primary,
  .hub-announcement-popup .button-primary
):hover {
  background: var(--brand-fill-hover);
}
