/* Shadow neon GOLD switch add-on v04 (CSS only) = neonGold02 + hide Auto-responses sidebar status pill. Behaviour untouched. */
:root{
  --ns-size:11px;--ns-body:#26282e;--ns-knob-top:#3b3e46;--ns-knob-bottom:#22242a;
  --ns-gold-a:#a8841f;--ns-gold-mid:#d4af37;--ns-gold-b:#f3e5ab;
  --ns-led-off:#ff3b1f;--ns-led-on:#f5c542;--ns-dur:.5s;--ns-ease:cubic-bezier(.65,0,.35,1);
}
/* ---------- A) native checkboxes turned into the switch ---------- */
html body .sec-check>input[type=checkbox],
html body input[type=checkbox].av2-sw,
html body .am-mod-sub>input[type=checkbox],
html body .msg-check>input[type=checkbox]{
  -webkit-appearance:none!important;appearance:none!important;
  font-size:var(--ns-size)!important;position:relative!important;display:inline-block!important;flex:none!important;
  width:5.2em!important;min-width:5.2em!important;max-width:none!important;height:3em!important;min-height:0!important;
  margin:.3em .25em!important;padding:0!important;border-radius:1.5em!important;cursor:pointer;vertical-align:middle;
  border:.16em solid transparent!important;outline:none;accent-color:auto;opacity:1!important;pointer-events:auto;
  background:
    linear-gradient(145deg,#2c2e35 0%,var(--ns-body) 45%,#212328 100%) padding-box,
    linear-gradient(145deg,#2c2e35,#1d1f24) border-box!important;
  box-shadow:
    inset 0 0 0 .2em var(--ns-body),
    inset .12em .3em .35em .2em rgba(0,0,0,.75),
    inset -.02em -.08em .06em .22em rgba(255,255,255,.07),
    .2em .28em .5em rgba(0,0,0,.6),-.02em -.06em .16em rgba(255,255,255,.08)!important;
  transition:box-shadow var(--ns-dur) var(--ns-ease),background var(--ns-dur) var(--ns-ease),filter .2s!important;
}
/* knob */
html body .sec-check>input[type=checkbox]::before,
html body input[type=checkbox].av2-sw::before,
html body .am-mod-sub>input[type=checkbox]::before,
html body .msg-check>input[type=checkbox]::before{
  content:""!important;position:absolute!important;top:.38em!important;left:.38em!important;bottom:auto!important;right:auto!important;
  width:1.92em!important;height:1.92em!important;border-radius:50%!important;display:block!important;
  background:linear-gradient(145deg,var(--ns-knob-top) 0%,#2c2f36 50%,var(--ns-knob-bottom) 100%)!important;
  box-shadow:inset .05em .05em .03em rgba(255,255,255,.6),0 0 0 .03em rgba(0,0,0,.55),inset -.05em -.05em .08em rgba(0,0,0,.45),.42em .04em .22em .04em rgba(0,0,0,.9)!important;
  transform:none;transition:transform var(--ns-dur) var(--ns-ease),box-shadow var(--ns-dur) var(--ns-ease)!important;
}
/* LED */
html body .sec-check>input[type=checkbox]::after,
html body input[type=checkbox].av2-sw::after,
html body .am-mod-sub>input[type=checkbox]::after,
html body .msg-check>input[type=checkbox]::after{
  content:""!important;position:absolute!important;top:-.32em!important;left:-.3em!important;right:auto!important;bottom:auto!important;
  width:.3em!important;height:.3em!important;border-radius:50%!important;display:block!important;
  background:radial-gradient(circle at 35% 30%,#ffb09a 0 12%,var(--ns-led-off) 55%,#b51c08 100%)!important;
  box-shadow:0 0 .1em rgba(255,59,31,.55)!important;transition:background var(--ns-dur),box-shadow var(--ns-dur)!important;
}
/* ON */
html body .sec-check>input[type=checkbox]:checked,
html body input[type=checkbox].av2-sw:checked,
html body .am-mod-sub>input[type=checkbox]:checked,
html body .msg-check>input[type=checkbox]:checked{
  background:
    linear-gradient(145deg,#2c2e35 0%,var(--ns-body) 45%,#212328 100%) padding-box,
    linear-gradient(90deg,var(--ns-gold-a) 0%,var(--ns-gold-mid) 55%,var(--ns-gold-b) 100%) border-box!important;
  box-shadow:
    inset 0 0 0 .2em var(--ns-body),
    inset .12em .3em .35em .2em rgba(0,0,0,.75),
    inset 0 0 .12em rgba(212,175,55,.35),
    -.06em 0 .2em rgba(168,132,31,.9),.06em 0 .2em rgba(243,229,171,.9),
    -.2em 0 .35em -.05em rgba(168,132,31,.45),.2em 0 .35em -.05em rgba(243,229,171,.45),
    .2em .28em .5em rgba(0,0,0,.6)!important;
}
html body .sec-check>input[type=checkbox]:checked::before,
html body input[type=checkbox].av2-sw:checked::before,
html body .am-mod-sub>input[type=checkbox]:checked::before,
html body .msg-check>input[type=checkbox]:checked::before{
  transform:translateX(2.16em)!important;
  box-shadow:inset .05em .05em .03em rgba(255,255,255,.6),0 0 0 .03em rgba(0,0,0,.55),inset -.05em -.05em .08em rgba(0,0,0,.45),-.12em .04em .2em rgba(0,0,0,.6),.03em .05em .03em rgba(212,175,55,.2)!important;
}
html body .sec-check>input[type=checkbox]:checked::after,
html body input[type=checkbox].av2-sw:checked::after,
html body .am-mod-sub>input[type=checkbox]:checked::after,
html body .msg-check>input[type=checkbox]:checked::after{
  background:radial-gradient(circle at 35% 30%,#fff3c4 0 12%,var(--ns-led-on) 55%,#a8841f 100%)!important;
  box-shadow:0 0 .14em rgba(245,197,66,.8)!important;
}
html body .sec-check>input[type=checkbox]:disabled,
html body input[type=checkbox].av2-sw:disabled,
html body .am-mod-sub>input[type=checkbox]:disabled,
html body .msg-check>input[type=checkbox]:disabled{cursor:not-allowed!important;opacity:.45!important;filter:grayscale(.4)}
html body .sec-check>input[type=checkbox]:focus-visible,
html body input[type=checkbox].av2-sw:focus-visible,
html body .am-mod-sub>input[type=checkbox]:focus-visible,
html body .msg-check>input[type=checkbox]:focus-visible{outline:2px solid var(--ns-gold-b)!important;outline-offset:.3em!important}

/* ---------- B) label.switch + span.slider (Shadow Shield VIP scripts, VIP modules) ---------- */
html body label.switch{font-size:var(--ns-size);width:5.2em!important;min-width:5.2em!important;max-width:none!important;height:3em!important;flex:none;margin:.3em .25em}
html body label.switch>.slider{
  inset:0!important;border-radius:1.5em!important;border:.16em solid transparent!important;
  background:linear-gradient(145deg,#2c2e35 0%,var(--ns-body) 45%,#212328 100%) padding-box,linear-gradient(145deg,#2c2e35,#1d1f24) border-box!important;
  box-shadow:inset 0 0 0 .2em var(--ns-body),inset .12em .3em .35em .2em rgba(0,0,0,.75),inset -.02em -.08em .06em .22em rgba(255,255,255,.07),.2em .28em .5em rgba(0,0,0,.6)!important;
  transition:box-shadow var(--ns-dur) var(--ns-ease),background var(--ns-dur) var(--ns-ease)!important;
}
html body label.switch>.slider::before{
  content:""!important;top:.22em!important;left:.22em!important;bottom:auto!important;width:1.92em!important;height:1.92em!important;border-radius:50%!important;
  background:linear-gradient(145deg,var(--ns-knob-top) 0%,#2c2f36 50%,var(--ns-knob-bottom) 100%)!important;
  box-shadow:inset .05em .05em .03em rgba(255,255,255,.6),0 0 0 .03em rgba(0,0,0,.55),inset -.05em -.05em .08em rgba(0,0,0,.45),.42em .04em .22em .04em rgba(0,0,0,.9)!important;
  transform:none;transition:transform var(--ns-dur) var(--ns-ease),box-shadow var(--ns-dur) var(--ns-ease)!important;
}
html body label.switch>.slider::after{
  content:"";position:absolute;top:-.48em;left:-.46em;width:.3em;height:.3em;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#ffb09a 0 12%,var(--ns-led-off) 55%,#b51c08 100%);box-shadow:0 0 .1em rgba(255,59,31,.55);
  transition:background var(--ns-dur),box-shadow var(--ns-dur);
}
html body label.switch>input:checked+.slider{
  background:linear-gradient(145deg,#2c2e35 0%,var(--ns-body) 45%,#212328 100%) padding-box,linear-gradient(90deg,var(--ns-gold-a) 0%,var(--ns-gold-mid) 55%,var(--ns-gold-b) 100%) border-box!important;
  box-shadow:inset 0 0 0 .2em var(--ns-body),inset .12em .3em .35em .2em rgba(0,0,0,.75),-.06em 0 .2em rgba(168,132,31,.9),.06em 0 .2em rgba(243,229,171,.9),-.2em 0 .35em -.05em rgba(168,132,31,.45),.2em 0 .35em -.05em rgba(243,229,171,.45)!important;
  border-color:transparent!important;
}
html body label.switch>input:checked+.slider::before{transform:translateX(2.16em)!important;background:linear-gradient(145deg,var(--ns-knob-top) 0%,#2c2f36 50%,var(--ns-knob-bottom) 100%)!important}
html body label.switch>input:checked+.slider::after{background:radial-gradient(circle at 35% 30%,#fff3c4 0 12%,var(--ns-led-on) 55%,#a8841f 100%);box-shadow:0 0 .14em rgba(245,197,66,.8)}
html body label.switch>input:focus-visible+.slider{outline:2px solid var(--ns-gold-b);outline-offset:.3em}
@media (prefers-reduced-motion:reduce){html body .sec-check>input,html body .av2-sw,html body label.switch>.slider{--ns-dur:0s}}

/* ---------- C) status pills -> mini neon switch (visual only; parent card/button still handles the click) ---------- */
html body .am-mod-card .am-mod-top .am-mod-new.ghost,
html body .ar-addon-fab .ar-status{
  --ns-pill:8.5px;
  font-size:var(--ns-pill)!important;position:relative!important;display:inline-block!important;flex:none!important;box-sizing:border-box!important;
  width:5.2em!important;min-width:5.2em!important;height:3em!important;padding:0!important;margin:.25em .3em!important;
  color:transparent!important;line-height:0!important;overflow:visible!important;text-indent:-999px;white-space:nowrap;letter-spacing:0;
  border-radius:1.5em!important;border:.16em solid transparent!important;
  background:linear-gradient(145deg,#2c2e35 0%,var(--ns-body) 45%,#212328 100%) padding-box,linear-gradient(145deg,#2c2e35,#1d1f24) border-box!important;
  box-shadow:inset 0 0 0 .2em var(--ns-body),inset .12em .3em .35em .2em rgba(0,0,0,.75),inset -.02em -.08em .06em .22em rgba(255,255,255,.07),.2em .28em .5em rgba(0,0,0,.6)!important;
  transition:box-shadow var(--ns-dur) var(--ns-ease),background var(--ns-dur) var(--ns-ease)!important;
}
html body .am-mod-card .am-mod-top .am-mod-new.ghost::before,
html body .ar-addon-fab .ar-status::before{
  content:"";position:absolute;top:.22em;left:.22em;width:1.92em;height:1.92em;border-radius:50%;
  background:linear-gradient(145deg,var(--ns-knob-top) 0%,#2c2f36 50%,var(--ns-knob-bottom) 100%);
  box-shadow:inset .05em .05em .03em rgba(255,255,255,.6),0 0 0 .03em rgba(0,0,0,.55),inset -.05em -.05em .08em rgba(0,0,0,.45),.42em .04em .22em .04em rgba(0,0,0,.9);
  transition:transform var(--ns-dur) var(--ns-ease),box-shadow var(--ns-dur) var(--ns-ease);
}
html body .am-mod-card .am-mod-top .am-mod-new.ghost::after,
html body .ar-addon-fab .ar-status::after{
  content:"";position:absolute;top:-.48em;left:-.46em;width:.34em;height:.34em;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#ffb09a 0 12%,var(--ns-led-off) 55%,#b51c08 100%);box-shadow:0 0 .12em rgba(255,59,31,.6);
  transition:background var(--ns-dur),box-shadow var(--ns-dur);
}
/* ON: card is-on (all card variants) / state pill is-on / fab .ar-status.on */
html body .am-mod-card.is-on .am-mod-top .am-mod-new.ghost:not(.is-off),
html body .am-mod-card .am-mod-top .am-mod-state.is-on,
html body .ar-addon-fab .ar-status.on{
  background:linear-gradient(145deg,#2c2e35 0%,var(--ns-body) 45%,#212328 100%) padding-box,linear-gradient(90deg,var(--ns-gold-a) 0%,var(--ns-gold-mid) 55%,var(--ns-gold-b) 100%) border-box!important;
  box-shadow:inset 0 0 0 .2em var(--ns-body),inset .12em .3em .35em .2em rgba(0,0,0,.75),-.06em 0 .2em rgba(168,132,31,.9),.06em 0 .2em rgba(243,229,171,.9),-.2em 0 .35em -.05em rgba(168,132,31,.45),.2em 0 .35em -.05em rgba(243,229,171,.45)!important;
}
html body .am-mod-card.is-on .am-mod-top .am-mod-new.ghost:not(.is-off)::before,
html body .am-mod-card .am-mod-top .am-mod-state.is-on::before,
html body .ar-addon-fab .ar-status.on::before{transform:translateX(2.16em);box-shadow:inset .05em .05em .03em rgba(255,255,255,.6),0 0 0 .03em rgba(0,0,0,.55),inset -.05em -.05em .08em rgba(0,0,0,.45),-.12em .04em .2em rgba(0,0,0,.6)}
html body .am-mod-card.is-on .am-mod-top .am-mod-new.ghost:not(.is-off)::after,
html body .am-mod-card .am-mod-top .am-mod-state.is-on::after,
html body .ar-addon-fab .ar-status.on::after{background:radial-gradient(circle at 35% 30%,#fff3c4 0 12%,var(--ns-led-on) 55%,#a8841f 100%);box-shadow:0 0 .16em rgba(245,197,66,.85)}
html body .ar-addon-fab{align-items:center}

/* ---------- D) sidebar Auto-responses item: no ON/OFF pill (NEW badge kept) ---------- */
html body #ar-addon-navitem .ar-status{display:none!important}
