:root {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body {
    margin: 0;
    background: #f6f7f9;
    color: #111;
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

button {
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    background: #111;
    color: white;
}

button.secondary {
    background: #e7e7ea;
    color: #111;
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.list {
    margin: 8px 0 14px;
    padding-left: 18px;
}

.muted {
    color: #555;
}

.small {
    font-size: 12px;
}

li.missing {
    font-weight: 600;
}

label {
    display: block;
    margin: 10px 0;
}

input:not([type="checkbox"]), textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

/* keep checkboxes normal-sized */
input[type="checkbox"] {
  width: auto;
}

dialog::backdrop {
    background: rgba(0, 0, 0, .25);
}

.dialog {
    min-width: min(520px, 90vw);
}

/* Ingredients list only */
#ingredientsList {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

#ingredientsList li label {
  display: flex;
  align-items: center;
  gap: 10px;
}

#ingredientsList li label span {
  text-align: left;
}

#ingredientsList li {
  padding: 8px 0;
}