/**
 * dopic.app - Mobile Stylesheet for [upscale]
 * 纯净明亮 iOS 原生白底风格 (Clean White Design System)
 */

/* App Container Spacing */
.m-app-container {
  padding-bottom: 90px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

.m-header {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.m-header-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.m-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  padding: 1.25rem 1rem 0.75rem 1rem !important;
  border-bottom: none !important;
}

.m-hero-text h1 {
  color: #0f172a !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.m-hero-text .highlight {
  color: #64748b !important;
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
  margin-top: 0.35rem !important;
  display: block !important;
}

/* ==========================================================================
   1. Interactive Comparison Stage (Upper Viewport)
   ========================================================================== */
.m-upscale-stage {
  padding: 0 0.85rem;
  margin-bottom: 0.5rem;
}

.m-split-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 72vh;
  border-radius: 20px;
  overflow: hidden;
  background: #0b1120;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  container-type: inline-size;
}

.m-split-container.is-zoomed-2x {
  transform: scale(1.6);
  z-index: 40;
}

.m-split-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  display: block;
}

/* The clipped overlay showing Original / Before */
.m-split-clip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.m-split-clip .m-split-img {
  width: 100cqw;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

/* Interactive Divider Bar & Knob */
.m-split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  margin-left: -22px;
  z-index: 10;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: none;
}

.m-split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, #ffffff 50%, rgba(255,255,255,0.4) 100%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
}

.m-split-knob {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.m-split-handle:active .m-split-knob {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45), 0 0 0 4px rgba(234, 88, 12, 0.25);
}

/* Floating Compare Badges */
.m-badge-floating {
  position: absolute;
  top: 12px;
  z-index: 15;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.m-badge-before {
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.m-badge-after {
  right: 12px;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}

/* Stage Bottom Action Pills */
.m-stage-float-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-float-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
  user-select: none;
}

.m-float-btn:active,
.m-float-btn.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  transform: scale(0.96);
}

/* Direct Clean Result Display Mode (Post-processing: No split compare slider) */
.m-upscale-stage.is-result-mode .m-split-clip,
.m-upscale-stage.is-result-mode .m-split-handle,
.m-upscale-stage.is-result-mode .m-badge-floating,
.m-upscale-stage.is-result-mode .m-stage-float-actions {
  display: none !important;
}

.m-upscale-stage.is-result-mode .m-split-container {
  aspect-ratio: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 200px !important;
  max-height: 72vh !important;
  background: #0b1120 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.m-upscale-stage.is-result-mode #imgEnhanced {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 72vh !important;
  object-fit: contain !important;
  transform: none !important;
  display: block !important;
  margin: 0 auto !important;
  pointer-events: auto !important;
  border-radius: 8px !important;
}

.m-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  margin: 0.75rem 0.85rem 0 0.85rem;
}

.m-result-tag {
  font-size: 0.86rem;
  font-weight: 700;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 5px;
}

.m-result-hint {
  font-size: 0.74rem;
  color: #047857;
  background: #d1fae5;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
}

/* ==========================================================================
   2. Direct Upload & Camera Action Buttons (Stacked 2-Row Layout)
   ========================================================================== */
.m-stage-upload-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.m-stage-upload-row.is-hidden,
#mStageUploadRow.is-hidden,
body.has-image .m-stage-upload-row,
body.has-image #mStageUploadRow {
  display: none !important;
}

.m-stage-action-btn {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  user-select: none !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.m-stage-action-btn.m-btn-album {
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35) !important;
}

.m-stage-action-btn.m-btn-album svg {
  stroke: #ffffff !important;
}

.m-stage-action-btn.m-btn-album span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.m-stage-action-btn.m-btn-album:active {
  transform: scale(0.98) !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2) !important;
}

.m-stage-action-btn.m-btn-camera {
  padding: 10px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.m-stage-action-btn.m-btn-camera svg {
  stroke: #334155 !important;
}

.m-stage-action-btn.m-btn-camera span {
  color: #334155 !important;
  font-weight: 600 !important;
}

.m-stage-action-btn.m-btn-camera:active {
  background: #f8fafc !important;
  transform: scale(0.98) !important;
  border-color: #ea580c !important;
  color: #ea580c !important;
}

.m-stage-action-btn.m-btn-camera:active svg {
  stroke: #ea580c !important;
}

.m-stage-action-btn.m-btn-camera:active span {
  color: #ea580c !important;
}

/* ==========================================================================
   2.1 Mode Selection Bottom Sheet Modal (Triggered on Upload/Camera Click)
   ========================================================================== */
.m-mode-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.22s ease;
}

.m-mode-modal-sheet {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 0.75rem 1rem 1.4rem 1rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  animation: mSheetSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mSheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.m-sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 0 auto 0.75rem auto;
}

.m-sheet-header {
  text-align: center;
  margin-bottom: 0.9rem;
}

.m-sheet-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
}

.m-sheet-subtitle {
  font-size: 0.76rem;
  color: #64748b;
  margin: 0;
}

.m-sheet-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 0.8rem;
}

.m-sheet-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.m-sheet-card:active {
  transform: scale(0.98);
  border-color: #ea580c;
  background: #fff7ed;
}

.m-sheet-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.m-sheet-card-icon.icon-portrait {
  background: #ffedd5;
  border: 1px solid #fed7aa;
}

.m-sheet-card-icon.icon-general {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.m-sheet-card-content {
  flex: 1;
  min-width: 0;
}

.m-sheet-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.m-sheet-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.m-sheet-card-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-portrait {
  background: #ffedd5;
  color: #c2410c;
}

.badge-general {
  background: #dbeafe;
  color: #1d4ed8;
}

.m-sheet-card-desc {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

.m-sheet-card-arrow {
  color: #94a3b8;
  flex-shrink: 0;
}

.m-sheet-btn-cancel {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.m-sheet-btn-cancel:active {
  background: #e2e8f0;
}

/* ==========================================================================
   3. Futuristic AI Scanning Beam Animation
   ========================================================================== */
.m-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgba(11, 15, 25, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.m-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ea580c 30%, #f97316 70%, transparent 100%);
  box-shadow: 0 0 16px 4px rgba(234, 88, 12, 0.8), 0 0 32px 8px rgba(249, 115, 22, 0.5);
  animation: scanBeamAnim 2.2s ease-in-out infinite alternate;
}

@keyframes scanBeamAnim {
  0% { top: 4%; }
  100% { top: 96%; }
}

.m-scan-status {
  position: relative;
  z-index: 3;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(234, 88, 12, 0.5);
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.m-scan-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(234, 88, 12, 0.3);
  border-top-color: #ea580c;
  border-radius: 50%;
  animation: scanSpin 0.75s linear infinite;
}

@keyframes scanSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   4. Thumb-Zone Control Deck (Crisp iOS White Cards)
   ========================================================================== */
.m-upscale-deck {
  padding: 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.m-deck-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
}

.m-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.m-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.m-section-tag {
  font-size: 0.72rem;
  color: #ea580c;
  font-weight: 700;
}

.m-mode-badge {
  font-size: 0.72rem;
  color: #ea580c;
  font-weight: 800;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Multiplier Pills */
.m-scale-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.m-scale-pill {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.65rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.m-scale-pill .pill-badge {
  position: absolute;
  top: -8px;
  right: 6px;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.4);
}

.m-scale-pill .pill-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.m-scale-pill .pill-desc {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.m-scale-pill.active {
  background: #fff7ed;
  border-color: #ea580c;
  box-shadow: 0 0 0 1px #ea580c, 0 4px 12px rgba(234, 88, 12, 0.15);
}

.m-scale-pill.active .pill-val {
  color: #ea580c;
}

.m-scale-pill.active .pill-desc {
  color: #9a3412;
}

/* AI Mode Grid Cards */
.m-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.m-mode-card {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.65rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  min-width: 0;
  box-sizing: border-box;
}

.m-mode-card .card-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.m-mode-card .card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.m-mode-card .card-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.m-mode-card .card-sub {
  font-size: 0.65rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  line-height: 1.2;
}

.m-mode-card .card-check {
  display: none;
  font-size: 0.75rem;
  color: #ea580c;
  font-weight: 900;
}

.m-mode-card.active {
  background: #fff7ed;
  border-color: #ea580c;
  box-shadow: 0 0 0 1px #ea580c, 0 4px 12px rgba(234, 88, 12, 0.12);
}

.m-mode-card.active .card-name {
  color: #ea580c;
}

.m-mode-card.active .card-sub {
  color: #9a3412;
}

.m-mode-card.active .card-check {
  display: block;
}

/* Fidelity / Strength Range Slider */
.m-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.m-slider-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.m-slider-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ea580c;
}

.m-slider-track-wrap {
  width: 100%;
}

.m-slider-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  outline: none;
}

.m-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ea580c;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35), 0 0 0 3px rgba(234, 88, 12, 0.2);
  transition: transform 0.12s ease;
}

.m-slider-input::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

/* ==========================================================================
   5. Action Buttons & Export Controls
   ========================================================================== */
.m-deck-actions {
  margin-top: 0.25rem;
}

.m-deck-btn {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  border: none;
}

.m-deck-btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.35);
}

.m-deck-btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2);
}

.m-deck-btn-secondary {
  background: #ffffff;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.m-deck-btn-secondary:active {
  background: #f1f5f9;
  transform: scale(0.98);
}

/* ==========================================================================
   6. Bottom Tabbar (iOS Native Style & Desktop Preview Adaptation)
   ========================================================================== */
.m-tabbar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 520px !important;
  height: calc(var(--tab-height, 60px) + env(safe-area-inset-bottom, 20px)) !important;
  padding-bottom: env(safe-area-inset-bottom, 20px) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.85) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  z-index: 200 !important;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05) !important;
  box-sizing: border-box !important;
}

.m-tab-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  flex: 1 !important;
  height: 100% !important;
  cursor: pointer !important;
  transition: color 0.15s ease !important;
}

.m-tab-item.active {
  color: #ea580c !important;
}

.m-tab-item svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2 !important;
}

/* Clean iPhone preview frame when viewing mobile page on PC / wide screens */
@media (min-width: 521px) {
  body {
    background: #f1f5f9 !important;
  }
  .m-app-container {
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 0 0 50px rgba(15, 23, 42, 0.08) !important;
    min-height: 100vh !important;
    background: #ffffff !important;
  }
  .m-tabbar {
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
  }
}

/* Minimalist In-Canvas Floating Upload (Clean PhotoGov Style) */
.canvas-floating-upload {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  user-select: none;
  width: 90%;
  max-width: 260px;
}
.btn-cutout-minimal {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-cutout-minimal:active {
  transform: scale(0.97);
  background: #fff7ed;
  border-color: #ea580c;
}
.btn-upload-svg {
  width: 16px;
  height: 16px;
  stroke: #ea580c;
  flex-shrink: 0;
}
.canvas-floating-upload .upload-specs-hint {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.02em;
}
.m-upscale-stage.is-result-mode .canvas-floating-upload {
  display: none !important;
}
