:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --surface: #12171d;
  --surface-raised: #171d25;
  --border: #29313c;
  --border-soft: #202731;
  --text: #f0f3f6;
  --muted: #8d98a7;
  --primary: #3c82f6;
  --primary-hover: #5795fa;
  --success: #31b46d;
  --warning: #e6a23c;
  --danger: #e45b65;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

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

input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0d1117;
  color: var(--text);
  padding: 0 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(60 130 246 / 15%);
}

input::placeholder { color: #667181; }

label {
  display: block;
  margin-bottom: 6px;
  color: #bdc5d0;
  font-size: 13px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}

.button:disabled { cursor: not-allowed; opacity: .5; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--primary-hover); }
.button-secondary { background: #202731; border-color: #35404d; }
.button-secondary:hover:not(:disabled) { background: #29323e; }
.button-quiet { background: transparent; border-color: var(--border); color: #c4ccd6; }
.button-quiet:hover:not(:disabled) { background: var(--surface-raised); }
.button-block { width: 100%; }

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

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

.notice {
  margin: 16px 0;
  border: 1px solid;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
}

.notice-error { border-color: #69323a; background: #241316; color: #f6b8bd; }
.notice-warning { border-color: #624c25; background: #211b11; color: #f0ce91; }

.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;
}
