* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--font-ui);
}
[hidden] { display: none !important; }
img { display: block; max-inline-size: 100%; }
h1, h2, h3, p { margin-block: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; }
p, li, dd { overflow-wrap: anywhere; }
a { color: var(--cyan); text-underline-offset: .22em; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { background: #4730a7; color: white; }
small, .caption { font-size: .875rem; }
.muted { color: var(--text-muted); }
.stack { display: grid; gap: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.spread { justify-content: space-between; }
.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.skip {
  position: absolute;
  inset: 8px auto auto 8px;
  translate: 0 -160%;
  z-index: 5;
}
.skip:focus { translate: 0; }
.card {
  min-inline-size: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 24px;
}
.card h3 { font-size: 1.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 48px;
  padding: 10px 18px;
  max-inline-size: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  color: var(--text);
  background: var(--surface);
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, filter 180ms ease;
}
.button:hover { background-color: var(--surface-hover); border-color: var(--cyan); }
.button.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(rgb(6 6 22 / 46%), rgb(6 6 22 / 46%)), var(--brand-gradient);
}
.button.primary:hover { filter: brightness(1.09); }
.button.danger { color: var(--danger); }
.button:disabled { color: var(--text-muted); opacity: .68; cursor: not-allowed; filter: none; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 700;
}
.pill.success { color: var(--success); }
.pill.warning { color: var(--warning); }
.pill.danger, .error { color: var(--danger); }
.brandword {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.brandword img { inline-size: 38px; block-size: 38px; border-radius: 10px; }
.brandword .lockup { inline-size: auto; block-size: 32px; border-radius: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.field { display: grid; gap: 8px; }
input, select {
  inline-size: 100%;
  min-block-size: 48px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
}
.skeleton {
  min-block-size: 1rem;
  border-radius: 6px;
  background: linear-gradient(90deg,var(--surface-hover),var(--border),var(--surface-hover));
  background-size: 200% 100%;
  animation: shimmer 1.7s ease infinite;
}
.skeleton + .skeleton { margin-block-start: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
details { border-block-end: 1px solid var(--border); padding: 4px 0; }
summary {
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
  min-block-size: 48px;
}
details p { padding: 0 0 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
