@media (max-width: 600px) {
  body { background-attachment: scroll; background-size: auto 100svh; background-repeat: repeat-y; }
  .workspace input, .login-card input, .phone input { font-size: 16px; }
  .workspace { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 10px; gap: 6px; }
  .kpi-top { gap: 5px; }
  .kpi-top > span:first-child { font-size: 12px; }
  .kpi-glyph { display: none; }
  .kpi strong { font-size: clamp(.9rem, 4vw, 1.15rem); white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .kpi-foot { font-size: 11px; }
  .stats-toggle { width: 44px; min-height: 44px; }
  .order:not(.table-head) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px 0; gap: 8px 10px; }
  .order-main { grid-column: 1; grid-row: 1; }
  .order-amount { grid-column: 2; grid-row: 1; align-self: start; }
  .amount-base { font-size: 14px; }
  .order-main .order-meta { white-space: normal; line-height: 1.4; }
  .order-phone-cell { grid-column: 1 / -1; grid-row: 2; }
  .status-cell { grid-column: 1 / -1; grid-row: 3; }
  .status-cell .status-tag { white-space: normal; }
  .order-actions { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; flex-direction: row; gap: 8px; align-items: center; }
  .order .action-btn { min-height: 44px; padding: 9px 12px; font-size: 13px; }
  .order .icon-btn { min-width: 44px; min-height: 44px; }
  .order .inline-form, .order .deal-actions { gap: 8px; }
  .copy-link, .phone-copy { min-height: 44px; padding: 8px 9px; font-size: 12px; }
  .phone-copy { font-size: 14px; }
  .page-btn { min-width: 44px; min-height: 44px; }
  #paste-modal { padding: 16px; }
  .paste-box { padding: 48px 20px 24px; max-height: calc(100dvh - 32px); overflow-y: auto; }
  .paste-close { top: 4px; right: 4px; min-width: 44px; min-height: 44px; padding: 8px; }
  .qr-file-choose { min-height: 48px; }
  .detail-box .action-btn, .status-controls .deal-actions .action-btn { min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .payment-decisions .decision-button, .cancel-form .cancel-button { min-height: 44px; }
  .receipt { padding: 24px 18px; }
  .action { padding: 22px 18px; }
  .center { padding: 14px; }
  .checkout { border-radius: 18px; }
  .payment-amount { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .phone { min-width: 0; }
  .phone input { width: 100%; min-width: 0; }
}
