/* V16 shared theme for the independent error-code/search module. Loaded LAST to override the legacy hard-coded light panels. */
html[data-theme=dark]{color-scheme:dark;--diag-bg:#0d1626;--diag-panel:#17283f;--diag-panel-hover:#223c59;--diag-text:#f3f8ff;--diag-muted:#c1d1e6;--diag-line:#36516e;--diag-input:#142740;--diag-blue:#8fbeff}
html[data-theme=dark] body.htng-diagnostics-public{--bg:var(--diag-bg);--ink:var(--diag-text);--blue:var(--diag-blue);--line:var(--diag-line);--panel:var(--diag-panel);background:var(--diag-bg)!important;color:var(--diag-text)!important}
html[data-theme=dark] body.htng-diagnostics-public :is(.search-panel,.searchbox,.result-list,.record,.detail,.search-heading,.disclaimer,.intent-banner,.empty,.related-btn,.detail-source,.detail-note,.detail-pre,.check-item,.progress-note){background:var(--diag-panel)!important;color:var(--diag-text)!important;border-color:var(--diag-line)!important}
html[data-theme=dark] body.htng-diagnostics-public :is(.detail-head,.detail-body,.list-top,.middle,.tabs,.sort,.examples){color:var(--diag-text)!important;border-color:var(--diag-line)!important}
html[data-theme=dark] body.htng-diagnostics-public :is(.record:hover,.record.selected,.related-btn:hover,.quick:hover,.tab:hover){background:var(--diag-panel-hover)!important}
html[data-theme=dark] body.htng-diagnostics-public :is(.tab,.quick,.reset,.icon-btn,.secondary,.bookmark,.mobile-close,.related-btn){background:#223a58!important;color:#e1eeff!important;border-color:#425f80!important}
html[data-theme=dark] body.htng-diagnostics-public :is(.tab.active,.tab[aria-selected=true]){background:#294f80!important;color:#fff!important;border-color:#5f8fc8!important}
html[data-theme=dark] body.htng-diagnostics-public :is(.primary,.primary:hover){background:#2873d3!important;color:#fff!important}
html[data-theme=dark] body.htng-diagnostics-public :is(input,select,textarea,.searchbox input,.filter-grid select,.sort select){background:var(--diag-input)!important;color:var(--diag-text)!important;border-color:var(--diag-line)!important}
html[data-theme=dark] body.htng-diagnostics-public :is(input,textarea)::placeholder{color:#b5c6dc!important;opacity:1}
html[data-theme=dark] body.htng-diagnostics-public :is(.intro,.r-desc,.r-meta,.detail-desc,.detail-source,.progress-note,.examples-title,.search-heading small,.section-label,.footer,.disclaimer,.detail-pre,.detail-overline,.list-top span,.sort label){color:var(--diag-muted)!important}
html[data-theme=dark] body.htng-diagnostics-public :is(.r-title,.detail-head h2,.detail h2,.record strong,.search-heading strong,.list-top strong){color:var(--diag-text)!important}
html[data-theme=dark] body.htng-diagnostics-public :is(.code-pill,.symptom-pill,.mini-badge,.offline,.n,.badge){background:#264668!important;color:#d8ecff!important;border-color:#5378a5!important}
html[data-theme=dark] body.htng-diagnostics-public :is(.record,.detail){box-shadow:0 18px 40px -31px #000b}
html[data-theme=dark] body.htng-diagnostics-public .header{background:#10223cde!important;border-color:#3b5574!important}
html[data-theme=dark] body.htng-diagnostics-public .brand-name{color:#f3f8ff!important}
html[data-theme=dark] body.htng-diagnostics-public .brand-sub{color:#bed0e6!important}
html[data-theme=dark] body.htng-diagnostics-public .header .btn.outline{background:#223b59!important;color:#f3f8ff!important;border-color:#45617f!important}
html[data-theme=dark] body.htng-diagnostics-public .header .btn.ink{background:#305a8c!important;color:white!important}
html[data-theme=dark] body.htng-diagnostics-public .header .iconbtn{background:#263f5d!important;color:#fff!important;border-color:#4b6788!important}
html[data-theme=dark] body.htng-diagnostics-public .nav a.active{background:#365477!important;color:#fff!important}
html[data-theme=dark] body.htng-diagnostics-public .drawer-nav a[aria-current=page]{background:#304d71!important;color:#fff!important}
html[data-theme=dark] body.htng-diagnostics-public #htng-site-drawer{background:#13243a!important;color:#f2f8ff!important}
html[data-theme=dark] body.htng-diagnostics-public .footer{color:#b5c6dc!important}
html[data-theme=dark] body.htng-diagnostics-public .toast{background:#244264!important;color:#fff!important}
/* Focus and autofill must not turn the dark search input into a light-colored stripe. */
html[data-theme=dark] body.htng-diagnostics-public .wrap .searchbox{background:#142740!important;border-color:#395573!important}
html[data-theme=dark] body.htng-diagnostics-public .wrap .searchbox #query{background:transparent!important;color:#f3f8ff!important;-webkit-text-fill-color:#f3f8ff!important;caret-color:#a6ceff!important;box-shadow:none!important}
html[data-theme=dark] body.htng-diagnostics-public #query::placeholder{color:#bfd0e6!important;opacity:1}
html[data-theme=dark] body.htng-diagnostics-public #query:-webkit-autofill{-webkit-box-shadow:0 0 0 200px #142740 inset!important;-webkit-text-fill-color:#f3f8ff!important}
html[data-theme=dark] body.htng-diagnostics-public .field label{color:#c7d8ed!important}
html[data-theme=dark] body.htng-diagnostics-public .detail-head{background:#1c3350!important}
html[data-theme=dark] body.htng-diagnostics-public .check-item.done{background:#1b493e!important;border-color:#2e806c!important}
html[data-theme=dark] body.htng-diagnostics-public .detail-note.warn{background:#463522!important;color:#ffe3a8!important}
html[data-theme=dark] body.htng-diagnostics-public .detail-note.warn *{color:inherit!important}

/* V19: the list is a layout grid, not a painted panel. Its solid background
   was leaking through the rounded corners and gutters of individual cards. */
html[data-theme="dark"] body.htng-diagnostics-public .wrap .result-list {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* The meta row belongs to the detail header and must inherit its background.
   A separate solid fill created a dark rectangle behind the manufacturer tag. */
html[data-theme="dark"] body.htng-diagnostics-public .wrap .detail-head .detail-pre {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
