/* AUTOMATION_SWITCH_V1 — the Automation column pill, the row switch, the header button and the bulk confirm */
.aupill{display:inline-block;min-width:34px;padding:1px 6px;border-radius:99px;border:1px solid;font-size:10px;font-weight:700;letter-spacing:.04em;line-height:16px;text-align:center;white-space:nowrap;vertical-align:middle;cursor:default}
.aupill.au-on{color:#7df0b4;border-color:rgba(107,227,165,.6);background:rgba(107,227,165,.12)}
.aupill.au-off{color:#aeb8d2;border-color:rgba(154,166,194,.45);background:rgba(154,166,194,.08)}
.aupill.au-bad{color:#ffb0b8;border-color:rgba(255,107,122,.65);background:rgba(255,107,122,.12)}
.aupill.au-sw{color:#ffe08a;border-color:rgba(255,211,92,.7);background:rgba(255,211,92,.12);animation:auPulse 1.4s ease-in-out infinite}
.aupill.au-none,.aupill.au-na{color:#7382a4;border-color:rgba(115,130,164,.35);border-style:dashed;background:transparent}
@keyframes auPulse{0%,100%{opacity:1}50%{opacity:.5}}
@media (prefers-reduced-motion:reduce){.aupill.au-sw{animation:none}}
/* the header button (click = read every automation now, admins) */
.auto-head{all:unset;cursor:pointer;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;white-space:nowrap}
.auto-head:hover,.auto-head:focus-visible{color:#4de0ff;text-decoration:underline}
.auto-head:focus-visible{outline:2px solid #4de0ff;outline-offset:2px;border-radius:3px}
.auto-head:disabled{cursor:default;text-decoration:none;color:inherit}
/* Pending accounts: a real column (class-based widths) */
.pa-t col.w-auto{width:108px}.pa-t th.h-auto{letter-spacing:.02em}.pa-t th.h-auto,.pa-t td.c-auto{text-align:center}
/* Global Launcher V2 tables + the Sendo250 table (same columns): the pill sits in the API column right of the dot — ac.css folds columns
   by position, so no new column is added; the API column is widened instead */
.s5-t th.h-api{width:88px!important;white-space:nowrap;padding-left:2px!important;padding-right:2px!important}
.s5-t th.h-api .au-inhead,.acct-t th.c-api .au-inhead{margin-left:5px;vertical-align:middle;font-size:9.5px;letter-spacing:.02em}
.s5-t td.c-api{white-space:nowrap}.s5-t td.c-api .au-in{display:inline-block;margin-left:4px;vertical-align:middle}
@media (min-width:641px){html body .gm-card table.acct-t col.w-api{width:108px}}
.acct-t th.c-api{white-space:nowrap}
.acct-t th.c-api .apid-head{vertical-align:middle}
.acct-t td.c-api{white-space:nowrap}
.acct-t td.c-api .au-in{display:inline-block;margin-left:6px;vertical-align:middle}
@media (max-width:640px){.acct-t th.c-api .au-inhead,.s5-t th.h-api .au-inhead{display:none}}
/* the row switch (Sendo250 Actions menu, Global Launcher V2 actions, Pending actions) */
.auto-sw{display:inline-flex;align-items:center;gap:7px;cursor:pointer;font:inherit;font-size:12px;font-weight:650;color:#c8d3ef;background:rgba(154,166,194,.08);border:1px solid rgba(154,166,194,.35);border-radius:8px;padding:4px 9px;min-height:28px;white-space:nowrap}
.auto-sw .au-knob{position:relative;width:26px;height:14px;border-radius:99px;background:rgba(154,166,194,.35);flex:none;transition:background .15s}
.auto-sw .au-knob::after{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#e8eeff;transition:left .15s}
.auto-sw.is-on{color:#7df0b4;border-color:rgba(107,227,165,.55)}
.auto-sw.is-on .au-knob{background:rgba(107,227,165,.75)}.auto-sw.is-on .au-knob::after{left:14px}
.auto-sw[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
.auto-sw:focus-visible{outline:2px solid #4de0ff;outline-offset:2px}
.auto-sw.au-row{margin:2px 0;font-size:10.5px;min-height:24px;padding:2px 6px;gap:5px;max-width:100%}
.auto-sw.au-row .au-knob{width:20px;height:12px}.auto-sw.au-row .au-knob::after{width:8px;height:8px}.auto-sw.au-row.is-on .au-knob::after{left:10px}
.s5-pop .auto-sw.s5b{width:100%;justify-content:flex-start}
/* Global Launcher V2 actions: one full-width line like Auto-pause (the colour carries ON / OFF there) */
.acts-g .auto-sw.au-row{grid-column:1 / -1;justify-content:center;font-size:10.5px;padding:2px 6px}.acts-g .auto-sw.au-row .au-knob{display:none}
.acts-g .auto-sw.au-row.is-on{background:rgba(107,227,165,.1)}
/* bulk confirm */
.au-ck .au-list{max-height:40vh;overflow-y:auto;overflow-x:hidden}
.au-ck .au-skip{margin:8px 0 0;font-size:13px;color:#c8d3ef}.au-ck .au-skip summary{cursor:pointer;font-weight:650}
.au-ck .au-skip ul{margin:6px 0 0;padding-left:18px;max-height:24vh;overflow-y:auto;overflow-x:hidden}.au-ck .au-skip li{margin:2px 0;overflow-wrap:anywhere}
