.smg-main {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.smg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.smg-panel {
  background: radial-gradient(circle at top left, #111827, #020617);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
}

.smg-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.smg-fields {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.smg-field label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.75;
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.smg-field input[type="text"],
.smg-field select {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.6);
  color: #e5e7eb;
  padding: 0.45rem 0.55rem;
  font-size: 0.85rem;
}

.smg-field-inline {
  grid-column: 1 / -1;
}

.smg-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  opacity: 0.9;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.smg-check input {
  accent-color: #4f46e5;
}

.smg-label {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.smg-textarea {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.7rem 0.8rem;
  color: #e5e7eb;
  font-size: 0.86rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  resize: vertical;
}

.smg-actions {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.smg-ghost-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: #e5e7eb;
}

.smg-ghost-btn:hover {
  background: rgba(15, 23, 42, 0.8);
}

.smg-download-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: #e5e7eb;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.85;
}

.smg-download-btn:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 1);
}

.smg-download-btn.is-disabled {
  pointer-events: none;
  opacity: 0.35;
}

.smg-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.smg-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.smg-stats {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  font-size: 0.8rem;
}

.smg-stat {
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.smg-stat-label {
  opacity: 0.7;
  display: block;
  margin-bottom: 0.2rem;
}

.smg-stat-value {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .smg-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
