/* Phone feel: larger tap targets, list skeletons, and a small lazy-load status. Layout size of rows stays put. */

.srt-skel-list { display: grid; gap: 10px; margin: 12px 0; }
.srt-skel-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.srt-skel-row {
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(127, 127, 127, .12), rgba(127, 127, 127, .24), rgba(127, 127, 127, .12));
  background-size: 200% 100%;
  animation: srt-skel 1.2s ease-in-out infinite;
}
@keyframes srt-skel { 50% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .srt-skel-row { animation: none; } }

.srt-lazy-status {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(var(--cr-footer-height, calc(68px + env(safe-area-inset-bottom))) + 12px);
  transform: translateX(-50%);
  max-width: min(92vw, 420px);
  padding: 10px 14px;
  border-radius: 999px;
  background: #17202a;
  color: #fff;
  font: 600 calc(13px * var(--text-scale, 1))/1.3 system-ui, sans-serif;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}
.srt-lazy-status[hidden] { display: none; }

img[loading="lazy"] { content-visibility: auto; }

@media (max-width: 720px), (pointer: coarse) {
  /* v93 pins these top-bar controls at 40px. Keep the same grid slot and raise the hit size. */
  body.srt93-shell[data-portal] .topbar .topbar-actions > :is(.icon-button, .employee-message-button, .driver-toggle, .connection-status, #appearance-toggle) {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  #connection-status { min-height: 44px; min-width: 44px; }
  .srt93-system-pin {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .srt93-reference-hit,
  body.compact-review .modal .srt93-reference-hit {
    min-width: 44px;
    min-height: 44px;
  }
  .leaflet-control-zoom a,
  .fleet-live-map .leaflet-control-zoom a,
  body.compact-review .cr-map-canvas .leaflet-control-zoom a {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
  }
  .srt-more-menu .cr-iconbutton,
  .srt-more-menu .cr-sectionhead button,
  #compact-review .cr-sectionhead button {
    min-width: 44px;
    min-height: 44px;
  }
  #compact-review .cr-date-range input { min-height: 44px; }
  body.compact-review .cr-notice-actions button { min-height: 44px; min-width: 44px; }
}
