.nav[hidden] { display: none !important; }

.login-card label {
  margin: 13px 0 7px;
  color: #aaa0a8;
  font-size: 12px;
  font-weight: 650;
}

.login-card label + input { margin: 0; }
.login-card strong { color: #f3e9ee; font-weight: 700; }
.login-card #inviteCode { text-transform: none; letter-spacing: 0; font-weight: 650; }
.login-card .login-secondary {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  color: #afa5ad;
  box-shadow: none;
}
.login-card .login-secondary:hover { background: rgba(255,255,255,.065); box-shadow: none; }

.access-heading,
.access-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.access-heading { min-height: 54px; margin-bottom: 16px; }
.access-heading h2,
.access-panel h3 { margin: 0; }

.access-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.access-stats article,
.access-panel {
  border: 1px solid rgba(255,255,255,.085);
  background: rgba(22,19,27,.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 14px 38px rgba(0,0,0,.16);
}

.access-stats article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 14px 16px;
  border-radius: 14px;
}

.access-stats span { color: #8f868e; font-size: 12px; font-weight: 620; }
.access-stats strong { color: #f6f1f4; font-size: 23px; font-weight: 680; letter-spacing: -.04em; }

.access-panel { min-width: 0; border-radius: 16px; padding: 18px; }
.access-panel .eyebrow { margin-bottom: 5px; }
.access-panel h3 { color: #eee9ec; font-size: 17px; }

.invite-create-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.invite-create-panel form { display: grid; grid-template-columns: 86px 92px 118px; align-items: end; gap: 8px; }
.invite-create-panel label { grid-column: 1 / 2; margin: 0 0 7px; color: #91878f; font-size: 11px; font-weight: 650; }
.invite-create-panel input { grid-column: 1 / 3; grid-row: 2; min-height: 42px; padding: 9px 12px; }
.invite-create-panel button {
  grid-column: 3;
  grid-row: 2;
  min-height: 42px;
  border: 1px solid rgba(240,165,198,.30);
  border-radius: 11px;
  background: linear-gradient(180deg,#ef9fc2,#d970a0);
  color: #1d0e15;
  font-size: 12px;
  font-weight: 760;
}
.access-result { grid-column: 1 / -1; min-height: 0; margin: 0; color: #b7abb3; font: 12px/1.55 "Cascadia Mono", monospace; }
.access-result:empty { display: none; }

.access-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.access-panel-title { margin-bottom: 14px; }
.access-table-wrap { width: 100%; overflow-x: auto; border: 1px solid rgba(255,255,255,.065); border-radius: 12px; }
.access-panel table { width: 100%; border-collapse: collapse; font-size: 12px; }
.access-panel th,
.access-panel td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.055); text-align: left; white-space: nowrap; }
.access-panel th { background: rgba(255,255,255,.025); color: #776f76; font-size: 10px; font-weight: 720; letter-spacing: .05em; text-transform: uppercase; }
.access-panel td { color: #aaa1a8; }
.access-panel tbody tr:last-child td { border-bottom: 0; }
.access-user { display: flex; align-items: center; gap: 9px; color: #eee8ec; font-weight: 680; }
.access-user-avatar { position: relative; display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: linear-gradient(145deg,rgba(240,165,198,.13),rgba(169,147,239,.10)); color: #a79aa3; }
.access-user-avatar svg { width: 15px; height: 15px; }
.access-user-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.access-invite-user { font-size: 11px; font-weight: 650; }
.access-invite-user .access-user-avatar { width: 25px; height: 25px; flex-basis: 25px; border-radius: 8px; }
.access-admin { margin-left: 2px; color: #efb1cd; font-size: 9px; letter-spacing: .06em; }
.access-status { display: inline-flex; align-items: center; gap: 6px; color: #817880; font-size: 11px; font-weight: 650; }
.access-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #625a61; }
.access-status.online { color: #8de0bc; }
.access-status.online::before { background: var(--green); box-shadow: 0 0 0 4px rgba(112,213,170,.09); }
.access-code { border: 0; background: none; color: #e8b5cc; font: 11px "Cascadia Mono", monospace; letter-spacing: 0; overflow-wrap: anywhere; text-align: left; cursor: copy; }
.access-code:hover { color: #ffd5e7; }
.access-state { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: rgba(112,213,170,.09); color: #81dab4; font-size: 10px; font-weight: 720; }
.access-state.used { background: rgba(255,255,255,.045); color: #817880; }
.access-state.revoked { background: rgba(239,130,149,.09); color: #d98191; }
.access-revoke { min-height: 28px; margin-left: 7px; padding: 4px 8px; border: 1px solid rgba(239,130,149,.16); border-radius: 8px; background: rgba(239,130,149,.06); color: #c97a89; font-size: 10px; font-weight: 680; }
.access-revoke:hover { border-color: rgba(239,130,149,.30); background: rgba(239,130,149,.11); color: #ef9bab; }
.access-empty { height: 74px; color: #716970 !important; text-align: center !important; }
.access-error { min-height: 18px; margin: 12px 2px 0; color: var(--red); font-size: 12px; }

@media (max-width: 1100px) {
  .access-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .access-stats { grid-template-columns: 1fr 1fr; }
  .access-stats article { align-items: flex-start; flex-direction: column; gap: 7px; }
  .invite-create-panel { grid-template-columns: 1fr; }
  .invite-create-panel form { grid-template-columns: minmax(0,1fr) 112px; }
  .invite-create-panel input { grid-column: 1; }
  .invite-create-panel button { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .login-card { animation: none; }
}
