/* Shared control: 44×28 track, 20px thumb, no font-baseline positioning. */
.admin-body .admin-switch{--switch-on:var(--admin-link,#245b99);position:relative;display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;flex:0 0 auto;min-height:32px;min-width:0;width:auto;max-width:100%;margin:0;padding:0;vertical-align:middle;cursor:pointer;isolation:isolate}
.admin-body .admin-switch input[type=checkbox]{position:absolute;inset:0 auto 0 0;z-index:1;width:44px!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0;cursor:inherit}
.admin-body .admin-switch>.admin-switch-track{position:relative;display:flex;align-items:center;flex:0 0 44px;box-sizing:border-box;width:44px;height:28px;padding:3px;border:1px solid var(--admin-line,#adbacb);border-radius:16px;background:var(--admin-muted,#708097);transition:background-color .18s,border-color .18s;pointer-events:none}
.admin-switch-thumb{display:grid;place-items:center;position:relative;box-sizing:border-box;width:20px;height:20px;flex:0 0 20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .18s}
.admin-body .admin-switch input:checked+.admin-switch-track{background:var(--switch-on);border-color:var(--switch-on)}
.admin-switch input:checked+.admin-switch-track .admin-switch-thumb{transform:translateX(16px)}
.admin-switch input:focus-visible+.admin-switch-track{outline:3px solid var(--admin-link,#245b99);outline-offset:3px}
.admin-body .admin-switch .admin-switch-caption{font-size:13px;line-height:1.4;color:var(--admin-ink,#203550)}
.admin-switch:has(input:disabled){opacity:.5;cursor:not-allowed}
.admin-body .admin-switch[aria-busy=true]{opacity:1;cursor:wait}
.admin-switch[aria-busy=true] .admin-switch-thumb:after{content:"";width:12px;height:12px;box-sizing:border-box;border:2px solid #b5c7dc;border-top-color:#245b99;border-radius:50%;animation:admin-switch-spin .7s linear infinite}
.admin-switch-feedback{display:block;max-width:260px;font-size:12px;line-height:1.4;color:var(--admin-muted,#62738b);margin-top:5px}
.admin-switch-feedback.is-error{color:var(--admin-red,#c43045)}
.content-order-heading>.admin-switch{margin:0;flex:0 0 auto}
@keyframes admin-switch-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.admin-switch-thumb,.admin-switch-track{transition:none}.admin-switch[aria-busy=true] .admin-switch-thumb:after{animation-duration:1.5s}}

.admin-system-badge{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid var(--admin-line,#c7d8ea);border-radius:5px;background:var(--admin-soft,#edf4fc);color:var(--admin-link,#245b99);font-size:11px;font-weight:600;line-height:1.4}

.admin-body .admin-table .admin-switch-column{width:44px;min-width:44px;vertical-align:middle;text-align:center}.admin-switch-column>form{margin:0}.admin-switch-column .admin-switch-feedback{width:130px;overflow-wrap:anywhere;text-align:left}.admin-switch-column small:empty{display:none}

/* Publication is a full-width clickable label, without a second button frame. */
html .admin-body .admin-switch.record-publish-switch,
html .admin-body .record-publication .admin-switch,
html .admin-body .content-publication .admin-switch,
html .admin-body .admin-editor-side .admin-switch{
    box-sizing:border-box;width:100%;max-width:none;min-height:44px;
    padding:6px 0;border:0;border-radius:0;background:transparent;box-shadow:none;
}
/* Keep the publication label and save button full width on narrow screens too. */
.admin-body .record-publication{display:block}
.admin-body .record-publication>.admin-primary{width:100%;max-width:none;margin-top:10px}
.admin-access-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;min-width:0}
.admin-access-panels>.admin-panel{min-width:0;margin-bottom:0}
.admin-access-permissions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:18px}
.admin-body .admin-access-permissions>.admin-switch{width:100%;min-height:36px}
@media(max-width:1200px){.admin-access-panels{grid-template-columns:minmax(0,1fr)}}
