@font-face {
  font-family: Plex;
  src: url("./assets/plex.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url("./assets/archivo.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #090b13;
  --panel: #11141d;
  --panel-raised: #191d28;
  --text: #f5f2eb;
  --muted: #9da3b2;
  --lime: #d5ff70;
  --violet: #ad8cff;
  --line: #ffffff18;
  --danger: #ff8b8b;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
input,
textarea,
select {
  color: var(--text);
  background: #0d1018;
  border: 1px solid #ffffff25;
  border-radius: 10px;
  padding: 12px 13px;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: #737b8f;
}
button {
  color: inherit;
}
label {
  line-height: 1.5;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
[hidden] {
  display: none !important;
}
.mono {
  font-family: Plex, monospace;
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #202532;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: #2a3040;
}
.button.primary {
  color: #151a0c;
  background: var(--lime);
  border-color: var(--lime);
}
.button.primary:hover {
  background: #e2ff9d;
}
.button.quiet {
  background: transparent;
}
.button.danger {
  color: var(--danger);
  background: #ff8b8b0c;
}
.button.small {
  padding: 8px 12px;
  font-size: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > span {
  font-size: 13px;
  color: #c4c8d2;
}
.hint {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.pill i {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
}
.toast-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: calc(100vw - 32px);
  pointer-events: none;
  display: grid;
  gap: 8px;
}
.toast {
  background: #f5f2eb;
  color: #12151c;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 12px 60px #0008;
  animation: toast-in 0.2s ease-out;
}
.toast.error {
  border-left: 5px solid #b6243a;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
