/* Nezerite.PW v3.6.6 — remaining details. Load AFTER v3.6.5.
 * Uses the active Spectrum variables rather than fixed RGB colors.
 * Success/expired/error/published statuses retain semantic meaning.
 */
html[data-nz-theme] body.inferno-core {
  --nz366-panel:linear-gradient(130deg,
    color-mix(in srgb,var(--nz-accent) 6%,var(--nz-surface)),
    color-mix(in srgb,var(--nz-accent2) 5%,var(--nz-surface)));
  --nz366-panel-strong:linear-gradient(130deg,
    color-mix(in srgb,var(--nz-accent) 15%,var(--nz-surface-2)),
    color-mix(in srgb,var(--nz-accent2) 11%,var(--nz-surface)));
  --nz366-line:color-mix(in srgb,var(--nz-accent) 18%,var(--nz-line));
  --nz366-line-strong:color-mix(in srgb,var(--nz-accent2) 35%,var(--nz-line));
  --nz366-muted:var(--nz-ink-muted);
  --nz366-fill:color-mix(in srgb,var(--nz-accent) 9%,var(--nz-surface));
}
/* Chat and Velocity command streams: hover, zebra highlight, timestamps, separators. */
html[data-nz-theme] body.inferno-core :is(.terminal,.vc-terminal,.vc-terminal .terminal-head){
  border-color:var(--nz366-line)!important;
}
html[data-nz-theme] body.inferno-core :is(.log-lines,.vc-log-lines,.log-preview){
  background:color-mix(in srgb,var(--nz-back) 80%,var(--nz-surface))!important;
  color:var(--nz-ink)!important;
  border-color:var(--nz366-line)!important;
}
html[data-nz-theme] body.inferno-core :is(.chat-entry,.vc-entry){
  border-color:color-mix(in srgb,var(--nz366-line) 65%,transparent)!important;
  color:var(--nz-ink)!important;
}
html[data-nz-theme] body.inferno-core :is(.chat-entry,.vc-entry):nth-child(2n+1){
  background:color-mix(in srgb,var(--nz-accent) 4%,transparent)!important;
}
html[data-nz-theme] body.inferno-core :is(.chat-entry,.vc-entry):hover{
  background:color-mix(in srgb,var(--nz-accent) 11%,transparent)!important;
}
html[data-nz-theme] body.inferno-core :is(.chat-meta,.vc-separator,.vc-cmd-redacted){
  color:var(--nz366-muted)!important;
}
html[data-nz-theme] body.inferno-core .chat-name{color:var(--nz-accent-hi)!important}
html[data-nz-theme] body.inferno-core .vc-cmd{color:var(--nz-ink)!important}
html[data-nz-theme] body.inferno-core :is(.vc-subfilters,.vc-footer,.terminal-caption){
  background:var(--nz366-panel)!important;
  border-color:var(--nz366-line)!important;
  color:var(--nz-ink-muted)!important;
}
html[data-nz-theme] body.inferno-core :is(.vc-subfilters label,.vc-notice,.vc-live-status,.vc-result-note,.vc-monitor-label){
  color:var(--nz366-muted)!important;
}
/* Native date controls: dark and white themes both show legible glyphs. */
html[data-nz-theme] body.inferno-core :is(input[type="date"],input[type="datetime-local"]),
html[data-nz-theme] body.inferno-core .vc-subfilters input[type="date"] {
  background:color-mix(in srgb,var(--nz-back) 75%,var(--nz-surface))!important;
  border-color:var(--nz366-line)!important;
  color:var(--nz-ink)!important;
  color-scheme:dark;
  accent-color:var(--nz-accent);
}
html[data-nz-light="true"] body.inferno-core :is(input[type="date"],input[type="datetime-local"]){
  color-scheme:light;
}
html[data-nz-theme] body.inferno-core :is(input[type="date"],input[type="datetime-local"]):focus-visible{
  border-color:var(--nz-accent)!important;
  outline:2px solid color-mix(in srgb,var(--nz-accent) 35%,transparent);
  outline-offset:1px;
}
/* Handbook: side headings, rules, content, separators, and copy-button borders. */
html[data-nz-theme] body.inferno-core :is(.hb-side,.hb-reader,.hb-editor,.hb-revisions){
  background:var(--nz366-panel)!important;
  border-color:var(--nz366-line)!important;
}
html[data-nz-theme] body.inferno-core :is(.hb-side-top,.hb-reader-head,.hb-reader-foot){
  background:var(--nz366-panel-strong)!important;
  border-color:var(--nz366-line)!important;
}
html[data-nz-theme] body.inferno-core :is(.hb-side-title,.hb-list-top,.hb-list-top small,.hb-breadcrumb){
  color:var(--nz-accent-hi)!important;
}
html[data-nz-theme] body.inferno-core :is(.hb-categories,.hb-rev,.hb-reader-foot){
  border-color:var(--nz366-line)!important;
}
html[data-nz-theme] body.inferno-core :is(.hb-doc,.hb-note-card,.hb-rule-card){
  background:var(--nz366-panel)!important;
  border-color:var(--nz366-line)!important;
}
html[data-nz-theme] body.inferno-core .hb-doc.selected{
  background:var(--nz366-panel-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:hover{
  background:var(--nz366-panel-strong)!important;
  border-color:var(--nz366-line-strong)!important;
}
html[data-nz-theme] body.inferno-core :is(.hb-doc-summary,.hb-doc-meta,.hb-reader-foot,.hb-editor-hint){
  color:var(--nz366-muted)!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-prose .hb-ruleline,
html[data-nz-theme] body.inferno-core .hb-prose .hb-ruletext{
  color:var(--nz-ink)!important;
}
html[data-nz-theme] body.inferno-core .hb-rule-card .hb-penalty,
html[data-nz-theme] body.inferno-core .hb-penalty{
  background:linear-gradient(120deg,
    color-mix(in srgb,var(--nz-accent) 10%,var(--nz-surface)),
    color-mix(in srgb,var(--nz-accent2) 8%,var(--nz-surface)))!important;
  color:var(--nz-ink)!important;
  border-color:var(--nz366-line-strong)!important;
}
html[data-nz-theme] body.inferno-core .hb-rule-copy:not(.is-copied):not(.is-error),
html[data-nz-theme] body.inferno-core .hb-copy,
html[data-nz-theme] body.inferno-core .hb-new{
  background:var(--nz-gradient)!important;
  color:#fff!important;
  border-color:var(--nz366-line-strong)!important;
  box-shadow:0 5px 15px var(--nz-overlay)!important;
}
html[data-nz-theme] body.inferno-core :is(.hb-search,.hb-search input,.hb-categories button:not(.active)){
  background:color-mix(in srgb,var(--nz-back) 65%,var(--nz-surface))!important;
  color:var(--nz-ink)!important;
  border-color:var(--nz366-line)!important;
}
html[data-nz-theme] body.inferno-core .hb-categories button.active{
  background:var(--nz-gradient)!important;
  border-color:var(--nz-accent)!important;
  color:#fff!important;
}
html[data-nz-theme] body.inferno-core .hb-categories button:hover:not(.active){
  background:var(--nz366-panel-strong)!important;
  border-color:var(--nz366-line-strong)!important;
  color:var(--nz-ink)!important;
}
/* Sidebar rules item counts and the small divider lines. */
html[data-nz-theme] body.inferno-core :is(.hb-doc-num,.hb-list-top small){
  border-color:var(--nz366-line)!important;
}
html[data-nz-theme] body.inferno-core .hb-doc.selected .hb-doc-num{
  background:var(--nz-gradient)!important;
  border-color:var(--nz-accent)!important;
  color:#fff!important;
}
/* Copy buttons, quiet secondary actions and edges, across modules. */
html[data-nz-theme] body.inferno-core :is(.vc-copy,.hb-actions .soft,.hb-revisions .soft,.nza-entry button.soft){
  background:var(--nz366-panel)!important;
  color:var(--nz-ink)!important;
  border-color:var(--nz366-line)!important;
}
html[data-nz-theme] body.inferno-core :is(.vc-copy,.hb-actions .soft,.hb-revisions .soft,.nza-entry button.soft):hover{
  background:var(--nz366-panel-strong)!important;
  border-color:var(--nz-accent)!important;
}
html[data-nz-theme] body.inferno-core :is(.hb-wrap .panel,.vc-terminal,.nz-audit,.nv-monitor-card,.sp-panel){
  border-color:var(--nz366-line)!important;
}
/* Scrollbar: ensure even nested handbook and chat panes use the selected shade. */
html[data-nz-theme] body.inferno-core :is(.hb-list,.hb-side,.vc-log-lines,.log-lines,.nz-audit,.vc-terminal){
  scrollbar-color:color-mix(in srgb,var(--nz-accent) 62%,var(--nz-accent2))
    color-mix(in srgb,var(--nz-back) 83%,var(--nz-surface))!important;
  scrollbar-width:thin;
}
html[data-nz-theme] body.inferno-core :is(.hb-list,.hb-side,.vc-log-lines,.log-lines)::-webkit-scrollbar-thumb{
  background:var(--nz-gradient)!important;
  border:2px solid var(--nz-back)!important;
  border-radius:999px;
}
/* White palette: avoid pale text on pale cells. */
html[data-nz-light="true"] body.inferno-core :is(.hb-side-title,.hb-list-top,.hb-breadcrumb,.vc-monitor-label,.chat-name){
  color:var(--nz-accent-hi)!important;
}
html[data-nz-light="true"] body.inferno-core :is(.vc-copy,.hb-penalty,.hb-doc,.chat-entry){
  color:var(--nz-ink)!important;
}
