/* accounts page styles */
.acc-row { cursor: pointer; }
.badge.acc-admin { background: var(--accent-wash); color: var(--accent-ink); border-color: transparent; }
.badge.acc-member { padding-right: 2px; }
.badge.acc-member button { height: 16px; width: 16px; padding: 0; border-radius: 50%; }
.badge.acc-member button svg { width: 10px; height: 10px; }
.acc-groups { max-height: 420px; overflow: auto; }
select.acc-add { height: 22px; font-size: 11.5px; padding: 0 4px; border-radius: 99px; color: var(--text-2); }
.acc-kv { grid-template-columns: 150px 1fr; row-gap: 10px; align-items: center; }
.acc-kv dd { word-break: normal; }
.acc-danger { border-color: color-mix(in srgb, var(--critical) 35%, var(--border)); }

/* toggle switch */
.acc-switch { position: relative; display: inline-flex; width: 36px; height: 20px; flex: none; cursor: pointer; }
.acc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.acc-slider { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .15s; }
.acc-slider::before { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.acc-switch input:checked + .acc-slider { background: var(--accent); border-color: var(--accent); }
.acc-switch input:checked + .acc-slider::before { transform: translateX(16px); }
.acc-switch input:focus-visible + .acc-slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-switch input:disabled + .acc-slider { opacity: .45; cursor: not-allowed; }

/* password strength */
.acc-strength { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.acc-strength span { display: block; height: 100%; width: 0; transition: width .2s; }
.acc-strength .weak { background: var(--critical); }
.acc-strength .fair { background: var(--warning); }
.acc-strength .good { background: var(--good); }
