/* Focused mobile layout for the capture workflow. Keep every control in a predictable tap order. */
@media (max-width: 680px) {
  .camera-modal { width: min(100%, 520px); max-height: calc(100dvh - 18px); overflow-y: auto; padding: 20px 14px 14px; border-radius: 18px; }
  .camera-modal .modal-head { align-items: flex-start; gap: 10px; margin: 0 28px 16px 0; }
  .camera-modal .modal-head h2 { font-size: 18px; }
  .camera-modal .modal-head p { font-size: 12px; line-height: 1.5; }
  .upload-zone { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 18px 14px 14px; border: 1px solid #dfe8e4; border-radius: 14px; background: #fbfdfc; text-align: left; }
  .upload-illustration { align-self: center; width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 14px; background: #e7f5f0; color: #28766e; font-size: 27px; }
  .upload-zone h3 { margin: 0; color: #253b37; font-size: 17px; line-height: 1.35; text-align: center; }
  .upload-zone > p { margin: 5px 0 15px; color: #7d8e89; font-size: 12px; line-height: 1.45; text-align: center; }
  .material-type-picker { width: 100%; max-width: none; min-height: 58px; margin: 0 0 8px; padding: 8px 9px 8px 12px; border: 1px solid #dbe8e4; border-radius: 8px; background: #fff; font-size: 13px; }
  .material-type-picker, .material-type-picker:has(#ocr-provider) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 46%); gap: 10px; align-items: center; }
  .material-type-picker .picker-copy { display: grid; gap: 3px; min-width: 0; }
  .material-type-picker .picker-copy b { color: #294640; font-size: 13px; line-height: 1.2; }
  .material-type-picker .picker-copy small { color: #81918c; font-size: 10px; font-weight: 400; line-height: 1.3; }
  .material-type-picker select, .material-type-picker:has(#ocr-provider) select { width: 100%; min-width: 0; max-width: none; min-height: 36px; padding: 6px 28px 6px 9px; border: 1px solid #e0ebe7; border-radius: 6px; background: #f6faf8; color: #216d65; font-size: 12px; font-weight: 700; }
  .split-mode-toggle { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; align-items: center; min-height: 50px; margin: 4px 0 13px; padding: 8px 11px; border: 1px dashed #cbded8; border-radius: 8px; background: #fbfdfc; text-align: left; }
  .split-mode-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #28766e; }
  .split-mode-toggle span { color: #2c514a; font-size: 12px; font-weight: 700; line-height: 1.25; }
  .split-mode-toggle small { grid-column: 2; margin-top: 1px; color: #82928d; font-size: 10px; line-height: 1.3; }
  .upload-zone #upload-btn { width: 100%; min-height: 48px; margin: 0; border: 0; border-radius: 10px; background: #28766e; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 6px 14px rgba(40, 118, 110, .18); }
  .upload-zone #upload-btn:active { transform: translateY(1px); }
  .camera-modal .modal-tip { margin-top: 11px; font-size: 11px; line-height: 1.45; }
}
