.error-document {
  margin: 0;
  background: #f7f6f4;
  color: #302c29;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.error-page-wrapper,
.error-page-wrapper *,
.error-screen,
.error-screen * {
  box-sizing: border-box;
}

.error-page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.error-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 80px);
}

.error-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #302c29;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.45px;
  text-decoration: none;
}

.error-brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #0e6d79;
  border-radius: 50%;
  background: #0e6d79;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -1px;
}

.error-brand-mark::before {
  position: absolute;
  inset: 7px;
  border: 2px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  transform: rotate(-25deg);
}

.error-brand-mark::after {
  position: absolute;
  top: 13px;
  right: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b2e1dc;
  content: "";
}

.error-brand-text {
  line-height: 1.2;
}

.error-brand-text small {
  display: block;
  margin-top: 3px;
  color: #625d58;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: .02em;
}

.error-language {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #625d58;
  font-size: 13px;
}

.error-language select {
  min-height: 40px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #d2ceca;
  border-radius: 6px;
  background: #fff;
  color: #302c29;
  font: inherit;
  cursor: pointer;
}

.error-page-wrapper > #error-content {
  display: grid;
  flex: 1;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 40px clamp(20px, 5vw, 80px) 64px;
  overflow: visible;
}

.error-screen {
  display: grid;
  grid-template-columns: minmax(240px, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  width: min(100%, 1020px);
  margin: 0 auto;
  color: #302c29;
}

#app-content .error-screen {
  min-height: min(650px, calc(100dvh - 160px));
  padding: 40px 0;
}

.error-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  isolation: isolate;
}

.error-art::before,
.error-art::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.error-art::before {
  inset: 11%;
  border-radius: 50%;
  background: #ebe9e4;
}

.error-art::after {
  inset: 27% 5%;
  border-top: 1px solid #d3d0c9;
  border-bottom: 1px solid #d3d0c9;
  transform: rotate(-35deg);
}

.error-orbit {
  position: absolute;
  inset: 2%;
  border: 1px solid #d8d5ce;
  border-radius: 50%;
}

.error-orbit::before,
.error-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.error-orbit::before {
  top: 18%;
  right: 8%;
  width: 13px;
  height: 13px;
  background: #0e6d79;
  box-shadow: 0 0 0 7px #f7f6f4;
}

.error-orbit::after {
  bottom: 12%;
  left: 14%;
  width: 8px;
  height: 8px;
  background: #aca59b;
  box-shadow: 0 0 0 6px #f7f6f4;
}

.error-code {
  position: relative;
  color: #302c29;
  font-size: clamp(100px, 12vw, 160px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.08em;
  transform: translateX(-.04em);
  font-variant-numeric: lining-nums tabular-nums;
}

.error-dot {
  position: absolute;
  top: 23%;
  left: 13%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0e6d79;
}

.error-copy {
  min-width: 0;
  max-width: 480px;
}

.error-screen .error-eyebrow {
  margin: 0 0 16px;
  color: #0e6d79;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.error-screen h1 {
  margin: 0;
  color: #302c29;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.error-screen .error-description {
  margin: 22px 0 0;
  color: #514c47;
  font-size: 17px;
  line-height: 1.65;
}

.error-screen .error-guidance {
  margin: 12px 0 0;
  color: #6a645e;
  font-size: 14px;
  line-height: 1.65;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.error-screen .error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.error-screen .error-primary {
  border-color: #0e6d79;
  background: #0e6d79;
  color: #fff;
}

.error-screen .error-primary:hover {
  border-color: #09525c;
  background: #09525c;
  color: #fff;
}

.error-screen .error-secondary {
  border-color: #cbc6be;
  background: transparent;
  color: #302c29;
}

.error-screen .error-secondary:hover {
  border-color: #a9a096;
  background: #ebe9e4;
  color: #302c29;
}

.error-page-wrapper a:focus-visible,
.error-page-wrapper select:focus-visible,
.error-screen .error-button:focus-visible {
  outline: 3px solid #0e6d79;
  outline-offset: 4px;
}

.error-screen .error-status-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  color: #756e67;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .09em;
}

.error-status-note > span:first-child,
.error-status-note > i:first-child {
  display: inline-block;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #92897e;
}

.error-footer {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: #f7f6f4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 8px 16px;
  color: #756e67;
  font-size: 12px;
  line-height: 1.6;
}
.error-footer .footer-content:last-child { margin-left: auto; text-align: right; }
.error-footer .privacy-link { color: inherit; }

@media (max-width: 760px) {
  .error-header {
    gap: 16px;
    padding-top: 20px;
  }

  .error-language {
    gap: 6px;
  }

  .error-page-wrapper > #error-content {
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .error-screen {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 24px;
    max-width: 480px;
  }

  #app-content .error-screen {
    min-height: 0;
    padding: 20px 0 40px;
  }

  .error-art {
    width: min(100%, 240px);
  }

  .error-code {
    font-size: 100px;
  }

  .error-copy {
    width: 100%;
    text-align: center;
  }

  .error-screen .error-eyebrow {
    margin-bottom: 12px;
  }

  .error-screen .error-description {
    margin-top: 18px;
    font-size: 16px;
  }

  .error-actions,
  .error-screen .error-status-note {
    justify-content: center;
  }

  .error-footer {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .error-header {
    flex-wrap: wrap;
  }

  .error-language {
    margin-left: auto;
  }

  .error-art {
    width: 200px;
  }

  .error-code {
    font-size: 88px;
  }

  .error-actions {
    gap: 10px;
  }

  .error-screen .error-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-screen .error-button {
    transition: none;
  }
}
