.recipe-scaler-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

@media (max-width: 900px) {
  .recipe-scaler-layout {
    grid-template-columns: 1fr;
  }
}

.recipe-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.recipe-textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
}

.recipe-output {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.recipe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.recipe-table th,
.recipe-table td {
  border-bottom: 1px solid var(--border, #d0d0d0);
  padding: 6px 8px;
  vertical-align: top;
}

.recipe-table th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #666);
}

.recipe-table .input.small {
  font-size: 0.85rem;
  padding: 6px 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2em;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--surface-50, #f5f5f5);
  color: var(--text-muted, #666);
}

.status-pill.ok {
  background: #e6fcf5;
  color: #087f5b;
}

.status-pill.warn {
  background: #fff4e6;
  color: #d9480f;
}

.status-pill.text {
  background: #f1f3f5;
  color: #495057;
}

.recipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .recipe-table thead {
    display: none;
  }

  .recipe-table,
  .recipe-table tbody,
  .recipe-table tr,
  .recipe-table td {
    display: block;
    width: 100%;
  }

  .recipe-table tr {
    border: 1px solid var(--border, #d0d0d0);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--surface, #fff);
  }

  .recipe-table td {
    border: 0;
    padding: 8px 0;
  }

  .recipe-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted, #666);
    margin-bottom: 4px;
  }

  .recipe-table td .input {
    width: 100%;
  }
}
