/* Synthetic staging only: narrow-screen layout override. */
#syntheticStagingControls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid #b9d7eb;
  border-radius: 12px;
  background: #f5fbff;
  color: #164b78;
}

#syntheticStagingControls strong {
  color: #0b5f9d;
  font-size: 12px;
  letter-spacing: .06em;
}

#syntheticStagingControls label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  flex: 1 1 270px;
  min-width: 0;
}

#syntheticStagingControls select {
  min-width: 0;
  margin-top: 0;
}

#syntheticStagingControls button {
  flex: 0 0 auto;
}

#syntheticStagingControls p {
  flex: 1 1 320px;
  margin: 0;
  color: #496b86;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .topbar {
    height: 62px;
    padding: 0 13px;
    gap: 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small,
  .home-nav,
  .status {
    display: none;
  }

  .top-actions {
    margin-left: auto;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 0;
  }

  #syntheticStagingControls {
    grid-column: 1;
    align-items: stretch;
  }

  #syntheticStagingControls label,
  #syntheticStagingControls button,
  #syntheticStagingControls p {
    flex-basis: 100%;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .steps-title,
  .privacy {
    grid-column: 1 / -1;
  }

  .step {
    min-width: 0;
    gap: 5px;
    padding: 8px;
  }

  .step span {
    min-width: 0;
  }

  .step small {
    display: none;
  }

  .panel {
    min-width: 0;
    min-height: auto;
  }

  .input-panel,
  .result-panel {
    grid-row: auto;
    grid-column: auto;
  }
}
