.super-stats {
  grid-template-columns: repeat(5, 1fr);
}

[data-super-page][hidden] {
  display: none !important;
}

.parent-create-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.parent-create-form .field {
  margin-bottom: 0;
}

.parent-create-form > .btn,
.parent-create-form > .super-stepup-note {
  grid-column: 1 / -1;
}

.parent-create-form > .btn {
  justify-self: end;
  margin-bottom: 0;
  min-height: 42px;
}

.parent-edit-card {
  width: min(760px, 100%);
}

#parentEditForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

#parentEditForm > .btn {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 10px;
}

#parentEditForm textarea {
  min-height: 88px;
  resize: vertical;
}

.super-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 130px;
}

.security-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.security-form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.security-form h3 {
  margin-top: 0;
}

.totp-enrollment-card {
  width: min(540px, 100%);
}

.totp-enrollment-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.totp-enrollment-content img {
  display: block;
  max-width: 100%;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: #fff;
}

.manual-secret {
  overflow-wrap: anywhere;
  margin-bottom: 18px;
  text-align: center;
}

#totpConfirmForm {
  width: 100%;
}

#totpConfirmForm .btn {
  width: 100%;
}

.security-required-card {
  width: min(500px, 100%);
}

.security-required-actions {
  display: flex;
  justify-content: flex-end;
}

.parent-totp-reset-card {
  width: min(620px, 100%);
}

.parent-totp-reset-card textarea {
  min-height: 88px;
  resize: vertical;
}

.security-reset-warning {
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid #ff9f43;
  border-radius: 12px;
  background: rgba(255, 107, 53, .12);
  color: #ffd3bd;
  line-height: 1.6;
}

.super-security-events {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.super-security-events table {
  min-width: 720px;
}

.super-performance table {
  min-width: 1060px;
}

.performance-retention-note {
  margin: 16px 0 0;
}

@media (max-width: 1000px) {
  .super-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .parent-create-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .super-stats,
  .parent-create-form,
  #parentEditForm,
  .security-grid {
    grid-template-columns: 1fr;
  }

  #parentEditForm > .btn {
    grid-column: auto;
    width: 100%;
  }
}
