/* Nezerite.PW v3.6.5 — theme detail pass.
   Must load after Spectrum v3.6.3 and consistency v3.6.4.
   Only decorative colors are customized; success / error status is semantic.
*/
html[data-nz-theme] body.inferno-core {
  --nz-detail-accent: color-mix(in srgb, var(--nz-accent) 75%, var(--nz-accent2));
  --nz-detail-border: color-mix(in srgb, var(--nz-accent) 35%, var(--nz-line));
  --nz-detail-surface: linear-gradient(125deg,
     color-mix(in srgb, var(--nz-accent) 9%, var(--nz-surface)),
     color-mix(in srgb, var(--nz-accent2) 7%, var(--nz-surface)));
}
/* All scrollable areas: no more fixed crimson browser scrollbar. */
html[data-nz-theme] {
  scrollbar-color: var(--nz-detail-accent) var(--nz-back) !important;
}
html[data-nz-theme] body.inferno-core,
html[data-nz-theme] body.inferno-core * {
  scrollbar-color: var(--nz-detail-accent) color-mix(in srgb, var(--nz-back) 80%, var(--nz-surface)) !important;
}
html[data-nz-theme] body.inferno-core ::-webkit-scrollbar {width:9px;height:9px}
html[data-nz-theme] body.inferno-core ::-webkit-scrollbar-track {background:var(--nz-back);border-radius:20px}
html[data-nz-theme] body.inferno-core ::-webkit-scrollbar-thumb {
  background:var(--nz-detail-accent);
  border:2px solid var(--nz-back);
  border-radius:20px;
}
html[data-nz-theme] body.inferno-core ::-webkit-scrollbar-thumb:hover {
  background:var(--nz-accent-hi);
}
/* Rules document numbers: selected and unselected used different hard-coded reds. */
html[data-nz-theme] body.inferno-core .hb-doc .hb-doc-num {
  background: var(--nz-detail-surface) !important;
  border-color:var(--nz-detail-border) !important;
  color:var(--nz-accent-hi) !important;
  box-shadow:inset 0 1px color-mix(in srgb,var(--nz-accent-hi) 10%,transparent);
}
html[data-nz-theme] body.inferno-core .hb-doc.selected .hb-doc-num {
  background:var(--nz-gradient) !important;
  color:white !important;
  border-color:var(--nz-accent-hi) !important;
}
html[data-nz-theme] body.inferno-core .hb-side :is(.hb-new,.hb-copy,.hb-rule-copy){
  background:var(--nz-gradient) !important;
  border-color:var(--nz-detail-border) !important;
  color:#fff !important;
  box-shadow:0 6px 18px var(--nz-overlay) !important;
}
html[data-nz-theme] body.inferno-core :is(.hb-new,.hb-copy,.hb-categories button.active) {
  background:var(--nz-gradient) !important;
  border-color:var(--nz-detail-border) !important;
  color:#fff !important;
  box-shadow:0 5px 16px var(--nz-overlay) !important;
}
/* Neutral copy buttons in Velocity command log: tinted with the active palette. */
html[data-nz-theme] body.inferno-core .vc-copy {
  background:var(--nz-detail-surface) !important;
  border-color:var(--nz-detail-border) !important;
  color:var(--nz-accent-hi) !important;
  box-shadow:none !important;
}
html[data-nz-theme] body.inferno-core .vc-copy:hover,
html[data-nz-theme] body.inferno-core .vc-copy:focus-visible {
  background:var(--nz-gradient-soft) !important;
  border-color:var(--nz-accent) !important;
  color:var(--nz-ink) !important;
  outline-color:var(--nz-accent) !important;
}
/* Permissions indicator on RCON: lavender/pink access badge was hard-coded. */
html[data-nz-theme] body.inferno-core .simple-console-tag {
  color:var(--nz-ink) !important;
  background:var(--nz-detail-surface) !important;
  border-color:var(--nz-detail-border) !important;
}
html[data-nz-theme] body.inferno-core .simple-console-tag-dot {
  background:var(--nz-accent2) !important;
  box-shadow:0 0 10px var(--nz-shine2) !important;
}
/* Existing dashboard monitor module. Preserve green online/error state meanings. */
html[data-nz-theme] body.inferno-core .nv-monitor-card {
  background:var(--nz-detail-surface) !important;
  border-color:var(--nz-detail-border) !important;
  box-shadow:0 11px 30px #0003 !important;
}
html[data-nz-theme] body.inferno-core .nv-monitor-name {color:var(--nz-ink) !important}
html[data-nz-theme] body.inferno-core .nv-metric {
  background:color-mix(in srgb,var(--nz-surface) 80%,var(--nz-back)) !important;
  border-color:var(--nz-line) !important;
}
html[data-nz-theme] body.inferno-core .nv-metric strong,
html[data-nz-theme] body.inferno-core .nv-monitor-players p {color:var(--nz-ink) !important}
html[data-nz-theme] body.inferno-core .nv-monitor-info,
html[data-nz-theme] body.inferno-core .nv-metric small,
html[data-nz-theme] body.inferno-core .nv-monitor-subtitle {color:var(--nz-ink-muted) !important}
html[data-nz-theme] body.inferno-core .nv-monitor-actions :is(.nv-open-console,a) {
  color:var(--nz-accent-hi) !important;
}
html[data-nz-theme] body.inferno-core .nv-monitor-actions .soft {
  color:var(--nz-ink) !important;
  background:var(--nz-detail-surface) !important;
  border-color:var(--nz-detail-border) !important;
}
/* Chart frame and grid: neutral gradient based on the current theme. */
html[data-nz-theme] body.inferno-core .chart-wrap {
  position:relative;
}
html[data-nz-theme] body.inferno-core .chart-wrap #trend-chart {
  background:radial-gradient(ellipse at 45% 110%,var(--nz-overlay2),transparent 75%),
    color-mix(in srgb,var(--nz-back) 78%,var(--nz-surface)) !important;
  border-color:var(--nz-detail-border) !important;
}
html[data-nz-theme] body.inferno-core #trend-chart line {
  stroke:var(--nz-line) !important;
  stroke-opacity:.75;
}
/* This selector also handles the original JS attribute stroke="#f34557". */
html[data-nz-theme] body.inferno-core #trend-chart polyline {
  stroke:var(--nz-accent) !important;
  stroke-width:3.4px;
}
html[data-nz-theme] body.inferno-core #trend-chart.nz-gradient-ready polyline {
  stroke:url(#nz-trend-line-gradient) !important;
  filter:drop-shadow(0 0 3px var(--nz-overlay2));
}
html[data-nz-theme] body.inferno-core #nz-trend-line-gradient stop:first-child {stop-color:var(--nz-accent)}
html[data-nz-theme] body.inferno-core #nz-trend-line-gradient stop:last-child {stop-color:var(--nz-accent2)}
html[data-nz-theme] body.inferno-core .nz-trend-empty {
  position:absolute;inset:18px 23px auto;height:195px;
  display:flex;align-items:center;justify-content:center;
  padding:18px 40px;text-align:center;pointer-events:none;
  color:var(--nz-ink-muted);font-size:12px;line-height:1.6;
}
html[data-nz-theme] body.inferno-core .nz-trend-empty[hidden]{display:none!important}
html[data-nz-theme] body.inferno-core .chart-wrap #trend-label {
  color:var(--nz-ink-muted) !important;
}
/* White theme: higher contrast in muted labels/copy button backgrounds. */
html[data-nz-light="true"] body.inferno-core .vc-copy,
html[data-nz-light="true"] body.inferno-core .simple-console-tag,
html[data-nz-light="true"] body.inferno-core .hb-doc .hb-doc-num {
  color:var(--nz-ink) !important;
}
html[data-nz-light="true"] body.inferno-core .nv-metric {
  background:var(--nz-surface) !important;
}
