/* Settings palette extension — aligned with the approved Home / Live / Location language. */

body:has(.persistent-bottom-nav-shell.settings-main-shell-active),
body:has(.persistent-bottom-nav-shell.notification-preferences-shell-active),
body:has(.persistent-bottom-nav-shell.assignment-shell-active),
.demo-stage:has(.persistent-bottom-nav-shell.settings-main-shell-active),
.demo-stage:has(.persistent-bottom-nav-shell.notification-preferences-shell-active),
.demo-stage:has(.persistent-bottom-nav-shell.assignment-shell-active),
.persistent-bottom-nav-shell.settings-main-shell-active,
.persistent-bottom-nav-shell.notification-preferences-shell-active,
.persistent-bottom-nav-shell.assignment-shell-active,
.persistent-bottom-nav-shell.settings-main-shell-active > .app-scroll-region,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-scroll-region,
.persistent-bottom-nav-shell.assignment-shell-active > .app-scroll-region {
  background-color: #080b0f !important;
  background-image: none !important;
}

/* Corrected header tone: charcoal/navy, never blue and never near-black. */
.persistent-bottom-nav-shell.settings-main-shell-active > .app-screen-header,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-screen-header,
.persistent-bottom-nav-shell.assignment-shell-active > .app-screen-header {
  background: #0b131d !important;
  background-color: #0b131d !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Main Settings screen. */
.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign {
  --settings-section-gutter: 14px;
  --settings-row-divider: rgba(124, 143, 159, .12);
  background: #080b0f !important;
  color: #f4f6f8 !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-detail-section > .eyebrow,
.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-group > .eyebrow,
.persistent-bottom-nav-shell.assignment-shell-active .vehicle-assignment-screen .eyebrow,
.persistent-bottom-nav-shell.assignment-shell-active .assignment-flow-shell .eyebrow {
  color: #55dfcf !important;
  opacity: .9;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-detail-card,
.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-logout-card {
  border-color: rgba(124, 143, 159, .16) !important;
  background: linear-gradient(180deg, rgba(14,25,35,.985), rgba(9,17,25,.995)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.012) !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-detail-row + .settings-detail-row {
  border-top-color: rgba(124, 143, 159, .11) !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-static-row {
  background: rgba(8, 15, 22, .52) !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-row-icon {
  border-color: rgba(124, 143, 159, .13) !important;
  background: rgba(18, 30, 40, .92) !important;
  color: #9aa6b2 !important;
  filter: none !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-detail-section:nth-of-type(2) .settings-row-icon {
  color: #55dfcf !important;
  border-color: rgba(85, 223, 207, .13) !important;
  background: rgba(85, 223, 207, .055) !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-detail-section:first-of-type button .settings-row-icon,
.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-detail-section:nth-of-type(3) button .settings-row-icon {
  color: #7faef4 !important;
  border-color: rgba(93, 151, 234, .13) !important;
  background: rgba(74, 130, 214, .05) !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-row-copy strong {
  color: #f1f4f7 !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-row-copy small {
  color: #8f9aa7 !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-static-row .settings-row-copy strong {
  color: #d9e0e5 !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-static-row .settings-row-copy small {
  color: #74808b !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-row-chevron {
  color: #66737f !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign button.settings-detail-row:hover,
.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-logout-card:hover {
  background: rgba(21, 34, 45, .74) !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-detail-toggle {
  border: 1px solid rgba(124, 143, 159, .18) !important;
  background: #303941 !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-detail-toggle.on,
.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .toggle.on {
  border-color: #55dfcf !important;
  background: #55dfcf !important;
  box-shadow: 0 0 0 1px rgba(85,223,207,.06), 0 0 10px rgba(85,223,207,.08) !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-detail-toggle.on em,
.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .toggle.on em {
  background: #071116 !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-prototype-notice {
  border-color: rgba(124, 143, 159, .18) !important;
  background: linear-gradient(180deg, rgba(14,25,35,.98), rgba(8,16,24,.99)) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.12) !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-prototype-notice strong {
  color: #dbe3e9 !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active .settings-detail-redesign .settings-prototype-notice > button {
  border-color: rgba(93,151,234,.18) !important;
  background: rgba(74,130,214,.06) !important;
  color: #7faef4 !important;
}

/* Notification Settings sub-screen. */
.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen {
  background: #080b0f !important;
}

.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-intro,
.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-group > button,
.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-summary {
  border-color: rgba(124, 143, 159, .16) !important;
  background: linear-gradient(180deg, rgba(14,25,35,.985), rgba(9,17,25,.995)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.012) !important;
}

.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-group > button + button {
  border-top-color: rgba(124, 143, 159, .11) !important;
}

.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-intro h2,
.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-group > button > span,
.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-summary strong {
  color: #f1f4f7 !important;
}

.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-intro p,
.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-group > button > span > small {
  color: #8f9aa7 !important;
}

.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-summary small {
  color: #55dfcf !important;
}

.persistent-bottom-nav-shell.notification-preferences-shell-active .notification-preferences-screen .notification-group > button:hover {
  background: rgba(21, 34, 45, .74) !important;
}

/* Vehicle Assignment inherits the same Settings palette while preserving the existing flow. */
.persistent-bottom-nav-shell.assignment-shell-active .vehicle-assignment-screen,
.persistent-bottom-nav-shell.assignment-shell-active .assignment-flow-content,
.persistent-bottom-nav-shell.assignment-shell-active .assignment-flow-shell {
  background: #080b0f !important;
  color: #f1f4f7 !important;
}

.persistent-bottom-nav-shell.assignment-shell-active .vehicle-assignment-screen .assignment-current,
.persistent-bottom-nav-shell.assignment-shell-active .vehicle-assignment-screen .assignment-options button,
.persistent-bottom-nav-shell.assignment-shell-active .reassign-current-card,
.persistent-bottom-nav-shell.assignment-shell-active .reassign-new-card,
.persistent-bottom-nav-shell.assignment-shell-active .reassign-info-card,
.persistent-bottom-nav-shell.assignment-shell-active .calibration-list,
.persistent-bottom-nav-shell.assignment-shell-active .first-protection-card {
  border-color: rgba(124, 143, 159, .16) !important;
  background: linear-gradient(180deg, rgba(14,25,35,.985), rgba(9,17,25,.995)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.012) !important;
}

.persistent-bottom-nav-shell.assignment-shell-active .vehicle-assignment-screen .assignment-current strong,
.persistent-bottom-nav-shell.assignment-shell-active .reassign-current-card strong,
.persistent-bottom-nav-shell.assignment-shell-active .first-protection-icon {
  color: #55dfcf !important;
}

.persistent-bottom-nav-shell.assignment-shell-active .vehicle-assignment-screen .assignment-current small,
.persistent-bottom-nav-shell.assignment-shell-active .reassign-current-card small {
  color: #6fcfc2 !important;
}

.persistent-bottom-nav-shell.assignment-shell-active .vehicle-assignment-screen .assignment-current span,
.persistent-bottom-nav-shell.assignment-shell-active .reassign-current-card span,
.persistent-bottom-nav-shell.assignment-shell-active .reassign-new-card small,
.persistent-bottom-nav-shell.assignment-shell-active .first-protection-card span,
.persistent-bottom-nav-shell.assignment-shell-active .reassign-copy {
  color: #8f9aa7 !important;
}

.persistent-bottom-nav-shell.assignment-shell-active .vehicle-assignment-screen .assignment-options button:hover {
  background: rgba(21, 34, 45, .74) !important;
}

.persistent-bottom-nav-shell.assignment-shell-active .vehicle-assignment-screen .assignment-options button b,
.persistent-bottom-nav-shell.assignment-shell-active .reassign-new-card b {
  color: #7faef4 !important;
}

/* Settings footer: same edge-to-edge, top-border-only treatment as the updated main screens. */
.persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav,
.persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav {
  box-sizing: border-box !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  min-height: 112px !important;
  height: 112px !important;
  padding: 12px 10px 8px !important;
  border: 0 !important;
  border-top: 1px solid rgba(124, 143, 159, .18) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(14,25,35,.995), rgba(7,16,25,.998)) !important;
  box-shadow: 0 -8px 24px rgba(0,0,0,.19), inset 0 1px 0 rgba(255,255,255,.012) !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav button,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav button,
.persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav button {
  min-height: 88px !important;
  gap: 8px !important;
  background: transparent !important;
  color: #929aa7 !important;
  font-size: 13px !important;
  font-weight: 420 !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav button::before,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav button::before,
.persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav button::before {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav .bottom-nav-icon,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav .bottom-nav-icon,
.persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav .bottom-nav-icon {
  width: 32px !important;
  height: 32px !important;
  flex-basis: 32px !important;
  color: currentColor !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav button.active,
.persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav button.active span,
.persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav button.active .bottom-nav-icon,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav button.active,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav button.active span,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav button.active .bottom-nav-icon,
.persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav button.active,
.persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav button.active span,
.persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav button.active .bottom-nav-icon {
  color: #55dfcf !important;
}

.persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav button.active::after,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav button.active::after,
.persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 60px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: #55dfcf;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(85, 223, 207, .18);
}

.persistent-bottom-nav-shell.settings-main-shell-active > .app-scroll-region > .app-nav-spacer,
.persistent-bottom-nav-shell.notification-preferences-shell-active > .app-scroll-region > .app-nav-spacer,
.persistent-bottom-nav-shell.assignment-shell-active > .app-scroll-region > .app-nav-spacer {
  background: #080b0f !important;
}

@media (max-width: 420px) {
  .persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav,
  .persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav,
  .persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav {
    min-height: 108px !important;
    height: 108px !important;
    padding: 10px 8px 7px !important;
  }

  .persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav button,
  .persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav button,
  .persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav button {
    min-height: 84px !important;
    gap: 7px !important;
    font-size: 12.5px !important;
  }

  .persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav .bottom-nav-icon,
  .persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav .bottom-nav-icon,
  .persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav .bottom-nav-icon {
    width: 31px !important;
    height: 31px !important;
    flex-basis: 31px !important;
  }

  .persistent-bottom-nav-shell.settings-main-shell-active > .app-primary-bottom-nav button.active::after,
  .persistent-bottom-nav-shell.notification-preferences-shell-active > .app-primary-bottom-nav button.active::after,
  .persistent-bottom-nav-shell.assignment-shell-active > .app-primary-bottom-nav button.active::after {
    top: -10px;
    width: 58px;
  }
}
