:root {
  --carbon: #0d0f0d;
  --slate: #111311;
  --slate-raised: #181b18;
  --line: #222622;
  --line-soft: #1b1e1b;
  --chalk: #e2e8e2;
  --fog: #9aa49a;
  --fog-dim: #5f675f;
  --lime: #b5df53;
  --leaf: #34d399;
  --lime-ink: #050600;
  --amber: #fbbf24;
  --red: #ff4055;
  --sky: #60a5fa;
  --lime-wash: rgb(181 223 83 / 0.1);
  --leaf-wash: rgb(52 211 153 / 0.12);
  --amber-wash: rgb(251 191 36 / 0.12);
  --red-wash: rgb(255 64 85 / 0.12);
  --sky-wash: rgb(96 165 250 / 0.12);

  --font: "Archivo", "Segoe UI", sans-serif;
  --display: "Archivo", "Segoe UI", sans-serif;
  --wide: 112%;
  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-md: 0.8125rem;
  --text-lg: 0.9375rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.375rem;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--chalk);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--line);
}

.wide {
  font-stretch: var(--wide);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--slate-raised);
  color: var(--chalk);
  font-size: var(--text-md);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  border-color: var(--fog-dim);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn svg {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
}

.btn-primary {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--lime-ink);
}

.btn-primary:hover {
  border-color: #c3e86e;
  background: #c3e86e;
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
  border-color: var(--line);
  background: var(--slate-raised);
  color: var(--fog-dim);
}

.btn-danger {
  border-color: rgb(255 64 85 / 0.45);
  background: transparent;
  color: var(--red);
}

.btn-danger:hover {
  border-color: var(--red);
  background: var(--red-wash);
}

.btn-quiet {
  background: transparent;
  color: var(--fog);
}

.btn-quiet:hover {
  color: var(--chalk);
}

.btn-sm {
  min-height: 1.875rem;
  padding: 0 0.625rem;
  font-size: var(--text-sm);
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.meter {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--slate-raised);
}

.meter > i {
  display: block;
  width: var(--p, 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--tone, var(--lime));
  transition: width 0.4s var(--ease);
}

.status-mark {
  display: inline-block;
  width: 0.4375rem;
  height: 0.4375rem;
  flex: none;
  border-radius: 50%;
  background: var(--tone, var(--lime));
}

.status-mark.hollow {
  border: 1.5px solid var(--tone, var(--lime));
  background: transparent;
  box-shadow: none;
}

.status-mark.off {
  box-shadow: none;
  opacity: 0.6;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
