@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #090f1d;
  --bg-deep: #06101b;
  --surface: rgba(6, 14, 28, 0.92);
  --surface-strong: #0b1727;
  --surface-soft: rgba(9, 15, 29, 0.72);
  --border: rgba(0, 180, 160, 0.2);
  --border-strong: rgba(0, 180, 160, 0.34);
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #00b4a0;
  --accent-strong: #007a6e;
  --accent-soft: rgba(0, 180, 160, 0.12);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  scrollbar-color: rgba(0, 180, 160, 0.45) transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 180, 160, 0.45);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 180, 160, 0.65);
}

html {
  background:
    radial-gradient(circle at top left, rgba(0, 180, 160, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 122, 110, 0.12), transparent 24%),
    linear-gradient(180deg, #040913 0%, #090f1d 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: transparent;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.25rem 0 1rem;
}

.flash {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.flash-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: min(420px, calc(100vw - 2rem));
  display: grid;
  gap: 0.75rem;
  z-index: 40;
  pointer-events: none;
}

.flash-stack .flash {
  width: 100%;
  margin: 0;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.28);
  pointer-events: auto;
}

.flash-inline-group {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: grid;
  gap: 0.75rem;
}

.flash-inline-group .flash {
  width: 100%;
  margin: 0;
}

.flash-message {
  flex: 1 1 auto;
  min-width: 0;
}

.flash-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
  margin: -0.1rem -0.15rem 0 0;
  opacity: 0.72;
  padding: 0.1rem 0.25rem;
}

.flash-close:hover,
.flash-close:focus-visible {
  opacity: 1;
}

.flash-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 6px;
}

form.button_to {
  display: inline-flex;
  margin: 0;
}

.flash-notice {
  border-color: rgba(0, 180, 160, 0.34);
}

.flash-alert {
  border-color: rgba(248, 81, 73, 0.45);
}

@media (max-width: 640px) {
.flash-stack {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

}

.field-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.92;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field label,
.field-grid label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field {
  margin-bottom: 1.15rem;
}

.field-hint {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea,
input,
select,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 180, 160, 0.18);
  background: rgba(0, 180, 160, 0.04);
  color: var(--text);
  outline: none;
  font: inherit;
}

.field input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #4a6472;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-strong);
  background: rgba(0, 180, 160, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 180, 160, 0.12);
}

.check-row input {
  width: auto;
  margin: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.button {
  border-radius: 12px;
  background: rgba(0, 180, 160, 0.12);
  color: var(--text);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #02111d;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
}

.link-button {
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: text-bottom;
}

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

.field-grid .actions {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
.field-grid {
    grid-template-columns: 1fr;
  }

.field--full {
    grid-column: auto;
  }

}
