.security-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 10, .78);
  backdrop-filter: blur(8px);
}

.security-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #2b3749;
  border-radius: 20px;
  background: #0f151e;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

.security-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.security-heading h2,
.security-step h3 {
  margin: 0;
}

.security-step,
.security-form {
  display: grid;
  gap: 16px;
}

.security-form {
  gap: 12px;
}

.security-step-copy {
  margin: 0;
  color: #9eabbc;
  line-height: 1.6;
}

.security-secret {
  display: block;
  padding: 13px;
  border: 1px solid #30415a;
  border-radius: 12px;
  background: #0a0f16;
  color: #dce8f8;
  font-size: 13px;
  overflow-wrap: anywhere;
  user-select: all;
}

.security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.security-recovery-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-recovery-list li {
  padding: 10px;
  border: 1px solid #30415a;
  border-radius: 10px;
  background: #0a0f16;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  user-select: all;
}

.security-warning {
  padding: 12px;
  border: 1px solid #4a3e27;
  border-radius: 12px;
  background: #17140e;
  color: #d7c69a;
  font-size: 12px;
  line-height: 1.5;
}

.security-danger {
  border-color: #743f45;
  background: #28171a;
  color: #ffb7bb;
}

.security-danger:hover {
  background: #351c20;
}

.security-backdrop[aria-busy="true"] {
  cursor: progress;
}

@media (max-width: 620px) {
  .security-backdrop {
    padding: 12px;
  }

  .security-card {
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .security-recovery-list {
    grid-template-columns: 1fr;
  }
}
