/* Nezerite.PW 3.6.4 — theme consistency patch.
   Runs AFTER v3.6.3; original feature CSS is untouched.
   Decorative colors follow --nz-*; success/warning/error indicators keep their semantics. */
html[data-nz-theme] body.inferno-core {
  --nz-ui-border:color-mix(in srgb,var(--nz-accent) 21%,var(--nz-line));
  --nz-ui-fill:linear-gradient(122deg,color-mix(in srgb,var(--nz-accent) 9%,var(--nz-surface)),color-mix(in srgb,var(--nz-accent2) 8%,var(--nz-surface)));
  --nz-ui-fill-strong:linear-gradient(126deg,color-mix(in srgb,var(--nz-accent) 18%,var(--nz-surface-2)),color-mix(in srgb,var(--nz-accent2) 15%,var(--nz-surface)));
  --nz-ui-input:color-mix(in srgb,var(--nz-back) 68%,var(--nz-surface));
  --nz-ui-high:color-mix(in srgb,var(--nz-accent-hi) 78%,var(--nz-ink));
}
/* Keep main surface consistent (dashboard widgets, monitor, forms) */
html[data-nz-theme] body.inferno-core :is(.panel,.monitor-card,.monitor-grid,.monitor-stats,.quick,.simple-console,.control-bar,.terminal,.log-preview,.audit,.perm-card,.user-list,.history-row){border-color:var(--nz-ui-border)}
html[data-nz-theme] body.inferno-core :is(.control-bar,.monitor-metrics,.quick,.terminal,.terminal-head,.terminal-caption,.log-lines,.log-preview,.history-row,.perm-card,.user-row){color:var(--nz-ink)}
html[data-nz-theme] body.inferno-core :is(.monitor-grid,.terminal-head,.terminal-caption,.control-bar){background:var(--nz-ui-fill)!important;border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core :is(.monitor-card,.quick,.perm-card,.history-row){background:var(--nz-ui-fill);border-color:var(--nz-ui-border)}
html[data-nz-theme] body.inferno-core :is(.quick>a,.monitor-card a,.rule-code,.chat-name,.history-command){color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core :is(.quick>a:hover,.user-row:hover,.chat-entry:hover){background:var(--nz-overlay)!important}
html[data-nz-theme] body.inferno-core :is(.chat-meta,.terminal-caption,.history-row small,.monitor-card small,.user-row small){color:var(--nz-ink-muted)}
html[data-nz-theme] body.inferno-core .log-lines{background:var(--nz-ui-input)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .chat-entry{border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core .quick>a{border-color:var(--nz-line)!important}
/* RCON console — old red/rose assets removed */
html[data-nz-theme] body.inferno-core .simple-console{background:var(--nz-ui-fill)!important;border-color:var(--nz-ui-border)!important;box-shadow:0 18px 60px #0003,0 0 38px var(--nz-overlay)!important}
html[data-nz-theme] body.inferno-core .simple-console-header{background:var(--nz-ui-fill-strong)!important;border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core .simple-console-form{background:transparent!important}
html[data-nz-theme] body.inferno-core .simple-console-foot{background:var(--nz-ui-input)!important;border-color:var(--nz-line)!important;color:var(--nz-ink-muted)!important}
html[data-nz-theme] body.inferno-core .simple-console-mark{background:var(--nz-gradient)!important;color:#fff!important;border-color:var(--nz-accent-hi)!important;box-shadow:0 0 22px var(--nz-shine)!important}
html[data-nz-theme] body.inferno-core :is(.simple-console-kicker,.simple-console-prompt,.simple-console-chevron,.simple-console-lock){color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core .simple-console-tag-dot{background:var(--nz-accent2)!important;box-shadow:0 0 12px var(--nz-shine2)!important}
html[data-nz-theme] body.inferno-core .simple-console-step{color:var(--nz-ink)!important;border-color:var(--nz-ui-border)!important;background:var(--nz-overlay)!important}
html[data-nz-theme] body.inferno-core :is(.simple-console-select-wrap,.simple-console-input-wrap){background:var(--nz-ui-input)!important;border-color:var(--nz-ui-border)!important}
html[data-nz-theme] body.inferno-core :is(.simple-console-select-wrap:hover,.simple-console-input-wrap:hover,.simple-console-select-wrap:focus-within,.simple-console-input-wrap:focus-within){border-color:var(--nz-accent)!important;box-shadow:0 0 0 3px var(--nz-overlay)!important}
html[data-nz-theme] body.inferno-core .simple-console-send{background:var(--nz-gradient)!important;border-color:var(--nz-accent-hi)!important;color:#fff!important;box-shadow:0 12px 29px var(--nz-shine)!important}
/* Velocity chat and command log */
html[data-nz-theme] body.inferno-core .vc-terminal,
html[data-nz-theme] body.inferno-core .vc-subfilters{background:var(--nz-ui-fill)!important;border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core .vc-monitor-label{color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core .vc-entry:hover{background:var(--nz-overlay)!important}
html[data-nz-theme] body.inferno-core .vc-row{border-color:var(--nz-line)!important}
/* Moderation / command templates / permissions */
html[data-nz-theme] body.inferno-core .perm-card{background:var(--nz-ui-fill)!important;border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core .perm-checks label{color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .perm-checks input[type=checkbox]{accent-color:var(--nz-accent)!important}
html[data-nz-theme] body.inferno-core :is(.rule-code,.simple-console-field label){color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .rule-code{color:var(--nz-accent-hi)!important}
/* The v3.4.4 human-friendly audit module — precise selectors. */
html[data-nz-theme] body.inferno-core .nz-audit{background:var(--nz-ui-fill)!important;border-color:var(--nz-ui-border)!important;box-shadow:0 20px 65px #0003!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .nz-audit .nza-header{background:radial-gradient(ellipse at 80% 4%,var(--nz-overlay),transparent 62%)!important;border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core .nz-audit :is(.nza-heading h2,.nza-stat b,.nza-event-title,.nza-actor,.nza-field-value){color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .nz-audit :is(.nza-heading p,.nza-stat strong,.nza-stat small,.nza-status,.nza-timezone,.nza-field-label,.nza-day,.nza-event-detail){color:var(--nz-ink-muted)!important}
html[data-nz-theme] body.inferno-core .nz-audit :is(.nza-eyebrow,.nza-time,.nza-copy,.nza-day){color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core .nz-audit :is(.nza-stats,.nza-filters,.nza-footer,.nza-summary,.nza-expanded){border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core .nz-audit :is(.nza-stat,.nza-entry,.nza-expanded,.nza-footer){background:var(--nz-ui-fill)!important;border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core .nz-audit .nza-entry:hover,
html[data-nz-theme] body.inferno-core .nz-audit .nza-entry[open]{background:var(--nz-ui-fill-strong)!important;border-color:var(--nz-accent)!important}
html[data-nz-theme] body.inferno-core .nz-audit :is(.nza-button,.nza-copy){background:var(--nz-surface-2)!important;border-color:var(--nz-ui-border)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .nz-audit :is(.nza-button-primary){background:var(--nz-gradient)!important;border-color:var(--nz-accent-hi)!important;color:#fff!important;box-shadow:0 8px 24px var(--nz-shine)!important}
html[data-nz-theme] body.inferno-core .nz-audit .nza-button:hover,
html[data-nz-theme] body.inferno-core .nz-audit .nza-copy:hover{border-color:var(--nz-accent)!important}
html[data-nz-theme] body.inferno-core .nz-audit :is(.nza-input,.nza-select){background:var(--nz-ui-input)!important;border-color:var(--nz-line)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .nz-audit :is(.nza-input,.nza-select):focus{border-color:var(--nz-accent)!important;box-shadow:0 0 0 3px var(--nz-overlay)!important}
html[data-nz-theme] body.inferno-core .nz-audit .nza-avatar{background:var(--nz-ui-fill-strong)!important;border-color:var(--nz-ui-border)!important;color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core .nz-audit :is(.nza-chip,.nza-chip-documents,.nza-chip-team,.nza-chip-auth,.nza-chip-commands,.nza-chip-servers){background:var(--nz-surface-2)!important;border-color:var(--nz-ui-border)!important;color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core .nz-audit .nza-entry.is-neutral{border-left-color:var(--nz-ui-border)!important}
html[data-nz-theme] body.inferno-core .nz-audit .nza-stat-docs{border-color:var(--nz-ui-border)!important}
/* Preserve dangerous/successful status strips, errors and warning chips in audit. */
/* Staff profile v3.4.6 — major old hard-coded red elements */
html[data-nz-theme] body.inferno-core .sp-wrap{color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .sp-hero{background:radial-gradient(ellipse at 77% 10%,var(--nz-overlay2),transparent 56%),var(--nz-ui-fill-strong)!important;border-color:var(--nz-ui-border)!important;box-shadow:0 22px 60px #0003,0 0 35px var(--nz-overlay)!important}
html[data-nz-theme] body.inferno-core .sp-hero-glow{background:radial-gradient(circle,var(--nz-shine2),transparent 68%)!important}
html[data-nz-theme] body.inferno-core .sp-hero-mark{color:var(--nz-overlay2)!important}
html[data-nz-theme] body.inferno-core .sp-avatar{background:var(--nz-gradient)!important;border-color:var(--nz-accent-hi)!important;color:#fff!important;box-shadow:0 10px 30px var(--nz-shine)!important}
html[data-nz-theme] body.inferno-core :is(.sp-eyebrow,.sp-chip,.sp-hero-pills span:not(.sp-active):not(.sp-disabled)){color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core .sp-hero-pills span:not(.sp-active):not(.sp-disabled){background:var(--nz-overlay)!important;border-color:var(--nz-ui-border)!important}
html[data-nz-theme] body.inferno-core :is(.sp-hero h1,.sp-stat strong,.sp-panel h2,.sp-mini-rows strong){color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core :is(.sp-hero p,.sp-toolbar label,.sp-stat-label,.sp-stat small,.sp-note,.sp-disclaimer,.sp-mini-rows span,.sp-bar-day,.sp-event small,.sp-event time){color:var(--nz-ink-muted)!important}
html[data-nz-theme] body.inferno-core :is(.sp-toolbar,.sp-stat,.sp-panel,.sp-activity-unknown){background:var(--nz-ui-fill)!important;border-color:var(--nz-line)!important;box-shadow:0 10px 33px #0002!important}
html[data-nz-theme] body.inferno-core .sp-stat::after{background:var(--nz-shine2)!important}
html[data-nz-theme] body.inferno-core :is(.sp-red,.sp-orange,.sp-violet,.sp-yellow,.sp-blue){--sp-shine:var(--nz-shine2)!important}
html[data-nz-theme] body.inferno-core :is(.sp-button,.sp-range a.active){background:var(--nz-gradient)!important;border-color:var(--nz-accent-hi)!important;color:#fff!important}
html[data-nz-theme] body.inferno-core :is(.sp-range a,.sp-chip){background:var(--nz-surface-2)!important;border-color:var(--nz-ui-border)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .sp-toolbar select{background:var(--nz-ui-input)!important;color:var(--nz-ink)!important;border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core .sp-bar{background:linear-gradient(0deg,var(--nz-accent-deep),var(--nz-accent),var(--nz-accent2-hi))!important;box-shadow:0 0 12px var(--nz-overlay)!important}
html[data-nz-theme] body.inferno-core .sp-chart{border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core .sp-stat:hover{border-color:var(--nz-accent)!important}
/* LiteBans v3.5.8 / 3.5.9 / 3.6.0 */
html[data-nz-theme] body.inferno-core .lbv-shell,
html[data-nz-theme] body.inferno-core :is(.lbv-kpi,.lbv-card,.lbv-filter-panel,.lbv-analytics-section,.lbv-dialog,.lbv-detail-grid>div,.lbv-detail-reason){background:var(--nz-ui-fill)!important;border-color:var(--nz-line)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core :is(.lbv-top h1,.lbv-player strong,.lbv-kpi strong,.lbv-detail-grid strong,.lbv-analytics-section h3){color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core :is(.lbv-eyebrow,.lbv-accent,.lbv-dialog-head small,.lbv-detail-reason>strong,.lbv-bar-row strong){color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core :is(.lbv-sub,.lbv-note,.lbv-meta span,.lbv-player small,.lbv-kpi span,.lbv-filter-grid label span,.lbv-detail-grid span,.lbv-section-head){color:var(--nz-ink-muted)!important}
html[data-nz-theme] body.inferno-core .lbv-avatar{background:var(--nz-gradient)!important;border-color:var(--nz-accent-hi)!important;color:#fff!important}
html[data-nz-theme] body.inferno-core :is(.lbv-type.active,.lbv-view.active,.lbv-primary,.lbv-actions .lbv-primary){background:var(--nz-gradient)!important;border-color:var(--nz-accent-hi)!important;color:#fff!important}
html[data-nz-theme] body.inferno-core :is(.lbv-card:hover,.lbv-type:not(.active):hover,.lbv-view:not(.active):hover){background:var(--nz-ui-fill-strong)!important;border-color:var(--nz-accent)!important}
html[data-nz-theme] body.inferno-core :is(.lbv-reason,.lbv-reason-holder,.lbv-reason-expanded,.lbv-detail-reason,.lbv-detail-reason p,.lbv-reason-truncated){background:var(--nz-ui-input)!important;border-color:var(--nz-ui-border)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .lbv-reason-toggle{color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core .lbv-filter-grid :is(input,select){background:var(--nz-ui-input)!important;border-color:var(--nz-line)!important;color:var(--nz-ink)!important;box-shadow:none!important}
html[data-nz-theme] body.inferno-core :is(.lbv-tabs,.lbv-dialog-head,.lbv-actions,.lbv-view-switch){border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core .lbv-view-switch{background:var(--nz-surface-2)!important}
html[data-nz-theme] body.inferno-core :is(.lbv-top-actions button,.lbv-filter-actions button,.lbv-actions button,.lbv-detail-actions button,.lbv-x){background:var(--nz-surface-2)!important;border-color:var(--nz-ui-border)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core :is(.lbv-top-actions button,.lbv-filter-actions button,.lbv-actions button,.lbv-detail-actions button,.lbv-x):hover{border-color:var(--nz-accent)!important;background:var(--nz-ui-fill-strong)!important}
html[data-nz-theme] body.inferno-core .lbv-actions .lbv-primary{background:var(--nz-gradient)!important;color:#fff!important}
html[data-nz-theme] body.inferno-core .lbv-meter{background:var(--nz-surface-2)!important}
html[data-nz-theme] body.inferno-core .lbv-meter span{background:var(--nz-gradient)!important}
html[data-nz-theme] body.inferno-core .lbv-pill.type{background:var(--nz-overlay)!important;color:var(--nz-accent-hi)!important;border-color:var(--nz-ui-border)!important}
html[data-nz-theme] body.inferno-core .lbv-pill.permanent{background:var(--nz-overlay2)!important;color:var(--nz-accent2-hi)!important;border-color:var(--nz-ui-border)!important}
/* Active/expired/removed badges preserve their semantic colors. */
/* Handbook: rules and internal guides. Change decorative red, leave published-green and penalty-red. */
html[data-nz-theme] body.inferno-core :is(.hb-side,.hb-reader,.hb-doc,.hb-rule-card,.hb-note-card,.hb-editor,.hb-revisions){background:var(--nz-ui-fill)!important;border-color:var(--nz-line)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core :is(.hb-side-top,.hb-reader-head,.hb-reader-foot){background:var(--nz-ui-fill-strong)!important;border-color:var(--nz-line)!important}
html[data-nz-theme] body.inferno-core :is(.hb-article-title,.hb-doc-title,.hb-prose h2,.hb-prose h4,.hb-ruleline,.hb-note-title){color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core :is(.hb-prose h3,.hb-breadcrumb,.hb-welcome-icon,.hb-search span,.hb-doc-num,.hb-reader .hb-title){color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core .hb-prose li::marker{color:var(--nz-accent)!important}
html[data-nz-theme] body.inferno-core .hb-article-intro{color:var(--nz-ink-muted)!important;border-left-color:var(--nz-accent)!important}
html[data-nz-theme] body.inferno-core :is(.hb-prose,.hb-ruletext,.hb-notetext,.hb-doc-summary){color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .hb-rule-card::before{background:var(--nz-gradient)!important}
html[data-nz-theme] body.inferno-core .hb-doc.selected{background:var(--nz-ui-fill-strong)!important;border-color:var(--nz-accent)!important;box-shadow:inset 3px 0 0 var(--nz-accent)!important}
html[data-nz-theme] body.inferno-core .hb-doc.selected .hb-doc-num{background:var(--nz-gradient)!important;color:#fff!important;border-color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core .hb-doc:hover{background:var(--nz-ui-fill-strong)!important;border-color:var(--nz-accent)!important}
html[data-nz-theme] body.inferno-core :is(.hb-categories button.active,.hb-new,.hb-copy,.hb-rule-copy){background:var(--nz-gradient)!important;border-color:var(--nz-accent-hi)!important;color:#fff!important}
html[data-nz-theme] body.inferno-core :is(.hb-categories button:not(.active),.hb-search){background:var(--nz-surface-2)!important;border-color:var(--nz-line)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core .hb-prose blockquote{background:var(--nz-ui-fill-strong)!important;border-left-color:var(--nz-accent)!important}
html[data-nz-theme] body.inferno-core .hb-rule-card .hb-penalty{border-color:var(--nz-line)!important}
/* generic compact UI parts, live chat controls and quick search */
html[data-nz-theme] body.inferno-core :is(.inline-select,.inline-input,.stack-form select,.stack-form input,.quick-dialog-head input){background:var(--nz-ui-input)!important;border-color:var(--nz-line)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core :is(.quick-dialog,.quick-list,.quick-list a){background:var(--nz-ui-fill)!important;border-color:var(--nz-line)!important;color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core :is(.quick-list a:hover,.quick-list a:focus){background:var(--nz-overlay)!important;border-color:var(--nz-accent)!important}
html[data-nz-theme] body.inferno-core :is(.quick-dialog-head .ui-icon,.quick-list a>.ui-icon:first-child){color:var(--nz-accent-hi)!important}
/* White/light theme, override module-level hardcoded white text. */
html[data-nz-light="true"] body.inferno-core :is(.nz-audit,.lbv-shell,.sp-wrap,.hb-reader,.hb-side,.simple-console,.vc-terminal,.perm-card){color:var(--nz-ink)!important}
html[data-nz-light="true"] body.inferno-core :is(.lbv-detail-reason p,.lbv-card,.lbv-reason,.hb-article-title,.hb-prose,.hb-ruleline,.hb-ruletext,.hb-doc-title,.sp-hero h1,.sp-hero p,.sp-stat strong,.nza-heading h2,.nza-event-title,.nza-field-value){color:var(--nz-ink)!important}
html[data-nz-light="true"] body.inferno-core :is(.hb-penalty,.lbv-pill.inactive,.lbv-pill.expired,.nza-chip-security){color:var(--nz-ink)!important}
@media (prefers-reduced-motion:reduce){html[data-nz-theme] body.inferno-core :is(.nza-entry,.lbv-card,.sp-stat){transition:none!important}}

/* These are genuine severity indicators, not decorative theme accents. */
html[data-nz-theme] body.inferno-core .nz-audit .nza-stat-danger b{color:#ffabb9!important}
html[data-nz-light="true"] body.inferno-core .nz-audit .nza-stat-danger b{color:#ad2745!important}
