.adm {max-width:1180px;margin:clamp(28px,5vw,78px) auto;padding:0 clamp(12px,3vw,38px) 72px}
.adm h1 {font-size:clamp(30px,4vw,48px);line-height:1.04;letter-spacing:-.045em;margin:0 0 30px}
.adm-tools,.adm-tools>div,.adm-tools nav,.adm-dialog header {display:flex;align-items:center;gap:8px}
.adm-tools {justify-content:space-between;flex-wrap:wrap;border-bottom:1px solid #343a3d;padding-bottom:16px;margin-bottom:12px}
.adm-tools nav {flex-wrap:wrap;min-width:0}
.adm-tools nav button {background:transparent;border:1px solid transparent;color:#adbac1;font:inherit;font-weight:600;padding:9px 13px;border-radius:6px}
.adm-tools nav button[aria-pressed=true] {border-color:#5b5046;color:#ffd4ad;background:#302920}
.adm-table {overflow:auto}
.adm table {width:100%;border-collapse:collapse;text-align:left;font-size:14px}
.adm th {font-size:12px;font-weight:500;color:#a9b5bc;padding:10px 12px}
.adm td {border-top:1px solid #30373a;padding:15px 12px;vertical-align:middle}
.adm td:first-child,.adm th:first-child {padding-left:0}
.adm td:last-child {text-align:right}
.adm small,.adm-dialog small {display:block;color:#acb8bf;font-size:12px;line-height:1.45}
.adm-state {white-space:nowrap}
.adm-state[data-state=banned],.adm-state[data-state=retiring],.adm-danger-button,.adm [role=alert],.adm-dialog [role=alert] {color:#ffb1a1}
.adm-dialog {color:#e9eeef;background:#171b1e;border:1px solid #495055;border-radius:12px;padding:22px;width:min(420px,calc(100vw - 28px));max-height:85dvh;overflow:auto}
.adm-dialog::backdrop {background:rgb(3 6 9 / 72%)}
.adm-dialog header {justify-content:space-between}
.adm-dialog h2 {margin:0;font-size:23px;overflow-wrap:anywhere}
.adm-dialog h3 {margin:0;font-size:16px}
.adm-dialog form {display:grid;gap:12px;border-top:1px solid #3a4145;padding:16px 0}
.adm-dialog label {display:grid;gap:5px;font-size:13px;color:#c8d2d5}
.adm-dialog input,.adm-dialog select {width:100%;min-width:0;border-radius:6px;border:1px solid #495055;background:#101417;color:#f0f4f5;padding:9px;font:inherit}
.adm-dialog button {justify-self:start}
.adm-dialog p {font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.adm-dialog [role=alert]:empty {display:none}
.adm-pair {display:grid;grid-template-columns:2fr 1fr;gap:10px}
.adm-membership {border:1px solid #353c40;border-radius:10px;padding:18px;margin:18px 0;max-width:850px}
.adm-membership header {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.adm-membership h2,.adm-membership p {margin:0 0 8px}
.adm-membership form {display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-top:14px}
.adm-membership label {display:grid;max-width:100%;gap:5px;color:#b4c0c4}
.adm-membership select {width:100%;min-width:0;padding:8px;color:#f0f4f5;background:#171c20;border:1px solid #495055;border-radius:6px}
.adm-membership small {flex-basis:100%;color:#aab7bc}
.adm-membership [role=alert] {color:#ffb1a1}
.adm-danger summary {cursor:pointer;padding:12px 0;color:#ffb1a1}
.adm button:focus-visible,.adm-dialog :is(input,select,button,summary):focus-visible {outline:2px solid #f5aa76;outline-offset:3px}
@media (max-width:680px) {
  .mast-inner nav:has(a[href="#admin"]) {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
  .mast-inner nav:has(a[href="#admin"]) a {justify-content:center;flex-direction:column;gap:3px;padding:6px 0;font-size:11px}
  .adm-table table,.adm-table tbody,.adm-table tr {display:block}
  .adm-table thead {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  .adm-table tr {border-bottom:1px solid #343a3d;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:15px 0}
  .adm-table td {display:block;border:0;padding:0;overflow-wrap:anywhere}
  .adm-table td:first-child {grid-column:1;grid-row:1}
  .adm-table td:last-child {grid-column:2;grid-row:1;text-align:right}
}
