
:where(main,dialog,.page,.shell) :is(button,a.button,.btn){
 transition:background-color .12s ease,border-color .12s ease,color .12s ease,transform .06s ease,filter .12s ease;
 -webkit-tap-highlight-color:transparent
}
:where(main,dialog,.page,.shell) :is(button,a.button,.btn):not(:disabled):hover{filter:brightness(1.08)}
:is(button,a.button,.btn,#niv-specificity):not(:disabled):is(:active,.niv-pressed){
 filter:brightness(.78)!important;transform:translateY(1px)
}
/* Toggles read On/Off at a glance (NIV finish). Chart rows that filter on click
   (.ss-hbar) show selection themselves, so they keep their own look. */
html body :is(button,#niv-specificity)[aria-pressed="false"]:not(.niv-status-summary-option):not(.ss-hbar){
 background:#141414!important;color:#e4e4e4!important;border:1px solid #6c6c6c!important
}
html body :is(button,#niv-specificity)[aria-pressed="true"]:not(.niv-status-summary-option):not(.ss-hbar){
 background:#0e241f!important;color:#5fd6a6!important;border:1px solid #17a878!important;
 box-shadow:none
}
html body button[aria-pressed="true"]:not(.niv-status-summary-option):not(.ss-hbar)::before{content:"\2713\00a0";font-weight:800}
:where(main,dialog,.page,.shell) :is(.actions,.toolbar,.buttons,.button-row,.row-actions,.form-actions){
 display:flex;flex-wrap:wrap;gap:10px;align-items:center
}
:where(main,dialog,.page,.shell) :is(.actions,.toolbar,.buttons,.button-row,.row-actions,.form-actions)>*{margin:0}
.niv-switch-field{display:inline-flex;align-items:center;gap:10px;vertical-align:middle}
input.niv-switch{
 -webkit-appearance:none;appearance:none;position:relative;flex:0 0 auto;
 width:46px!important;height:26px!important;min-height:26px!important;margin:0;padding:0!important;
 border-radius:13px!important;border:1px solid #6c6c6c!important;background:#141414!important;
 cursor:pointer;transition:background-color .15s ease,border-color .15s ease;vertical-align:middle
}
input.niv-switch::after{
 content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;
 background:#d6d6d6;transition:transform .15s ease,background-color .15s ease
}
input.niv-switch:checked{background:#1f6b4a!important;border-color:#57c493!important}
input.niv-switch:checked::after{transform:translateX(20px);background:#f3fff8}
input.niv-switch:disabled{opacity:.5;cursor:not-allowed}
input.niv-switch:active:not(:disabled)::after{width:24px}
input.niv-switch:checked:active:not(:disabled)::after{transform:translateX(16px)}
input.niv-switch{margin-right:48px!important;overflow:visible}input.niv-switch::before{content:"Off";position:absolute;left:calc(100% + 8px);top:50%;transform:translateY(-50%);
 font:700 13px/1 var(--niv-ui-font,system-ui,sans-serif);letter-spacing:.04em;text-transform:uppercase;color:#b0b0b0;pointer-events:none}
input.niv-switch:checked::before{content:"On";color:#7fe0b1}
html body :is(*,#niv-specificity)[aria-busy="true"].niv-busy{position:relative;cursor:progress!important;pointer-events:none;padding-right:34px!important}
[aria-busy="true"].niv-busy::after{
 content:"";position:absolute;right:11px;top:50%;width:14px;height:14px;margin-top:-7px;border-radius:50%;
 border:2px solid currentColor;border-right-color:transparent;animation:niv-spin .7s linear infinite
}
@keyframes niv-spin{to{transform:rotate(360deg)}}
#niv-action-status{
 position:fixed;left:50%;bottom:84px;transform:translate(-50%,0);z-index:2147483000;display:none;/* above the round app launcher */
 max-width:min(92vw,440px);padding:11px 16px;border-radius:10px;border:1px solid #565656;
 background:#141414;color:#f2f0ed;font:600 14px/1.35 var(--niv-ui-font,system-ui,sans-serif);
 box-shadow:0 14px 40px #000a;pointer-events:none
}
#niv-action-status.show{display:block}
#niv-action-status[data-state="working"]::before{
 content:"";display:inline-block;width:12px;height:12px;margin-right:9px;vertical-align:-1px;border-radius:50%;
 border:2px solid #b0b0b0;border-right-color:transparent;animation:niv-spin .7s linear infinite
}
#niv-action-status[data-state="done"]{border-color:#367456;background:#173629;color:#a8eac9}
#niv-action-status[data-state="failed"]{border-color:#82544f;background:#382825;color:#ffb6aa}
@media (prefers-reduced-motion:reduce){
 [aria-busy="true"].niv-busy::after,#niv-action-status::before{animation-duration:2s}
 input.niv-switch,input.niv-switch::after{transition:none}
}
