.stack {
  display: grid;
  gap: var(--space-4);
}
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  background: var(--text);
  color: white;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  filter: brightness(1.18);
}
.button:disabled,
.button[aria-disabled='true'] {
  opacity: 0.48;
  cursor: not-allowed;
}
.button--secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.button--destructive {
  background: var(--danger);
}
.card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.2rem);
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-weight: 650;
}
.field-description,
.field-error {
  margin: 0;
  font-size: 0.875rem;
}
.field-description {
  color: var(--muted);
}
.field-error {
  color: var(--danger);
  font-weight: 600;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #8b918d;
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  background: white;
  color: var(--text);
}
.textarea {
  min-height: 7rem;
  resize: vertical;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--text);
}
.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border: 2px solid var(--danger);
}
.alert {
  border-inline-start: 0.3rem solid var(--focus);
  border-radius: var(--radius);
  padding: 1rem;
  background: #edf5fb;
}
.alert--danger,
.alert--error {
  border-color: var(--danger);
  background: #fff0ef;
}
.alert--warning {
  border-color: var(--warning);
  background: #fff6df;
}
.alert--success {
  border-color: var(--success);
  background: #eaf8ef;
}
.cloudflare-challenge-dialog {
  width: min(32rem, calc(100% - 2rem));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--text);
}
.cloudflare-challenge-dialog::backdrop {
  background: rgb(0 0 0 / 45%);
}
.cloudflare-challenge-dialog .alert {
  border-radius: var(--radius);
}
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  background: var(--surface-subtle);
  font-size: 0.78rem;
  font-weight: 700;
}
.badge--success {
  border-color: #8bc5a5;
  background: #eaf8ef;
  color: #105b3a;
}
.badge--danger {
  border-color: #dda09b;
  background: #fff0ef;
  color: #852019;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
th,
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
tr:last-child td {
  border-bottom: 0;
}
dialog {
  max-width: min(32rem, calc(100% - 2rem));
  border: 0;
  border-radius: 0.75rem;
  padding: 0;
  box-shadow: 0 24px 70px rgb(0 0 0 / 25%);
}
dialog::backdrop {
  background: rgb(10 15 12 / 65%);
}
.dialog-content {
  padding: 1.5rem;
}
.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}
.pagination ol {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination a {
  display: grid;
  min-width: 2.5rem;
  min-height: 2.5rem;
  place-items: center;
  border-radius: 0.35rem;
  text-decoration: none;
}
.pagination a[aria-current='page'] {
  background: var(--text);
  color: white;
}
