  .login-swap-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.35);
  }

  .login-swap-overlay.hidden {
    display: none !important;
  }

  .login-swap-dialog {
    width: min(680px, calc(100vw - 32px));
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    overflow: hidden;
  }

  .login-swap-header,
  .login-swap-footer {
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
  }

  .login-swap-footer {
    border-bottom: 0;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }

  .login-swap-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
  }

  .login-swap-body {
    padding: 20px;
    font-size: 1.05rem;
  }

  .vehicle-breakdown-confirm-modal .modal-dialog {
    max-width: 650px;
  }

  .vehicle-breakdown-confirm-modal .modal-title {
    font-size: 1.625rem;
    font-weight: 700;
  }

  .vehicle-breakdown-confirm-modal .modal-body {
    font-size: 1.3rem;
    line-height: 1.4;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
  }

  .vehicle-breakdown-confirm-modal .modal-footer .btn {
    font-size: 1.3rem;
    padding: 0.5rem 1.1rem;
  }

  .report-card-btn {
    border-width: 2px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 130px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  }

  .report-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  }

  .report-card-btn .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .trip-action-col {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .trip-stop-row {
    flex-wrap: nowrap;
  }

  .trip-stop-row > [class*="col-"] {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .trip-time-col {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
  }

  .trip-time-col .roster-content,
  .trip-time-col .clock,
  .trip-pax-col,
  .trip-action-col {
    flex-shrink: 0;
  }

  .trip-time-col .clock.hidden {
    display: none !important;
  }

  .bottom-redo-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    padding-top: 0;
    padding-bottom: 0;
  }

  .bottom-summary-col {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
  }

  #btnFourRedo {
    align-self: center;
    margin: 0;
    white-space: nowrap;
  }

  @media (min-width: 897px) and (max-width: 1000px) {
    #conStation .roster-content-sm {
      font-size: 20px;
    }
  }

  .gps-unavailable-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.28);
    z-index: 20;
    pointer-events: none;
    display: none;
  }

  .gps-unavailable-overlay.show {
    display: block;
  }

  .nav-eta-card {
    position: absolute;
    left: 12px;
    margin-left: 10px;
    bottom: 10px;
    z-index: 30;
    min-width: 100px;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    font-weight: 700;
    line-height: 1.15;
  }

  .btn-path-sim-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    margin-right: 18px;
    z-index: 1040;
    min-width: 110px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
  }

  .path-sim-accuracy-toggle {
    position: absolute;
    top: 11px;
    right: 148px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    font-size: 12px;
    line-height: 1;
  }

  .path-sim-accuracy-toggle input {
    margin: 0;
  }

  .rail-alert-layer {
    position: fixed;
    top: 132px;
    left: 50%;
    transform: translateX(-50%);
    width: min(96vw, 1280px);
    z-index: 2100;
    pointer-events: none;
  }

  .rail-alert-layer .alert {
    margin-bottom: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    pointer-events: auto;
  }

  #alert-off-route {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 30;
    pointer-events: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(33, 37, 41, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: normal;
    width: min(50vw, 351px);
    text-align: left;
    margin-left: 0;
    pointer-events: auto;
  }

  .auto-skip-alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .auto-skip-alert-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .auto-skip-countdown {
    min-width: 32px;
    font-weight: 600;
    text-align: right;
  }
