:root {
  --navy: #121e35;
  --cobalt: #2854d9;
  --mint: #4fe0be;
  --frost: #eef2f8;
  --ink: #15243b;
  --muted: #53637c;
  --line: #d2dceb;
  --green: #185f47;
  --pink: #9d283c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font:
    15px/1.55 system-ui,
    sans-serif;
}
[hidden] {
  display: none !important;
}
.auth-panel {
  max-width: 440px;
  margin: 36px auto;
  padding: 24px;
}
.auth-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.auth-form p {
  margin: 0;
}
.auth-form label {
  display: grid;
  gap: 4px;
}
.auth-form input {
  width: 100%;
  min-width: 0;
}
#setup-qr {
  max-width: 100%;
  height: auto;
}
.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
a {
  color: #2248c5;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: #2545a9;
  min-height: 40px;
  background: #fff;
  border: 1px solid #a6b6d2;
  border-radius: 9px;
  padding: 7px 13px;
  font-weight: 700;
  line-height: 1.25;
}
button:hover:enabled {
  background: #eaf0ff;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button.primary {
  color: white;
  background: var(--cobalt);
  border-color: var(--cobalt);
}
button.primary:hover:enabled {
  background: #2045b8;
}
:focus-visible {
  outline: 3px solid #456af5;
  outline-offset: 3px;
}
input {
  min-height: 42px;
  border: 1px solid #9aabc8;
  border-radius: 8px;
  padding: 7px 10px;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: white;
}
label {
  display: grid;
  gap: 5px;
  font:
    700 13px/1.3 system-ui,
    sans-serif;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
}
h2 {
  font-size: 1.2rem;
}
h3 {
  font-size: 1.02rem;
}
p {
  color: var(--muted);
}
.small {
  font-size: 13px;
  color: var(--muted);
}
.wrap {
  width: min(100% - 44px, 1190px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: 6px;
  padding: 7px 10px;
  background: #fff;
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}
.topbar {
  background: var(--navy);
  color: #fff;
}
.header-inner {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}
.brand img {
  border-radius: 10px;
}
.identity {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 13px;
  font-size: 13px;
  min-width: 0;
}
.identity span {
  overflow-wrap: anywhere;
}
.identity a {
  color: #bee8db;
  font-weight: 750;
  white-space: nowrap;
}
.identity button {
  color: #e3ecff;
  background: #1e365e;
  border-color: #6882b2;
}
.identity button:hover:enabled {
  background: #294975;
}
.main {
  padding-block: 21px 28px;
  min-height: 70vh;
}
.views {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.views button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.views button[aria-pressed="true"] {
  background: #e1e9ff;
  border-color: #b6c7ff;
  color: #2142a9;
}
.view-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.view-head p {
  margin: 5px 0 0;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 15px;
}
.metrics div,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.metrics div {
  padding: 14px 17px;
}
.metrics dt {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.metrics dd {
  font-size: 27px;
  color: #254ac2;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.directory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: 15px;
}
.panel {
  padding: 17px;
}
.gate {
  max-width: 590px;
  margin: 35px auto;
  padding: 24px;
}
.gate p,
.gate button {
  margin-top: 11px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(80px, 0.58fr) minmax(
      122px,
      0.72fr
    ) auto;
  gap: 8px;
  align-items: end;
}
.result-status {
  min-height: 1.6em;
  margin: 10px 0 3px;
}
.row-list {
  display: grid;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.row-list li {
  min-width: 0;
}
.registration-row,
.staff-row,
.audit-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f9fbff;
  width: 100%;
  text-align: left;
  color: var(--ink);
  min-height: 50px;
}
.registration-row[aria-pressed="true"] {
  background: #e9eeff;
  border-color: #9cb1ff;
}
.initials {
  display: grid;
  place-items: center;
  color: #254ac2;
  background: #e2eaff;
  border-radius: 8px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 800;
}
.row-name,
.row-meta {
  display: block;
  overflow-wrap: anywhere;
}
.row-name {
  font-weight: 760;
}
.row-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.status {
  padding: 3px 7px;
  border-radius: 15px;
  background: #e0f4e9;
  color: var(--green);
  font-size: 11px;
  white-space: nowrap;
  font-weight: 750;
}
.status.off {
  background: #edf1f7;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
}
.details p {
  margin-top: 7px;
}
.details h3 {
  margin-block: 16px 7px;
}
.details dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 11px;
  font-size: 13px;
  margin-top: 10px;
}
.details dt {
  font-weight: 750;
}
.details dd {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.install-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.install-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f9fbff;
}
.install-list code {
  display: block;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.alert {
  border: 1px solid #e8b4c0;
  padding: 9px 13px;
  margin-bottom: 12px;
  color: #84253a;
  background: #fff0f3;
  border-radius: 9px;
}
.page-panel {
  max-width: 830px;
}
.page-panel .small {
  margin: 10px 0 6px;
}
.staff-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 13px 0;
}
.staff-row,
.audit-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.audit-date {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.footer {
  padding: 12px 0 22px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
@media (max-width: 880px) {
  .filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .wrap {
    width: min(100% - 32px, 1190px);
  }
}
@media (max-width: 675px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
  .detail {
    scroll-margin-top: 10px;
  }
  .identity {
    gap: 8px;
  }
  .identity span {
    display: none;
  }
  .view-head {
    align-items: flex-start;
  }
  .panel {
    padding: 14px;
  }
}
@media (max-width: 390px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .brand {
    font-size: 16px;
  }
  .identity {
    font-size: 12px;
  }
  .identity button {
    padding: 4px 7px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters button {
    grid-column: 1/-1;
  }
  .staff-form {
    grid-template-columns: 1fr;
  }
}
