/* Админка: те же токены, что у приложения; колонка шире, строки-карточки пользователей */
body { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 28px 64px; }
.adm { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.adm-head { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.adm-head h1 { margin: 2px 0 0; font-size: clamp(26px, 6vw, 34px); }
.adm-head .top-links a { font-size: 13px; text-decoration: none; }
.adm-sec { display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 18px; }
.sec-head .count { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 500; }
.adm-search { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 11px; font-size: 14px; min-width: 0; width: min(280px, 100%); }
.adm-search:focus, .access-add input:focus { outline: none; border-color: var(--accent); }

.tile small { font-size: 12px; color: var(--muted); }
.tile.mode-open b { color: var(--high); font-size: 18px; }
.tile.mode-list b { color: var(--c-home); font-size: 18px; }

.ulist, .alist { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ulist:empty, .alist:empty { display: none; }
.urow { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.urow:first-child { border-top: 0; }
.urow.blocked .who-name { color: var(--muted); text-decoration: line-through; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ava { width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; overflow: hidden; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-name { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.who-mail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pill { font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.pill.admin { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pill.blocked { color: var(--high); border-color: color-mix(in srgb, var(--high) 40%, var(--line)); }
.ustats { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-left: 48px; }
.ustats b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.uacts { display: flex; gap: 6px; flex-wrap: wrap; padding-left: 48px; }
.uacts .chip, .arow .chip { padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.chip.warn { color: var(--high); }
.chip.armed { background: var(--high); color: #fff; border-color: var(--high); }
@media (max-width: 560px) { .ustats, .uacts { padding-left: 0; } }

.access-mode { border-radius: 12px; padding: 12px 14px; font-size: 14px; border: 1px solid var(--line); background: var(--surface); }
.access-mode.open { border-color: color-mix(in srgb, var(--high) 45%, var(--line)); }
.access-mode b { display: block; margin-bottom: 2px; }
.access-add { display: flex; gap: 8px; flex-wrap: wrap; }
.access-add input { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 11px; font-size: 14px; }
.arow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.arow:first-child { border-top: 0; }
.arow .em { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.arow .em small { display: block; color: var(--muted); font-size: 12px; }
.arow .reg { font-size: 12px; color: var(--c-home); white-space: nowrap; }
.arow .reg.no { color: var(--muted); }
