* {
  box-sizing: border-box;
  font-weight: normal;
}

html {
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.1rem;
  line-height: 1.2;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label span,
legend {
  color: var(--muted);
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
}

input {
  min-height: var(--control-height);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0;
}

textarea {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  resize: vertical;
}

::placeholder {
  color: #c9c9c9;
  opacity: 1;
}

input:focus,
textarea:focus,
button:focus,
a:focus,
button:focus-visible,
a:focus-visible {
  outline: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.row-actions form {
  margin: 0;
}
