body {
  font-family: Arial, sans-serif;
  padding: 2rem;
  max-width: 980px;
  margin: auto;
  color: #111827;
}

h1 {
  text-align: center;
  margin: 0 0 1.25rem 0;
}

.controls {
  max-width: 720px;
  margin: 0 auto 1rem auto;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input {
  width: 100%;
  padding: 0.55rem;
  font-size: 1rem;
  margin-top: 0.2rem;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

input:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.25);
}

.hint {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #6b7280;
  text-align: left;
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th, td {
  text-align: left;
  padding: 0.65rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

th {
  font-size: 0.95rem;
  color: #374151;
  background: #f9fafb;
  position: sticky;
  top: 0;
}

td input[type="number"],
td input[type="text"] {
  margin: 0;
}

.scenario-name .name-input {
  min-width: 160px;
}

.out {
  font-weight: 700;
  white-space: nowrap;
}

.out--positive {
  color: #065f46;
}

.out--negative {
  color: #7f1d1d;
}

.out--neutral {
  color: #1f2937;
}

.row-actions {
  text-align: right;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

button {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

button:hover {
  filter: brightness(0.95);
}

button.secondary {
  background-color: #6b7280;
}

.icon-btn {
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  background: #ef4444;
  border-radius: 6px;
}

.icon-btn:hover {
  filter: brightness(0.95);
}

.row--invalid {
  background: #fff7ed;
}

.message {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.message--neutral {
  color: #1f2937;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.message--positive {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.message--negative {
  color: #7f1d1d;
  background: #fef2f2;
  border-color: #fecaca;
}