/* Final PARTMATCH dark-mode contrast layer. Loaded after page-specific CSS. */
html[data-theme="dark"] body,
html[data-theme="dark"] body.role-page {
  --bg: #0f1724;
  --panel: #172232;
  --ink: #f8fafc;
  --muted: #c8d4e2;
  --line: #40546a;
  --catalogue-soft: #1b2838;
  --catalogue-chip: #223349;
  --catalogue-line: #40546a;
  background: #0f1724 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] header,
html[data-theme="dark"] body.role-page > header {
  background: #121d2a !important;
  border-color: #33485f !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] header h1,
html[data-theme="dark"] header .subtitle,
html[data-theme="dark"] header .role-label,
html[data-theme="dark"] body.role-page > header h1,
html[data-theme="dark"] body.role-page > header .subtitle,
html[data-theme="dark"] body.role-page > header .role-label {
  color: #f8fafc !important;
}

html[data-theme="dark"] .brand .subtitle {
  background: #172638 !important;
  border-color: #49627c !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] body.role-page > header .role-label {
  background: #21344a !important;
  border-color: #5c7ea3 !important;
}

html[data-theme="dark"] body.role-page > header .nav-link,
html[data-theme="dark"] body.role-page > header button,
html[data-theme="dark"] body.role-page > header .surus-theme-toggle,
html[data-theme="dark"] body.role-page > header #surusPwaInstall,
html[data-theme="dark"] body.role-page > header .surus-language-control,
html[data-theme="dark"] body.role-page > header .surus-language-control select {
  background: #172638 !important;
  border-color: #49627c !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.role-page > header .nav-link--notification,
html[data-theme="dark"] body.role-page > header #surusPwaInstall {
  border-color: #d9a300 !important;
}

html[data-theme="dark"] body.role-page .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .summary,
html[data-theme="dark"] .intro,
html[data-theme="dark"] .platform-explainer,
html[data-theme="dark"] .language-panel,
html[data-theme="dark"] .choice,
html[data-theme="dark"] .promise,
html[data-theme="dark"] body.role-page .panel,
html[data-theme="dark"] body.role-page .summary,
html[data-theme="dark"] body.role-page .intro,
html[data-theme="dark"] body.role-page .platform-explainer,
html[data-theme="dark"] body.role-page .buyer-reply-focus,
html[data-theme="dark"] body.role-page .supply-focus,
html[data-theme="dark"] body.role-page .user-reviews,
html[data-theme="dark"] body.role-page .market-dashboard,
html[data-theme="dark"] body.role-page .request-panel,
html[data-theme="dark"] body.role-page .seller-form-section,
html[data-theme="dark"] body.role-page .advanced-fitment,
html[data-theme="dark"] body.role-page .vehicle-helper,
html[data-theme="dark"] body.role-page .bulk-request-panel,
html[data-theme="dark"] body.role-page .listing-photo-field,
html[data-theme="dark"] body.role-page .request-photo-field {
  background: #172232 !important;
  border-color: #40546a !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .summary li,
html[data-theme="dark"] .language-option,
html[data-theme="dark"] .role-card,
html[data-theme="dark"] button.choice,
html[data-theme="dark"] .promise-strip > *,
html[data-theme="dark"] body.role-page .buyer-reply-focus__head,
html[data-theme="dark"] body.role-page .buyer-supply-focus__head,
html[data-theme="dark"] body.role-page .market-dashboard__header,
html[data-theme="dark"] body.role-page .market-dashboard__toolbar,
html[data-theme="dark"] body.role-page .market-dashboard__search-row,
html[data-theme="dark"] body.role-page .market-dashboard__categories,
html[data-theme="dark"] body.role-page .market-dashboard__list-view,
html[data-theme="dark"] body.role-page .seller-form-section__head,
html[data-theme="dark"] body.role-page .request-panel__head,
html[data-theme="dark"] body.role-page .quick-bid-dialog__header,
html[data-theme="dark"] body.role-page .smart-match-panel__header,
html[data-theme="dark"] body.role-page .smart-match-card__header {
  background: #1b2838 !important;
  border-color: #40546a !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] strong,
html[data-theme="dark"] body.role-page h1,
html[data-theme="dark"] body.role-page h2,
html[data-theme="dark"] body.role-page h3,
html[data-theme="dark"] body.role-page h4,
html[data-theme="dark"] body.role-page strong,
html[data-theme="dark"] body.role-page label,
html[data-theme="dark"] body.role-page th,
html[data-theme="dark"] body.role-page td,
html[data-theme="dark"] body.role-page .market-dashboard__title,
html[data-theme="dark"] body.role-page .market-dashboard__category-copy strong,
html[data-theme="dark"] body.role-page .market-dashboard__item-name,
html[data-theme="dark"] body.role-page .market-dashboard__stat-value,
html[data-theme="dark"] body.role-page .market-dashboard__district-name,
html[data-theme="dark"] body.role-page .transaction-tab {
  color: #f8fafc !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] small,
html[data-theme="dark"] .subtitle,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .hint,
html[data-theme="dark"] body.role-page p,
html[data-theme="dark"] body.role-page small,
html[data-theme="dark"] body.role-page .subtitle,
html[data-theme="dark"] body.role-page .muted,
html[data-theme="dark"] body.role-page .hint,
html[data-theme="dark"] body.role-page .mini,
html[data-theme="dark"] body.role-page .status,
html[data-theme="dark"] body.role-page .request-panel__hint,
html[data-theme="dark"] body.role-page .market-dashboard__subtitle,
html[data-theme="dark"] body.role-page .market-dashboard__category-copy small,
html[data-theme="dark"] body.role-page .market-dashboard__item-meta,
html[data-theme="dark"] body.role-page .market-dashboard__stat-label,
html[data-theme="dark"] body.role-page .market-dashboard__source,
html[data-theme="dark"] body.role-page .market-dashboard__empty {
  color: #c8d4e2 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] body.role-page input,
html[data-theme="dark"] body.role-page select,
html[data-theme="dark"] body.role-page textarea,
html[data-theme="dark"] body.role-page .market-dashboard__search-control,
html[data-theme="dark"] body.role-page .market-dashboard__district-control {
  background: #0f1724 !important;
  border-color: #526981 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] body.role-page input::placeholder,
html[data-theme="dark"] body.role-page textarea::placeholder {
  color: #95a7ba !important;
}

html[data-theme="dark"] body.role-page .notice,
html[data-theme="dark"] body.role-page .flash-notification,
html[data-theme="dark"] body.role-page .item-preview,
html[data-theme="dark"] body.role-page .market-dashboard__stat,
html[data-theme="dark"] body.role-page .market-dashboard__body,
html[data-theme="dark"] body.role-page .market-dashboard__map-view,
html[data-theme="dark"] body.role-page .market-dashboard__map-panel,
html[data-theme="dark"] body.role-page .market-dashboard__detail,
html[data-theme="dark"] body.role-page .market-dashboard__group,
html[data-theme="dark"] body.role-page .market-dashboard__request,
html[data-theme="dark"] body.role-page .market-dashboard__request-list,
html[data-theme="dark"] body.role-page .market-dashboard__item,
html[data-theme="dark"] body.role-page .market-dashboard__result-visual,
html[data-theme="dark"] body.role-page .market-dashboard__empty,
html[data-theme="dark"] body.role-page .transaction-tab {
  background: #111c29 !important;
  border-color: #40546a !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] body.role-page .market-dashboard__tab[aria-selected="true"],
html[data-theme="dark"] body.role-page .market-dashboard__view-switch button[aria-selected="true"],
html[data-theme="dark"] body.role-page .transaction-tab[aria-selected="true"],
html[data-theme="dark"] body.role-page .market-dashboard__category[aria-pressed="true"],
html[data-theme="dark"] body.role-page .market-dashboard__category:hover {
  background: #23384f !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body.role-page .market-dashboard__tab[aria-selected="true"] *,
html[data-theme="dark"] body.role-page .market-dashboard__view-switch button[aria-selected="true"] *,
html[data-theme="dark"] body.role-page .transaction-tab[aria-selected="true"] *,
html[data-theme="dark"] body.role-page .market-dashboard__category[aria-pressed="true"] *,
html[data-theme="dark"] body.role-page .market-dashboard__category:hover * {
  color: #ffffff !important;
}

html[data-theme="dark"] body.role-page .unread-badge,
html[data-theme="dark"] body.role-page .confirmation-count,
html[data-theme="dark"] body.role-page .transaction-tab__count {
  background: #f5b400 !important;
  color: #1f2937 !important;
}

html[data-theme="dark"] body.role-page button.primary,
html[data-theme="dark"] body.role-page button[type="submit"],
html[data-theme="dark"] body.role-page .market-dashboard__primary-action,
html[data-theme="dark"] body.role-page .market-dashboard__bid-button,
html[data-theme="dark"] body.role-page .mobile-role-flow__action {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body.role-buyer button.primary,
html[data-theme="dark"] body.role-buyer button[type="submit"],
html[data-theme="dark"] body.role-buyer .market-dashboard__primary-action,
html[data-theme="dark"] body.role-buyer .market-dashboard__bid-button,
html[data-theme="dark"] body.role-buyer .mobile-role-flow__action {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body.role-page button.secondary,
html[data-theme="dark"] body.role-page .secondary,
html[data-theme="dark"] body.role-page .missing-part-link {
  background: #24364b !important;
  border-color: #5b7692 !important;
  color: #eaf2ff !important;
}

html[data-theme="dark"] body.role-page .hero-picture,
html[data-theme="dark"] body.role-page .banner-panel {
  background: #0f1724 !important;
  border-color: #40546a !important;
}

html[data-theme="dark"] .hero-picture,
html[data-theme="dark"] .banner-panel {
  background: #0f1724 !important;
  border-color: #40546a !important;
}

html[data-theme="dark"] body.role-page .summary li,
html[data-theme="dark"] body.role-page .promise,
html[data-theme="dark"] body.role-page button.choice,
html[data-theme="dark"] body.role-page .role-card,
html[data-theme="dark"] body.role-page .choice {
  background: #111c29 !important;
  border-color: #40546a !important;
  color: #f8fafc !important;
}

/* Hard dark-mode readability pass for PARTMATCH role pages and login.
   This file is intentionally loaded last so page-level prototype styles cannot wash out text. */
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .first-screen {
  background: #0e1726 !important;
  color: #eef6ff !important;
}

html[data-theme="dark"] body.role-page main {
  background: linear-gradient(180deg, #0e1726 0%, #111b2a 100%) !important;
}

html[data-theme="dark"] header,
html[data-theme="dark"] body.role-page > header {
  min-height: auto !important;
  background: #ffffff !important;
  border-bottom-color: #f59e0b !important;
  color: #121820 !important;
}

html[data-theme="dark"] header h1,
html[data-theme="dark"] header .subtitle,
html[data-theme="dark"] header .role-label,
html[data-theme="dark"] body.role-page > header h1,
html[data-theme="dark"] body.role-page > header .subtitle,
html[data-theme="dark"] body.role-page > header .role-label {
  color: #121820 !important;
}

html[data-theme="dark"] body.role-page > header .nav-link,
html[data-theme="dark"] body.role-page > header button,
html[data-theme="dark"] body.role-page > header .surus-theme-toggle,
html[data-theme="dark"] body.role-page > header #surusPwaInstall,
html[data-theme="dark"] body.role-page > header .surus-language-control,
html[data-theme="dark"] body.role-page > header .surus-language-control select {
  background: #ffffff !important;
  border-color: #cbd7e5 !important;
  color: #121820 !important;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .intro,
html[data-theme="dark"] .summary,
html[data-theme="dark"] .platform-explainer,
html[data-theme="dark"] .step,
html[data-theme="dark"] .language-panel,
html[data-theme="dark"] body.role-page .card,
html[data-theme="dark"] body.role-page .buyer-reply-focus,
html[data-theme="dark"] body.role-page .supply-focus,
html[data-theme="dark"] body.role-page .user-reviews,
html[data-theme="dark"] body.role-page .market-dashboard,
html[data-theme="dark"] body.role-page .seller-form-section,
html[data-theme="dark"] body.role-page .request-panel,
html[data-theme="dark"] body.role-page .contract-table-wrap,
html[data-theme="dark"] body.role-page .contract-card,
html[data-theme="dark"] body.role-page .smart-match-panel,
html[data-theme="dark"] body.role-page .quick-bid-dialog__body {
  background: #172232 !important;
  border-color: #40546a !important;
  color: #eef6ff !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .choice,
html[data-theme="dark"] .promise,
html[data-theme="dark"] .summary li,
html[data-theme="dark"] .value-point,
html[data-theme="dark"] .free-access-notice,
html[data-theme="dark"] body.role-page .buyer-reply-focus__head,
html[data-theme="dark"] body.role-page .buyer-reply-focus__list,
html[data-theme="dark"] body.role-page .buyer-reply-focus__stats div,
html[data-theme="dark"] body.role-page .supply-focus > summary,
html[data-theme="dark"] body.role-page .supply-focus__content,
html[data-theme="dark"] body.role-page .market-dashboard__header,
html[data-theme="dark"] body.role-page .market-dashboard__toolbar,
html[data-theme="dark"] body.role-page .market-dashboard__search-row,
html[data-theme="dark"] body.role-page .market-dashboard__categories,
html[data-theme="dark"] body.role-page .market-dashboard__stats,
html[data-theme="dark"] body.role-page .market-dashboard__body,
html[data-theme="dark"] body.role-page .market-dashboard__map-view,
html[data-theme="dark"] body.role-page .market-dashboard__map-panel,
html[data-theme="dark"] body.role-page .market-dashboard__detail,
html[data-theme="dark"] body.role-page .market-dashboard__request-list,
html[data-theme="dark"] body.role-page .market-dashboard__list-view,
html[data-theme="dark"] body.role-page .seller-form-section--part,
html[data-theme="dark"] body.role-page .seller-form-section--availability,
html[data-theme="dark"] body.role-page .seller-form-section__head,
html[data-theme="dark"] body.role-page .request-panel__head,
html[data-theme="dark"] body.role-page .vehicle-helper,
html[data-theme="dark"] body.role-page .part-fit-grid,
html[data-theme="dark"] body.role-page .advanced-fitment,
html[data-theme="dark"] body.role-page .bulk-request-panel,
html[data-theme="dark"] body.role-page .listing-photo-field,
html[data-theme="dark"] body.role-page .request-photo-field,
html[data-theme="dark"] body.role-page .transaction-tabs,
html[data-theme="dark"] body.role-page .transaction-tab,
html[data-theme="dark"] body.role-page .contract-card__payment,
html[data-theme="dark"] body.role-page .confirmation-panel,
html[data-theme="dark"] body.role-page .settlement,
html[data-theme="dark"] body.role-page .request-match-summary,
html[data-theme="dark"] body.role-page .item-preview,
html[data-theme="dark"] body.role-page .missing-part-panel,
html[data-theme="dark"] body.role-page .item-search-dialog__sheet {
  background: #111c29 !important;
  border-color: #40546a !important;
  color: #eef6ff !important;
}

html[data-theme="dark"] body.role-farmer .seller-form-section--part > div:not(.seller-form-section__head):not(.part-detail-grid):not(.missing-part-panel),
html[data-theme="dark"] body.role-farmer .seller-form-section--part .part-detail-grid > div,
html[data-theme="dark"] body.role-farmer .seller-form-section--availability .part-sale-grid > div,
html[data-theme="dark"] body.role-farmer .seller-form-section--availability .two > div,
html[data-theme="dark"] body.role-farmer .seller-form-section--availability > div:not(.seller-form-section__head):not(.part-sale-grid):not(.two),
html[data-theme="dark"] body.role-buyer .request-panel--part > div:not(.request-panel__head):not(.part-detail-grid):not(.missing-part-panel),
html[data-theme="dark"] body.role-buyer .request-panel .part-detail-grid > div,
html[data-theme="dark"] body.role-buyer .request-panel--terms .two > div,
html[data-theme="dark"] body.role-buyer .request-panel--terms > div:not(.request-panel__head):not(.bulk-request-panel):not(.two) {
  background: #0f1925 !important;
  border-color: #33475c !important;
  color: #eef6ff !important;
}

html[data-theme="dark"] body.role-page .item-preview:not(:empty) {
  background: #132943 !important;
  border-color: #3b82f6 !important;
  color: #eef6ff !important;
}

html[data-theme="dark"] .choice.active,
html[data-theme="dark"] .choice:hover,
html[data-theme="dark"] .promise.active,
html[data-theme="dark"] .promise:hover,
html[data-theme="dark"] body.role-page .market-dashboard__tab[aria-selected="true"],
html[data-theme="dark"] body.role-page .market-dashboard__view-switch button[aria-selected="true"],
html[data-theme="dark"] body.role-page .market-dashboard__category[aria-pressed="true"],
html[data-theme="dark"] body.role-page .transaction-tab.is-active,
html[data-theme="dark"] body.role-page .transaction-tab[aria-selected="true"] {
  background: #eaf3ff !important;
  border-color: #0ea5e9 !important;
  color: #102033 !important;
}

html[data-theme="dark"] .choice.active *,
html[data-theme="dark"] .choice:hover *,
html[data-theme="dark"] .promise.active *,
html[data-theme="dark"] .promise:hover *,
html[data-theme="dark"] body.role-page .market-dashboard__tab[aria-selected="true"] *,
html[data-theme="dark"] body.role-page .market-dashboard__view-switch button[aria-selected="true"] *,
html[data-theme="dark"] body.role-page .market-dashboard__category[aria-pressed="true"] *,
html[data-theme="dark"] body.role-page .transaction-tab.is-active *,
html[data-theme="dark"] body.role-page .transaction-tab[aria-selected="true"] * {
  color: #102033 !important;
}

html[data-theme="dark"] body.role-page .market-dashboard__category,
html[data-theme="dark"] body.role-page .market-dashboard__item,
html[data-theme="dark"] body.role-page .market-dashboard__group,
html[data-theme="dark"] body.role-page .market-dashboard__request,
html[data-theme="dark"] body.role-page .market-dashboard__result-card,
html[data-theme="dark"] body.role-page .market-dashboard__result-visual,
html[data-theme="dark"] body.role-page .market-dashboard__stat,
html[data-theme="dark"] body.role-page .market-dashboard__empty {
  background: #172638 !important;
  border-color: #40546a !important;
  color: #eef6ff !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] label,
html[data-theme="dark"] strong,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .choice-cta,
html[data-theme="dark"] .promise-cta,
html[data-theme="dark"] .market-dashboard__title,
html[data-theme="dark"] .market-dashboard__item-name,
html[data-theme="dark"] .market-dashboard__category-copy strong,
html[data-theme="dark"] .market-dashboard__district-name,
html[data-theme="dark"] .contract-card__title,
html[data-theme="dark"] .contract-fact strong,
html[data-theme="dark"] .selected-bid-value strong {
  color: #f8fafc !important;
  opacity: 1 !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] small,
html[data-theme="dark"] li,
html[data-theme="dark"] .subtitle,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .mini,
html[data-theme="dark"] .status,
html[data-theme="dark"] .request-panel__hint,
html[data-theme="dark"] .market-dashboard__subtitle,
html[data-theme="dark"] .market-dashboard__source,
html[data-theme="dark"] .market-dashboard__item-meta,
html[data-theme="dark"] .market-dashboard__stat-label,
html[data-theme="dark"] .contract-card__source,
html[data-theme="dark"] .contract-fact span,
html[data-theme="dark"] .selected-bid-value span {
  color: #cbd7e5 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .market-dashboard__search-control,
html[data-theme="dark"] .market-dashboard__district-control {
  background: #f8fafc !important;
  border-color: #cbd7e5 !important;
  color: #121820 !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #697789 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .pill,
html[data-theme="dark"] .free-access-notice__icon,
html[data-theme="dark"] .value-point__icon,
html[data-theme="dark"] .unread-badge,
html[data-theme="dark"] .confirmation-count,
html[data-theme="dark"] .transaction-tab__count {
  background: #fde68a !important;
  border-color: #f59e0b !important;
  color: #121820 !important;
}

html[data-theme="dark"] button,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .secondary,
html[data-theme="dark"] .link-button,
html[data-theme="dark"] .surus-theme-toggle {
  color: #eef6ff !important;
}

html[data-theme="dark"] body.role-page .secondary,
html[data-theme="dark"] body.role-page .missing-part-link,
html[data-theme="dark"] .login-shortcut {
  background: #24364b !important;
  border-color: #5b7692 !important;
  color: #eef6ff !important;
}

html[data-theme="dark"] body.role-page button[type="submit"],
html[data-theme="dark"] body.role-page button.primary,
html[data-theme="dark"] body.role-page .market-dashboard__primary-action,
html[data-theme="dark"] .login-shortcut {
  border-color: #c2410c !important;
  background: #c2410c !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body.role-buyer button[type="submit"],
html[data-theme="dark"] body.role-buyer button.primary,
html[data-theme="dark"] body.role-buyer .market-dashboard__primary-action {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .hero-picture,
html[data-theme="dark"] .banner-panel {
  background: #111c29 !important;
}

html[data-theme="dark"] #surusPwaInstall,
html[data-theme="dark"] body.role-page > header #surusPwaInstall {
  background: #fff4bf !important;
  border-color: #d9a300 !important;
  color: #102033 !important;
}

html[data-theme="dark"] #surusPwaInstall *,
html[data-theme="dark"] body.role-page > header #surusPwaInstall * {
  color: #102033 !important;
}

html[data-theme="dark"] header .brand .subtitle,
html[data-theme="dark"] body.role-page > header .brand .subtitle {
  background: #172638 !important;
  border-color: #49627c !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] body.role-farmer #sellSparePartButton,
html[data-theme="dark"] body.role-farmer .market-dashboard__refresh,
html[data-theme="dark"] body.role-farmer .user-reviews__refresh,
html[data-theme="dark"] body.role-farmer .mobile-role-flow__action {
  background: #c2410c !important;
  border-color: #c2410c !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body.role-buyer .market-dashboard__refresh,
html[data-theme="dark"] body.role-buyer .user-reviews__refresh,
html[data-theme="dark"] body.role-buyer .mobile-role-flow__action {
  background: #075b96 !important;
  border-color: #075b96 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body.role-page .mobile-role-flow,
html[data-theme="dark"] body.role-page .mobile-role-flow__rail,
html[data-theme="dark"] body.role-page .mobile-role-flow__card,
html[data-theme="dark"] body.role-page .mobile-workflow-hint,
html[data-theme="dark"] body.role-page .focus-stat,
html[data-theme="dark"] body.role-page .focus-stats,
html[data-theme="dark"] body.role-page .focus-empty,
html[data-theme="dark"] body.role-page .farmer-focus,
html[data-theme="dark"] body.role-page .farmer-focus__list,
html[data-theme="dark"] body.role-page .listing-highlight,
html[data-theme="dark"] body.role-page .user-reviews__compact-score,
html[data-theme="dark"] body.role-page .user-review,
html[data-theme="dark"] body.role-page .user-reviews__score,
html[data-theme="dark"] body.role-page .market-price-guide,
html[data-theme="dark"] body.role-page .market-price-guide__post,
html[data-theme="dark"] body.role-page .market-price-guide__table,
html[data-theme="dark"] body.role-page .market-price-guide__table th,
html[data-theme="dark"] body.role-page .market-price-guide__table td {
  background: #172232 !important;
  border-color: #40546a !important;
  color: #eef6ff !important;
}

html[data-theme="dark"] body.role-page .mobile-role-flow__card.is-active,
html[data-theme="dark"] body.role-page .mobile-role-flow__card:hover {
  background: #eaf3ff !important;
  border-color: #0ea5e9 !important;
  color: #102033 !important;
}

html[data-theme="dark"] body.role-page .mobile-role-flow__card.is-active *,
html[data-theme="dark"] body.role-page .mobile-role-flow__card:hover * {
  color: #102033 !important;
}

html[data-theme="dark"] body.role-page .market-dashboard__tab,
html[data-theme="dark"] body.role-page .market-dashboard__view-switch button,
html[data-theme="dark"] body.role-page .market-dashboard__details-button,
html[data-theme="dark"] body.role-page .market-dashboard__item-toggle,
html[data-theme="dark"] body.role-page .market-price-guide__toggle,
html[data-theme="dark"] body.role-page .market-price-guide__source-button,
html[data-theme="dark"] body.role-page .user-reviews__report-link {
  background: #172638 !important;
  border-color: #40546a !important;
  color: #eef6ff !important;
}

html[data-theme="dark"] body.role-page .market-dashboard__tab *,
html[data-theme="dark"] body.role-page .market-dashboard__view-switch button *,
html[data-theme="dark"] body.role-page .user-reviews__compact-score *,
html[data-theme="dark"] body.role-page .user-review *,
html[data-theme="dark"] body.role-page .focus-stat *,
html[data-theme="dark"] body.role-page .focus-empty *,
html[data-theme="dark"] body.role-page .listing-highlight * {
  color: inherit !important;
}

html[data-theme="dark"] body.role-page .mobile-page-guide,
html[data-theme="dark"] body.role-page .mobile-page-guide__steps,
html[data-theme="dark"] body.role-page .mobile-page-guide__step,
html[data-theme="dark"] body.role-page #myListingsHighlights,
html[data-theme="dark"] body.role-page #farmerTransactionsHighlights,
html[data-theme="dark"] body.role-page #buyerReplyFocusList,
html[data-theme="dark"] body.role-page .buyer-reply-empty,
html[data-theme="dark"] body.role-page .supply-empty,
html[data-theme="dark"] body.role-page .bid-offer-empty,
html[data-theme="dark"] body.role-page .contract-table td,
html[data-theme="dark"] body.role-page .contract-table tr,
html[data-theme="dark"] body.role-page .contract-table tbody {
  background: #111c29 !important;
  border-color: #40546a !important;
  color: #eef6ff !important;
}

html[data-theme="dark"] body.role-page #myListingsHighlights > .subtitle,
html[data-theme="dark"] body.role-page #farmerTransactionsHighlights > .subtitle,
html[data-theme="dark"] body.role-page #buyerReplyFocusList > .buyer-reply-empty {
  background: #111c29 !important;
  border-color: #40546a !important;
  color: #eef6ff !important;
}

html[data-theme="dark"] body.role-page .mobile-page-guide__step *,
html[data-theme="dark"] body.role-page .buyer-reply-empty *,
html[data-theme="dark"] body.role-page .supply-empty *,
html[data-theme="dark"] body.role-page .bid-offer-empty *,
html[data-theme="dark"] body.role-page #myListingsHighlights *,
html[data-theme="dark"] body.role-page #farmerTransactionsHighlights *,
html[data-theme="dark"] body.role-page #buyerReplyFocusList * {
  color: inherit !important;
}

html[data-theme="dark"] body.role-page .mobile-role-flow__count,
html[data-theme="dark"] body.role-page .mobile-page-guide__number,
html[data-theme="dark"] body.role-page .confirmation-count,
html[data-theme="dark"] body.role-page .confirmation-count *,
html[data-theme="dark"] body.role-page .unread-badge,
html[data-theme="dark"] body.role-page .unread-badge *,
html[data-theme="dark"] body.role-page .transaction-tab__count,
html[data-theme="dark"] body.role-page .transaction-tab__count *,
html[data-theme="dark"] body.role-page [data-upcoming-count],
html[data-theme="dark"] body.role-page [data-upcoming-count] * {
  background: #fde68a !important;
  border-color: #f59e0b !important;
  color: #102033 !important;
}

html[data-theme="dark"] body.role-page .market-dashboard__tab[aria-selected="true"] strong,
html[data-theme="dark"] body.role-page .market-dashboard__tab[aria-selected="true"] span,
html[data-theme="dark"] body.role-page .market-dashboard__view-switch button[aria-selected="true"] strong,
html[data-theme="dark"] body.role-page .market-dashboard__view-switch button[aria-selected="true"] span,
html[data-theme="dark"] body.role-page .market-dashboard__category[aria-pressed="true"] strong,
html[data-theme="dark"] body.role-page .market-dashboard__category[aria-pressed="true"] span,
html[data-theme="dark"] body.role-page .transaction-tab.is-active strong,
html[data-theme="dark"] body.role-page .transaction-tab.is-active span,
html[data-theme="dark"] body.role-page .transaction-tab[aria-selected="true"] strong,
html[data-theme="dark"] body.role-page .transaction-tab[aria-selected="true"] span {
  color: #102033 !important;
}

/* Raised action buttons stay readable in dark mode. */
html[data-theme="dark"] body.role-farmer .listing-highlight__primary-actions button,
html[data-theme="dark"] body.role-farmer .listing-highlight__actions .action-button,
html[data-theme="dark"] body.role-farmer .listing-photo-editor__actions button,
html[data-theme="dark"] body.role-farmer .selected-bid-action button,
html[data-theme="dark"] body.role-farmer #farmerSalesSection .confirmation-actions button,
html[data-theme="dark"] body.role-farmer #farmerSalesSection .settlement .link-button,
html[data-theme="dark"] body.role-buyer .buyer-reply-card__actions button,
html[data-theme="dark"] body.role-buyer .request-row-actions button,
html[data-theme="dark"] body.role-buyer .quick-bid-dialog__actions button,
html[data-theme="dark"] body.role-buyer .contract-card__payment button,
html[data-theme="dark"] body.role-buyer .contract-card__payment .link-button,
html[data-theme="dark"] body.role-buyer .smart-match-card__actions button {
  border-color: #617994 !important;
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%) !important;
  color: #102033 !important;
  box-shadow: 0 3px 0 #617994, 0 12px 22px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] body.role-farmer .listing-highlight__primary-actions .is-bids,
html[data-theme="dark"] body.role-farmer .listing-highlight__actions .action-button--edit,
html[data-theme="dark"] body.role-farmer .listing-photo-editor__actions button:first-child {
  border-color: #fb923c !important;
  background: linear-gradient(180deg, #ff8a2a 0%, #f97316 56%, #c2410c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #7c2d12, 0 14px 24px rgba(249, 115, 22, 0.26) !important;
}

html[data-theme="dark"] body.role-farmer .listing-highlight__primary-actions .is-requests,
html[data-theme="dark"] body.role-buyer .buyer-reply-card__actions [data-priority-request-replies],
html[data-theme="dark"] body.role-buyer .quick-bid-dialog__actions button[type="submit"],
html[data-theme="dark"] body.role-buyer .quick-bid-dialog__actions button:not(.secondary),
html[data-theme="dark"] body.role-buyer .contract-card__payment button:not(.secondary),
html[data-theme="dark"] body.role-buyer .contract-card__payment .link-button:not(.secondary),
html[data-theme="dark"] body.role-buyer .smart-match-card__actions button:not(.secondary) {
  border-color: #60a5fa !important;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 56%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #1e3a8a, 0 14px 24px rgba(37, 99, 235, 0.28) !important;
}

html[data-theme="dark"] body.role-farmer .listing-highlight__actions .action-button--danger,
html[data-theme="dark"] body.role-buyer .request-row-actions [data-deactivate-request] {
  border-color: #fca5a5 !important;
  background: linear-gradient(180deg, #fff7f7 0%, #fee2e2 100%) !important;
  color: #991b1b !important;
  box-shadow: 0 3px 0 #b91c1c, 0 12px 22px rgba(185, 28, 28, 0.20) !important;
}

html[data-theme="dark"] body.role-page .listing-highlight__primary-actions button *,
html[data-theme="dark"] body.role-page .listing-highlight__actions .action-button *,
html[data-theme="dark"] body.role-page .buyer-reply-card__actions button *,
html[data-theme="dark"] body.role-page .request-row-actions button *,
html[data-theme="dark"] body.role-page .quick-bid-dialog__actions button *,
html[data-theme="dark"] body.role-page .contract-card__payment button *,
html[data-theme="dark"] body.role-page .contract-card__payment .link-button *,
html[data-theme="dark"] body.role-page .smart-match-card__actions button * {
  color: inherit !important;
}

html[data-theme="dark"] body.role-page .seller-form-section--fit .vehicle-helper label,
html[data-theme="dark"] body.role-page .seller-form-section--fit .advanced-fitment__title,
html[data-theme="dark"] body.role-page .seller-form-section--fit label {
  color: #f8fafc !important;
}

html[data-theme="dark"] body.role-page .seller-form-section--fit .vehicle-helper__status {
  color: #cbd7e5 !important;
}

html[data-theme="dark"] body.role-page .seller-form-section--fit .vehicle-helper__status.error {
  color: #fca5a5 !important;
}

html[data-theme="dark"] body.role-page .seller-form-section--fit .vehicle-helper__status.success {
  color: #93c5fd !important;
}

html[data-theme="dark"] body.role-farmer .seller-form-section--fit .vehicle-helper__status.warning {
  color: #fdba74 !important;
}
