.bot-access { max-width: 840px; margin: 0 0 16px; padding: clamp(14px, 3vw, 22px); overflow-wrap: anywhere; }
.bot-access h2, .bot-access h3 { margin: 0; color: var(--brand); }
.bot-access h2 { font-size: 20px; }
.bot-access h3 { font-size: 16px; }
.bot-heading, .bot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.bot-heading { justify-content: space-between; margin-bottom: 12px; }
.bot-actions { margin-top: 10px; }
.bot-actions:empty, .bot-feedback:empty { display: none; }
.bot-member { border-top: 1px solid var(--line); }
.bot-member > summary { min-height: 48px; padding: 11px 0; cursor: pointer; color: var(--brand); }
.bot-member-status { color: var(--muted); font-size: 14px; margin-left: 9px; }
.bot-member-form { margin: 8px 0 14px; }
.bot-grants, .bot-scope, .bot-categories { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.bot-scope { margin: 4px 0 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; }
.bot-scope legend { padding: 0 4px; font-size: 14px; font-weight: 700; }
.bot-categories { margin: 4px 0; }
.bot-choice { min-height: 44px; display: flex; gap: 10px; align-items: center; font-size: 15px; }
.bot-choice input { flex: none; margin: 0; width: 19px; height: 19px; accent-color: var(--brand); }
.bot-choice input[role="switch"] { appearance: none; width: 40px; height: 24px; border-radius: 16px; background: #65768c; position: relative; }
.bot-choice input[role="switch"]::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.bot-choice input[role="switch"]:checked { background: #197149; }
.bot-choice input[role="switch"]:checked::before { left: 19px; }
.bot-choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.bot-choice input:disabled, .bot-access button:disabled { opacity: .55; cursor: default; }
.bot-delivery { margin: 0 0 9px; color: var(--muted); font-size: 14px; }
.bot-delivery p { margin: 2px 0; }
.bot-admin, #bot-admins { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.bot-admin .sub { margin-left: 8px; }
.bot-rejection-list { margin: 10px 0 0; padding-left: 22px; }
.bot-rejection-list:empty { display: none; }
.bot-rejection-list li + li { margin-top: 8px; }
@media(max-width:680px){
  .bot-member-status { display: block; margin-left: 17px; }
  .bot-actions button { width: 100%; }
}
