.shm-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .shm-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
  }
}

.shm-fieldset {
  border: 1px solid #d5dce3;
  border-radius: 10px;
  padding: 16px;
  margin: 0 0 20px;
  background: rgba(255, 255, 255, 0.65);
}

.shm-fieldset legend {
  font-weight: 600;
  padding: 0 8px;
}

.shm-field-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.shm-inline-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.shm-error {
  margin-top: 12px;
  color: #c62828;
  font-weight: 600;
}

#shm-summary {
  display: grid;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

#shm-steps {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.shm-status {
  margin-top: 8px;
  min-height: 1em;
  color: #3c4a5b;
}

.shm-note {
  margin-top: 4px;
  color: #52606d;
  font-size: 0.85rem;
}

.shm-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.shm-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.shm-table thead th {
  background: #f1f5f9;
  font-weight: 600;
}

.shm-table th,
.shm-table td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  text-align: center;
}

.shm-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

#shm-chart {
  width: 100%;
  max-width: 920px;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 0 auto 16px;
  background: #ffffff;
}

.shm-summary-card h2 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .shm-field-grid {
    grid-template-columns: 1fr;
  }
}
