/* Blackboard green dark surfaces. Load after the component styles. Semantic status and brand colours stay local to their components. */

/* styles.css */
[data-theme="dark"] { --ink: #f5f5f5; --muted: #afafaf; --line: #3f3f3f; --paper: #11251d; --card: #172d24; --teal: #a8a8a8; }
[data-theme="dark"] .hero-aside, [data-theme="dark"] .side-note { background: #172d24; border-color: #464646; box-shadow: 13px 14px 0 #0a0a0a; }
[data-theme="dark"] .category-tile:hover, [data-theme="dark"] .category-tile.selected { background: #172d24; }
[data-theme="dark"] .form-card input, [data-theme="dark"] .form-card textarea, [data-theme="dark"] .form-card select, [data-theme="dark"] .admin-login input { background: #11251d; }
[data-theme="dark"] .directory-main { background: #11251d; }
[data-theme="dark"] .directory-topbar, [data-theme="dark"] .directory-sidebar, [data-theme="dark"] .directory-card, [data-theme="dark"] .directory-search { background: #172d24; border-color: #404040; }
[data-theme="dark"] .directory-topbar .main-nav a, [data-theme="dark"] .directory-side-item, [data-theme="dark"] .directory-section-heading h2, [data-theme="dark"] .directory-card-title h3 { color: #eaeaea; }
[data-theme="dark"] .directory-side-item:hover, [data-theme="dark"] .directory-side-item.active { background: #172d24; color: #c1c1c1; }
[data-theme="dark"] .directory-live-stats { background: #172d24; border-color: #404040; }
[data-theme="dark"] .directory-card-open p, [data-theme="dark"] .directory-section-heading p, [data-theme="dark"] .directory-search-hint { color: #a3a3a3; }
[data-theme="dark"] .directory-rail-brand { border-color: #404040; }
[data-theme="dark"] .directory-search-button { background: #8d8d8d; color: #111111; }
[data-theme="dark"] .directory-header-search { background: #172d24; border-color: #646464; }
[data-theme="dark"] .directory-header-search button { background: #8d8d8d; color: #111111; }
[data-theme="dark"] .directory-home-shell { background: #172d24; }
[data-theme="dark"] .directory-home-shell .directory-topbar::before { background: #172d24; border-bottom-color: #515151; }
[data-theme="dark"] .directory-home-shell .directory-topbar .main-nav .directory-nav-tab { color: #bcbcbc; }
[data-theme="dark"] .directory-home-shell .directory-topbar .main-nav .directory-nav-tab:hover,
[data-theme="dark"] .directory-home-shell .directory-topbar .main-nav .directory-nav-tab.active { color: #c4c4c4; }
[data-theme="dark"] .deal-library-heading h1,
[data-theme="dark"] .deal-showcase-top h2 { color: #ececec; }
[data-theme="dark"] .deal-library-heading p,
[data-theme="dark"] .deal-showcase-description { color: #b8b8b8; }
[data-theme="dark"] .deal-showcase-card { border-color: #505050; background: #172d24; }
[data-theme="dark"] .deal-showcase-icon { border-color: #515151; background: linear-gradient(145deg, #172d24, #172d24); }
[data-theme="dark"] .deal-showcase-icon > span { color: #f5f5f5; background: #172d24; }
[data-theme="dark"] .deal-showcase-foot { border-top-color: #505050; }
[data-theme="dark"] .page-loading-panel { border-color: #5c5c5c; background: rgba(23, 45, 36, .92); }
[data-theme="dark"] .page-loading-label { color: #e3e3e3; }
[data-theme="dark"] .page-loading-track { background: #20382e; }
[data-theme="dark"] .price-workspace { border-color: #484848; background: #172d24; color: #efefef; }
[data-theme="dark"] .price-spec-column, [data-theme="dark"] .price-quotes, [data-theme="dark"] .price-offer-table-head, [data-theme="dark"] .price-offer-row { border-color: #424242; }
[data-theme="dark"] .price-category-option:hover, [data-theme="dark"] .price-spec-option:hover { background: #172d24; }
[data-theme="dark"] .price-offer-product p, [data-theme="dark"] .price-offer-stock, [data-theme="dark"] .price-offer-update { color: #c3c3c3; }
[data-theme="dark"] .price-offer-table-head { background: #172d24; color: #dfdfdf; }
[data-theme="dark"] .price-offer-stock { background: #172d24; }
[data-theme="dark"] .price-offer-price strong { color: #c6c6c6; }
[data-theme="dark"] .price-spec-facts, [data-theme="dark"] .price-offer-source,
[data-theme="dark"] .price-count, [data-theme="dark"] .price-snapshot-note { color: #bbbbbb; }
@media (max-width: 650px) {
  [data-theme="dark"] .mobile-flow-back { background: #172d24; color: #c4c4c4; }
  [data-theme="dark"] .mobile-flow-icon { color: #c4c4c4; }
}
[data-theme="dark"] .directory-home-shell .directory-main-deals { background: #172d24; }
[data-theme="dark"] .directory-home-shell .directory-topbar { background: #172d24; }
[data-theme="dark"] .directory-home-shell .directory-topbar::before { background: #172d24; }
[data-theme="dark"] .directory-tools-search { background: #11251d; }
[data-theme="dark"] .price-quotes-top { background: rgba(23, 45, 36, .44); }
[data-theme="dark"] .price-quotes-top .price-quotes-heading { background: #20382e; }
[data-theme="dark"] .price-quotes-top .price-offer-table-head { background: rgba(23, 45, 36, .6); }
[data-theme="dark"] .price-quotes-footer { border-top-color: rgba(100, 100, 100, .22); background: rgba(23, 45, 36, .38); }
@media (min-width: 651px) {
  [data-theme="dark"] .directory-workspace-deals .price-column-heading { background: #172d24; }
  [data-theme="dark"] .directory-workspace-deals .price-category-column.is-scrolled .price-column-heading,
  [data-theme="dark"] .directory-workspace-deals .price-spec-column.is-scrolled .price-column-heading { background: rgba(23, 45, 36, .5); }
}
[data-theme="dark"] .directory-home-shell .directory-side-item > svg:first-child { color: #bababa; }
[data-theme="dark"] .directory-category-section.is-located,
[data-theme="dark"] .directory-located-section.is-located { border-color: rgba(100, 100, 100,.68); background: rgba(23, 45, 36,.42); }
[data-theme="dark"] .directory-home-shell .directory-content.is-scrolled .directory-tools-search .directory-header-search { background: rgba(23, 45, 36, .52); border-color: rgba(100, 100, 100, .72); }
[data-theme="dark"] .submission-page .form-card label,
[data-theme="dark"] .submission-page .page-intro p,
[data-theme="dark"] .submission-page .side-note ul,
[data-theme="dark"] .admin-login > p,
[data-theme="dark"] .admin-page .review-main p,
[data-theme="dark"] .admin-page .review-meta,
[data-theme="dark"] .admin-page .review-note-label { color: #c0c0c0; }
[data-theme="dark"] .admin-page .admin-filter button.selected { background: #20382e; color: #e9e9e9; }
@media (min-width: 901px) {
  [data-theme="dark"] .directory-home-shell.directory-tools-shell .directory-topbar { background: rgba(23, 45, 36, .78); }
  [data-theme="dark"] .directory-home-shell.directory-tools-shell .directory-topbar::before { background: rgba(23, 45, 36, .76); }
}
[data-theme="dark"] .directory-home-shell .directory-side-item,
[data-theme="dark"] .directory-home-shell .directory-section-heading h2,
[data-theme="dark"] .directory-home-shell .directory-card-title h3 { color: #eaeaea; }
[data-theme="dark"] .directory-home-shell .directory-side-item b,
[data-theme="dark"] .directory-home-shell .directory-sidebar-label,
[data-theme="dark"] .directory-home-shell .directory-sidebar-note,
[data-theme="dark"] .directory-home-shell .directory-section-heading p,
[data-theme="dark"] .directory-home-shell .directory-card-title span,
[data-theme="dark"] .directory-home-shell .directory-card-open p,
[data-theme="dark"] .directory-home-shell .directory-card-footer { color: #c5c5c5; }
[data-theme="dark"] .directory-tools-shell .directory-card-action { color: #c1c1c1; }
[data-theme="dark"] .account-email-code button { background: #172d24; color: #cecece; border-color: #646464; }
[data-theme="dark"] .legal-sections p, [data-theme="dark"] .account-auth .account-legal-consent { color: #c0c0c0; }
[data-theme="dark"] .account-avatar { background: #172d24; color: #c7c7c7; }
[data-theme="dark"] .account-submissions p, [data-theme="dark"] .account-auth-switch { color: #c0c0c0; }
[data-theme="dark"] .account-nav button, [data-theme="dark"] .account-sidebar-logout { color: #c7c7c7; }
[data-theme="dark"] .account-nav button:hover, [data-theme="dark"] .account-nav button.active { background: #172d24; color: #c1c1c1; }
[data-theme="dark"] .account-shortcuts button:hover { background: #172d24; }
[data-theme="dark"] .price-sort-button:hover { color: #c6c6c6; }
[data-theme="dark"] .directory-home-shell.directory-inner-shell { --paper: #11251d; --card: #172d24; }
[data-theme="dark"] .submission-icon-button, [data-theme="dark"] .submission-icon-remove { color: #d1d1d1; border-color: #4d4d4d; }
[data-theme="dark"] .submission-preview .directory-card-title h3 { color: #eaeaea; }
[data-theme="dark"] .submission-preview .directory-card-title span,
[data-theme="dark"] .submission-preview .directory-card-open p,
[data-theme="dark"] .submission-preview .directory-card-footer { color: #c5c5c5; }
@media (min-width: 901px) {
  [data-theme="dark"] .directory-inner-shell .directory-topbar { background: rgba(23, 45, 36, .78); }
  [data-theme="dark"] .directory-inner-shell .directory-topbar::before { background: rgba(23, 45, 36, .76); }
}
[data-theme="dark"] .account-panel-link { color: #c1c1c1; }

/* matching.css */
[data-theme="dark"] .match-contact-buttons button { border-color: #646464; color: #d1d1d1; background: #172d24; }
[data-theme="dark"] .match-contact-buttons .match-contact-add { border-color: #646464; }
[data-theme="dark"] .directory-home-shell .directory-main-matching { background: #11251d; }
[data-theme="dark"] .match-board { --match-line: #4f4f4f; color: #dedede; }
[data-theme="dark"] .match-rail, [data-theme="dark"] .match-main, [data-theme="dark"] .match-columns, [data-theme="dark"] .match-item, [data-theme="dark"] .match-dialog, [data-theme="dark"] .match-dialog header { background: #172d24; }
[data-theme="dark"] .match-list-heading, [data-theme="dark"] .match-pagination, [data-theme="dark"] .match-toolbar { background: rgba(23, 45, 36,.52); }
[data-theme="dark"] .match-pagination button, [data-theme="dark"] .match-mobile-filters select, [data-theme="dark"] .match-mobile-filters button { color: #d0d0d0; border-color: #4f4f4f; background: #172d24; }
[data-theme="dark"] .match-resizer span { border-color: #282828; }
[data-theme="dark"] .match-item:hover, [data-theme="dark"] .match-item.selected, [data-theme="dark"] .match-rail-section button:hover, [data-theme="dark"] .match-rail-section button.active { background: #172d24; }
[data-theme="dark"] .match-rail-section button, [data-theme="dark"] .match-mine-link { color: #d0d0d0; }
[data-theme="dark"] .match-rail-section button.active { color: #eeeeee; }
[data-theme="dark"] .match-rail-section > span { color: #aaaaaa; }
[data-theme="dark"] .match-toolbar h1, [data-theme="dark"] .match-item-top strong, [data-theme="dark"] .match-detail h2, [data-theme="dark"] .match-dialog h2 { color: #eeeeee; }
[data-theme="dark"] .match-search, [data-theme="dark"] .match-search input, [data-theme="dark"] .match-contact, [data-theme="dark"] .match-dialog input, [data-theme="dark"] .match-dialog textarea, [data-theme="dark"] .match-dialog select { background: #172d24; color: #ebebeb; }
[data-theme="dark"] .match-detail-body p, [data-theme="dark"] .match-item p { color: #bdbdbd; }
[data-theme="dark"] .match-item-category { color: #c9c9c9; }
[data-theme="dark"] .match-item-tags span { color: #d5d5d5; background: #172d24; }
[data-theme="dark"] .match-contact small { color: #bababa; }
[data-theme="dark"] .match-feedback-dialog, [data-theme="dark"] .match-feedback-dialog header { border-color: #4f4f4f; }
[data-theme="dark"] .match-feedback-dialog label, [data-theme="dark"] .match-feedback-target { color: #c9c9c9; }
@media (max-width: 650px) {
  [data-theme="dark"] .match-controls-toggle { color: #cecece; }
}
[data-theme="dark"] .matching-category-layer { --card: #172d24; --match-line: #4f4f4f; color: #dedede; }
[data-theme="dark"] .matching-category-layer .mobile-icon-button:hover { background: #172d24; }
@media (min-width: 701px) and (max-width: 1250px), (min-width: 1251px) and (max-aspect-ratio: 5/4) {
  [data-theme="dark"] .match-category-button { background: #172d24; color: #d0d0d0; }
}

/* risk.css */
[data-theme="dark"] .directory-home-shell .directory-main-risk { background: #11251d; }
[data-theme="dark"] .risk-board { --risk-line: #4f4f4f; color: #dedede; }
[data-theme="dark"] .risk-rail, [data-theme="dark"] .risk-columns, [data-theme="dark"] .risk-item, [data-theme="dark"] .risk-list-heading, [data-theme="dark"] .risk-detail, [data-theme="dark"] .risk-dialog, [data-theme="dark"] .risk-dialog header { color: #dedede; background: #172d24; }
[data-theme="dark"] .risk-search, [data-theme="dark"] .risk-dialog input, [data-theme="dark"] .risk-dialog select, [data-theme="dark"] .risk-dialog textarea { color: #eaeaea; background: #172d24; }
[data-theme="dark"] .risk-rail-item { color: #cccccc; }
[data-theme="dark"] .risk-rail-item.active, [data-theme="dark"] .risk-item:hover, [data-theme="dark"] .risk-item.selected { color: #cacaca; background: #172d24; }
[data-theme="dark"] .risk-item > strong, [data-theme="dark"] .risk-detail h1, [data-theme="dark"] .risk-dialog h2, [data-theme="dark"] .risk-search input, [data-theme="dark"] .risk-detail-body p { color: #eaeaea; }
[data-theme="dark"] .risk-dialog .risk-upload, [data-theme="dark"] .risk-upload-item { background: #172d24; }

/* mobile.css */
@media (max-width: 650px) {
  [data-theme="dark"] .mobile-drawer-layer { --card: #172d24; }
  [data-theme="dark"] .directory-home-shell .directory-topbar { background: rgba(23, 45, 36, .58); border-bottom-color: rgba(100, 100, 100, .16); }
  [data-theme="dark"] .directory-home-shell .directory-tools-search { background: #172d24; }
  [data-theme="dark"] .mobile-navigation { background: rgba(23, 45, 36, .62); border-color: rgba(100, 100, 100, .2); }
  [data-theme="dark"] .mobile-navigation-grid a { color: #cecece; }
  [data-theme="dark"] .mobile-navigation-primary a[data-highlighted="true"] { color: #d4d4d4; }
  [data-theme="dark"] .mobile-navigation-indicator::before { background: linear-gradient(155deg, rgba(127, 127, 127, .62), rgba(38, 38, 38, .55)); border-color: rgba(100, 100, 100, .2); }
  [data-theme="dark"] .mobile-navigation-primary[data-gesture="dragging"] .mobile-navigation-indicator::before { background: linear-gradient(155deg, rgba(150, 150, 150, .75), rgba(105, 105, 105, .7)); }
  [data-theme="dark"] .mobile-navigation-toggle, [data-theme="dark"] .mobile-navigation-restore { color: #c4c4c4; }
  [data-theme="dark"] .mobile-navigation-extra { border-top-color: rgba(100, 100, 100, .2); }
  [data-theme="dark"] .mobile-drawer .directory-side-item.active,
  [data-theme="dark"] .mobile-drawer .price-category-option[aria-pressed="true"],
  [data-theme="dark"] .mobile-drawer .price-spec-option[aria-pressed="true"] { background: #172d24; color: #c4c4c4; }
  [data-theme="dark"] .directory-tools-shell .directory-section.is-located .directory-section-heading h2 { color: #c4c4c4; }
}

/* auth-page.css */
[data-theme="dark"] .directory-home-shell.directory-inner-shell.auth-layout-shell { --paper: #172d24; --card: #172d24; --auth-surface: #172d24; }
[data-theme="dark"] .account-auth.auth-split { --auth-text: #e9e9e9; --auth-muted: #acacac; --auth-border: #434343; }
[data-theme="dark"] .auth-split .account-legal-consent a,
[data-theme="dark"] .auth-split .account-auth-switch a { color: #bebebe; }

/* account-navigation.css */
[data-theme="dark"] .directory-sidebar-heading .directory-submit-link { color: #dcdcdc; background: #172d24; border-color: #646464; }
[data-theme="dark"] .directory-sidebar-heading .directory-submit-link:hover { background: #20382e; }

/* directory-search.css */
[data-theme="dark"] .directory-search-form { border-color: #525252; background: #172d24; color: #ececec; }
[data-theme="dark"] .directory-search-form .directory-search-submit { background: #172d24; color: #d3d3d3; }
[data-theme="dark"] .directory-search-categories button { border-color: #525252; color: #b8b8b8; }
[data-theme="dark"] .directory-search-categories button[aria-pressed="true"] { border-color: #646464; background: #172d24; color: #dedede; }

/* about-page.css */
[data-theme="dark"] .about-page a { color: #c3c3c3; }
[data-theme="dark"] .about-intro,
[data-theme="dark"] .about-sections p,
[data-theme="dark"] .about-use-note p { color: #c0c0c0; }

/* contact-assistance.css */
[data-theme="dark"] .contact-history-item { background: #172d24; }
[data-theme="dark"] .contact-page { --contact-ink: #dddddd; --contact-muted: #a1a1a1; --contact-line: #444444; --contact-accent: #707070; --contact-soft: #383838; }
[data-theme="dark"] .contact-resource-card, [data-theme="dark"] .contact-ticket-card, [data-theme="dark"] .contact-qr-card, [data-theme="dark"] .contact-page-state { background: #172d24; }
[data-theme="dark"] .contact-code-box, [data-theme="dark"] .contact-no-qr { background: #172d24; border-color: #545454; }
[data-theme="dark"] .contact-code-box input { color: #bfbfbf; }
[data-theme="dark"] .contact-button-secondary { color: #c0c0c0; background: #172d24; border-color: #616161; }
[data-theme="dark"] .contact-button-secondary:hover { background: #20382e; }
[data-theme="dark"] .contact-step-number { color: #c0c0c0; background: #172d24; }
[data-theme="dark"] .contact-no-qr strong { color: #b7b7b7; }

/* phone-verification.css */
[data-theme="dark"] .phone-verification { --phone-text: #e9e9e9; --phone-muted: #acacac; --phone-border: #434343; --phone-surface: #172d24; }
[data-theme="dark"] .phone-verification .phone-verification-text-button, [data-theme="dark"] .phone-verification .phone-verification-skip { color: #bebebe; }
[data-theme="dark"] .phone-verification .phone-verification-send { color: #cdcdcd; background: #172d24; border-color: #565656; }
[data-theme="dark"] .phone-verification .phone-verification-send:hover:not(:disabled) { background: #20382e; border-color: #646464; }

/* human-verification.css */
[data-theme="dark"] .human-verification-status { color: #c0c0c0; }

/* matching-search.css */
[data-theme="dark"] .match-search-highlight { background: #20382e; color: #f5f5f5; }
[data-theme="dark"] .match-search-sort { border-color: #606060; color: #dadada; background: #172d24; }
[data-theme="dark"] .match-search .match-search-clear { color: #bfbfbf; }
[data-theme="dark"] .match-search .match-search-clear:hover { background: #20382e; }
[data-theme="dark"] .match-search-correction { border-color: #484848; color: #c2c2c2; }
[data-theme="dark"] .match-search-correction strong { color: #e1e1e1; }
[data-theme="dark"] .match-empty .match-search-reset { border-color: #606060; background: #172d24; color: #dadada; }

/* page-transition.css */
[data-theme="dark"] .site-page-transition { background: #11251d; }
[data-theme="dark"] .site-page-transition-track { background: rgba(172, 172, 172, .18); }
[data-theme="dark"] .site-page-transition-track span { background: #acacac; }

/* notifications.css */
[data-theme="dark"] .aibuy-notifications [data-sonner-toast].aibuy-toast { background: #172d24; color: #eaeaea; border-color: #4d4d4d; border-left-color: #646464; }
[data-theme="dark"] .aibuy-notifications [data-close-button]:hover { background: #172d24; }

/* Shared tokens and page canvases use blackboard green; panels retain a small contrast. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f5;
  --muted: #a6a6a6;
  --line: #303030;
  --paper: #0d2018;
  --card: #152a21;
  --teal: #bfbfbf;
  background: #0d2018;
}
[data-theme="dark"] body,
[data-theme="dark"] .directory-home-shell,
[data-theme="dark"] .directory-home-shell .directory-main,
[data-theme="dark"] .directory-home-shell .directory-main-deals,
[data-theme="dark"] .directory-home-shell .directory-main-matching,
[data-theme="dark"] .directory-home-shell .directory-main-risk,
[data-theme="dark"] .site-page-transition { background: #0d2018; }
[data-theme="dark"] .directory-home-shell.directory-inner-shell { --paper: #0d2018; --card: #152a21; }
[data-theme="dark"] .directory-home-shell.directory-inner-shell.auth-layout-shell { --paper: #0d2018; --card: #0d2018; --auth-surface: #0d2018; }
[data-theme="dark"] .account-auth.auth-split { --auth-text: #f5f5f5; --auth-muted: #a6a6a6; --auth-border: #333; }
[data-theme="dark"] .auth-split .auth-promo.auth-connection { background: #11251d; color: #f0f0f0; }
[data-theme="dark"] .auth-split .auth-form-panel { background: #0d2018; }
[data-theme="dark"] .phone-verification { --phone-text: #f5f5f5; --phone-muted: #a6a6a6; --phone-border: #333; --phone-surface: #0d2018; }
[data-theme="dark"] .contact-page { --contact-ink: #ededed; --contact-muted: #a6a6a6; --contact-line: #333; --contact-soft: #172d24; }
[data-theme="dark"] .matching-category-layer,
[data-theme="dark"] .mobile-drawer-layer { --card: #152a21; }
[data-theme="dark"] .directory-home-shell .directory-topbar .main-nav .directory-nav-tab:hover,
[data-theme="dark"] .directory-home-shell .directory-topbar .main-nav .directory-nav-tab.active,
[data-theme="dark"] .directory-side-item.active { color: #f5f5f5; }
[data-theme="dark"] .directory-home-shell .directory-topbar { background: #0d2018; }
[data-theme="dark"] .directory-home-shell .directory-topbar::before { background: #152a21; border-bottom-color: #333; }
[data-theme="dark"] .hero { background: #0d2018; }
[data-theme="dark"] .deal-showcase-card,
[data-theme="dark"] .deal-showcase-icon { background: #152a21; border-color: #333; }
[data-theme="dark"] .deal-showcase-body h2 { color: #f5f5f5; }
[data-theme="dark"] .deal-showcase-description { color: #b8b8b8; }
[data-theme="dark"] .deal-showcase-icon > span { background: #1c3329; color: #f5f5f5; }
[data-theme="dark"] .directory-topbar .header-submit:hover { color: #f5f5f5; background: #1c3329; }
[data-theme="dark"] .directory-topbar .header-user,
[data-theme="dark"] .directory-topbar .header-login { color: #f5f5f5; }

/* Base component rules also carry teal interaction colours outside dark blocks. */
[data-theme="dark"] .directory-home-shell .directory-topbar .main-nav .directory-nav-tab.active::after,
[data-theme="dark"] .directory-topbar .main-nav a.active::after,
[data-theme="dark"] .page-loading-track span { background: #d4d4d4; }
[data-theme="dark"] .directory-side-item.active,
[data-theme="dark"] .account-nav button.active,
[data-theme="dark"] .match-rail-section button.active,
[data-theme="dark"] .match-item.selected,
[data-theme="dark"] .risk-rail-item.active,
[data-theme="dark"] .risk-item.selected { box-shadow: inset 3px 0 0 #d4d4d4; }
[data-theme="dark"] .directory-home-shell .directory-side-item.active > svg:first-child,
[data-theme="dark"] .directory-sidebar-heading,
[data-theme="dark"] .match-rail-title,
[data-theme="dark"] .risk-rail-title { color: #d4d4d4; }
[data-theme="dark"] .header-select:hover,
[data-theme="dark"] .header-tool:hover,
[data-theme="dark"] .header-save:hover,
[data-theme="dark"] .group-link:hover,
[data-theme="dark"] .directory-topbar .account-link:hover { border-color: #737373; color: #f5f5f5; }
[data-theme="dark"] .directory-side-item b,
[data-theme="dark"] .deal-tag-row span,
[data-theme="dark"] .match-detail-tags > span:not(.match-side) { background: #1c3329; border-color: #333; color: #bfbfbf; }
[data-theme="dark"] .directory-card:hover,
[data-theme="dark"] .account-shortcuts button:hover,
[data-theme="dark"] .directory-sidebar-heading .directory-submit-link:hover { border-color: #737373; }
[data-theme="dark"] .directory-card-divider { background: #294136; }
[data-theme="dark"] .directory-sorter button.active,
[data-theme="dark"] .directory-tabs button.active { color: #f5f5f5; border-color: #a3a3a3; }
[data-theme="dark"] .directory-search-button:hover,
[data-theme="dark"] .directory-header-search button:hover { color: #111; background: #bfbfbf; }
[data-theme="dark"] .directory-search-compact .directory-header-search { background: #737373; }
[data-theme="dark"] .directory-search-compact .directory-header-search:hover,
[data-theme="dark"] .directory-search-compact .directory-header-search:focus-within { background: #152a21; box-shadow: 0 2px 7px rgb(0 0 0 / 20%); }
[data-theme="dark"] .directory-search-form:focus-within,
[data-theme="dark"] .match-search:focus-within { border-color: #a3a3a3; box-shadow: 0 0 0 3px rgb(255 255 255 / 8%); }
[data-theme="dark"] .directory-search-form > svg,
[data-theme="dark"] .directory-search-form .directory-search-clear,
[data-theme="dark"] .directory-header-search > svg,
[data-theme="dark"] .directory-header-search input::placeholder,
[data-theme="dark"] .directory-header-search kbd,
[data-theme="dark"] .directory-search-summary h2 span,
[data-theme="dark"] .directory-search-empty,
[data-theme="dark"] .price-search-toolbar > span { color: #a6a6a6; }
[data-theme="dark"] .directory-search-empty button,
[data-theme="dark"] .price-search-reset { color: #d4d4d4; border-color: #525252; }
[data-theme="dark"] .directory-sidebar-heading .directory-submit-link:focus-visible,
[data-theme="dark"] .account-email-menu :focus-visible,
[data-theme="dark"] .site-footer a:focus-visible,
[data-theme="dark"] .about-page a:focus-visible,
[data-theme="dark"] .mobile-navigation a:focus-visible,
[data-theme="dark"] .mobile-navigation button:focus-visible,
[data-theme="dark"] .match-rail-section button:focus-visible,
[data-theme="dark"] .match-mine-link:focus-visible,
[data-theme="dark"] .match-item:focus-visible,
[data-theme="dark"] .match-contact-buttons button:focus-visible,
[data-theme="dark"] .match-controls-toggle:focus-visible,
[data-theme="dark"] .match-category-button:focus-visible,
[data-theme="dark"] .match-search button:focus-visible,
[data-theme="dark"] .match-search-sort:focus-visible,
[data-theme="dark"] .contact-page button:focus-visible,
[data-theme="dark"] .contact-page input:focus-visible,
[data-theme="dark"] .human-verification-error button:focus-visible { outline-color: #d4d4d4; }
[data-theme="dark"] .form-card input:focus,
[data-theme="dark"] .form-card textarea:focus,
[data-theme="dark"] .form-card select:focus,
[data-theme="dark"] .admin-login input:focus,
[data-theme="dark"] .account-profile input:focus,
[data-theme="dark"] .account-profile textarea:focus,
[data-theme="dark"] .account-password input:focus,
[data-theme="dark"] .risk-dialog input:focus,
[data-theme="dark"] .risk-dialog select:focus,
[data-theme="dark"] .risk-dialog textarea:focus { border-color: #a3a3a3; box-shadow: 0 0 0 3px rgb(255 255 255 / 8%); }
[data-theme="dark"] .account-auth:not(.auth-split) input:focus { border-color: #a3a3a3; }
[data-theme="dark"] .account-auth:not(.auth-split) .account-legal-consent input { accent-color: #bfbfbf; }
[data-theme="dark"] .account-email-code button:hover:not(:disabled),
[data-theme="dark"] .account-sidebar-logout:hover,
[data-theme="dark"] .submission-icon-button:hover,
[data-theme="dark"] .submission-icon-remove:hover,
[data-theme="dark"] .match-mine-link:hover,
[data-theme="dark"] .match-category-button:hover,
[data-theme="dark"] .risk-rail-item:hover { background: #20382e; color: #f5f5f5; }
[data-theme="dark"] .account-shortcuts button,
[data-theme="dark"] .account-security-actions > div,
[data-theme="dark"] .account-security-actions button,
[data-theme="dark"] .account-avatar-controls button,
[data-theme="dark"] .account-section-title a,
[data-theme="dark"] .account-empty a,
[data-theme="dark"] .account-submissions a,
[data-theme="dark"] .account-required a,
[data-theme="dark"] .account-legal-consent a,
[data-theme="dark"] .legal-page a { color: #d4d4d4; }
[data-theme="dark"] .account-kicker,
[data-theme="dark"] .account-sidebar-label,
[data-theme="dark"] .account-sidebar-user small,
[data-theme="dark"] .account-nav button small,
[data-theme="dark"] .account-welcome p,
[data-theme="dark"] .account-stats span,
[data-theme="dark"] .account-shortcuts button small,
[data-theme="dark"] .account-page-identity,
[data-theme="dark"] .account-empty,
[data-theme="dark"] .account-info-list span,
[data-theme="dark"] .account-password form p,
[data-theme="dark"] .account-security-actions small { color: #a6a6a6; }
[data-theme="dark"] .price-category-option[aria-pressed="true"],
[data-theme="dark"] .price-spec-option[aria-pressed="true"],
[data-theme="dark"] .price-quotes-heading { background: #294136; color: #f5f5f5; }
[data-theme="dark"] .price-category-option[aria-pressed="true"] .price-count,
[data-theme="dark"] .price-spec-option[aria-pressed="true"] .price-spec-facts,
[data-theme="dark"] .price-quotes-kicker,
[data-theme="dark"] .price-low-toggle,
[data-theme="dark"] .price-quote-count small { color: #d4d4d4; }
[data-theme="dark"] .price-low-track { border-color: #737373; }
[data-theme="dark"] .price-low-toggle input:checked + .price-low-track { background: #d4d4d4; }
[data-theme="dark"] .price-low-toggle input:checked + .price-low-track::after { background: #20382e; }
[data-theme="dark"] .deal-open-link,
[data-theme="dark"] .price-offer-action a,
[data-theme="dark"] .mobile-resource-open,
[data-theme="dark"] .match-publish,
[data-theme="dark"] .match-search button:not(.match-search-clear),
[data-theme="dark"] .risk-search button,
[data-theme="dark"] .risk-publish { color: #111; background: #dedede; }
[data-theme="dark"] .price-offer-action a:hover,
[data-theme="dark"] .match-publish:hover,
[data-theme="dark"] .risk-search button:hover,
[data-theme="dark"] .risk-publish:hover { background: #fff; }
[data-theme="dark"] .match-contact-buttons .match-contact-add,
[data-theme="dark"] .match-contact-buttons .match-contact-add:hover { border-color: #737373; background: #294136; color: #f5f5f5; }
[data-theme="dark"] .match-search,
[data-theme="dark"] .risk-search,
[data-theme="dark"] .match-dialog input,
[data-theme="dark"] .match-dialog textarea,
[data-theme="dark"] .match-dialog select,
[data-theme="dark"] .risk-dialog input,
[data-theme="dark"] .risk-dialog textarea,
[data-theme="dark"] .risk-dialog select,
[data-theme="dark"] .risk-mobile-filter select { border-color: #525252; outline-color: #d4d4d4; }
[data-theme="dark"] .match-list-heading,
[data-theme="dark"] .match-pagination { border-color: #303030; }
[data-theme="dark"] .match-contact { border-color: #404040; }
[data-theme="dark"] .match-contact strong,
[data-theme="dark"] .match-detail-actions button,
[data-theme="dark"] .match-empty button,
[data-theme="dark"] .risk-empty button,
[data-theme="dark"] .match-detail-back,
[data-theme="dark"] .risk-detail-back { color: #d4d4d4; }
[data-theme="dark"] .match-detail-actions button:not(.match-fulfill) { background: #172d24; border-color: #525252; }
[data-theme="dark"] .match-contact span,
[data-theme="dark"] .match-dialog label,
[data-theme="dark"] .match-dialog header small,
[data-theme="dark"] .risk-dialog label,
[data-theme="dark"] .risk-dialog header small { color: #a6a6a6; }
[data-theme="dark"] .match-form-actions > button:first-child,
[data-theme="dark"] .risk-form-actions > button:first-child,
[data-theme="dark"] .risk-mobile-filter select { border-color: #525252; background: #172d24; color: #d4d4d4; }
[data-theme="dark"] .match-resizer span { background: #525252; }
[data-theme="dark"] .match-resizer:hover::before,
[data-theme="dark"] .match-resizer:focus-visible::before,
[data-theme="dark"] .is-resizing .match-resizer::before,
[data-theme="dark"] .match-resizer:hover span,
[data-theme="dark"] .match-resizer:focus-visible span,
[data-theme="dark"] .is-resizing .match-resizer span { background: #d4d4d4; }
[data-theme="dark"] .match-resizer:focus-visible { box-shadow: inset 0 0 0 2px #d4d4d4; }
[data-theme="dark"] .match-overlay,
[data-theme="dark"] .risk-overlay { background: rgb(0 0 0 / 60%); }
[data-theme="dark"] .match-feedback-dialog::backdrop { background: rgb(0 0 0 / 55%); }
[data-theme="dark"] .mobile-drawer-backdrop,
[data-theme="dark"] .matching-category-layer .mobile-drawer-backdrop { background: rgb(0 0 0 / 45%); }
[data-theme="dark"] .contact-button-primary { background: #dedede; color: #111; }
[data-theme="dark"] .contact-button-primary:hover { background: #fff; }
[data-theme="dark"] .contact-button-secondary:hover { border-color: #737373; }
[data-theme="dark"] .contact-person-avatar { color: #bfbfbf; }
[data-theme="dark"] .contact-page-scroll { scrollbar-color: #737373 transparent; }
[data-theme="dark"] .human-verification-error button { color: #d4d4d4; border-color: #737373; }

/* Preserve status colours independently of the neutral navigation accent. */
[data-theme="dark"] .account-appeal-received { color: #70b8aa; }
[data-theme="dark"] .match-detail-actions .match-fulfill { color: #24795e; }
[data-theme="dark"] .aibuy-notifications [data-icon] { color: #bfbfbf; }
[data-theme="dark"] .aibuy-notifications [data-type="success"] [data-icon] { color: #23816e; }
[data-theme="dark"] .aibuy-notifications [data-type="error"] [data-icon] { color: #c65151; }
[data-theme="dark"] [data-sonner-toaster].aibuy-notifications [data-type="error"].aibuy-toast { border-left-color: #c65151; }
[data-theme="dark"] [data-sonner-toaster].aibuy-notifications [data-sonner-toast] [data-close-button]:hover { background: #20382e; }

@media (max-width: 650px) {
  [data-theme="dark"] .mobile-price-picker button svg,
  [data-theme="dark"] .mobile-drawer .directory-side-item svg { color: #bfbfbf; }
  [data-theme="dark"] .mobile-navigation-backdrop { background: rgb(0 0 0 / 8%); }
  [data-theme="dark"] .mobile-navigation-primary[data-gesture="pressed"] .mobile-navigation-indicator::before { box-shadow: inset 0 2px 5px rgb(0 0 0 / 24%), 0 1px 1px rgb(255 255 255 / 16%); }
  [data-theme="dark"] .mobile-navigation:not(.is-minimized) .mobile-navigation-toggle:hover { background: rgb(255 255 255 / 8%); }
}


/* Shared payment-style button spinner. */
.button-spinner {
  display: inline-block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 2px solid #ffffff55;
  border-color: color-mix(in srgb, currentColor 33.333%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-spinner-rotate .75s linear infinite;
}
.account-email-code button,
.phone-verification .phone-verification-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@keyframes button-spinner-rotate { to { transform: rotate(360deg); } }
