/*
 * Mecatech — couche DA finale
 * Cette feuille ne contient aucun sélecteur fonctionnel utilisé par app.js.
 * Elle harmonise uniquement les surfaces, les états et le responsive.
 */

:root {
  --da-bg: #06131f;
  --da-bg-deep: #040d16;
  --da-surface: #0b1d2d;
  --da-surface-raised: #10283a;
  --da-surface-soft: #15344a;
  --da-line: #315d78;
  --da-line-soft: rgba(102, 161, 196, .28);
  --da-orange: #ff6a00;
  --da-orange-light: #ff8a1f;
  --da-text: #f7fafc;
  --da-muted: #a9bac6;
  --da-green: #08bd7b;
  --da-red: #f04452;
  --da-yellow: #ffb020;
  --da-radius: 12px;
  --da-shadow: 0 16px 38px rgba(0, 0, 0, .24);
}

html { background: var(--da-bg-deep); }

body[data-page="client"],
body[data-page="profile"],
body[data-page="tracking"],
body[data-page="admin"],
body[data-page="generator"] {
  color: var(--da-text);
  background: var(--da-bg);
  font-family: Inter, system-ui, sans-serif;
}

body[data-page="client"] h1,
body[data-page="client"] h2,
body[data-page="client"] h3,
body[data-page="profile"] h1,
body[data-page="profile"] h2,
body[data-page="profile"] h3,
body[data-page="tracking"] h1,
body[data-page="tracking"] h2,
body[data-page="admin"] h1,
body[data-page="admin"] h2,
body[data-page="admin"] h3,
body[data-page="generator"] h1,
body[data-page="generator"] h2,
body[data-page="generator"] h3 {
  font-family: Manrope, Inter, system-ui, sans-serif;
}

.topbar,
.tracking-header {
  border-bottom: 1px solid var(--da-line) !important;
  background: rgba(4, 15, 25, .97) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .26) !important;
}

.brand-mark {
  border: 1px solid rgba(255, 138, 31, .7) !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .08), 0 8px 20px rgba(0, 0, 0, .3) !important;
}

.nav-primary-links a,
.nav-account-actions button,
.nav-account-actions a { min-height: 38px; }

.nav-primary-links a {
  color: #f4f8fb !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.icon-nav-button,
.icon-button {
  border-color: #4d7894 !important;
  background: #0b2335 !important;
  color: #ffffff !important;
}

.icon-nav-button svg { stroke: #ffffff !important; }

.nav-primary-links a:focus-visible,
.button:focus-visible,
.icon-button:focus-visible,
.icon-nav-button:focus-visible,
.profile-menu-item:focus-visible,
.admin-menu-item:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 138, 31, .38);
  outline-offset: 2px;
}

.button,
button.button,
.tracking-request-trigger {
  min-height: 42px;
  border-radius: 8px !important;
  border-width: 1px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.button:hover,
button.button:hover,
.tracking-request-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  filter: brightness(1.06);
}

.button-primary,
.button-secondary,
.home-action-card.featured,
.profile-menu-item.active,
.admin-menu-item.active {
  background: linear-gradient(135deg, var(--da-orange-light), var(--da-orange)) !important;
  border-color: var(--da-orange) !important;
}

.button-ghost,
.button:not(.button-primary):not(.button-secondary):not(.button-danger) {
  background: var(--da-surface) !important;
  border-color: var(--da-line) !important;
}

body input:not([type="checkbox"]):not([type="radio"]),
body select,
body textarea {
  min-height: 42px;
  border: 1px solid var(--da-line) !important;
  border-radius: 8px !important;
  background: #091b2a !important;
  color: var(--da-text) !important;
}

body label,
.field-label,
.form-label { color: #d6e2e9; }

.panel,
.modal,
.login-card,
.tracking-card,
.notification-panel,
.dashboard-panel,
.profile-stat-card,
.stat-card,
.garage-card,
.vehicle-card,
.client-progress-item,
.compact-item,
.quote-card,
.request-card,
.tracking-entry {
  border: 1px solid var(--da-line) !important;
  border-radius: var(--da-radius) !important;
  background: linear-gradient(145deg, rgba(16, 40, 58, .98), rgba(8, 25, 39, .98)) !important;
  box-shadow: var(--da-shadow) !important;
}

.panel-heading,
.section-intro,
.dashboard-header,
.admin-section-intro {
  border-color: var(--da-line-soft) !important;
}

.badge,
.status-badge,
.tag {
  border: 1px solid var(--da-line) !important;
  border-radius: 999px !important;
  font-weight: 800;
}

.badge.green,
.status-success,
.status-confirmed,
.status-done { background: rgba(8, 189, 123, .18) !important; border-color: var(--da-green) !important; color: #6ff0bd !important; }
.badge.yellow,
.status-pending { background: rgba(255, 176, 32, .18) !important; border-color: var(--da-yellow) !important; color: #ffd477 !important; }
.badge.red,
.status-error,
.status-cancelled { background: rgba(240, 68, 82, .18) !important; border-color: var(--da-red) !important; color: #ff929b !important; }

.profile-sidebar,
.admin-sidebar {
  border-right: 1px solid var(--da-line) !important;
  background: linear-gradient(180deg, #071725, #091e2e) !important;
}

.profile-menu-item,
.admin-menu-item {
  border: 1px solid transparent;
  border-radius: 8px !important;
  color: #c8d7df !important;
}

.profile-menu-item:hover,
.admin-menu-item:hover { background: var(--da-surface-soft) !important; }

.profile-menu-item.active,
.admin-menu-item.active { box-shadow: 0 8px 18px rgba(255, 106, 0, .2); }

.empty-state,
.state-empty,
.loading-state,
.error-state,
.success-state {
  border: 1px dashed var(--da-line) !important;
  border-radius: var(--da-radius) !important;
  background: rgba(13, 34, 51, .72) !important;
}

.toast,
.notification,
.alert {
  border: 1px solid var(--da-line) !important;
  border-radius: 10px !important;
  box-shadow: var(--da-shadow) !important;
}

/* Accueil public : les cartes chevauchent légèrement la jonction hero/prestations,
   comme dans la maquette. Le contenu de la section garde assez d'air dessous. */
body[data-page="client"] > .home-actions.home-actions-single {
  position: relative !important;
  z-index: 8 !important;
  margin-top: -56px !important;
  margin-bottom: 0 !important;
  transform: translateY(42px) !important;
}

body[data-page="client"] > #services.page-band {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
  padding-top: 46px !important;
  background: #dbe5eb !important;
  color: #102234 !important;
}

body[data-page="client"] > #services.page-band h2,
body[data-page="client"] > #services.page-band h3,
body[data-page="client"] > #services.page-band strong {
  color: #102234 !important;
}

body[data-page="client"] > #services.page-band .service-card {
  border-color: #d6e0e7 !important;
  background: #edf2f5 !important;
  color: #102234 !important;
  box-shadow: 0 10px 24px rgba(16, 34, 52, .08) !important;
}

body[data-page="client"] > #services.page-band .service-card > small,
body[data-page="client"] > #services.page-band .service-card p {
  color: #53697a !important;
}

body[data-page="client"] > .home-actions .home-action-card {
  border-color: #d6e0e7 !important;
  background: #d9e4ea !important;
  color: #102234 !important;
}

body[data-page="client"] > .home-actions .home-action-card strong { color: #102234 !important; }
body[data-page="client"] > .home-actions .home-action-card small { color: #425a6b !important; }
body[data-page="client"] > .home-actions .home-action-card .home-action-arrow { color: #d95600 !important; }
body[data-page="client"] > .home-actions .home-action-card.featured {
  border-color: var(--da-orange) !important;
  background: linear-gradient(135deg, var(--da-orange-light), var(--da-orange)) !important;
  color: #ffffff !important;
}
body[data-page="client"] > .home-actions .home-action-card.featured strong,
body[data-page="client"] > .home-actions .home-action-card.featured small,
body[data-page="client"] > .home-actions .home-action-card.featured .home-action-arrow { color: #ffffff !important; }

/* Proportions des cartes d'action selon la maquette : mêmes icônes, surfaces
   plus généreuses et meilleure respiration du contenu. */
body[data-page="client"] > .home-actions .home-action-card {
  min-height: 124px !important;
  padding: 22px 25px !important;
  gap: 16px !important;
}

body[data-page="client"] > .home-actions .home-action-icon {
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px;
  font-size: 25px !important;
}

body[data-page="client"] > .home-actions .home-action-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

body[data-page="client"] > .home-actions .home-action-icon {
  border: 1px solid #6d91a8;
  border-radius: 50% !important;
  background: transparent !important;
  color: #e7f2f7 !important;
}
body[data-page="client"] > .home-actions .home-action-card.featured .home-action-icon {
  border-color: #ffb06b;
  background: #ff6a00 !important;
  color: #ffffff !important;
}

body[data-page="client"] > .home-actions .home-action-card strong {
  margin-bottom: 6px !important;
  font-size: 16px !important;
}

body[data-page="client"] > .home-actions .home-action-card small {
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body[data-page="client"] > .home-actions .home-action-arrow { font-size: 20px !important; }

body[data-page="client"] .home-hero-lead { color: #f1f6f8 !important; }
body[data-page="client"] .services-view-all { color: #d95600 !important; }

body[data-page="client"] .allo-voisins-proof,
body[data-page="client"] .public-business-stats-hero {
  position: relative !important;
  z-index: 12 !important;
  border-color: #6d91a8 !important;
  background: rgba(7, 23, 36, .96) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28) !important;
}

body[data-page="client"] .allo-voisins-proof {
  transform: none !important;
  margin-top: 18px !important;
}

/* Valeurs finales volontairement franches pour éviter le retour du blanc pur
   provenant des anciennes règles historiques. */
body[data-page="client"] > .home-actions .home-action-card:not(.featured) {
  background-color: #d9e4ea !important;
  background-image: none !important;
}

body[data-page="client"] > #services.page-band,
body[data-page="client"] > #services.page-band .service-card {
  background-image: none !important;
}

/* Harmonisation sombre : contraste plus proche de la DA automobile et moins
   agressif que l'opposition blanc pur / orange vif. */
body[data-page="client"] > #services.page-band {
  background: #0b2233 !important;
  color: #f2f6f8 !important;
}

body[data-page="client"] > #services.page-band h2,
body[data-page="client"] > #services.page-band h3,
body[data-page="client"] > #services.page-band strong {
  color: #f2f6f8 !important;
}

body[data-page="client"] > #services.page-band .service-card {
  border-color: #315a72 !important;
  background: #102d42 !important;
  color: #f2f6f8 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .2) !important;
}

body[data-page="client"] > #services.page-band .service-card::before { display: none !important; }
body[data-page="client"] > #services.page-band .service-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 106, 0, .12);
  color: #ff8730;
}
body[data-page="client"] > #services.page-band .service-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
body[data-page="client"] > #services.page-band .service-icon-climate { color: #ffbd4a; background: rgba(255, 189, 74, .12); }
body[data-page="client"] > #services.page-band .service-icon-brake { color: #ff9a4d; }
body[data-page="client"] > #services.page-band .service-icon-distribution { color: #ff8730; }
body[data-page="client"] > #services.page-band .service-icon-embrayage { color: #ff8730; }

body[data-page="client"] > #services.page-band .service-card > small,
body[data-page="client"] > #services.page-band .service-card p {
  color: #b6c8d2 !important;
}

body[data-page="client"] > .home-actions .home-action-card:not(.featured) {
  border-color: #315a72 !important;
  background: #102d42 !important;
  color: #f2f6f8 !important;
}

body[data-page="client"] > .home-actions .home-action-card:not(.featured) strong { color: #f2f6f8 !important; }
body[data-page="client"] > .home-actions .home-action-card:not(.featured) small { color: #b6c8d2 !important; }
body[data-page="client"] > .home-actions .home-action-card.featured {
  background: #e66b0c !important;
  border-color: #ff8a1f !important;
}

/* Cartes indépendantes, avec les angles visibles comme sur la DA. */
body[data-page="client"] > .home-actions.home-actions-single {
  display: grid !important;
  gap: 10px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="client"] > .home-actions .home-action-card {
  border: 1px solid #416b83 !important;
  border-radius: 14px !important;
  overflow: hidden;
}

body[data-page="client"] > .home-actions .home-action-card.featured {
  border-radius: 14px !important;
}

body[data-page="client"] .allo-voisins-proof strong,
body[data-page="client"] .public-business-stats-hero strong { color: #ffffff !important; }
body[data-page="client"] .allo-voisins-proof a { color: #9bd8ff !important; }

body[data-page="client"] .process-card {
  border-color: var(--da-line) !important;
  background: rgba(16, 40, 58, .9) !important;
}

/* Garde-fous de largeur : aucun élément de l'accueil ne doit imposer une
   largeur minimale au viewport ni repousser le contenu hors écran. */
body[data-page="client"],
body[data-page="client"] > .topbar,
body[data-page="client"] > .home-hero,
body[data-page="client"] > .home-actions,
body[data-page="client"] > #services.page-band,
body[data-page="client"] > #fonctionnement,
body[data-page="client"] > .site-footer {
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-page="client"] > .topbar { width: 100% !important; }
body[data-page="client"] > .topbar .brand { min-width: 0 !important; flex-shrink: 1; }
body[data-page="client"] > .topbar .brand > span:last-child { min-width: 0; }
body[data-page="client"] > .topbar .nav-actions { min-width: 0; overflow: hidden; }

@media (max-width: 1100px) {
  body[data-page="client"] > .home-hero,
  body[data-page="client"] > #services.page-band,
  body[data-page="client"] > #fonctionnement,
  body[data-page="client"] > .site-footer { width: calc(100% - 28px) !important; }
  body[data-page="client"] > .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr) !important;
  }
  body[data-page="client"] > .home-actions.home-actions-single {
    width: calc(100% - 56px) !important;
  }
  body[data-page="client"] .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (min-width: 1101px) {
  body[data-page="client"] > .home-hero,
  body[data-page="client"] > #services.page-band,
  body[data-page="client"] > #fonctionnement,
  body[data-page="client"] > .site-footer {
    width: min(1600px, calc(100% - 48px)) !important;
    max-width: none !important;
  }

  body[data-page="client"] > .home-actions.home-actions-single {
    width: min(1480px, calc(100% - 160px)) !important;
    max-width: none !important;
  }
}

@media (max-width: 600px) {
  body[data-page="client"] > .topbar { width: 100% !important; padding-inline: 10px !important; }
  body[data-page="client"] > .topbar .nav-primary-links { display: none !important; }
  body[data-page="client"] > .home-hero {
    display: grid !important;
    width: 100% !important;
    min-height: 290px !important;
    height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 30px 18px 120px !important;
  }
  body[data-page="client"] .home-hero-content { width: 100% !important; }
  body[data-page="client"] .home-hero-card {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 46% !important;
    min-height: 210px !important;
  }
  body[data-page="client"] .home-hero-mascot { width: 150% !important; height: 260px !important; right: -28% !important; }
  body[data-page="client"] .home-hero-mascot img { height: 260px !important; }
  body[data-page="client"] > .home-actions.home-actions-single {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    margin-top: -12px !important;
  }
  body[data-page="client"] > .home-actions .home-action-card {
    min-height: 84px !important;
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  body[data-page="client"] > .home-actions .home-action-icon {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px;
    font-size: 19px !important;
  }
  body[data-page="client"] > .home-actions .home-action-icon svg { width: 22px; height: 22px; }
  body[data-page="client"] > .home-actions .home-action-card strong { font-size: 13px !important; }
  body[data-page="client"] > .home-actions .home-action-card small { font-size: 10px !important; }
  body[data-page="client"] > #services.page-band { width: 100% !important; padding-inline: 16px !important; }
  body[data-page="client"] .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Composition basse inspirée de la planche DA. */
body[data-page="client"] .home-da-bottom,
body[data-page="client"] .home-da-trust {
  width: min(1600px, calc(100% - 48px));
  margin-inline: auto;
}

body[data-page="client"] .home-da-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .9fr);
  gap: 16px;
  padding: 28px 32px;
  border: 1px solid #315a72;
  background: #071a29;
}

body[data-page="client"] .home-da-reasons {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

body[data-page="client"] .home-da-tracking-card {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

body[data-page="client"] .home-da-section-heading h2,
body[data-page="client"] .home-da-trust h2 { margin: 0 0 6px; color: #f2f6f8; }
body[data-page="client"] .home-da-section-heading p,
body[data-page="client"] .home-da-trust p { margin: 0; color: #a9bfcb; }

body[data-page="client"] .home-da-reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

body[data-page="client"] .home-da-reason-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border-right: 1px solid rgba(91, 139, 169, .35);
}

body[data-page="client"] .home-da-reason-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 106, 0, .16);
  color: #ff7e24;
  font-size: 23px;
}

body[data-page="client"] .home-da-reason-card strong { color: #f2f6f8; font-size: 13px; }
body[data-page="client"] .home-da-reason-card small { color: #9fb7c4; font-size: 10px; line-height: 1.35; }

body[data-page="client"] .home-da-tracking-card {
  display: flex;
  min-height: 190px;
  align-items: center;
  padding: 26px;
  border: 1px solid #315a72;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(5, 17, 27, .94), rgba(5, 17, 27, .5)), url("assets/mecatech-workshop-hero.png") center / cover;
  text-decoration: none;
}

body[data-page="client"] .home-da-tracking-card h3 { max-width: 280px; margin: 0 0 16px; color: #f2f6f8; font-size: 22px; line-height: 1.1; }

body[data-page="client"] .home-da-trust {
  position: relative;
  display: grid;
  min-height: 220px;
  grid-template-columns: minmax(250px, .85fr) minmax(300px, 1.15fr);
  gap: 28px;
  overflow: hidden;
  padding: 32px 34px;
  border: 1px solid #315a72;
  background: linear-gradient(90deg, rgba(4, 15, 24, .96), rgba(4, 15, 24, .45)), url("assets/mecatech-workshop-hero.png") center / cover;
}

body[data-page="client"] .home-da-trust-copy,
body[data-page="client"] .home-da-trust-cta { position: relative; z-index: 2; }
body[data-page="client"] .home-da-trust-copy { align-self: start; justify-self: start; }
body[data-page="client"] .home-da-trust-cta { justify-self: start; }
body[data-page="client"] .home-da-trust h2 { max-width: 360px; font-size: 25px; }
body[data-page="client"] .home-da-trust-cta { align-self: center; }
body[data-page="client"] .home-da-trust-cta h3 { margin: 0 0 6px; color: #f2f6f8; font-size: 22px; }
body[data-page="client"] .home-da-trust-cta p { margin-bottom: 14px; }
body[data-page="client"] .home-da-trust-mascot { position: absolute; z-index: 1; right: 3%; bottom: -100px; width: 260px; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .55)); }
body[data-page="client"] .home-da-trust .allo-voisins-proof { width: fit-content; margin-top: 18px !important; }

@media (max-width: 820px) {
  body[data-page="client"] .home-da-bottom,
  body[data-page="client"] .home-da-trust { width: calc(100% - 28px); }
  body[data-page="client"] .home-da-bottom { grid-template-columns: 1fr; }
  body[data-page="client"] .home-da-reasons,
  body[data-page="client"] .home-da-tracking-card { grid-column: 1; grid-row: auto; }
  body[data-page="client"] .home-da-reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="client"] .home-da-trust { grid-template-columns: 1fr; }
  body[data-page="client"] .home-da-trust-mascot { width: 210px; right: -15px; bottom: -72px; opacity: .8; }
}

/* Confiance + rendez-vous sur une seule ligne sur grand écran. */
@media (min-width: 821px) {
  body[data-page="client"] .home-da-trust {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 250px !important;
    align-items: center !important;
    min-height: 220px !important;
    padding: 28px 34px !important;
  }

  body[data-page="client"] .home-da-trust-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
  }

  body[data-page="client"] .home-da-trust-cta {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
  }

  body[data-page="client"] .home-da-trust-mascot {
    right: 18px !important;
    bottom: -118px !important;
    width: 330px !important;
  }
}

@media (max-width: 520px) {
  body[data-page="client"] .home-da-bottom,
  body[data-page="client"] .home-da-trust { width: 100%; padding: 24px 16px; }
  body[data-page="client"] .home-da-reason-grid { gap: 4px; }
  body[data-page="client"] .home-da-reason-card { min-height: 100px; padding: 10px; }
  body[data-page="client"] .home-da-reason-card strong { font-size: 11px; }
  body[data-page="client"] .home-da-reason-card small { font-size: 9px; }
  body[data-page="client"] .home-da-trust { min-height: 300px; }
}

/* Espace client : le menu occupe toute la colonne gauche, tandis que le
   bandeau et le tableau de bord restent dans la colonne principale. */
body[data-page="profile"] > .topbar { display: none !important; }
body[data-page="profile"] .account-page { padding-top: 0 !important; }
body[data-page="profile"] .account-panel { width: 100% !important; max-width: 1400px !important; margin: 0 auto !important; }
body[data-page="profile"] .profile-layout { margin-top: 0 !important; grid-template-columns: 220px minmax(0, 1fr) !important; }
body[data-page="profile"] .profile-sidebar { min-height: 100vh !important; padding: 12px 12px 28px !important; }
body[data-page="profile"] .profile-main { padding: 0 30px 50px !important; }
body[data-page="profile"] .profile-main > .band-header { min-height: 122px !important; padding: 28px 0 24px !important; border-bottom: 1px solid #23455a; background: linear-gradient(90deg, #071725, #0d2a40) !important; }
body[data-page="profile"] .profile-main > .band-header::after { display: none !important; }
body[data-page="profile"] .profile-main > .band-header h1 { margin: 7px 0 0 !important; font-size: clamp(24px, 2.3vw, 34px) !important; }
body[data-page="profile"] .profile-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin: 16px 0 0 !important; }
body[data-page="profile"] .profile-sidebar-brand { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0 5px 24px; color: #fff; text-decoration: none; }
body[data-page="profile"] .profile-sidebar-brand .brand-mark { width: 34px !important; height: 34px !important; flex-basis: 34px !important; }
body[data-page="profile"] .profile-sidebar-brand > span:last-child { display: grid; gap: 2px; }
body[data-page="profile"] .profile-sidebar-brand strong { color: #fff; font-size: 13px; font-style: italic; }
body[data-page="profile"] .profile-sidebar-brand strong span { color: var(--m-orange); }
body[data-page="profile"] .profile-sidebar-brand small { color: #8fa5b4; font-size: 7px; text-transform: uppercase; }

@media (max-width: 820px) {
  body[data-page="profile"] .profile-layout { display: block !important; }
  body[data-page="profile"] .profile-sidebar { min-height: 0 !important; padding: 10px 12px !important; }
  body[data-page="profile"] .profile-sidebar-brand { margin-bottom: 10px; }
  body[data-page="profile"] .profile-main { padding: 0 14px 40px !important; }
  body[data-page="profile"] .profile-main > .band-header { min-height: 100px !important; padding: 20px 0 !important; }
  body[data-page="profile"] .profile-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin-top: 12px !important; }
}

/* Nouvelle vue d’ensemble de l’espace client, inspirée de la maquette. */
body[data-page="profile"] .account-panel > .band-header {
  min-height: 104px !important;
  padding: 24px 36px 24px 286px !important;
  background: linear-gradient(90deg, #071725, #0d2a40) !important;
}

body[data-page="profile"] .account-panel > .band-header h1 {
  font-size: clamp(22px, 2.2vw, 30px) !important;
}

body[data-page="profile"] .account-panel > .band-header::after {
  display: none !important;
}

body[data-page="profile"] .profile-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: -16px 36px 0 286px !important;
  gap: 12px !important;
}

body[data-page="profile"] .profile-stat-card:last-child { display: none !important; }
body[data-page="profile"] .profile-stat-card { min-height: 92px !important; padding: 15px !important; }
body[data-page="profile"] .profile-stat-card strong { font-size: 24px !important; }

body[data-page="profile"] .profile-layout {
  grid-template-columns: 230px minmax(0, 1fr) !important;
  min-height: calc(100vh - 190px) !important;
  margin-top: 16px !important;
}

body[data-page="profile"] .profile-sidebar {
  padding: 24px 14px 28px !important;
}

body[data-page="profile"] .profile-main {
  padding: 24px 32px 50px !important;
  background: #081a29 !important;
}

body[data-page="profile"] .profile-dashboard-home {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 14px;
  margin: 0 auto 18px;
  max-width: 1180px;
}

body[data-page="profile"] .profile-dashboard-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #234b63;
  border-radius: 8px;
  background: linear-gradient(145deg, #0c2437, #081b2b);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

body[data-page="profile"] .profile-dashboard-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body[data-page="profile"] .profile-dashboard-card-heading h2 {
  margin: 0;
  color: #f4f8fb;
  font-size: 16px;
}

body[data-page="profile"] .profile-dashboard-card-heading .button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
}

body[data-page="profile"] .profile-dashboard-vehicle-content {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

body[data-page="profile"] .profile-dashboard-vehicle-media,
body[data-page="profile"] .profile-dashboard-vehicle-media img,
body[data-page="profile"] .profile-dashboard-vehicle-placeholder {
  width: 145px;
  height: 92px;
  border-radius: 6px;
}

body[data-page="profile"] .profile-dashboard-vehicle-media {
  overflow: hidden;
  background: #102d42;
}

body[data-page="profile"] .profile-dashboard-vehicle-media img { display: block; object-fit: cover; }
body[data-page="profile"] .profile-dashboard-vehicle-placeholder { display: grid; place-items: center; font-size: 34px; }
body[data-page="profile"] .profile-dashboard-vehicle-copy { display: grid; gap: 4px; min-width: 0; }
body[data-page="profile"] .profile-dashboard-vehicle-copy strong { color: #f4f8fb; font-size: 14px; }
body[data-page="profile"] .profile-dashboard-vehicle-copy span,
body[data-page="profile"] .profile-dashboard-vehicle-copy small,
body[data-page="profile"] .profile-dashboard-next-item span,
body[data-page="profile"] .profile-dashboard-next-item small { color: #9db4c2; font-size: 10px; }
body[data-page="profile"] .profile-dashboard-vehicle-copy .button { justify-self: start; margin-top: 7px; min-height: 28px; padding: 5px 10px; font-size: 10px; }

body[data-page="profile"] .profile-dashboard-next-item { display: grid; gap: 7px; padding: 12px; border: 1px solid #1e4760; border-radius: 6px; background: rgba(4, 15, 24, .38); }
body[data-page="profile"] .profile-dashboard-next-item strong { color: #f4f8fb; font-size: 13px; }
body[data-page="profile"] .profile-dashboard-next-item .badge { justify-self: start; }

body[data-page="profile"] .profile-dashboard-history { grid-column: 1 / -1; }
body[data-page="profile"] .profile-dashboard-history-list { display: grid; gap: 7px; }
body[data-page="profile"] .profile-dashboard-history-item { display: grid; grid-template-columns: 90px minmax(0, 1fr) 100px auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #1b4158; border-radius: 5px; background: rgba(4, 15, 24, .34); }
body[data-page="profile"] .profile-dashboard-history-item span,
body[data-page="profile"] .profile-dashboard-history-item small { color: #8fa8b8; font-size: 10px; }
body[data-page="profile"] .profile-dashboard-history-item strong { color: #e8f1f5; font-size: 11px; }

body[data-page="profile"] .profile-dashboard-empty { display: grid; gap: 10px; }
body[data-page="profile"] .profile-dashboard-empty p { margin: 0; color: #a7bdc9; font-size: 11px; }
body[data-page="profile"] .profile-dashboard-empty .button { justify-self: start; min-height: 30px; padding: 6px 10px; font-size: 10px; }

@media (max-width: 820px) {
  body[data-page="profile"] .account-panel > .band-header { padding: 22px 18px !important; }
  body[data-page="profile"] .profile-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin: 14px 14px 0 !important; }
  body[data-page="profile"] .profile-layout { margin-top: 14px !important; }
  body[data-page="profile"] .profile-main { padding: 18px 14px 40px !important; }
  body[data-page="profile"] .profile-dashboard-home { grid-template-columns: 1fr; }
  body[data-page="profile"] .profile-dashboard-history { grid-column: auto; }
}

@media (max-width: 520px) {
  body[data-page="profile"] .profile-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-content { grid-template-columns: 105px minmax(0, 1fr); gap: 10px; }
  body[data-page="profile"] .profile-dashboard-vehicle-media,
  body[data-page="profile"] .profile-dashboard-vehicle-media img,
  body[data-page="profile"] .profile-dashboard-vehicle-placeholder { width: 105px; height: 75px; }
  body[data-page="profile"] .profile-dashboard-history-item { grid-template-columns: 1fr auto; gap: 5px 9px; }
  body[data-page="profile"] .profile-dashboard-history-item small { grid-column: 1; }
  body[data-page="profile"] .profile-dashboard-history-item .badge { grid-column: 2; grid-row: 1 / span 2; }
}

/* Disposition finale du tableau de bord client : le menu reste à gauche et
   le contenu principal commence directement dans la colonne de droite. */
body[data-page="profile"] > .topbar { display: none !important; }
body[data-page="profile"] .account-page { padding-top: 0 !important; }
body[data-page="profile"] .account-panel { width: 100% !important; max-width: 1400px !important; margin: 0 auto !important; }
body[data-page="profile"] .profile-layout { margin-top: 0 !important; grid-template-columns: 220px minmax(0, 1fr) !important; min-height: 100vh !important; }
body[data-page="profile"] .profile-sidebar { min-height: 100vh !important; padding: 12px 12px 28px !important; }
body[data-page="profile"] .profile-main { padding: 0 30px 50px !important; background: #081a29 !important; }
body[data-page="profile"] .profile-main > .band-header { min-height: 122px !important; padding: 28px 0 24px !important; border-bottom: 1px solid #23455a !important; background: linear-gradient(90deg, #071725, #0d2a40) !important; }
body[data-page="profile"] .profile-main > .band-header::after { display: none !important; }
body[data-page="profile"] .profile-main > .band-header h1 { margin: 7px 0 0 !important; font-size: clamp(24px, 2.3vw, 34px) !important; }
body[data-page="profile"] .profile-main > .client-section-intro { display: none !important; }
body[data-page="profile"] .profile-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin: 16px 0 0 !important; }
body[data-page="profile"] .profile-sidebar-brand { display: flex !important; align-items: center; gap: 8px; min-height: 48px; margin: 0 5px 24px; color: #fff; text-decoration: none; }
body[data-page="profile"] .profile-dashboard-home { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr) !important; margin-top: 18px !important; }
body[data-page="profile"] .profile-dashboard-history { grid-column: 1 / -1 !important; }

@media (max-width: 820px) {
  body[data-page="profile"] .profile-layout { display: block !important; min-height: 0 !important; }
  body[data-page="profile"] .profile-sidebar { min-height: 0 !important; padding: 10px 12px !important; }
  body[data-page="profile"] .profile-sidebar-brand { margin-bottom: 10px !important; }
  body[data-page="profile"] .profile-main { padding: 0 14px 40px !important; }
  body[data-page="profile"] .profile-main > .band-header { min-height: 100px !important; padding: 20px 0 !important; }
  body[data-page="profile"] .profile-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin-top: 12px !important; }
  body[data-page="profile"] .profile-dashboard-home { grid-template-columns: 1fr !important; }
  body[data-page="profile"] .profile-dashboard-history { grid-column: auto !important; }
}

@media (max-width: 520px) {
  body[data-page="profile"] .profile-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Le logo doit rester le premier élément visible de la colonne latérale. */
body[data-page="profile"] .profile-sidebar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
  gap: 8px !important;
  position: sticky !important;
  top: 0 !important;
}
body[data-page="profile"] .profile-sidebar::before { display: none !important; }
body[data-page="profile"] .profile-sidebar-brand { order: 0 !important; align-self: flex-start !important; margin: 0 5px 12px !important; }
body[data-page="profile"] .profile-nav-heading { order: 1 !important; }
body[data-page="profile"] .profile-menu-item { order: 2 !important; flex: 0 0 auto !important; }
body[data-page="profile"] .profile-layout { padding: 0 !important; }
body[data-page="profile"] .profile-menu-item { justify-content: flex-start !important; }
body[data-page="profile"] .profile-menu-item::before { display: none !important; }
body[data-page="profile"] .profile-menu-icon { display: inline-block; width: 18px; min-width: 18px; height: 18px; color: #a9bfcc; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
body[data-page="profile"] .profile-menu-item.active .profile-menu-icon,
body[data-page="profile"] .profile-menu-item:hover .profile-menu-icon { color: #fff; }
body[data-page="profile"] .profile-menu-item > span:not(.profile-menu-icon):not(.menu-badge) { min-width: 0; }
body[data-page="profile"] .profile-stat-card { align-items: flex-start !important; }
body[data-page="profile"] .profile-stat-icon { display: inline-grid; width: 38px; min-width: 38px; height: 38px; place-items: center; border-radius: 9px; background: rgba(255, 106, 0, .14); color: var(--m-orange); }
body[data-page="profile"] .profile-stat-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="profile"] .profile-stat-card > div { min-width: 0; }
body[data-page="profile"] .profile-stat-link { display: inline-block; margin-top: 4px; color: var(--m-orange-light); font-size: 9px; font-weight: 800; text-decoration: none; white-space: nowrap; }
body[data-page="profile"] .profile-stat-link:hover { color: #fff; text-decoration: underline; }
body[data-page="profile"] .account-heading-status { display: inline-flex !important; align-items: center; gap: 9px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
body[data-page="profile"] .account-user-avatar { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #2f607a; border-radius: 50%; background: #102e43; color: #fff; font-size: 10px; font-weight: 800; }
body[data-page="profile"] .account-user-copy { display: grid; gap: 2px; text-align: right; }
body[data-page="profile"] .account-user-copy strong { color: #f2f7fa; font-size: 10px; line-height: 1.1; }
body[data-page="profile"] .account-user-copy small { color: #8fa8b8; font-size: 7px; line-height: 1.1; white-space: nowrap; }
body[data-page="profile"] .account-heading-status { gap: 10px; }
body[data-page="profile"] .account-user-avatar { width: 38px; height: 38px; border: 1px solid #4d7286; background: linear-gradient(145deg, #102f45, #071522); color: #fff; font-size: 11px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); overflow: hidden; }
body[data-page="profile"] .account-user-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
body[data-page="profile"] .account-user-avatar svg { width: 19px; height: 19px; fill: none; stroke: #dbeaf0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="profile"] .account-user-copy { gap: 3px; text-align: left; }
body[data-page="profile"] .account-user-copy strong { font-size: 12px; line-height: 1.15; white-space: nowrap; }
body[data-page="profile"] .account-user-copy small { font-size: 8px; color: #9fb5c1; }
body[data-page="profile"] .profile-mobile-nav { display: none; }
body[data-page="profile"] .profile-mobile-account { display: none; }
body[data-page="profile"][data-active-profile-tab]:not([data-active-profile-tab="infos"]) .profile-stats-grid,
body[data-page="profile"][data-active-profile-tab]:not([data-active-profile-tab="infos"]) .profile-dashboard-home { display: none !important; }
body[data-page="profile"][data-active-profile-tab]:not([data-active-profile-tab="infos"]) .profile-main > .profile-tab-panel.active { margin-top: 22px; }
body[data-page="profile"] .profile-main > .band-header { margin-left: -30px !important; margin-right: -30px !important; padding-left: 30px !important; padding-right: 30px !important; }
@media (max-width: 820px) {
  body[data-page="profile"] .profile-main > .band-header { margin-left: -14px !important; margin-right: -14px !important; padding-left: 14px !important; padding-right: 14px !important; }
}

@media (max-width: 600px) {
  body[data-page="profile"] { background: #06131e !important; }
  html, body { max-width: 100%; overflow-x: hidden !important; }
  body[data-page="profile"] main,
  body[data-page="profile"] .account-page,
  body[data-page="profile"] .account-panel,
  body[data-page="profile"] .profile-layout,
  body[data-page="profile"] .profile-main,
  body[data-page="profile"] .profile-tab-panel { width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; overflow-x: hidden !important; }
  body[data-page="profile"] .account-page { width: 100% !important; margin: 0 !important; }
  body[data-page="profile"] .account-panel { border: 0 !important; border-radius: 0 !important; background: #06131e !important; }
  body[data-page="profile"] .profile-layout { display: block !important; min-height: 0 !important; }
  body[data-page="profile"] .profile-sidebar { position: static !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; min-height: 0 !important; padding: 10px 16px 8px !important; border: 0 !important; border-bottom: 1px solid #21465d !important; background: #071725 !important; }
  body[data-page="profile"] .profile-sidebar { border-bottom-color: rgba(93, 139, 160, .34) !important; background: linear-gradient(180deg, #071725, #081b2a) !important; }
  body[data-page="profile"] .profile-sidebar-brand { min-height: 38px !important; margin: 0 !important; }
  body[data-page="profile"] .profile-sidebar-brand .brand-mark { width: 30px !important; height: 30px !important; flex-basis: 30px !important; }
  body[data-page="profile"] .profile-sidebar-brand strong { font-size: 12px !important; }
  body[data-page="profile"] .profile-sidebar-brand small { font-size: 6px !important; }
  body[data-page="profile"] .profile-nav-heading,
  body[data-page="profile"] .profile-menu-item { display: none !important; }
  body[data-page="profile"] .profile-mobile-account { display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
  body[data-page="profile"] .profile-mobile-account .account-user-avatar { width: 28px; height: 28px; }
  body[data-page="profile"] .profile-mobile-account .account-user-copy { display: grid !important; gap: 2px; text-align: left; }
  body[data-page="profile"] .profile-mobile-account .account-user-copy strong { color: #f1f6f8; font-size: 8px; white-space: nowrap; }
  body[data-page="profile"] .profile-mobile-account .account-user-copy small { color: #8fa8b8; font-size: 6px; white-space: nowrap; }
  body[data-page="profile"] .profile-main { padding: 0 14px 86px !important; background: #06131e !important; }
  body[data-page="profile"] .profile-main > .band-header { min-height: 104px !important; margin: 0 -14px !important; padding: 18px 14px 16px !important; border-bottom-color: rgba(93, 139, 160, .3) !important; background: linear-gradient(135deg, #071725, #0b2234) !important; }
  body[data-page="profile"] .profile-main > .band-header { display: block !important; }
  body[data-page="profile"] .profile-main > .band-header { display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; min-height: 104px !important; padding: 10px 14px 12px !important; }
  body[data-page="profile"] .profile-main > .band-header .account-heading-status { display: none !important; }
  body[data-page="profile"] .account-heading-status { position: static !important; order: 1; display: flex !important; align-items: center; width: 100%; margin: 0 0 5px; gap: 8px; }
  body[data-page="profile"] .account-heading-status::after { margin-left: auto; color: #91a9b7; content: "•••"; font-size: 12px; letter-spacing: 2px; }
  body[data-page="profile"] .account-user-avatar { width: 28px; height: 28px; }
  body[data-page="profile"] .account-user-copy { display: grid !important; gap: 2px; text-align: left; }
  body[data-page="profile"] .account-user-copy strong { font-size: 9px; }
  body[data-page="profile"] .account-user-copy small { font-size: 6px; }
  body[data-page="profile"] .account-heading-copy { order: 2; align-self: flex-start !important; width: 100% !important; text-align: left !important; }
  body[data-page="profile"] .profile-main > .band-header h1 { margin-top: 5px !important; font-size: 22px !important; }
  body[data-page="profile"] .account-heading-copy .section-kicker { font-size: 8px !important; }
  body[data-page="profile"][data-active-profile-tab="infos"] .profile-tab-panel[data-profile-panel="infos"] { display: none !important; }
  body[data-page="profile"] .profile-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; margin: 12px 0 0 !important; }
  body[data-page="profile"] .profile-stat-card { min-height: 76px !important; gap: 6px !important; padding: 9px 7px !important; border: 1px solid rgba(86, 137, 160, .42) !important; border-radius: 8px !important; background: linear-gradient(145deg, #0b2437, #081b2a) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 5px 16px rgba(0, 0, 0, .12); flex-direction: column !important; align-items: flex-start !important; }
  body[data-page="profile"] .profile-stat-icon { width: 24px; min-width: 24px; height: 24px; border-radius: 6px; }
  body[data-page="profile"] .profile-stat-icon svg { width: 14px; height: 14px; }
  body[data-page="profile"] .profile-stat-card small { font-size: 7px; line-height: 1.1; }
  body[data-page="profile"] .profile-stat-card strong { font-size: 17px !important; line-height: 1; }
  body[data-page="profile"] .profile-stat-link { display: none; }
  body[data-page="profile"] .profile-dashboard-home { display: grid !important; grid-template-columns: 1fr !important; gap: 9px !important; margin-top: 12px !important; }
  body[data-page="profile"] .profile-dashboard-card { padding: 12px !important; border: 1px solid rgba(86, 137, 160, .42) !important; border-radius: 9px !important; background: linear-gradient(145deg, #0b2437, #081b2a) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 7px 20px rgba(0, 0, 0, .12); }
  body[data-page="profile"] .profile-dashboard-card-heading { margin-bottom: 9px; }
  body[data-page="profile"] .profile-dashboard-card-heading h2 { font-size: 12px; }
  body[data-page="profile"] .profile-dashboard-card-heading .section-kicker { font-size: 7px; }
  body[data-page="profile"] .profile-dashboard-card-heading .button { min-height: 25px; padding: 4px 7px; font-size: 8px; }
  body[data-page="profile"] .profile-dashboard-vehicle-content { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  body[data-page="profile"] .profile-dashboard-vehicle-media,
  body[data-page="profile"] .profile-dashboard-vehicle-media img,
  body[data-page="profile"] .profile-dashboard-vehicle-placeholder { width: 100px; height: 68px; border-radius: 5px; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy strong { font-size: 10px; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy span,
  body[data-page="profile"] .profile-dashboard-vehicle-copy small,
  body[data-page="profile"] .profile-dashboard-next-item span,
  body[data-page="profile"] .profile-dashboard-next-item small { font-size: 8px; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy .button { min-height: 24px; margin-top: 4px; padding: 4px 7px; font-size: 8px; }
  body[data-page="profile"] .profile-dashboard-next-item { padding: 9px; gap: 5px; }
  body[data-page="profile"] .profile-dashboard-next-item strong { font-size: 10px; }
  body[data-page="profile"] .profile-dashboard-history { display: none !important; }
  body[data-page="profile"] .profile-mobile-nav { position: fixed !important; right: 0; bottom: 0 !important; left: 0; z-index: 9999 !important; display: grid; grid-template-columns: repeat(4, 1fr); height: 62px; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(93, 139, 160, .34); background: rgba(5, 18, 29, .97); box-shadow: 0 -8px 22px rgba(0, 0, 0, .16); }
  body[data-page="profile"] .profile-mobile-nav-item { display: grid; place-items: center; gap: 2px; min-width: 0; border: 0; background: transparent; color: #91a9b7; font: inherit; }
  body[data-page="profile"] .profile-mobile-nav-item span { display: grid; place-items: center; color: currentColor; line-height: 1; }
  body[data-page="profile"] .profile-mobile-nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  body[data-page="profile"] .profile-mobile-nav-item small { font-size: 7px; font-weight: 800; white-space: nowrap; }
  body[data-page="profile"] .profile-mobile-nav-item.active { color: var(--m-orange); }
  body[data-page="profile"] .profile-mobile-nav-item.active span { color: var(--m-orange); }
  body[data-page="profile"][data-active-profile-tab]:not([data-active-profile-tab="infos"]) .profile-mobile-nav { display: grid !important; }
  body[data-page="profile"] .profile-tab-panel.active[data-profile-panel="messages"] { display: block !important; margin-top: 12px !important; }
  body[data-page="profile"] .profile-tab-panel[data-profile-panel="messages"] .conversation-panel { display: flex !important; flex-direction: column !important; min-height: 0 !important; height: auto !important; overflow: visible !important; border-radius: 8px !important; }
  body[data-page="profile"] .profile-tab-panel[data-profile-panel="messages"] .conversation-list-wrap { flex: 0 0 auto !important; max-height: 260px !important; overflow-y: auto !important; overflow-x: hidden !important; padding: 12px !important; border-right: 0 !important; border-bottom: 1px solid #294b60 !important; }
  body[data-page="profile"] .profile-tab-panel[data-profile-panel="messages"] .conversation-list { max-height: none !important; overflow: visible !important; }
  body[data-page="profile"] .profile-tab-panel[data-profile-panel="messages"] .conversation-item,
  body[data-page="profile"] .profile-tab-panel[data-profile-panel="messages"] .conversation-list-wrap * { min-width: 0 !important; max-width: 100% !important; overflow-wrap: anywhere; }
  body[data-page="profile"] .profile-tab-panel[data-profile-panel="messages"] .conversation-thread { flex: 0 0 auto !important; min-height: 360px !important; padding: 12px !important; border: 0 !important; }
  body[data-page="profile"] .profile-tab-panel[data-profile-panel="messages"] .message-list { max-height: 280px !important; overflow-y: auto !important; }
  body[data-page="profile"] .profile-tab-panel[data-profile-panel="messages"] .message-form { grid-template-columns: minmax(0, 1fr) auto auto !important; gap: 6px !important; }
  body[data-page="profile"] .profile-sidebar,
  body[data-page="profile"] .profile-main > .band-header,
  body[data-page="profile"] .profile-stat-card,
  body[data-page="profile"] .profile-dashboard-card,
  body[data-page="profile"] .profile-mobile-nav { border-color: rgba(103, 149, 169, .2) !important; }
  body[data-page="profile"] .profile-sidebar,
  body[data-page="profile"] .profile-main > .band-header { border-bottom-color: transparent !important; }
  body[data-page="profile"] .profile-stat-card,
  body[data-page="profile"] .profile-dashboard-card { border: 0 !important; box-shadow: 0 6px 20px rgba(0, 0, 0, .16) !important; }
  body[data-page="profile"] .profile-stat-card { background: linear-gradient(145deg, #0d2a3d, #0a2233) !important; }
  body[data-page="profile"] .profile-dashboard-card { background: linear-gradient(145deg, #0b2437, #081c2b) !important; }
  body[data-page="profile"] .profile-dashboard-home { gap: 7px !important; padding: 8px !important; border: 1px solid rgba(86, 137, 160, .28) !important; border-radius: 9px !important; background: #071a29 !important; box-shadow: 0 7px 20px rgba(0, 0, 0, .16) !important; }
  body[data-page="profile"] .profile-dashboard-home > .profile-dashboard-card { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  body[data-page="profile"] .profile-dashboard-vehicle .profile-dashboard-card-heading { padding: 2px 4px 5px; margin-bottom: 0 !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-content { padding: 9px !important; border: 1px solid rgba(86, 137, 160, .2); border-radius: 7px; background: linear-gradient(145deg, #0d2739, #0a2030); }
  body[data-page="profile"] .profile-dashboard-appointment .profile-dashboard-card-heading { padding: 7px 4px 5px; margin: 0 !important; }
  body[data-page="profile"] .profile-dashboard-appointment-content { padding: 9px !important; border: 1px solid rgba(86, 137, 160, .2); border-radius: 7px; background: linear-gradient(145deg, #0d2739, #0a2030); }
  body[data-page="profile"] .profile-dashboard-vehicle .profile-dashboard-card-heading > .button,
  body[data-page="profile"] .profile-dashboard-appointment .profile-dashboard-card-heading > .button { display: none !important; }
  body[data-page="profile"] .profile-dashboard-vehicle .profile-dashboard-card-heading .section-kicker { display: none !important; }
  body[data-page="profile"] .profile-dashboard-vehicle .profile-dashboard-card-heading h2 { font-size: 10px !important; }
  body[data-page="profile"] .profile-dashboard-appointment .profile-dashboard-card-heading .section-kicker { display: none !important; }
  body[data-page="profile"] .profile-dashboard-appointment .profile-dashboard-card-heading h2 { font-size: 0 !important; }
  body[data-page="profile"] .profile-dashboard-appointment .profile-dashboard-card-heading h2::after { content: "Prochain entretien"; font-size: 10px; }
  body[data-page="profile"] .profile-dashboard-vehicle-content { grid-template-columns: 72px minmax(0, 1fr) !important; gap: 8px !important; padding: 8px !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-media,
  body[data-page="profile"] .profile-dashboard-vehicle-media img,
  body[data-page="profile"] .profile-dashboard-vehicle-placeholder { width: 72px !important; height: 52px !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy strong { font-size: 9px !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy span,
  body[data-page="profile"] .profile-dashboard-vehicle-copy small { font-size: 7px !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy .button { min-height: 22px; margin-top: 3px; padding: 3px 6px; font-size: 7px; }
  body[data-page="profile"] .profile-dashboard-next-item { grid-template-columns: 20px minmax(0, 1fr); align-items: center; padding: 8px !important; }
  body[data-page="profile"] .profile-dashboard-next-item::before { grid-row: 1 / span 3; content: "◉"; color: var(--m-orange); font-size: 15px; }
  body[data-page="profile"] .profile-dashboard-next-item strong { font-size: 9px !important; }
  body[data-page="profile"] .profile-dashboard-next-item span,
  body[data-page="profile"] .profile-dashboard-next-item small { font-size: 7px !important; }
}

/* Raccords continus de la page d'accueil : une seule composition verticale. */
body[data-page="client"] {
  background: #06131f !important;
}

/* La DA de référence enchaîne directement les prestations avec les
   engagements. Le parcours reste disponible dans les formulaires et le
   compte client, mais ne crée plus une rupture visuelle sur l'accueil. */
body[data-page="client"] > #fonctionnement { display: none !important; }

body[data-page="client"] > .home-hero,
body[data-page="client"] > #services.page-band,
body[data-page="client"] > #fonctionnement,
body[data-page="client"] > .home-da-bottom,
body[data-page="client"] > .home-da-trust,
body[data-page="client"] > .site-footer {
  margin-inline: auto !important;
  border-inline: 1px solid #294d65 !important;
}

body[data-page="client"] > .home-hero {
  border-radius: 14px 14px 0 0 !important;
  border-bottom-color: #315a72 !important;
  box-shadow: inset 0 -34px 50px rgba(4, 15, 24, .28);
}

body[data-page="client"] > #services.page-band {
  border-top: 0 !important;
  border-bottom: 1px solid #315a72 !important;
  background: linear-gradient(180deg, #0b2233 0%, #0d2639 100%) !important;
}

body[data-page="client"] > #services.page-band::before,
body[data-page="client"] > #fonctionnement::before,
body[data-page="client"] > .home-da-bottom::before,
body[data-page="client"] > .home-da-trust::before {
  display: block;
  height: 1px;
  margin: -1px 0 24px;
  background: linear-gradient(90deg, transparent, rgba(109, 166, 195, .65), transparent);
  content: "";
}

body[data-page="client"] > #fonctionnement {
  border-top: 0 !important;
  border-bottom: 1px solid #315a72 !important;
  background: linear-gradient(180deg, #081b2a 0%, #071725 100%) !important;
}

body[data-page="client"] > .home-da-bottom {
  border-top: 0 !important;
  border-bottom: 1px solid #315a72 !important;
  background: linear-gradient(180deg, #071a29 0%, #091e2e 100%) !important;
}

body[data-page="client"] > .home-da-trust {
  border-top: 0 !important;
  border-bottom: 1px solid #315a72 !important;
  background-color: #071725 !important;
}

body[data-page="client"] > .site-footer {
  border-top: 0 !important;
  border-radius: 0 0 14px 14px !important;
  background: linear-gradient(180deg, #071725, #040d16) !important;
}

@media (max-width: 520px) {
  body[data-page="client"] > .home-hero { border-radius: 0 !important; }
  body[data-page="client"] > .site-footer { border-radius: 0 !important; }
  body[data-page="client"] > #services.page-band::before,
  body[data-page="client"] > #fonctionnement::before,
  body[data-page="client"] > .home-da-bottom::before,
  body[data-page="client"] > .home-da-trust::before { margin-bottom: 16px; }
}

/* Version fluide : les sections se lisent comme une seule page, les cartes
   internes restent les seuls éléments réellement conteneurisés. */
body[data-page="client"] > .home-hero,
body[data-page="client"] > #services.page-band,
body[data-page="client"] > #fonctionnement,
body[data-page="client"] > .home-da-bottom,
body[data-page="client"] > .home-da-trust,
body[data-page="client"] > .site-footer {
  border-inline: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[data-page="client"] > .home-hero {
  border-bottom: 1px solid rgba(81, 128, 153, .45) !important;
}

body[data-page="client"] > #services.page-band {
  background: linear-gradient(180deg, #0b2233 0%, #0c2537 100%) !important;
}

body[data-page="client"] > .home-da-bottom {
  background: linear-gradient(180deg, #0c2537 0%, #0a2031 100%) !important;
}

body[data-page="client"] > .home-da-trust {
  background: linear-gradient(90deg, rgba(5, 17, 27, .98), rgba(5, 17, 27, .74)), url("assets/mecatech-workshop-hero.png") center / cover !important;
}

body[data-page="client"] > .site-footer {
  background: linear-gradient(180deg, #071725, #06131f) !important;
}

/* Même axe horizontal pour toute la composition publique. */
body[data-page="client"] > .home-hero,
body[data-page="client"] > .home-actions.home-actions-single,
body[data-page="client"] > #services.page-band,
body[data-page="client"] > .home-da-bottom,
body[data-page="client"] > .home-da-trust,
body[data-page="client"] > .site-footer {
  width: min(1600px, calc(100% - 48px)) !important;
  max-width: none !important;
}

@media (max-width: 1100px) {
  body[data-page="client"] > .home-hero,
  body[data-page="client"] > .home-actions.home-actions-single,
  body[data-page="client"] > #services.page-band,
  body[data-page="client"] > .home-da-bottom,
  body[data-page="client"] > .home-da-trust,
  body[data-page="client"] > .site-footer { width: calc(100% - 28px) !important; }
}

@media (max-width: 520px) {
  body[data-page="client"] > .home-hero,
  body[data-page="client"] > .home-actions.home-actions-single,
  body[data-page="client"] > #services.page-band,
  body[data-page="client"] > .home-da-bottom,
  body[data-page="client"] > .home-da-trust,
  body[data-page="client"] > .site-footer { width: 100% !important; }
}

@media (max-width: 820px) {
  .topbar,
  .tracking-header { padding-inline: 14px !important; }
  .nav-primary-links a { font-size: 10px !important; }
  .profile-sidebar,
  .admin-sidebar { border-right: 0 !important; border-bottom: 1px solid var(--da-line) !important; }
  .admin-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 520px) {
  body[data-page="client"] .allo-voisins-proof { transform: none !important; margin-top: 12px !important; }
  body[data-page="client"] > .home-actions.home-actions-single {
    margin-top: -24px !important;
    transform: translateY(18px) !important;
  }
  body[data-page="client"] > #services.page-band { padding-top: 34px !important; }
  .button,
  button.button,
  .tracking-request-trigger { min-height: 40px; }
  .nav-primary-links { gap: 5px !important; }
  .nav-primary-links a { font-size: 9px !important; }
  .profile-stat-card,
  .stat-card { min-height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Retrait latéral des cartes d'action : elles restent aérées comme sur la DA. */
body[data-page="client"] > .home-actions.home-actions-single {
  width: min(1450px, calc(100% - 72px)) !important;
  margin-inline: auto !important;
}

@media (min-width: 1101px) {
  body[data-page="client"] > #services.page-band .service-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}

@media (max-width: 1100px) {
  body[data-page="client"] > .home-actions.home-actions-single {
    width: calc(100% - 40px) !important;
  }
}

@media (max-width: 520px) {
  body[data-page="client"] > .home-actions.home-actions-single {
    width: calc(100% - 20px) !important;
  }
}

/* La mascotte du hero reste contenue dans son visuel : ses jambes ne
   débordent plus dans l'espace entre le hero et les cartes d'action. */
@media (min-width: 821px) {
  body[data-page="client"] > .home-hero {
    overflow: hidden !important;
  }
}

/* En mobile, le header doit rester dans sa propre zone : les actions de
   compte ne doivent jamais recouvrir le haut du hero. */
@media (max-width: 520px) {
  body[data-page="client"] > .topbar {
    position: relative !important;
    top: 0 !important;
    z-index: 20 !important;
    min-height: 64px !important;
    height: 64px !important;
    padding: 8px 10px !important;
    overflow: visible !important;
  }

  body[data-page="client"] > .topbar .brand {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body[data-page="client"] > .topbar .nav-actions {
    position: static !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
    overflow: visible !important;
  }

  body[data-page="client"] > .topbar .nav-account-actions {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    align-items: center !important;
  }

  body[data-page="client"] > .topbar .brand-mark {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  body[data-page="client"] > .topbar .brand strong { font-size: 13px !important; }
  body[data-page="client"] > .topbar .brand small { display: block !important; font-size: 6px !important; }
  body[data-page="client"] > .topbar .nav-actions { gap: 4px !important; }
  body[data-page="client"] > .topbar .icon-nav-button {
    width: 34px !important;
    height: 34px !important;
  }

  body[data-page="client"] > .home-hero {
    margin-top: 0 !important;
    padding-top: 26px !important;
  }

  body[data-page="client"] .home-hero-ctas {
    display: none !important;
  }

  body[data-page="client"] > .home-actions.home-actions-single {
    margin-top: -120px !important;
    position: relative !important;
    z-index: 8 !important;
  }
}

/* Espace client mobile : composition compacte de la maquette, sans modifier le desktop. */
@media (max-width: 600px) {
  body[data-page="profile"] .profile-sidebar {
    min-height: 56px !important;
    padding: 7px 12px !important;
    border-bottom: 1px solid rgba(71, 115, 137, .2) !important;
    background: #061521 !important;
  }
  body[data-page="profile"] .profile-sidebar-brand .brand-mark { width: 32px !important; height: 32px !important; flex-basis: 32px !important; }
  body[data-page="profile"] .profile-mobile-account { display: flex !important; width: auto !important; margin: 0 0 0 auto !important; padding: 0 !important; }
  body[data-page="profile"] .profile-mobile-account .account-user-avatar { width: 27px !important; height: 27px !important; }
  body[data-page="profile"] .profile-mobile-account .account-user-copy strong { font-size: 8px !important; }
  body[data-page="profile"] .profile-mobile-account .account-user-copy small { font-size: 6px !important; }

  body[data-page="profile"] .profile-main { padding: 0 12px 78px !important; background: #06131e !important; }
  body[data-page="profile"] .profile-main > .band-header {
    display: block !important;
    min-height: 102px !important;
    margin: 0 -12px !important;
    padding: 15px 14px 16px !important;
    border: 0 !important;
    background: #091b2a !important;
  }
  body[data-page="profile"] .profile-main > .band-header .account-heading-status { display: none !important; }
  body[data-page="profile"] .profile-main > .band-header .account-heading-copy { width: 100% !important; text-align: left !important; }
  body[data-page="profile"] .profile-main > .band-header .section-kicker { margin: 0 0 5px !important; font-size: 8px !important; }
  body[data-page="profile"] .profile-main > .band-header h1 { margin: 0 !important; font-size: 20px !important; line-height: 1.18 !important; }
  body[data-page="profile"][data-active-profile-tab="infos"] .profile-tab-panel[data-profile-panel="infos"] { display: none !important; }

  body[data-page="profile"] .profile-stats-grid { gap: 5px !important; margin: 10px 0 0 !important; }
  body[data-page="profile"] .profile-stat-card {
    min-width: 0 !important;
    min-height: 70px !important;
    padding: 8px 7px !important;
    gap: 5px !important;
    border: 1px solid rgba(66, 111, 135, .3) !important;
    border-radius: 8px !important;
    background: linear-gradient(145deg, #0a2030, #081a28) !important;
    box-shadow: none !important;
  }
  body[data-page="profile"] .profile-stat-card small { font-size: 7px !important; line-height: 1.15 !important; }
  body[data-page="profile"] .profile-stat-card strong { font-size: 17px !important; }

  body[data-page="profile"] .profile-dashboard-home {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body[data-page="profile"] .profile-dashboard-home > .profile-dashboard-card {
    min-width: 0 !important;
    padding: 11px !important;
    border: 1px solid rgba(46, 85, 105, .34) !important;
    border-radius: 10px !important;
    background: linear-gradient(145deg, #0a1d2b, #081824) !important;
    box-shadow: none !important;
  }
  body[data-page="profile"] .profile-dashboard-history { display: none !important; }
  body[data-page="profile"] .profile-dashboard-card-heading { margin: 0 0 9px !important; }
  body[data-page="profile"] .profile-dashboard-card-heading .section-kicker { display: none !important; }
  body[data-page="profile"] .profile-dashboard-card-heading h2 { margin: 0 !important; font-size: 12px !important; line-height: 1.3 !important; }
  body[data-page="profile"] .profile-dashboard-card-heading > .button { display: none !important; }

  body[data-page="profile"] .profile-dashboard-vehicle-content {
    grid-template-columns: clamp(86px, 26vw, 116px) minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 9px !important;
    border: 1px solid rgba(49, 89, 110, .3) !important;
    border-radius: 8px !important;
    background: linear-gradient(145deg, #0b2030, #091b29) !important;
  }
  body[data-page="profile"] .profile-dashboard-vehicle-media,
  body[data-page="profile"] .profile-dashboard-vehicle-media img,
  body[data-page="profile"] .profile-dashboard-vehicle-placeholder { width: clamp(86px, 26vw, 116px) !important; height: clamp(58px, 17vw, 76px) !important; border-radius: 6px !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy { gap: 4px !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy strong { font-size: 11px !important; line-height: 1.25 !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy span,
  body[data-page="profile"] .profile-dashboard-vehicle-copy small { font-size: 8px !important; line-height: 1.2 !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy span { font-size: 8px !important; line-height: 1.2 !important; }
  body[data-page="profile"] .profile-dashboard-vehicle-copy .button {
    min-height: 25px !important;
    margin: 2px 0 0 !important;
    padding: 4px 9px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #07131d !important;
    color: #d7e5ed !important;
    font-size: 8px !important;
    box-shadow: none !important;
  }

  body[data-page="profile"] .profile-dashboard-appointment { padding-top: 11px !important; }
  body[data-page="profile"] .profile-dashboard-appointment .profile-dashboard-card-heading h2 { font-size: 0 !important; }
  body[data-page="profile"] .profile-dashboard-appointment .profile-dashboard-card-heading h2::after {
    content: "Prochain entretien" !important;
    font-size: 12px !important;
  }
  body[data-page="profile"] .profile-dashboard-appointment-content { display: none !important; }
  body[data-page="profile"] .profile-dashboard-maintenance-content:not([hidden]),
  body[data-page="profile"] .profile-dashboard-no-maintenance:not([hidden]) {
    display: block !important;
    padding: 10px !important;
    border: 1px solid rgba(49, 89, 110, .3) !important;
    border-radius: 8px !important;
    background: linear-gradient(145deg, #0b2030, #091b29) !important;
  }
  body[data-page="profile"] .profile-dashboard-no-maintenance p { margin: 0 0 7px !important; color: #9eb2bd !important; font-size: 9px !important; }
  body[data-page="profile"] .profile-dashboard-no-maintenance .button { min-height: 27px !important; padding: 5px 9px !important; font-size: 9px !important; }
  body[data-page="profile"] .profile-dashboard-maintenance-item { display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: center; gap: 8px; }
  body[data-page="profile"] .profile-dashboard-maintenance-icon { display: grid; place-items: center; width: 21px; height: 21px; border: 1.5px solid #f45b16; border-radius: 50%; color: #ff681a; }
  body[data-page="profile"] .profile-dashboard-maintenance-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body[data-page="profile"] .profile-dashboard-maintenance-item > div { display: grid; gap: 3px; min-width: 0; }
  body[data-page="profile"] .profile-dashboard-maintenance-item strong { color: #edf4f7; font-size: 10px; }
  body[data-page="profile"] .profile-dashboard-maintenance-item span:not(.profile-dashboard-maintenance-icon),
  body[data-page="profile"] .profile-dashboard-maintenance-item small { color: #9eb2bd; font-size: 9px; }
  body[data-page="profile"] .profile-dashboard-maintenance-item small {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 106, 0, .1);
    color: #f77828;
  }
  body[data-page="profile"] .profile-dashboard-maintenance-item small::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
  }
  body[data-page="profile"] .profile-dashboard-next-item { padding: 10px !important; border: 1px solid rgba(49, 89, 110, .3) !important; border-radius: 8px !important; background: linear-gradient(145deg, #0b2030, #091b29) !important; }
  body[data-page="profile"] .profile-dashboard-next-item strong { font-size: 10px !important; }
  body[data-page="profile"] .profile-dashboard-next-item span,
  body[data-page="profile"] .profile-dashboard-next-item small { font-size: 9px !important; }

  body[data-page="profile"] .profile-mobile-nav {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    height: 58px !important;
    padding-bottom: max(5px, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(71, 115, 137, .24) !important;
    background: rgba(5, 17, 27, .98) !important;
  }
  body[data-page="profile"] .profile-mobile-nav-item svg { width: 16px !important; height: 16px !important; }
  body[data-page="profile"] .profile-mobile-nav-item small { font-size: 6px !important; }
}

/* Tableau de bord admin : hiérarchie et panneaux alignés sur la maquette. */
body[data-page="admin"] .dashboard-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  min-height: 92px !important;
  margin-bottom: 18px !important;
  border-bottom-color: rgba(58, 100, 123, .28) !important;
  background: linear-gradient(100deg, #071725, #0a2030) !important;
}
body[data-page="admin"] .dashboard-header .section-kicker { margin-bottom: 4px; color: var(--m-orange) !important; }
body[data-page="admin"] .dashboard-header h1 { font-size: clamp(21px, 2vw, 27px) !important; }
body[data-page="admin"] .dashboard-header p { margin: 3px 0 0; color: #94aab8; font-size: 11px; }
body[data-page="admin"] .admin-dashboard-identity { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
body[data-page="admin"] .admin-dashboard-avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #42647a; border-radius: 50%; background: #10283a; color: #f2f6f8; font-size: 12px; font-weight: 800; }
body[data-page="admin"] .admin-dashboard-identity > span:last-child { display: grid; gap: 2px; }
body[data-page="admin"] .admin-dashboard-identity strong { color: #eef4f7; font-size: 10px; }
body[data-page="admin"] .admin-dashboard-identity small { color: #8da4b2; font-size: 8px; }
body[data-page="admin"] .admin-overview-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
body[data-page="admin"] .admin-overview-kpi {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  column-gap: 11px;
  min-height: 88px;
  padding: 13px 15px !important;
  border: 1px solid rgba(48, 91, 115, .48) !important;
  border-radius: 9px !important;
  background: linear-gradient(145deg, #0d2638, #091d2c) !important;
  color: #edf4f7 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}
body[data-page="admin"] .admin-kpi-icon { grid-row: 1 / span 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: rgba(255, 106, 0, .13); color: #ff790e; }
body[data-page="admin"] .admin-kpi-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="admin"] .admin-overview-kpi > span:not(.admin-kpi-icon) { color: #a9bac6; font-size: 10px; }
body[data-page="admin"] .admin-overview-kpi > strong { color: #f7f9fa; font-size: 23px; line-height: 1.05; }
body[data-page="admin"] .admin-overview-kpi > small { color: #ff811e; font-size: 8px; font-weight: 700; }
body[data-page="admin"] .admin-business-stats { display: none; }
body[data-page="admin"] .admin-business-stats.active { display: block; }
body[data-page="admin"] .admin-business-stats-heading { align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
body[data-page="admin"] .admin-stats-period-label { display: grid; gap: 6px; min-width: 190px; color: #9db1bd; font-size: 10px; font-weight: 700; }
body[data-page="admin"] .admin-stats-period-label select { min-height: 40px; padding: 8px 12px; border: 1px solid rgba(52, 103, 130, .7); border-radius: 8px; background: #0a1d2b; color: #edf4f7; font: inherit; }
body[data-page="admin"] .admin-business-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
body[data-page="admin"] .admin-business-kpi { display: grid; align-content: start; gap: 8px; min-width: 0; min-height: 112px; padding: 16px; border: 1px solid rgba(48, 91, 115, .48); border-radius: 10px; background: linear-gradient(145deg, #0d2638, #091d2c); }
body[data-page="admin"] .admin-business-kpi > span { color: #a9bac6; font-size: 11px; }
body[data-page="admin"] .admin-business-kpi > strong { overflow-wrap: anywhere; color: #f7f9fa; font-size: 25px; line-height: 1.1; }
body[data-page="admin"] .admin-business-kpi > small { color: #ff811e; font-size: 9px; line-height: 1.45; }
body[data-page="admin"] .admin-business-kpis .admin-business-kpi:nth-child(2) > small { color: #8298a6; }
body[data-page="admin"] .admin-business-stats-chart-panel { margin: 0 0 14px !important; padding: 16px !important; border: 1px solid rgba(45, 85, 108, .48) !important; border-radius: 10px !important; background: linear-gradient(145deg, #0b2030, #081a28) !important; }
body[data-page="admin"] .admin-business-chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 18px; margin: 4px 0 8px; color: #9db1bd; font-size: 10px; }
body[data-page="admin"] .admin-business-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
body[data-page="admin"] .admin-business-chart-legend i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
body[data-page="admin"] .admin-chart-legend-quotes { color: #aa8cff; }
body[data-page="admin"] .admin-chart-legend-appointments { color: #ff801a; }
body[data-page="admin"] .admin-chart-legend-interventions { color: #00b4d8; }
body[data-page="admin"] .admin-chart-legend-clients { color: #08c798; }
body[data-page="admin"] .admin-business-trend-chart { min-width: 0; overflow-x: auto; }
body[data-page="admin"] .admin-business-trend-chart svg { display: block; width: 100%; min-width: 620px; height: auto; }
body[data-page="admin"] .admin-business-gridline { stroke: rgba(65, 98, 117, .3); stroke-width: 1; }
body[data-page="admin"] .admin-business-axis-label { fill: #8298a6; font-size: 10px; }
body[data-page="admin"] .admin-business-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="admin"] .admin-business-line-quotes { stroke: #aa8cff; }
body[data-page="admin"] .admin-business-line-appointments { stroke: #ff801a; }
body[data-page="admin"] .admin-business-line-interventions { stroke: #00b4d8; }
body[data-page="admin"] .admin-business-line-customers { stroke: #08c798; }
body[data-page="admin"] .admin-business-line-quotes-point { fill: #aa8cff; }
body[data-page="admin"] .admin-business-line-appointments-point { fill: #ff801a; }
body[data-page="admin"] .admin-business-line-interventions-point { fill: #00b4d8; }
body[data-page="admin"] .admin-business-line-customers-point { fill: #08c798; }
body[data-page="admin"] .admin-business-chart-empty { margin: 28px 0; color: #8298a6; font-size: 12px; text-align: center; }
body[data-page="admin"] .admin-business-breakdowns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body[data-page="admin"] .admin-business-breakdown { min-width: 0; margin: 0 !important; padding: 15px !important; border: 1px solid rgba(45, 85, 108, .44) !important; border-radius: 10px !important; background: linear-gradient(145deg, #0b2030, #081a28) !important; }
body[data-page="admin"] .admin-business-breakdown .panel-heading { margin: 0 0 10px !important; padding: 0 0 8px !important; border-bottom: 1px solid rgba(45, 85, 108, .34); }
body[data-page="admin"] .admin-business-breakdown .panel-heading h3 { margin: 0; color: #edf4f7; font-size: 14px; }
body[data-page="admin"] .admin-business-breakdown dl { display: grid; gap: 0; margin: 0; }
body[data-page="admin"] .admin-business-breakdown dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(45, 85, 108, .25); }
body[data-page="admin"] .admin-business-breakdown dl > div:last-child { border-bottom: 0; }
body[data-page="admin"] .admin-business-breakdown dt { color: #a9bac6; font-size: 11px; }
body[data-page="admin"] .admin-business-breakdown dd { margin: 0; color: #f7f9fa; font-size: 12px; font-weight: 800; }
body[data-page="admin"] .admin-business-stats-footnote { margin: 12px 2px; color: #8298a6; font-size: 10px; line-height: 1.5; }
body[data-page="admin"] .admin-overview-top-grid,
body[data-page="admin"] .admin-overview-bottom-grid,
body[data-page="admin"] .admin-overview-extra-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .9fr); gap: 14px; margin-bottom: 14px; }
body[data-page="admin"] .admin-overview-bottom-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .9fr); }
body[data-page="admin"] .admin-overview-panel { min-width: 0; margin: 0 !important; padding: 14px !important; border: 1px solid rgba(45, 85, 108, .44) !important; border-radius: 9px !important; background: linear-gradient(145deg, #0b2030, #081a28) !important; box-shadow: none !important; }
body[data-page="admin"] .admin-overview-panel > .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 25px; margin: 0 0 9px !important; padding: 0 0 8px !important; border: 0 !important; }
body[data-page="admin"] .admin-overview-panel > .panel-heading h2 { margin: 0; color: #f1f5f7; font-size: 13px; }
body[data-page="admin"] .admin-overview-panel > .panel-heading .muted { font-size: 8px; }
body[data-page="admin"] .admin-overview-panel > .panel-heading .button { min-height: 26px; padding: 4px 9px; font-size: 8px; }
body[data-page="admin"] .admin-activity-legend { display: flex; justify-content: flex-end; gap: 14px; margin: -2px 0 2px; color: #9db1bd; font-size: 8px; }
body[data-page="admin"] .admin-activity-legend span { display: inline-flex; align-items: center; gap: 5px; }
body[data-page="admin"] .admin-activity-legend i { width: 7px; height: 7px; border-radius: 50%; background: #ff6a00; }
body[data-page="admin"] .admin-activity-legend .legend-interventions { background: #00a9d6; }
body[data-page="admin"] .admin-activity-legend .legend-client-logins { background: #8b9cff; }
body[data-page="admin"] .admin-weekly-chart { position: relative; min-height: 0 !important; }
body[data-page="admin"] .admin-weekly-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
body[data-page="admin"] .admin-chart-gridline { stroke: rgba(90, 125, 143, .16); stroke-width: 1; }
body[data-page="admin"] .admin-chart-axis-label { fill: #8298a6; font-size: 10px; }
body[data-page="admin"] .admin-chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="admin"] .admin-chart-line-appointments { stroke: #ff6a00; }
body[data-page="admin"] .admin-chart-line-interventions { stroke: #00a9d6; }
body[data-page="admin"] .admin-chart-line-client-logins { stroke: #8b9cff; }
body[data-page="admin"] .admin-chart-point { stroke: #0b2030; stroke-width: 2; }
body[data-page="admin"] .admin-chart-point-appointments { fill: #ff6a00; }
body[data-page="admin"] .admin-chart-point-interventions { fill: #00a9d6; }
body[data-page="admin"] .admin-chart-point-client-logins { fill: #8b9cff; }
body[data-page="admin"] .admin-chart-empty { margin: -18px 0 0; color: #8298a6; font-size: 9px; text-align: center; }
body[data-page="admin"] .admin-overview-list { display: grid; gap: 0; }
body[data-page="admin"] .admin-overview-row { display: grid; grid-template-columns: 53px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 42px; padding: 7px 2px; border-bottom: 1px solid rgba(46, 79, 97, .36); }
body[data-page="admin"] .admin-overview-row:last-child { border-bottom: 0; }
body[data-page="admin"] .admin-overview-row time { color: #aebfc9; font-size: 8px; white-space: nowrap; }
body[data-page="admin"] .admin-overview-row > div { display: grid; gap: 3px; min-width: 0; }
body[data-page="admin"] .admin-overview-row > div strong { overflow: hidden; color: #e6eef2; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="admin"] .admin-overview-row > div small { overflow: hidden; color: #8fa7b5; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="admin"] .admin-overview-time { color: #38b8da; font-size: 8px; white-space: nowrap; }
body[data-page="admin"] .admin-overview-status { color: #ff801a; font-size: 8px; font-weight: 700; white-space: nowrap; }
body[data-page="admin"] .admin-overview-status.is-complete { color: #08c798; }
body[data-page="admin"] .admin-overview-status.is-rejected { color: #fb6b6b; }
body[data-page="admin"] .admin-overview-quote-total { display: grid; justify-items: end; gap: 3px; }
body[data-page="admin"] .admin-overview-quote-total > strong { color: #dce8ee; font-size: 9px; }
body[data-page="admin"] .admin-overview-empty { margin: 8px 0; color: #8fa7b5; font-size: 10px; }
body[data-page="admin"] .admin-overview-extra { margin: 2px 0 20px; border: 1px solid rgba(45, 85, 108, .34); border-radius: 9px; background: rgba(8, 25, 38, .5); }
body[data-page="admin"] .admin-overview-extra > summary { padding: 11px 14px; color: #9db1bd; cursor: pointer; font-size: 10px; font-weight: 700; }
body[data-page="admin"] .admin-overview-extra[open] > summary { border-bottom: 1px solid rgba(45, 85, 108, .34); }
body[data-page="admin"] .admin-overview-extra-grid { margin: 0; padding: 12px; }

@media (max-width: 1100px) {
  body[data-page="admin"] .admin-overview-top-grid,
  body[data-page="admin"] .admin-overview-bottom-grid { grid-template-columns: minmax(0, 1fr) minmax(250px, .9fr); }
}
@media (max-width: 820px) {
  body[data-page="admin"] .admin-overview-top-grid,
  body[data-page="admin"] .admin-overview-bottom-grid,
  body[data-page="admin"] .admin-overview-extra-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-page="admin"] .admin-overview-kpis { gap: 8px; }
  body[data-page="admin"] .admin-overview-kpi { min-height: 78px; padding: 10px !important; grid-template-columns: 31px minmax(0, 1fr); column-gap: 8px; }
  body[data-page="admin"] .admin-kpi-icon { width: 30px; height: 30px; }
  body[data-page="admin"] .admin-overview-kpi > strong { font-size: 20px; }
  body[data-page="admin"] .admin-business-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="admin"] .admin-business-breakdowns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body[data-page="admin"] .dashboard-header { align-items: flex-start !important; min-height: 75px !important; padding: 12px 14px !important; }
  body[data-page="admin"] .admin-dashboard-identity { gap: 6px; }
  body[data-page="admin"] .admin-dashboard-avatar { width: 29px; height: 29px; }
  body[data-page="admin"] .admin-overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="admin"] .admin-overview-kpi { min-height: 73px; }
  body[data-page="admin"] .admin-overview-panel { padding: 11px !important; }
  body[data-page="admin"] .admin-business-stats-heading { align-items: stretch; flex-direction: column; }
  body[data-page="admin"] .admin-stats-period-label { min-width: 0; }
  body[data-page="admin"] .admin-business-kpi { min-height: 96px; padding: 12px; }
  body[data-page="admin"] .admin-business-kpi > strong { font-size: 21px; }
  body[data-page="admin"] .admin-business-breakdowns { grid-template-columns: minmax(0, 1fr); }
  body[data-page="admin"] .admin-business-stats-chart-panel { padding: 11px !important; }
  body[data-page="admin"] .admin-business-chart-legend { justify-content: flex-start; gap: 9px 12px; font-size: 9px; }
  body[data-page="admin"] .admin-overview-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px; }
  body[data-page="admin"] .admin-overview-row time,
  body[data-page="admin"] .admin-overview-time,
  body[data-page="admin"] .admin-overview-status { font-size: 7px; }
}

/* Une fois connecté, le rail admin porte la marque et le titre commence
   dans la colonne de contenu, comme sur la référence Mecatech. */
body[data-page="admin"].admin-dashboard-open > .topbar { display: none !important; }
body[data-page="admin"].admin-dashboard-open > .admin-shell { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
body[data-page="admin"].admin-dashboard-open .admin-layout { grid-template-columns: 250px minmax(0, 1fr) !important; gap: 0 !important; min-height: 100vh !important; align-items: stretch !important; }
body[data-page="admin"].admin-dashboard-open .admin-sidebar {
  position: sticky !important;
  top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 250px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  padding: 12px 12px 22px !important;
  border: 0 !important;
  border-right: 1px solid rgba(45, 86, 108, .48) !important;
  border-radius: 0 !important;
  background: #06141f !important;
  box-shadow: none !important;
}
body[data-page="admin"].admin-dashboard-open .admin-sidebar-brand { display: flex; align-items: center; gap: 9px; min-height: 54px; margin: 0 2px 17px; color: #fff; text-decoration: none; }
body[data-page="admin"].admin-dashboard-open .admin-sidebar-brand .brand-mark { width: 38px !important; height: 38px !important; flex-basis: 38px !important; border-radius: 50% !important; background-size: 36px 36px !important; }
body[data-page="admin"].admin-dashboard-open .admin-sidebar-brand > span:last-child { display: grid; gap: 2px; }
body[data-page="admin"].admin-dashboard-open .admin-sidebar-brand strong { color: #f3f5f7; font-size: 15px; font-style: italic; font-weight: 850; }
body[data-page="admin"].admin-dashboard-open .admin-sidebar-brand strong span { color: #ff6a00; }
body[data-page="admin"].admin-dashboard-open .admin-sidebar-brand small { color: #94aab7; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
body[data-page="admin"].admin-dashboard-open .admin-nav-group { gap: 3px; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid rgba(54, 87, 105, .34); }
body[data-page="admin"].admin-dashboard-open .admin-nav-group:last-child { border-bottom: 0; }
body[data-page="admin"].admin-dashboard-open .admin-nav-group-title { margin: 0 9px 6px; color: #718a99 !important; font-size: 8px; letter-spacing: .12em; }
body[data-page="admin"].admin-dashboard-open .admin-menu-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 7px 10px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #b8c5ce !important;
  font-size: 10px !important;
  text-align: left !important;
}
body[data-page="admin"].admin-dashboard-open .admin-menu-item::before { display: none !important; }
body[data-page="admin"].admin-dashboard-open .admin-menu-icon { display: block; flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
body[data-page="admin"].admin-dashboard-open .admin-menu-item > span:nth-of-type(1) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="admin"].admin-dashboard-open .admin-menu-item.active { background: linear-gradient(90deg, #ff790e, #ec6200) !important; color: #fff !important; box-shadow: 0 5px 14px rgba(255, 106, 0, .16); }
body[data-page="admin"].admin-dashboard-open .admin-menu-item:hover:not(.active) { background: #0d2230 !important; color: #fff !important; }
body[data-page="admin"].admin-dashboard-open .admin-main { min-width: 0; padding: 0 26px 32px !important; background: #07141f !important; }
body[data-page="admin"].admin-dashboard-open .dashboard-header {
  top: 0 !important;
  min-height: 104px !important;
  margin: 0 -26px 18px !important;
  padding: 20px 26px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(48, 86, 106, .36) !important;
  border-radius: 0 !important;
  background: #081a28 !important;
  backdrop-filter: none !important;
}
body[data-page="admin"].admin-dashboard-open .dashboard-header h1 { font-size: 25px !important; line-height: 1.15; }
body[data-page="admin"].admin-dashboard-open .dashboard-header p { font-size: 10px !important; }
body[data-page="admin"].admin-dashboard-open .admin-dashboard-actions { display: flex; align-items: center; gap: 9px; }
body[data-page="admin"].admin-dashboard-open .admin-dashboard-name-row { display: inline-flex; align-items: center; gap: 6px; }
body[data-page="admin"].admin-dashboard-open .admin-finance-indicator { display: inline-grid; flex: 0 0 8px; place-items: center; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
body[data-page="admin"].admin-dashboard-open .admin-finance-indicator:not(:disabled) { cursor: pointer; }
body[data-page="admin"].admin-dashboard-open .admin-finance-indicator:focus-visible { outline: 2px solid #f04b59; outline-offset: 4px; }
body[data-page="admin"].admin-dashboard-open .admin-finance-indicator-dot { width: 7px; height: 7px; border-radius: 50%; background: #19c78a; box-shadow: 0 0 7px rgba(25, 199, 138, .42); transition: background .18s ease, box-shadow .18s ease; }
body[data-page="admin"].admin-dashboard-open .admin-finance-indicator.is-unlocked .admin-finance-indicator-dot { background: #f04b59; box-shadow: 0 0 7px rgba(240, 75, 89, .48); }
body[data-page="admin"].admin-dashboard-open .admin-dashboard-site-link { color: #e1eaf0; font-size: 9px; font-weight: 700; text-decoration: none; white-space: nowrap; }
body[data-page="admin"].admin-dashboard-open .admin-dashboard-site-link:hover { color: #ff790e; }
body[data-page="admin"].admin-dashboard-open .admin-dashboard-actions .icon-nav-button { position: relative; width: 34px; height: 34px; }
body[data-page="admin"].admin-dashboard-open .admin-dashboard-identity { margin-left: 5px; padding-left: 10px; border-left: 1px solid rgba(62, 98, 117, .4); }
body[data-page="admin"].admin-dashboard-open .admin-section[data-section="overview"] { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
body[data-page="admin"].admin-dashboard-open .admin-overview-kpis { margin-top: 0; }
body[data-page="admin"].admin-dashboard-open .admin-weekly-chart { display: block !important; width: 100% !important; min-height: 0 !important; padding: 0 !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
body[data-page="admin"].admin-dashboard-open .admin-weekly-chart svg { width: 100% !important; min-width: 0 !important; height: auto !important; }
body[data-page="admin"].admin-dashboard-open .admin-overview-interventions { min-height: 0; }
body[data-page="admin"].admin-dashboard-open .admin-overview-quote time { overflow: hidden; text-overflow: ellipsis; }
body[data-page="admin"].admin-dashboard-open .admin-overview-row.admin-overview-quote { grid-template-columns: minmax(65px, .55fr) minmax(0, 1fr) minmax(58px, auto); }

@media (max-width: 820px) {
  body[data-page="admin"].admin-dashboard-open .admin-layout { display: block !important; }
  body[data-page="admin"].admin-dashboard-open .admin-sidebar { position: sticky !important; top: 0 !important; z-index: 10; width: 100% !important; height: auto !important; max-height: 54vh !important; overflow-x: auto !important; overflow-y: auto !important; padding: 8px 10px !important; border-right: 0 !important; border-bottom: 1px solid rgba(45, 86, 108, .48) !important; }
  body[data-page="admin"].admin-dashboard-open .admin-sidebar-brand { min-height: 38px; margin: 0 4px 8px; }
  body[data-page="admin"].admin-dashboard-open .admin-sidebar-brand .brand-mark { width: 30px !important; height: 30px !important; flex-basis: 30px !important; }
  body[data-page="admin"].admin-dashboard-open .admin-nav-group { display: flex !important; flex-wrap: nowrap; gap: 3px; width: max-content; margin: 0 0 7px; padding: 0 0 6px; border: 0; }
  body[data-page="admin"].admin-dashboard-open .admin-nav-group-title { display: none !important; }
  body[data-page="admin"].admin-dashboard-open .admin-menu-item { width: auto !important; min-width: max-content !important; min-height: 33px !important; }
  body[data-page="admin"].admin-dashboard-open .admin-main { padding-inline: 14px !important; }
  body[data-page="admin"].admin-dashboard-open .dashboard-header { margin-inline: -14px !important; padding-inline: 14px !important; }
}
@media (max-width: 520px) {
  body[data-page="admin"].admin-dashboard-open .dashboard-header { align-items: flex-start !important; min-height: 88px !important; gap: 8px; padding-block: 13px !important; }
  body[data-page="admin"].admin-dashboard-open .dashboard-header h1 { font-size: 19px !important; }
  body[data-page="admin"].admin-dashboard-open .dashboard-header p { max-width: 160px; font-size: 8px !important; }
  body[data-page="admin"].admin-dashboard-open .admin-dashboard-actions { gap: 5px; }
  body[data-page="admin"].admin-dashboard-open .admin-dashboard-site-link { display: none; }
  body[data-page="admin"].admin-dashboard-open .admin-dashboard-identity { gap: 5px; margin-left: 0; padding-left: 0; border: 0; }
  body[data-page="admin"].admin-dashboard-open .admin-dashboard-avatar { width: 27px; height: 27px; }
  body[data-page="admin"].admin-dashboard-open .admin-dashboard-identity strong { font-size: 8px; }
  body[data-page="admin"].admin-dashboard-open .admin-dashboard-identity small { font-size: 7px; }
}
body[data-page="admin"].admin-dashboard-open .admin-nav-more { margin: 0 8px; border-top: 1px solid rgba(54, 87, 105, .34); }
body[data-page="admin"].admin-dashboard-open .admin-nav-more > summary { padding: 11px 2px 7px; color: #91a6b3; cursor: pointer; font-size: 9px; font-weight: 700; list-style: none; }
body[data-page="admin"].admin-dashboard-open .admin-nav-more > summary::-webkit-details-marker { display: none; }
body[data-page="admin"].admin-dashboard-open .admin-nav-more > summary::after { float: right; content: "+"; color: #ff790e; font-size: 14px; line-height: 10px; }
body[data-page="admin"].admin-dashboard-open .admin-nav-more[open] > summary::after { content: "-"; }
body[data-page="admin"].admin-dashboard-open .admin-nav-more .admin-nav-group { margin: 0; padding: 0; border: 0; }
body[data-page="admin"].admin-dashboard-open .admin-nav-more .admin-menu-item { min-height: 31px !important; font-size: 9px !important; }
body[data-page="admin"].admin-dashboard-open .admin-nav-primary .admin-menu-item { min-height: 32px !important; }
body[data-page="admin"].admin-dashboard-open .admin-overview-panel.admin-activity-panel { min-height: 210px; }
body[data-page="admin"].admin-dashboard-open .admin-weekly-chart { min-height: 0 !important; }
body[data-page="admin"].admin-dashboard-open .admin-weekly-chart svg { aspect-ratio: 700 / 220; }
body[data-page="admin"].admin-dashboard-open .admin-chart-empty { position: absolute; right: 12px; bottom: 29px; left: 38px; margin: 0; padding: 3px 5px; background: rgba(8, 26, 40, .82); text-align: center; }
body[data-page="admin"].admin-dashboard-open .admin-overview-quote-id { overflow: hidden; color: #9fb2bf; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="admin"].admin-dashboard-open .admin-overview-top-grid,
body[data-page="admin"].admin-dashboard-open .admin-overview-bottom-grid { align-items: stretch; }
body[data-page="admin"].admin-dashboard-open .admin-overview-bottom-grid > .admin-overview-panel { min-height: 205px; }
body[data-page="admin"].admin-dashboard-open .admin-overview-extra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 820px) {
  body[data-page="admin"].admin-dashboard-open .admin-overview-extra-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-page="admin"].admin-dashboard-open .admin-overview-panel.admin-activity-panel { min-height: 190px; }
}

body[data-page="admin"].admin-dashboard-open .admin-completion-panel { margin: 0 0 14px !important; }
body[data-page="admin"].admin-dashboard-open .admin-completion-queue { display: grid; gap: 0; }
body[data-page="admin"].admin-dashboard-open .admin-completion-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 8px 2px; border-top: 1px solid rgba(46, 79, 97, .34); }
body[data-page="admin"].admin-dashboard-open .admin-completion-date { color: #93a9b7; font-size: 9px; white-space: nowrap; }
body[data-page="admin"].admin-dashboard-open .admin-completion-row > div { display: grid; gap: 3px; min-width: 0; }
body[data-page="admin"].admin-dashboard-open .admin-completion-row strong { overflow: hidden; color: #e6eef2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="admin"].admin-dashboard-open .admin-completion-row small { overflow: hidden; color: #8fa7b5; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="admin"].admin-dashboard-open .admin-completion-action { min-height: 30px; padding: 6px 11px; font-size: 9px; white-space: nowrap; }

@media (max-width: 520px) {
  body[data-page="admin"].admin-dashboard-open .admin-completion-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  body[data-page="admin"].admin-dashboard-open .admin-completion-date { grid-column: 1 / -1; }
  body[data-page="admin"].admin-dashboard-open .admin-completion-row small { white-space: normal; }
}

