/* FuelDash R142 — five final visual corrections without changing page structure. */
:root { --fd-r142-red: #ff3b30; }

/* Recommendation facts are information embedded in the parent card, not raised glass controls. */
html body #app .primary-station-card__facts > span {
  border-color: #232329 !important;
  background: #0c0c0f !important;
  background-color: #0c0c0f !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-fd-theme="light"] body #app .primary-station-card__facts > span {
  border-color: #dedee3 !important;
  background: #f3f3f5 !important;
  background-color: #f3f3f5 !important;
}

/* Only the rounded search shell owns the focus indication. */
html body #app .search-field input:is(:focus,:focus-visible) {
  border: 0 !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}
html body #app .search-field:focus-within {
  border-color: var(--fd-r142-red) !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.07), inset 0 0 0 1px var(--fd-r142-red) !important;
}

/* Label-to-control and control-to-statistics spacing now share a deliberate rhythm. */
html body .fd-feature-page[data-fd-feature-view="tankbook"] .fd-statistics-date {
  gap: 12px !important;
  row-gap: 12px !important;
  margin-bottom: 14px !important;
}

/* Remove the alert status card itself; only its semantic copy remains in layout. */
html body:not(#fd-r142-status-scope) .fd-alert-modal .fd-alert-status {
  display: contents !important;
  border: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html body:not(#fd-r142-status-scope) .fd-alert-modal .fd-alert-status::before,
html body:not(#fd-r142-status-scope) .fd-alert-modal .fd-alert-status::after {
  content: none !important;
  display: none !important;
}
html body:not(#fd-r142-status-scope) .fd-alert-modal .fd-alert-status__text {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 14px !important;
  padding: 0 2px 2px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
}

/* The account note stays visible as a compact label immediately left of Profile. */
html body #app .fd-main-header-actions .fd-profile-greeting:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  flex: 0 1 52px !important;
  max-width: 52px !important;
  margin: 0 -2px 0 0 !important;
  overflow: hidden !important;
  color: #8d8d95 !important;
  font-size: 9.5px !important;
  font-weight: 560 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html[data-fd-theme="light"] body #app .fd-main-header-actions .fd-profile-greeting:not([hidden]) {
  color: #6f6f77 !important;
}
