.access-gate {
  width: min(430px, 100%);
  margin: clamp(26px, 8vh, 95px) auto;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 22px;
  box-shadow: 0 7px 30px #25233209;
}
.access-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.access-identity strong,
.access-identity small {
  display: block;
}
.access-identity strong {
  font-size: 1rem;
}
.access-identity small {
  color: #6b6770;
  margin-top: 3px;
}
.access-gate h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.access-gate p,
.access-form > p,
.access-profile p {
  color: #686571;
  line-height: 1.6;
  font-size: 0.92rem;
}
.access-gate > p {
  margin: 8px 0 22px;
}
.access-gate form,
.access-form {
  display: grid;
  gap: 14px;
}
.access-form fieldset {
  border: 1px solid #e0dfe4;
  border-radius: 10px;
  padding: 10px;
  margin: 0;
  min-width: 0;
}
.access-form legend {
  padding: 0 4px;
  font-weight: 600;
}
.access-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.access-grants th,
.access-grants td {
  padding: 8px 10px;
}
.access-grants td,
.access-grants thead th:not(:first-child) {
  text-align: center;
}
.access-grants input,
.access-checks input {
  width: 17px;
  height: 17px;
  accent-color: #0670ce;
}
.access-error {
  background: #fff1ed;
  color: #8f392b;
  padding: 11px 14px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.access-error[hidden] {
  display: none;
}
.access-profile {
  padding: 4px 20px 18px;
}
.access-profile p {
  margin-top: 6px;
}
.access-log-detail,
.access-scope {
  min-width: 160px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.access-audit-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 18px;
}
@media (max-width: 840px) {
  .access-audit-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .access-gate {
    margin-top: 20px;
  }
}
