* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--surface-page); color: var(--text); font: 1rem/1.5 var(--font-body); }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; padding: .75rem clamp(1rem, 4vw, 3rem); background: var(--surface-nav); color: var(--text-on-nav); }
.brand, .staff { display: flex; align-items: center; gap: .75rem; }
.brand { font: 700 1rem var(--font-display); color: inherit; text-decoration: none; }
.brand img { border-radius: var(--radius-sm); }
.staff { flex-wrap: wrap; justify-content: flex-end; font-size: var(--text-sm); }
.staff span { overflow-wrap: anywhere; }
main { max-width: 1160px; margin: 0 auto; padding: clamp(1rem, 4vw, 3rem); }
h1, h2, h3 { margin: 0 0 1rem; font-family: var(--font-display); line-height: var(--leading-tight); }
h1 { font-size: clamp(1.55rem, 4vw, 2rem); }
h2 { overflow-wrap: anywhere; font-size: 1.2rem; }
h3 { margin-top: 1.2rem; font-size: 1rem; }
.panel, dialog { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: clamp(1rem, 2.8vw, 1.6rem); box-shadow: var(--shadow-1); }
.login { max-width: 30rem; margin: clamp(1rem, 10vh, 6rem) auto; }
.muted { color: var(--text-muted); }
.filters { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; }
.filters label:first-child { flex: 1 1 15rem; }
.filters label:nth-child(2) { flex: 0 1 13rem; }
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: var(--text-sm); }
input, select, textarea, button, .primary { min-height: var(--touch); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--surface-card); padding: .55rem .75rem; font: inherit; }
button, .primary { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer; }
.primary { background: var(--accent); color: var(--text-on-accent); border-color: transparent; text-decoration: none; }
.primary:hover { background: var(--accent-hover); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
table { width: 100%; margin: 1.15rem 0 0; border-collapse: collapse; }
th, td { text-align: start; padding: .75rem; border-bottom: 1px solid var(--border); }
th { background: var(--surface-sunken); font-size: var(--text-sm); }
td:first-child { font-weight: 650; overflow-wrap: anywhere; }
td:last-child, th:last-child { text-align: end; }
.badge { padding: .25rem .55rem; border-radius: var(--radius-pill); background: var(--positive-soft); color: var(--positive); font-size: var(--text-sm); white-space: nowrap; }
.badge.suspended { background: var(--warning-soft); color: var(--warning); }
.paging { display: flex; align-items: center; justify-content: end; gap: .75rem; margin-top: 1rem; }
dialog { color: var(--text); width: min(92vw, 36rem); max-height: 86vh; overflow-y: auto; }
dialog::backdrop { background: var(--scrim); }
.detail-top { display: flex; gap: .75rem; justify-content: space-between; align-items: start; }
#access-form { display: grid; gap: .6rem; margin-top: 1.25rem; }
#access-form button { justify-self: start; }
#workspaces, #audit { margin: 0; padding-inline-start: 1.25rem; }
#workspaces li, #audit li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.visually-hidden { width: 1px; height: 1px; overflow: hidden; position: absolute; clip-path: inset(50%); }
@media (max-width: 600px) {
  .staff span { display: none; }
  th, td { padding: .55rem .3rem; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  table { table-layout: fixed; }
  th:nth-child(2) { width: 4.6rem; }
  th:nth-child(4) { width: 4.25rem; }
  td button { padding-inline: .35rem; font-size: var(--text-sm); }
}
