.app-error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: #f7f5f0;
  color: #282921;
  font-family: Inter, Arial, sans-serif;
}
.app-error-card {
  width: min(100%, 560px);
}
.app-error-brand {
  display: inline-block;
  margin-bottom: 72px;
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.app-error-code {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #626650;
}
.app-error-card h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin: 16px 0;
}
.app-error-card > p:not(.app-error-code) {
  font-size: 16px;
  line-height: 1.65;
  max-width: 46ch;
  color: #606154;
  margin: 0 0 28px;
}
.app-error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.app-error-actions button,
.app-error-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  font:
    600 14px Inter,
    Arial,
    sans-serif;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #777f55;
  color: #3f4829;
  background: transparent;
}
.app-error-actions button,
.app-error-actions a:first-child {
  background: #47532e;
  color: #fff;
  border-color: #47532e;
}
.app-error-actions :focus-visible,
.app-toast button:focus-visible {
  outline: 3px solid #859f4e;
  outline-offset: 3px;
}
.app-toasts {
  position: fixed;
  z-index: 2147483646;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
  font-family: Inter, Arial, sans-serif;
}
.app-toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  color: #282921;
  border: 1px solid #e5e5dc;
  border-left: 4px solid #b54730;
  border-radius: 10px;
  box-shadow: 0 8px 32px #2222;
  padding: 16px;
  pointer-events: auto;
}
.app-toast--success {
  border-left-color: #47532e;
}
.app-toast__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #faede8;
  color: #a43523;
  font-size: 14px;
  font-weight: 700;
}
.app-toast--success .app-toast__icon {
  background: #eef3e5;
  color: #47532e;
}
.app-toast p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.app-toast button {
  flex: none;
  background: none;
  border: 0;
  color: #606154;
  font-size: 22px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .app-error-brand {
    margin-bottom: 48px;
  }
  .app-error-actions {
    gap: 12px;
  }
}
.app-error-actions [hidden] {
  display: none;
}
