/**
 * Mobile large type — phones ONLY (max-width: 768px).
 * Desktop keeps normal app typography.
 */
@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  body,
  .main-content {
    font-size: 16px !important;
    line-height: 1.5 !important;
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .header-title h2,
  .main-content h1.page-title,
  .main-content h1 {
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
  }

  .card-title,
  .modal-title,
  .main-content h2,
  .main-content h3,
  .main-content h4,
  .section-title,
  .exp-panel-header {
    font-size: 24px !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
  }

  .header {
    top: 8px;
    border-radius: 16px;
    max-width: 100%;
  }

  .header-actions,
  .header-actions-scroll,
  .card-header-actions {
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }

  .header-gateway-pin {
    width: 100% !important;
    justify-content: center !important;
  }

  .header-actions-scroll,
  .card-header-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .header-actions-scroll .view-toggle,
  .header-actions-scroll .search-box,
  .header-actions-scroll .user-profile,
  .header-actions-scroll .auth-actions,
  .header-actions-scroll .lang-toggle {
    grid-column: 1 / -1 !important;
  }

  .btn,
  .main-content .btn,
  .header-actions .btn,
  .header-actions-scroll .btn,
  .card-header-actions .btn,
  .card-header-actions label.btn,
  .exp-actions .btn,
  .exp-field-tools .btn,
  .sidebar-auth .btn,
  .auth-btn-group .btn,
  .onboarding-dashboard-banner .btn {
    font-size: 19px !important;
    font-weight: 700 !important;
    min-height: 54px !important;
    padding: 14px 18px !important;
    line-height: 1.25 !important;
  }

  .header-actions .btn,
  .header-actions-scroll .btn,
  .card-header-actions .btn,
  .card-header-actions label.btn {
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .btn-sm,
  .main-content .btn-sm {
    font-size: 17px !important;
    min-height: 48px !important;
    padding: 12px 15px !important;
  }

  .form-label,
  .main-content label,
  label {
    font-size: 18px !important;
    font-weight: 650 !important;
  }

  .form-input,
  select,
  textarea,
  .search-box input,
  .plot-explorer-select,
  .plot-search-wrap input {
    font-size: 19px !important;
    min-height: 54px !important;
  }

  .stat-title {
    font-size: 16px !important;
    font-weight: 750 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.3 !important;
  }

  .stat-value {
    font-size: 36px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
  }

  .stat-change,
  .stat-change span {
    font-size: 17px !important;
    line-height: 1.4 !important;
  }

  .exp-stat-val {
    font-size: 28px !important;
    font-weight: 800 !important;
  }

  .exp-stat-lbl {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }

  .exp-list,
  .exp-muted,
  .action-queue-item,
  .action-queue-item strong {
    font-size: 19px !important;
    line-height: 1.45 !important;
  }

  .action-queue-meta {
    font-size: 17px !important;
  }

  .onboarding-dashboard-banner,
  .onboarding-banner-meta,
  .live-indicator,
  .status-badge,
  .help-text,
  .text-muted,
  small {
    font-size: 17px !important;
    line-height: 1.4 !important;
  }

  #headerStaffName {
    font-size: 18px !important;
  }

  #headerStaffDept {
    font-size: 16px !important;
  }

  .sidebar .nav-link {
    font-size: 19px !important;
    min-height: 54px !important;
    font-weight: 650 !important;
  }

  .sidebar .logo h1 {
    font-size: 26px !important;
  }

  .admin-login-gate h3 {
    font-size: 32px !important;
    font-weight: 800 !important;
  }

  .admin-login-gate p {
    font-size: 19px !important;
    line-height: 1.45 !important;
  }

  .table-container,
  .table-container td {
    font-size: 18px !important;
  }

  .table-container th {
    font-size: 16px !important;
  }

  .client-bottom-nav button span {
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .client-bottom-nav button i {
    font-size: 26px !important;
  }
}

@media (max-width: 480px) {
  body,
  .main-content {
    font-size: 22px !important;
  }

  .card-title,
  .exp-panel-header {
    font-size: 23px !important;
  }

  .stat-value {
    font-size: 34px !important;
  }

  .btn,
  .header-actions .btn {
    font-size: 18px !important;
  }
}
