@import "../style.css";

/* Force Strict Single-Column Layout for Mobile */
.studio-grid {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 1rem !important;
}

.panel-card {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 1rem !important;
  gap: 0.85rem !important;
}

/* Stack Controls to prevent side-by-side overflow */
.stitch-row {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.stitch-row-switch {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 0.75rem !important;
}

/* Ensure mobile upload button text and icon are high-contrast white and tightly centered */
.btn-upload-primary,
.m-btn-upload,
label.btn-upload-primary,
.m-workspace-wrap label.btn-upload-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32) !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 0 !important;
}
.btn-upload-primary *,
.m-btn-upload *,
label.btn-upload-primary * {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.pill-toggle-group {
  width: 100% !important;
  display: flex !important;
  box-sizing: border-box !important;
  padding: 4px !important;
}

.pill-toggle-group .pill-btn {
  flex: 1 !important;
  text-align: center !important;
  padding: 8px 4px !important;
  font-size: 0.78rem !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

/* Mobile Long Preview Area: Full Width, Vertical Scrolling */
.long-preview-scroll {
  width: 100% !important;
  box-sizing: border-box !important;
  max-height: 58vh !important;
  overflow-y: auto !important;
  display: block !important;
  text-align: center !important;
  padding: 8px !important;
  background: #f1f5f9 !important;
}

.long-preview-scroll img {
  display: inline-block !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.export-actions-row {
  flex-direction: column !important;
  gap: 10px !important;
  align-items: stretch !important;
  padding-top: 10px !important;
}

.btn-download-stitch, .btn-copy-stitch {
  width: 100% !important;
  justify-content: center !important;
  padding: 12px !important;
  font-size: 0.92rem !important;
}
