/* Touch-friendly refinements for the existing screens. Desktop stays unchanged. */
@media (max-width: 767.98px) {
  .app-body .bestellung-shell { padding: 0 0 24px; }
  .app-body .bestellung-hero { padding: 16px; border-radius: 18px; gap: 12px; }
  .app-body .bestellung-hero-left h1 { font-size: 1.25rem; }
  .app-body .bestellung-toolbar { padding: 12px; border-radius: 16px; }
  .app-body .bestellung-scope-tab,
  .app-body .bestellung-filter-chip { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
  .app-body .bestellung-search input { min-height: 44px; font-size: 16px; }
  .app-body .bestellung-sync-btn { min-height: 42px; font-size: 14px; }
  .app-body .bestellung-cards { gap: 20px; }
  .app-body .bestellung-group-box { border-radius: 18px; box-shadow: 0 4px 18px #13213b08; }
  .app-body .bestellung-group-head { padding: 14px; gap: 10px; }
  .app-body .bestellung-group-badge { font-size: 12px; padding: 5px 8px; }
  .app-body .bestellung-group-buyer { font-size: 15px; }
  .app-body .bestellung-group-username { font-size: 12px; }
  .app-body .bestellung-group-kpis { flex-wrap: wrap; overflow: visible; }
  .app-body .bestellung-group-kpi,
  .app-body .bestellung-group-kpi strong { font-size: 11px; }
  .app-body .bestellung-group-toggle { min-width: 44px; min-height: 44px; }
  .app-body .bestellung-finance-band { padding: 12px 14px; }
  .app-body .bestellung-finance-label { font-size: 10px; letter-spacing: .02em; }
  .app-body .bestellung-finance-value { font-size: 18px; }
  .app-body .bestellung-finance-breakdown { font-size: 11px; line-height: 1.6; }
  .app-body .bestellung-address-toggle { min-height: 44px; font-size: 13px; padding: 10px 14px; }
  .app-body .bestellung-addr-key { font-size: 11px; }
  .app-body .bestellung-addr-val { font-size: 14px; overflow-wrap: anywhere; }
  .app-body .bestellung-group-body { padding: 10px; }
  .app-body .bestellung-item { padding: 12px; gap: 12px; grid-template-columns: 72px minmax(0, 1fr); border-radius: 13px; }
  .app-body .bestellung-img { width: 72px; height: 72px; border-radius: 10px; }
  .app-body .bestellung-product-link { font-size: 15px; line-height: 1.45; -webkit-line-clamp: 4; }
  .app-body .bestellung-sales-pill { font-size: 12px; padding: 5px 8px; }
  .app-body .bestellung-sales-pill-label { font-size: 10px; }
  .app-body .bestellung-source-link,
  .app-body .bestellung-source-switch { min-height: 40px; display: inline-flex; align-items: center; font-size: 13px; }
  .app-body .bestellung-source-edit { width: 42px; height: 42px; }
  .app-body .bestellung-purchase-field label,
  .app-body .bestellung-vehicle-field label { font-size: 12px; }
  .app-body .bestellung-vehicle-field { flex-wrap: wrap; }
  .app-body .bestellung-vehicle-field label { flex: 1 0 100%; }
  .app-body .bestellung-vehicle-input { flex: 1 1 120px; }
  .app-body .bestellung-purchase-input,
  .app-body .bestellung-vehicle-input,
  .app-body .bestellung-aliexpress-link-input { min-height: 44px; font-size: 16px; }
  .app-body .bestellung-meta-row { font-size: 12px; gap: 6px 10px; }
  .app-body .bestellung-meta-row strong { font-size: 13px; }
  .app-body .bestellung-actions-cell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .app-body .bestellung-actions-cell > * { grid-column: 1 / -1; min-width: 0; }
  .app-body .bestellung-actions-cell > .bestellung-comment-quick-actions,
  .app-body .bestellung-actions-cell > .bestellung-comment-entrypoint { grid-column: auto; }
  .app-body .bestellung-comment-quick-btn,
  .app-body .bestellung-comment-entrypoint .btn { width: 100%; }
  .app-body .bestellung-actions-cell .btn,
  .app-body .bestellung-comment-quick-btn { min-height: 44px; font-size: 14px; white-space: normal; }
  .app-body .bestellung-comment-box { padding: 12px; }
  .app-body .bestellung-comment-thread { max-height: 320px; }
  .app-body .bestellung-comment-item { padding: 10px; }
  .app-body .bestellung-comment-item-text,
  .app-body .bestellung-chat-bubble { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
  .app-body .bestellung-comment-item-meta,
  .app-body .bestellung-comment-item-meta strong { font-size: 12px; }
  .app-body .bestellung-comment-icon-btn { min-width: 36px; min-height: 36px; font-size: 17px; }
  .app-body .bestellung-comment-meta { font-size: 11px; }
  .app-body .bestellung-order-actions .form-select-sm,
  .app-body .bestellung-order-actions .form-control-sm { font-size: 16px; min-height: 44px; }
  .app-body .bestellung-order-actions .btn { font-size: 13px; min-height: 44px; }
  .app-body .bestellung-ali-queue-list { max-height: 185px; overflow-y: auto; overscroll-behavior-y: contain; }
  .app-body .bestellung-ali-queue-row { flex: 0 0 auto; }
  .app-body .bestellung-ali-queue { border-radius: 16px; }
  .app-body .bestellung-ali-queue-refresh { min-height: 40px; min-width: 40px; }
  .app-body .bestellung-chat-toggle { min-height: 44px; font-size: 14px; }
  .app-body .bestellung-chat-panel { padding: 12px; }
  .app-body .bestellung-chat-thread { max-height: 360px; }

  .app-body .ol-shell { padding: 0 0 24px; }
  .app-body .adder-shell { padding-left: 0; padding-right: 0; }
  .app-body .adder-shell .nav-tabs,
  .app-body .adder-shell .nav-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .app-body .adder-shell .nav-link { white-space: nowrap; min-height: 44px; }
  .app-body .kpi-table-scroll { max-width: 100%; overscroll-behavior-x: contain; }
  .app-body .kpi-table th { font-size: 11px; }
  .app-body .kpi-table td { font-size: 13px; padding: 12px; }
  .app-body .cinbox-shell { height: calc(100dvh - 160px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 300px; border-radius: 18px; }
  .app-body .cinbox-messages { padding: 12px; }
  .app-body .cinbox-main { min-width: 0; }
  .app-body .cinbox-msg { max-width: 94%; }
  .app-body .cinbox-shell textarea { font-size: 16px; }
  .app-body .cinbox-shell button { min-height: 44px; }
}

.pwa-login { max-width: 430px; margin: 7vh auto; padding: 30px; border: 1px solid #e2e8f0; border-radius: 24px; background: #fff; box-shadow: 0 16px 50px #13213b0a; }
.pwa-login-mark { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 24px; }
.pwa-login h1 { font-size: 1.8rem; font-weight: 750; letter-spacing: -.04em; }
.pwa-login p { color: #64748b; line-height: 1.55; }
.pwa-login label { display: block; margin: 18px 0 8px; font-weight: 600; font-size: 14px; }
.pwa-login input:not([type=hidden]) { width: 100%; min-height: 48px; font-size: 16px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px; }
.pwa-login button { margin-top: 24px; min-height: 48px; width: 100%; border-radius: 12px; font-weight: 600; }
.pwa-login .errorlist { color: #b91c1c; list-style: none; padding: 0; font-size: 14px; }
