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

html {
  min-width: 320px;
  background: var(--color-canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  background: var(--color-canvas);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
}

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

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(176 101 26 / 58%);
  outline-offset: 2px;
}

button,
input,
select,
textarea {
  border-radius: var(--radius-sm);
}

button {
  border: 0;
}

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

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 27px;
}

h3 {
  font-size: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

th {
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--color-text);
  box-shadow: 0 20px 48px rgb(0 0 0 / 28%);
}

dialog::backdrop {
  background: rgb(23 37 34 / 56%);
}

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