*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.5;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--fh);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 2.2vw, 2.125rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; font-family: var(--f); font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0; }

a {
  color: var(--blue2);
  text-decoration: none;
  transition: color .15s ease;
}

a:hover { color: var(--blue); }

img { max-width: 100%; height: auto; display: block; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--space-24);
}

@media (max-width: 640px) {
  .wrap { padding-inline: var(--space-16); }
}

.text-muted { color: var(--ink2); }

.anim-enter {
  animation: fadeUp .45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

#blazor-error-ui {
  background: var(--error-soft);
  color: var(--error);
  bottom: 0;
  box-shadow: var(--shadow2);
  box-sizing: border-box;
  display: none;
  left: 0;
  padding: .75rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  border-top: 1px solid color-mix(in srgb, var(--error) 25%, transparent);
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: .75rem;
  top: .5rem;
}

.blazor-error-boundary {
  background: var(--error);
  padding: 1rem 1rem 1rem 1.25rem;
  color: #fff;
  border-radius: var(--r);
}

.loading-progress {
  position: absolute;
  display: block;
  width: 5rem;
  height: 5rem;
  inset: 28vh 0 auto 0;
  margin: 0 auto;
}

.loading-progress circle {
  fill: none;
  stroke: var(--bdr);
  stroke-width: .45rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: var(--blue);
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: 600;
  font-family: var(--f);
  color: var(--ink2);
  font-size: .875rem;
  inset: calc(28vh + 5.5rem) 0 auto 0;
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading");
}

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--ok); }
.invalid { outline: 1px solid var(--error); }
.validation-message { color: var(--error); font-size: .875rem; margin-top: .35rem; }

code { color: var(--blue2); font-size: .9em; }
