/* CarVital ID v28.0.104 — lisibilité renforcée sans changer la police ni la grille. */

/* Les textes secondaires historiquement définis à 8–10 px gagnent juste ce
   qu'il faut pour rester lisibles, sans modifier les espacements des cartes. */
#view [style*="font-size:8px"] { font-size: 10px !important; }
#view [style*="font-size:9px"] { font-size: 10.5px !important; }
#view [style*="font-size:10px"] { font-size: 11px !important; }

#view .badge { font-size: 11px; }
#view .eyebrow { font-size: 10.5px !important; }

/* Même correction sur les petits libellés récurrents des autres écrans.
   Les hauteurs, marges et grilles restent celles du thème existant. */
#view .feat,
#view .quick-action,
#view .compare th,
#view .compare td,
#view .directory-filter,
#view .comfort-label,
#view .home-health-caption small,
#view .home-doc-copy small { font-size: 11px; }

#view .legal-note,
#view .home-summary-copy-v28 small,
#view .cost-field label { font-size: 10.5px; }

#view .global-scan,
#view .space-pill,
#view .header-language,
#view .header-logout,
#view .via-context-label,
#view .cost-source,
#view .home-summary-action-v28 { font-size: 10px; }
#view .header-logout b { font-size: 10px !important; }

/* Cartes compactes des onglets Entretien, Budget et Menu. */
#view .cv-unified-summary-v38 .home-summary-copy-v28 small,
#view .cv-unified-menu-tile-v38 .home-summary-copy-v28 small {
  font-size: 11px !important;
}

#view .cv-entretien-vehicle-copy-v72 small { font-size: 10.5px !important; }
#view .cv-entretien-vehicle-copy-v72 span,
#view .cv-entretien-vehicle-copy-v72 em,
#view .cv-entretien-analysis-plan-v77 { font-size: 10.5px !important; }
#view .via-brand-name-v28 span { font-size: 10.5px !important; }
#view .cv-via-name-v75 span { font-size: 10px !important; }
#view .cv-support-main-divider,
#view .cv-support-main-tile small,
#view .screen > .muted { font-size: 10.5px !important; }

/* Encart et menu Véhicule : mêmes dimensions, textes plus faciles à lire. */
.cv-home-vehicle-action-v41 { font-size: 11px; }
.cv-home-vehicle-side-v40 { font-size: 10.5px; }
.cv-home-vehicle-menu-copy-v40 strong { font-size: 13px; }
.cv-home-vehicle-menu-copy-v40 small { font-size: 11px; }
.cv-home-vehicle-choice-list-v40 .veh-item { font-size: 11px; }
.cv-home-vehicle-detail-v40 > span:first-child { font-size: 10.5px; }
.cv-home-vehicle-value-v40 strong { font-size: 13px; }
.cv-home-vehicle-value-v40 small { font-size: 10.5px; }
.cv-home-vehicle-photo-label-v40 small { font-size: 9.5px; }
.cv-home-vehicle-photo-label-v40 strong { font-size: 10.5px; }
.cv-home-vehicle-photo-v40 .vehicle-visual-label { font-size: 10.5px; }
.cv-home-vehicle-photo-v40 .vehicle-photo-action { font-size: 10.5px; }
#view .plate .eu { font-size: 8.5px !important; }
.vehicle-open,
.edit-vehicle-photo { font-size: 11px !important; }

/* Fenêtres d'ajout/modification : aides et données détectées restent lisibles. */
.vehicle-config-card > p,
.vehicle-config-card label,
.vehicle-vin-help,
.vehicle-via-status { font-size: 11px !important; }
.vehicle-via-profile-summary-v82 li { font-size: 10.5px !important; }
.vehicle-via-profile-summary-v82 small,
.vehicle-color-row small { font-size: 10px !important; }
.vehicle-config-open { font-size: 11px !important; }

/* Les deux encarts de référence demandés restent volontairement inchangés. */
.home-doc-action.cv-home-scan-primary-v28 .home-doc-copy b { font-size: 14px !important; }
.home-doc-action.cv-home-scan-primary-v28 .home-doc-copy small { font-size: 10px !important; }
.home-reminder-tile-v28 .home-summary-copy-v28 strong { font-size: 16px !important; }
.home-reminder-tile-v28 .home-summary-copy-v28 small { font-size: 11px !important; }

/* Barre inférieure compacte, alignée sur les usages des apps mobiles à 5 onglets. */
#nav {
  box-sizing: border-box !important;
  min-height: 0 !important;
  padding: 0 4px max(1px, calc(env(safe-area-inset-bottom, 0px) - 24px)) !important;
  align-items: flex-end !important;
  justify-content: space-around !important;
}

#nav .navbtn {
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 1px 2px 0 !important;
  gap: 0 !important;
  border-radius: 9px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

#nav .navbtn:not(.navvia) > .ico,
#nav .navbtn:not(.navvia) > .cvv-nav-icon,
#nav .navbtn:not(.navvia) > .cvv-nav-icon svg {
  width: 26px !important;
  height: 26px !important;
}

#nav .navbtn > span:last-child {
  min-height: 13px !important;
  font-size: 11.5px !important;
  line-height: 13px !important;
  letter-spacing: 0 !important;
}

#nav .navvia {
  min-width: 0 !important;
  padding: 1px 2px !important;
  transform: none !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

#nav .navvia .via-bot-mark,
#nav .navvia .via-bot-image {
  width: 30px !important;
  height: 30px !important;
}

#nav .navvia > span:last-child {
  font-size: 9.5px !important;
  line-height: 11px !important;
  letter-spacing: .15px !important;
}

@media (max-width: 340px) {
  #nav .navbtn { height: 48px !important; min-height: 48px !important; max-height: 48px !important; }
  #nav .navbtn:not(.navvia) > .ico,
  #nav .navbtn:not(.navvia) > .cvv-nav-icon,
  #nav .navbtn:not(.navvia) > .cvv-nav-icon svg { width: 25px !important; height: 25px !important; }
}
