.scenario-metrics {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}

.scenario-filters {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.scenario-filters .filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.scenario-filters input,
.scenario-filters select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(8, 12, 19, 0.75);
  background: color-mix(in srgb, var(--color-bg-elevated) 75%, transparent);
  color: var(--color-text-primary);
}

.scenario-form {
  background: rgba(21, 27, 35, 0.85);
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.scenario-form .card {
  background: rgba(21, 27, 35, 0.9);
  background: color-mix(in srgb, var(--color-surface-default) 90%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.scenario-form .card h2 {
  margin: 0;
}

.scenario-layout {
  display: grid;
  gap: 1.5rem;
}

.scenario-column {
  display: grid;
  gap: 1.5rem;
}

.quick-actions-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scenario-portfolio {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.scenario-portfolio__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.scenario-context-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scenario-context-card .definition-list {
  margin: 0;
}

.scenario-defaults {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.scenario-defaults li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.scenario-defaults li strong {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scenario-layout .table tbody tr:hover,
.scenario-portfolio .table tbody tr:hover {
  background: rgba(43, 165, 143, 0.12);
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
}

@media (min-width: 720px) {
  .scenario-filters {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
  }

  .scenario-filters .filter-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .breadcrumb {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

@media (min-width: 960px) {
  .scenario-layout {
    grid-template-columns: 1.1fr 1.9fr;
    align-items: start;
  }
}
