/* Phone layout only: keep tablet and desktop styles unchanged. */
@media (max-width: 767px) {
html body.iw-panel-light:not(.login-bg) nav#iw-main-header.iw-header.iw-header-refined .iw-hdr-icon-group > .iw-team-header-link { display: none !important; }
html body.iw-panel-light:not(.login-bg) nav#iw-main-header.iw-header.iw-header-refined .iw-header-inner { grid-template-columns: 36px minmax(0, 1fr) auto !important; grid-template-areas: "menu logo actions" !important; gap: 4px !important; padding: 0 8px !important; }
html body.iw-panel-light:not(.login-bg) nav#iw-main-header.iw-header.iw-header-refined .iw-header-actions { gap: 3px !important; padding-left: 0 !important; }
html body.iw-panel-light:not(.login-bg) nav#iw-main-header.iw-header.iw-header-refined .iw-hdr-icon-group { gap: 2px !important; }
html body.iw-panel-light:not(.login-bg) nav#iw-main-header.iw-header.iw-header-refined .iw-header-logo { display: flex !important; min-width: 0 !important; max-width: 112px !important; padding: 0 !important; }
html body.iw-panel-light:not(.login-bg) nav#iw-main-header.iw-header.iw-header-refined .iw-header-logo img { width: auto !important; max-width: 100% !important; height: auto !important; object-fit: contain !important; }
html body.iw-panel-light:not(.login-bg) nav#iw-main-header.iw-header.iw-header-refined .iw-shell-heading-zone { display: none !important; }
}
@media (max-width: 767px) {
  html body.iw-dashboard-page #iw-tour-stats-grid.iw-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  html body.iw-dashboard-page #iw-tour-stats-grid > .iw-stat-card {
    min-width: 0 !important;
    padding: 12px !important;
  }
  html body.iw-dashboard-page #iw-tour-stats-grid .iw-stat-row {
    flex-wrap: wrap !important;
  }
  html body.iw-dashboard-page #iw-tour-stats-grid .iw-stat-footer {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}

@media (max-width: 767px) {
  html body.iw-dashboard-page #iw-tour-stats-grid .iw-stat-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  html body.iw-dashboard-page #iw-tour-stats-grid .iw-stat-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 4px !important;
  }
  html body.iw-dashboard-page #iw-tour-stats-grid .iw-stat-label {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    min-height: 30px;
  }
}
