.access-status-screen { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 32px 20px; }
body[data-auth="pending"] { padding: 0; background: var(--surface); }
body[data-auth="pending"] > .skip-link { display: none; }
.access-status-screen .brand-mark { display: grid; place-items: center; width: 44px; height: 44px; font-size: 30px; }
body:has(#access-view:not([hidden])) .topbar-end { margin-left: auto; }
.access-status-screen > p { max-width: 480px; line-height: 1.6; }
.access-status-screen > strong { overflow-wrap: anywhere; }
.access-status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.access-counts { display: flex; gap: 36px; border-block: 1px solid var(--line); padding: 20px 0; margin-bottom: 24px; }
.access-counts > div { display: grid; gap: 8px; }
.access-counts span { font-size: 12px; color: var(--muted); }
.access-counts strong { font-size: 26px; font-weight: 650; }
.access-toolbar { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(150px, 180px) minmax(140px, 180px) 36px; align-items: end; gap: 14px; margin-bottom: 20px; }
.access-toolbar .field { margin: 0; }
.access-toolbar .icon-button { margin-bottom: 3px; }
.access-table { width: 100%; }
.access-table td:first-child { max-width: 290px; overflow-wrap: anywhere; }
.access-table td { vertical-align: middle; }
.access-table .button { white-space: nowrap; }
.access-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 5px 8px; border-radius: 4px; white-space: nowrap; }
.access-badge.approved { background: var(--success-bg); color: var(--success-ink); }
.access-badge.pending { background: var(--pending-bg); color: var(--pending-ink); }
.access-badge.suspended, .access-badge.rejected { background: var(--error-bg); color: var(--error-ink); }
.access-protected, .access-empty { color: var(--muted); font-size: 12px; }
.access-empty { padding: 28px 0; }
.access-pagination { display: flex; align-items: center; gap: 8px; padding: 16px 0 28px; }
.access-pagination > span { flex: 1; font-size: 12px; color: var(--muted); }
.access-audit { border-top: 1px solid var(--line); padding-top: 24px; }
.access-audit h2, .access-dialog h2 { font-size: 18px; }
.access-events { margin: 14px 0 0; padding: 0; list-style: none; }
.access-events li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.access-events li > div { min-width: 0; display: grid; gap: 6px; align-content: start; }
.access-events li > div:last-child { text-align: right; }
.access-events small { color: var(--muted); }
.access-events p { margin: 2px 0 0; }
.access-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.access-dialog .modal-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.access-target { color: var(--muted); margin: 8px 0 24px; overflow-wrap: anywhere; }
#access-permissions { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; margin: 20px 0; }
#access-permissions legend { font-size: 13px; font-weight: 650; padding-right: 10px; }
#access-permissions .check-field { margin: 12px 0; align-items: flex-start; }
#access-permissions input { flex-shrink: 0; }
.access-dialog .modal-actions { flex-wrap: wrap; }
.access-dialog button[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 760px) {
  .access-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 12px; }
  .access-toolbar > label:first-child { grid-column: 1 / -1; }
  .access-toolbar input, .access-toolbar select { min-width: 0; width: 100%; }
  .access-counts { gap: 20px; justify-content: space-between; }
  .access-counts > div { min-width: 0; }
  .access-events li { grid-template-columns: 1fr; gap: 10px; }
  .access-events li > div:last-child { text-align: left; }
}
@media (max-width: 640px) {
  .access-table { min-width: 0; display: block; }
  .access-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .access-table tbody { display: block; }
  .access-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 16px 12px; border-bottom: 1px solid var(--line); }
  .access-table td { padding: 0; border: 0; max-width: none; }
  .access-table td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: center; }
  .access-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); align-self: center; }
  .access-table td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; }
  .access-table td:nth-child(4) { display: none; }
  .access-table td:nth-child(5) { grid-column: 2; grid-row: 1; text-align: right; align-self: center; }
}
