* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Type */
h2 {
  margin: 8px 0 8px;
  font-size: 18px;
}

label {
  font-size: 12px;
  color: var(--muted);
}

/* Form inputs */
input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
}

/* Subtle visibility even before interaction; hover/focus clarity */
input[type="text"], input[type="number"], select, textarea {
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:hover, input[type="number"]:hover, select:hover, textarea:hover {
  border-color: var(--input-border-hover);
  background: var(--input-bg-hover);
}
input[type="text"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 25%, transparent);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

/* Utility containers */
.view {
  padding: 16px;
}

.grid {
  display: grid;
  gap: 12px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
