@media (max-width: 768px) {
  .trk-head {
    padding: 14px 0 0;
  }

  .trk-head__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .trk-head__lead {
    font-size: 13px;
  }

  .trk-head__actions {
    flex-direction: column;
  }

  .trk-head__actions .rj-btn {
    width: 100%;
    justify-content: center;
  }

  .trk-head__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .trk-head__stat {
    min-width: 0;
    padding: 10px 8px;
  }

  .trk-quick-wrap {
    padding: 16px 0;
  }

  .trk-quick-panel {
    padding: 18px 16px;
  }

  .trk-quick-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trk-pillar-bar {
    grid-template-columns: 1fr;
  }

  .trk-pillar {
    border-right: none !important;
    border-bottom: 1px solid var(--bf-line);
  }

  .trk-pillar:last-child {
    border-bottom: none;
  }

  .trk-main {
    padding-bottom: 36px;
  }

  .trk-layout {
    gap: 16px;
  }

  .trk-sidebar {
    order: 1;
  }

  .trk-result {
    order: 2;
  }

  .trk-input {
    font-size: 16px;
  }

  .trk-order-head {
    flex-direction: column;
    align-items: stretch;
  }

  .trk-status-badge {
    align-self: flex-start;
  }

  .trk-timeline {
    scroll-snap-type: x mandatory;
  }

  .trk-timeline-step {
    flex: 0 0 auto;
    min-width: 88px;
    scroll-snap-align: center;
  }

  .trk-order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .trk-order-actions {
    flex-direction: column;
  }

  .trk-order-actions .rj-btn {
    width: 100%;
    justify-content: center;
  }

  .trk-empty {
    padding: 32px 20px;
  }

  .trk-empty-steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    max-width: none;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .trk-empty-steps::-webkit-scrollbar {
    display: none;
  }

  .trk-empty-step {
    flex: 0 0 min(72vw, 240px);
    scroll-snap-align: start;
    text-align: left;
  }

  .trk-empty-step i {
    margin: 0 0 10px;
  }

  .trk-cta__inner {
    padding: 24px 20px;
  }

  .trk-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .trk-cta__actions .rj-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .trk-head__stats {
    grid-template-columns: 1fr;
  }

  .trk-order-grid {
    grid-template-columns: 1fr;
  }

  .trk-empty-step {
    flex: 0 0 78vw;
  }
}
