.boot-recovery,
.boot-recovery * {
  box-sizing: border-box;
}

.boot-recovery {
  position: fixed;
  inset: 0;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  overflow: auto;
  place-items: center;
  color: #262626;
  background: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.boot-recovery__card {
  width: min(100%, 30rem);
  padding: 32px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgb(0 0 0 / 8%);
}

.boot-recovery__brand {
  display: block;
  margin-bottom: 16px;
  color: #1677ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boot-recovery__title {
  margin: 0;
  color: inherit;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
}

.boot-recovery__description,
.boot-recovery__detail {
  margin: 12px 0 0;
  color: #595959;
  overflow-wrap: anywhere;
}

.boot-recovery__detail {
  margin-top: 8px;
}

.boot-recovery__action {
  display: inline-flex;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #1677ff;
  border-radius: 6px;
  color: #ffffff;
  background: #1677ff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.boot-recovery__action:hover {
  border-color: #0958d9;
  background: #0958d9;
}

.boot-recovery__action:focus-visible {
  outline: 3px solid #faad14;
  outline-offset: 3px;
}

.boot-recovery[hidden] {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  .boot-recovery {
    color: #f5f5f5;
    background: #141414;
  }

  .boot-recovery__card {
    border-color: #424242;
    background: #1f1f1f;
    box-shadow: 0 10px 30px rgb(0 0 0 / 32%);
  }

  .boot-recovery__brand {
    color: #69b1ff;
  }

  .boot-recovery__description,
  .boot-recovery__detail {
    color: #bfbfbf;
  }

  .boot-recovery__action {
    border-color: #69b1ff;
    color: #141414;
    background: #69b1ff;
  }

  .boot-recovery__action:hover {
    border-color: #91caff;
    background: #91caff;
  }
}

@media (max-width: 30rem) {
  .boot-recovery {
    place-items: start stretch;
  }

  .boot-recovery__card {
    padding: 24px 20px;
  }

  .boot-recovery__action {
    width: 100%;
  }
}
