/*
 * Regul'Bus GPS HUD v4
 * Couche d'interface uniquement : aucune règle ne modifie le style, le zoom
 * ou le comportement de la carte MapLibre.
 */

.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

body.rb-driving-mobile-fullscreen .rb-assistant-root{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Instrument automobile partagé par les HUD desktop et mobile. */
.interactive-speedometer.premium-speedometer.rb-instrument-v4{
  --speed-angle:-135deg;
  position:relative!important;
  inset:auto!important;
  display:block!important;
  flex:0 0 auto!important;
  width:148px!important;
  min-width:148px!important;
  max-width:148px!important;
  height:148px!important;
  min-height:148px!important;
  max-height:148px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  color:#fff!important;
  background:transparent!important;
  box-shadow:0 16px 32px rgba(3,12,24,.26)!important;
  overflow:visible!important;
  cursor:default!important;
  pointer-events:none!important;
  transform:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
.premium-speedometer.rb-instrument-v4 .speed-gauge{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  filter:drop-shadow(0 5px 8px rgba(0,0,0,.3));
}
.premium-speedometer .speed-bezel-outer{
  fill:url(#rbGaugeMetal);
  stroke:rgba(255,255,255,.27);
  stroke-width:1;
}
.premium-speedometer .speed-bezel-inner{
  fill:#0a0d11;
  stroke:rgba(255,255,255,.15);
  stroke-width:1.3;
}
.premium-speedometer .speed-face{
  fill:url(#rbGaugeFace);
  stroke:rgba(255,255,255,.07);
  stroke-width:1;
}
.premium-speedometer .speed-ticks line{
  stroke:rgba(235,242,249,.58);
  stroke-width:1;
  stroke-linecap:round;
}
.premium-speedometer .speed-ticks line.major{
  stroke:#f8fbff;
  stroke-width:1.8;
}
.premium-speedometer .speed-numbers text{
  fill:rgba(238,244,250,.72)!important;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:6.2px!important;
  font-weight:720!important;
  text-anchor:middle;
  dominant-baseline:middle;
}
.premium-speedometer .speed-needle{
  transform-origin:80px 82px!important;
  transform:rotate(var(--speed-angle))!important;
  will-change:transform;
}
.premium-speedometer .speed-needle path{fill:url(#rbNeedleBlue);filter:drop-shadow(0 0 3px rgba(22,120,255,.68))}
.premium-speedometer .speed-needle circle:first-of-type{fill:#11161c;stroke:#818991;stroke-width:2}
.premium-speedometer .speed-needle circle:last-of-type{fill:#1678ff;stroke:#b7d7ff;stroke-width:1}
.premium-speedometer .speed-glass{
  fill:url(#rbGlassSheen);
  stroke:rgba(255,255,255,.08);
  stroke-width:.8;
}
.premium-speedometer.rb-instrument-v4 .speed-digital{
  position:absolute!important;
  z-index:3!important;
  inset:52% 0 auto!important;
  display:flex!important;
  align-items:baseline!important;
  justify-content:center!important;
  gap:3px!important;
  transform:translateY(-50%)!important;
  color:#fff!important;
  pointer-events:none!important;
}
.premium-speedometer.rb-instrument-v4 .speed-digital b{
  color:#fff!important;
  font-size:31px!important;
  font-weight:850!important;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.055em!important;
  line-height:1!important;
  text-shadow:0 2px 5px rgba(0,0,0,.54)!important;
}
.premium-speedometer.rb-instrument-v4 .speed-digital small{
  color:rgba(233,241,249,.66)!important;
  font-size:7px!important;
  font-weight:760!important;
  letter-spacing:.03em!important;
}
.premium-speedometer .speed-caption{
  position:absolute;
  z-index:3;
  top:66%;
  left:0;
  right:0;
  color:rgba(192,204,216,.62);
  font-size:6px;
  font-weight:850;
  letter-spacing:.16em;
  text-align:center;
}

@media(max-width:760px){
  body.rb-driving-mobile-fullscreen .rb-gps-hud-v4,
  body.rb-driving-mobile-fullscreen .rb-gps-hud-v4 .mobile-driver-map{
    position:fixed!important;
    z-index:30!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    overflow:hidden!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  /*
   * Grille HUD :
   * - bandeau de navigation en haut ;
   * - commandes dans un rail droit ;
   * - alertes sous le bandeau ;
   * - instruments au-dessus du bloc de service ;
   * - informations de service dans un seul bloc bas.
   */
  body.rb-driving-mobile-fullscreen .rb-gps-hud-v4 .rb-nav-banner-v4{
    position:absolute!important;
    z-index:90!important;
    top:max(10px,env(safe-area-inset-top))!important;
    left:max(10px,env(safe-area-inset-left))!important;
    right:max(70px,calc(env(safe-area-inset-right) + 68px))!important;
    bottom:auto!important;
    width:auto!important;
    max-width:none!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    align-items:center!important;
    gap:12px!important;
    min-height:104px!important;
    max-height:none!important;
    margin:0!important;
    padding:11px 13px 11px 10px!important;
    border:1px solid rgba(255,255,255,.2)!important;
    border-radius:24px!important;
    color:#fff!important;
    background:
      linear-gradient(145deg,rgba(5,25,51,.86),rgba(8,53,96,.78))!important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.18),
      0 18px 42px rgba(2,17,38,.28)!important;
    -webkit-backdrop-filter:blur(24px) saturate(145%)!important;
    backdrop-filter:blur(24px) saturate(145%)!important;
    overflow:hidden!important;
    animation:rbHudSlideDown .42s cubic-bezier(.18,.86,.22,1) both;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-banner-v4::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(115deg,rgba(255,255,255,.11),transparent 35%,transparent 72%,rgba(46,132,255,.08));
  }
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4{
    position:relative;
    z-index:1;
    display:grid;
    place-items:center;
    width:68px;
    height:68px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:20px;
    background:rgba(255,255,255,.09);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  }
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4 .guidance-sign{
    width:60px!important;
    height:60px!important;
    border:0!important;
    border-radius:17px!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4 .guidance-sign svg{
    width:51px!important;
    height:51px!important;
    stroke-width:5.2!important;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-copy-v4{
    position:relative;
    z-index:1;
    min-width:0;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-distance-v4{
    display:block!important;
    margin:0 0 1px!important;
    color:#76b7ff!important;
    font-size:11px!important;
    font-weight:850!important;
    letter-spacing:.065em!important;
    line-height:1.2!important;
    text-transform:uppercase;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-banner-v4 strong{
    display:block!important;
    max-height:none!important;
    margin:0!important;
    overflow:hidden!important;
    color:#fff!important;
    font-size:clamp(17px,4.8vw,23px)!important;
    font-weight:820!important;
    letter-spacing:-.035em!important;
    line-height:1.08!important;
    text-wrap:balance;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-context-v4{
    display:flex;
    align-items:center;
    gap:5px;
    min-width:0;
    margin-top:6px;
    overflow:hidden;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-context-v4 span{
    display:block!important;
    min-width:0;
    max-width:100%;
    padding:3px 6px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.1);
    border-radius:7px;
    color:rgba(235,245,255,.78)!important;
    background:rgba(255,255,255,.065);
    font-size:8px!important;
    font-weight:720;
    line-height:1.15;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-context-v4 span[hidden]{display:none!important}

  body.rb-driving-mobile-fullscreen .rb-gps-controls-v4{
    position:absolute!important;
    z-index:92!important;
    top:max(10px,env(safe-area-inset-top))!important;
    right:max(10px,env(safe-area-inset-right))!important;
    left:auto!important;
    bottom:auto!important;
    display:grid!important;
    gap:8px!important;
    width:50px!important;
    max-width:50px!important;
    margin:0!important;
  }
  body.rb-driving-mobile-fullscreen .rb-gps-controls-v4 .follow-control{
    position:relative!important;
    inset:auto!important;
    display:grid!important;
    place-items:center!important;
    width:50px!important;
    min-width:50px!important;
    height:50px!important;
    min-height:50px!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.7)!important;
    border-radius:17px!important;
    color:#315573!important;
    background:rgba(255,255,255,.76)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 10px 24px rgba(4,25,52,.18)!important;
    -webkit-backdrop-filter:blur(22px) saturate(145%)!important;
    backdrop-filter:blur(22px) saturate(145%)!important;
    transition:transform .18s ease,background .25s ease,color .25s ease!important;
  }
  body.rb-driving-mobile-fullscreen .rb-gps-controls-v4 .follow-control .rb-icon{
    width:23px!important;
    height:23px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-gps-controls-v4 .follow-control.is-following{
    color:#fff!important;
    border-color:rgba(82,156,255,.74)!important;
    background:linear-gradient(145deg,rgba(18,111,244,.9),rgba(8,77,185,.88))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 12px 28px rgba(5,82,191,.3)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-gps-controls-v4 .follow-control:active{transform:scale(.92)!important}

  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack{
    position:absolute;
    z-index:88;
    top:calc(max(10px,env(safe-area-inset-top)) + 114px);
    left:max(10px,env(safe-area-inset-left));
    display:grid;
    gap:7px;
    width:min(360px,calc(100vw - 82px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    max-height:144px;
    overflow:hidden;
    pointer-events:none;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-stop-hint{
    position:relative!important;
    z-index:auto!important;
    inset:auto!important;
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr) auto!important;
    gap:8px!important;
    width:100%!important;
    min-height:46px!important;
    margin:0!important;
    padding:7px 10px!important;
    border:1px solid rgba(255,255,255,.66)!important;
    border-radius:15px!important;
    color:#153c64!important;
    background:rgba(250,253,255,.78)!important;
    box-shadow:0 10px 24px rgba(4,25,52,.16)!important;
    -webkit-backdrop-filter:blur(20px) saturate(145%)!important;
    backdrop-filter:blur(20px) saturate(145%)!important;
    animation:rbHudToastIn .3s cubic-bezier(.2,.82,.22,1) both;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-stop-hint>span{
    width:28px!important;
    height:28px!important;
    border-radius:9px!important;
    background:#126ff1!important;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-stop-hint small{font-size:7px!important}
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-stop-hint b,
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-stop-hint>strong{font-size:11px!important}
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .mobile-alerts{
    position:relative!important;
    z-index:auto!important;
    inset:auto!important;
    display:grid!important;
    gap:7px!important;
    width:100%!important;
    max-height:91px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .mobile-alerts:empty{display:none!important}
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-alert{
    position:relative!important;
    inset:auto!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:2px 8px!important;
    width:100%!important;
    min-height:42px!important;
    margin:0!important;
    padding:8px 10px!important;
    overflow:hidden!important;
    border:1px solid rgba(255,255,255,.62)!important;
    border-left:4px solid #e34b5c!important;
    border-radius:15px!important;
    color:#6e2430!important;
    background:rgba(255,246,247,.8)!important;
    box-shadow:0 10px 24px rgba(70,19,28,.15)!important;
    -webkit-backdrop-filter:blur(20px) saturate(135%)!important;
    backdrop-filter:blur(20px) saturate(135%)!important;
    animation:rbHudToastIn .3s cubic-bezier(.2,.82,.22,1) both;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-alert b{
    margin:0!important;
    color:#a52d3e!important;
    font-size:11px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-alert span{
    display:-webkit-box!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#703440!important;
    font-size:9.5px!important;
    line-height:1.25!important;
    text-overflow:ellipsis!important;
    white-space:normal!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }

  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4{
    position:absolute!important;
    z-index:78!important;
    left:max(10px,env(safe-area-inset-left))!important;
    bottom:calc(max(10px,env(safe-area-inset-bottom)) + 132px)!important;
    display:flex!important;
    align-items:flex-end!important;
    gap:8px!important;
    pointer-events:none!important;
    animation:rbHudRise .44s .08s cubic-bezier(.18,.86,.22,1) both;
  }
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 .interactive-speedometer.mobile-speedometer.rb-instrument-v4{
    position:relative!important;
    inset:auto!important;
    width:clamp(96px,27vw,112px)!important;
    min-width:clamp(96px,27vw,112px)!important;
    max-width:clamp(96px,27vw,112px)!important;
    height:clamp(96px,27vw,112px)!important;
    min-height:clamp(96px,27vw,112px)!important;
    max-height:clamp(96px,27vw,112px)!important;
    padding:0!important;
    border-radius:50%!important;
    background:transparent!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 .interactive-speedometer.mobile-speedometer.rb-instrument-v4 .speed-gauge{
    inset:0!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
  }
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 .speed-limit-sign{
    position:relative!important;
    inset:auto!important;
    display:grid!important;
    place-items:center!important;
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    margin:0 0 5px!important;
    padding:0!important;
    border:4px solid #e74444!important;
    border-radius:50%!important;
    background:rgba(255,255,255,.9)!important;
    box-shadow:0 8px 20px rgba(4,25,52,.2)!important;
    color:#172c42!important;
  }
  body.rb-driving-mobile-fullscreen .rb-gps-hud-v4 .mobile-driver-map .rb-instrument-rail-v4 #speed-limit-sign{
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    transform:none!important;
  }
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 .speed-limit-sign.is-hidden{display:none!important}
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 .speed-limit-sign b{
    font-size:18px!important;
    font-weight:900!important;
    line-height:1!important;
  }
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 .speed-limit-sign small{display:none!important}

  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4{
    position:absolute!important;
    z-index:86!important;
    left:max(10px,env(safe-area-inset-left))!important;
    right:max(10px,env(safe-area-inset-right))!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    display:grid!important;
    grid-template-rows:62px 54px!important;
    gap:6px!important;
    width:calc(100vw - max(10px,env(safe-area-inset-left)) - max(10px,env(safe-area-inset-right)))!important;
    max-width:calc(100vw - max(10px,env(safe-area-inset-left)) - max(10px,env(safe-area-inset-right)))!important;
    box-sizing:border-box!important;
    margin:0!important;
    animation:rbHudRise .44s cubic-bezier(.18,.86,.22,1) both;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom{
    position:relative!important;
    z-index:auto!important;
    inset:auto!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    height:62px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:18px!important;
    color:#edf6ff!important;
    background:linear-gradient(145deg,rgba(6,23,43,.82),rgba(10,43,70,.76))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 15px 34px rgba(3,24,51,.22)!important;
    -webkit-backdrop-filter:blur(24px) saturate(145%)!important;
    backdrop-filter:blur(24px) saturate(145%)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom>div{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto 1fr!important;
    align-items:center!important;
    gap:1px 8px!important;
    min-width:0!important;
    height:100%!important;
    margin:0!important;
    padding:8px 10px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom>div+div{
    border-left:1px solid rgba(255,255,255,.12)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom span{
    grid-column:1/3;
    color:#9fb4c9!important;
    font-size:8px!important;
    font-weight:880!important;
    letter-spacing:.09em!important;
    line-height:1.1!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom b{
    min-width:0!important;
    margin:0!important;
    overflow:hidden!important;
    color:#f2f8ff!important;
    font-size:clamp(11px,3.2vw,14px)!important;
    font-weight:850!important;
    line-height:1.15!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-next-distance{
    color:#c5d6e6!important;
    font-size:10px!important;
    text-align:right;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-eta{
    color:#c5d6e6!important;
    font-size:9px!important;
    text-align:right;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-delay.ok{color:#13845e!important}
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-delay.warn{color:#d07411!important}
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-delay.danger,
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-delay.critical{color:#d33a4f!important}

  body.rb-driving-mobile-fullscreen .rb-service-actions-v4{
    display:grid!important;
    grid-template-columns:minmax(0,calc(100% - 121px)) 115px!important;
    gap:6px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:54px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock,
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-finish-service{
    position:relative!important;
    z-index:auto!important;
    inset:auto!important;
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:54px!important;
    min-height:54px!important;
    margin:0!important;
    padding:8px 11px!important;
    border:1px solid rgba(255,255,255,.72)!important;
    border-radius:18px!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 14px 32px rgba(3,24,51,.17)!important;
    -webkit-backdrop-filter:blur(24px) saturate(145%)!important;
    backdrop-filter:blur(24px) saturate(145%)!important;
    transition:transform .18s ease,background .22s ease!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock{
    gap:9px!important;
    color:#15395f!important;
    background:rgba(248,252,255,.79)!important;
    text-align:left!important;
    overflow:hidden!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-finish-service{
    justify-content:center!important;
    gap:7px!important;
    padding:6px!important;
    color:#bd3348!important;
    background:rgba(255,247,248,.8)!important;
    font-size:12px!important;
    font-weight:850!important;
    white-space:nowrap!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 button:active{transform:scale(.97)!important}
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-icon{
    display:grid!important;
    place-items:center!important;
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    border-radius:11px!important;
    color:#126ff1!important;
    background:rgba(18,111,241,.09)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-icon .rb-icon{width:21px!important;height:21px!important}
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-copy{
    display:block!important;
    min-width:0!important;
    flex:1!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-copy b,
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-copy small{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-copy b{
    color:#15395f!important;
    font-size:11px!important;
    font-weight:850!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-copy small{
    margin-top:2px!important;
    color:#6d8297!important;
    font-size:8px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-more{
    color:#66819c!important;
    font-size:20px!important;
  }
}

@media(max-width:390px){
  body.rb-driving-mobile-fullscreen .rb-gps-hud-v4 .rb-nav-banner-v4{
    grid-template-columns:52px minmax(0,1fr)!important;
    gap:8px!important;
    min-height:84px!important;
    padding:8px 11px 8px 8px!important;
    border-radius:19px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4{width:52px;height:52px;border-radius:15px}
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4 .guidance-sign{width:48px!important;height:48px!important}
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4 .guidance-sign svg{width:40px!important;height:40px!important}
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack{top:calc(max(10px,env(safe-area-inset-top)) + 93px)}
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4{grid-template-columns:minmax(0,calc(100% - 117px)) 111px!important}
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-finish-service{font-size:10px!important}
}

@media(orientation:landscape) and (max-height:600px) and (max-width:1000px){
  body.rb-driving-mobile-fullscreen .rb-gps-hud-v4 .rb-nav-banner-v4{
    right:auto!important;
    width:min(52vw,520px)!important;
    min-height:86px!important;
    grid-template-columns:58px minmax(0,1fr)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4{width:58px;height:58px}
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4 .guidance-sign{width:52px!important;height:52px!important}
  body.rb-driving-mobile-fullscreen .rb-nav-banner-v4 strong{font-size:18px!important}
  body.rb-driving-mobile-fullscreen .rb-gps-controls-v4{top:max(10px,env(safe-area-inset-top))!important}
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack{
    top:calc(max(10px,env(safe-area-inset-top)) + 96px);
    width:min(46vw,440px);
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4{
    left:auto!important;
    width:min(48vw,520px)!important;
    grid-template-rows:60px 52px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom{height:60px!important}
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4,
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock,
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-finish-service{height:52px!important;min-height:52px!important}
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4{
    right:calc(max(10px,env(safe-area-inset-right)) + min(48vw,520px) + 10px)!important;
    left:auto!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
  }
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 .interactive-speedometer.mobile-speedometer.rb-instrument-v4{
    width:100px!important;
    min-width:100px!important;
    max-width:100px!important;
    height:100px!important;
    min-height:100px!important;
    max-height:100px!important;
  }
}

html[data-rb-theme="dark"] body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom,
html[data-theme="dark"] body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom,
html[data-rb-theme="dark"] body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock{
  border-color:var(--rb-border)!important;
  color:var(--rb-text-primary)!important;
  background:color-mix(in srgb,var(--rb-surface) 90%,transparent)!important;
}
html[data-rb-theme="dark"] body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom b,
html[data-theme="dark"] body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom b,
html[data-rb-theme="dark"] body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-copy b{color:var(--rb-text-primary)!important}
html[data-rb-theme="dark"] body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom span,
html[data-theme="dark"] body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom span,
html[data-rb-theme="dark"] body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-copy small{color:var(--rb-text-secondary)!important}
html[data-rb-theme="dark"] body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-finish-service{
  border-color:color-mix(in srgb,var(--rb-danger) 38%,var(--rb-border))!important;
  color:var(--rb-danger)!important;
  background:color-mix(in srgb,var(--rb-danger) 9%,var(--rb-surface))!important;
}

/* HUD v5 — surfaces sémantiques, instrument compact et grille mobile accessible. */
.interactive-speedometer.premium-speedometer.rb-instrument-v5{
  --speed-progress:0;
  width:118px!important;
  min-width:118px!important;
  max-width:118px!important;
  height:118px!important;
  min-height:118px!important;
  max-height:118px!important;
  color:var(--rb-text-on-accent)!important;
  box-shadow:0 12px 26px rgba(3,12,24,.24)!important;
}
.rb-instrument-v5 .speed-gauge{filter:drop-shadow(0 4px 7px rgba(0,0,0,.28))!important}
.rb-instrument-v5 .speed-bezel-outer{stroke:rgba(255,255,255,.24);stroke-width:.8}
.rb-instrument-v5 .speed-bezel-inner{fill:#07111c;stroke:rgba(255,255,255,.12);stroke-width:1.1}
.rb-instrument-v5 .speed-track,
.rb-instrument-v5 .speed-ring-progress{
  fill:none;
  stroke-linecap:round;
  stroke-width:5;
  transform:rotate(135deg);
  transform-origin:80px 80px;
}
.rb-instrument-v5 .speed-track{stroke:rgba(205,221,237,.16);stroke-dasharray:75 100}
.rb-instrument-v5 .speed-ring-progress{
  stroke:url(#rbSpeedArc);
  filter:drop-shadow(0 0 3px rgba(22,135,255,.46));
  transition:stroke-dasharray .08s linear;
}
.rb-instrument-v5 .speed-ticks line{stroke:rgba(225,237,248,.38);stroke-width:.9}
.rb-instrument-v5 .speed-ticks line.major{stroke:rgba(248,251,255,.76);stroke-width:1.45}
.rb-instrument-v5 .speed-numbers,
.rb-instrument-v5 .speed-needle,
.rb-instrument-v5 .speed-caption{display:none!important}
.premium-speedometer.rb-instrument-v5 .speed-digital{
  inset:50% 0 auto!important;
  display:grid!important;
  justify-items:center!important;
  align-items:center!important;
  gap:1px!important;
}
.premium-speedometer.rb-instrument-v5 .speed-digital b{
  color:var(--rb-text-on-accent)!important;
  font-size:34px!important;
  font-weight:880!important;
  text-shadow:0 2px 5px rgba(0,0,0,.5)!important;
}
.premium-speedometer.rb-instrument-v5 .speed-digital small{
  color:#c7d7e7!important;
  font-size:8px!important;
  font-weight:780!important;
  letter-spacing:.045em!important;
}

@media(max-width:760px){
  /* Une ancienne version pouvait laisser un deuxième compteur directement dans la carte. */
  body.rb-driving-mobile-fullscreen .mobile-driver-map>.gps-speedometer,
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 [data-speedometer]~[data-speedometer]{display:none!important}

  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4{
    left:max(9px,env(safe-area-inset-left))!important;
    bottom:calc(max(9px,env(safe-area-inset-bottom)) + 124px)!important;
    gap:6px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 .interactive-speedometer.mobile-speedometer.rb-instrument-v5{
    width:clamp(82px,24vw,96px)!important;
    min-width:clamp(82px,24vw,96px)!important;
    max-width:clamp(82px,24vw,96px)!important;
    height:clamp(82px,24vw,96px)!important;
    min-height:clamp(82px,24vw,96px)!important;
    max-height:clamp(82px,24vw,96px)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-instrument-v5 .speed-digital b{font-size:clamp(25px,7.6vw,31px)!important}
  body.rb-driving-mobile-fullscreen .rb-instrument-v5 .speed-digital small{font-size:7px!important}
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 .speed-limit-sign{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    margin-bottom:3px!important;
  }

  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4{
    left:max(9px,env(safe-area-inset-left))!important;
    right:max(9px,env(safe-area-inset-right))!important;
    bottom:max(9px,env(safe-area-inset-bottom))!important;
    grid-template-rows:56px 52px!important;
    gap:6px!important;
    width:auto!important;
    max-width:none!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom{
    grid-template-columns:minmax(0,1.3fr) minmax(128px,.7fr)!important;
    height:56px!important;
    border-color:var(--rb-border)!important;
    color:var(--rb-text-primary)!important;
    background:var(--rb-surface)!important;
    background:color-mix(in srgb,var(--rb-surface) 90%,transparent)!important;
    box-shadow:inset 0 1px 0 color-mix(in srgb,var(--rb-text-on-accent) 38%,transparent),0 10px 25px rgba(3,24,51,.16)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom>div{
    /* Neutralise l'ancien fond blanc force par modern-v2.css, notamment en mode sombre. */
    background:transparent!important;
    background-image:none!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    gap:2px 6px!important;
    padding:6px 9px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom>div+div{border-color:var(--rb-border)!important}
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom span{
    color:var(--rb-text-secondary)!important;
    font-size:7.5px!important;
    letter-spacing:.075em!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom b{
    color:var(--rb-text-primary)!important;
    font-size:clamp(11px,3.25vw,14px)!important;
    line-height:1.08!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-next-stop{
    display:-webkit-box!important;
    align-self:center!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    white-space:normal!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-next-distance,
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-eta{
    align-self:center!important;
    color:var(--rb-text-secondary)!important;
    font-size:9px!important;
    white-space:nowrap!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-delay.delay-ok{color:var(--rb-success)!important}
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-delay.delay-warn{color:var(--rb-warning)!important}
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-delay.delay-danger{color:var(--rb-danger)!important}

  body.rb-driving-mobile-fullscreen .rb-service-actions-v4,
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock,
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-finish-service{
    height:52px!important;
    min-height:52px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock{
    border-color:var(--rb-border)!important;
    color:var(--rb-text-primary)!important;
    background:var(--rb-surface)!important;
    background:color-mix(in srgb,var(--rb-surface) 90%,transparent)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-copy b{color:var(--rb-text-primary)!important}
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-copy small,
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-more{color:var(--rb-text-secondary)!important}
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-finish-service{
    border-color:color-mix(in srgb,var(--rb-danger) 38%,var(--rb-border))!important;
    color:var(--rb-danger)!important;
    background:color-mix(in srgb,var(--rb-danger) 9%,var(--rb-surface))!important;
  }

  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-stop-hint,
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-alert{
    border-color:var(--rb-border)!important;
    color:var(--rb-text-primary)!important;
    background:color-mix(in srgb,var(--rb-surface) 91%,transparent)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-alert b{color:var(--rb-danger)!important}
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-alert span{color:var(--rb-text-primary)!important}

  body.rb-driving-mobile-fullscreen .mobile-driver-map .maplibregl-ctrl-bottom-right{
    right:max(8px,env(safe-area-inset-right))!important;
    bottom:calc(max(9px,env(safe-area-inset-bottom)) + 124px)!important;
    z-index:77!important;
  }
  body.rb-driving-mobile-fullscreen .mobile-driver-map .maplibregl-ctrl-group{
    margin:0 0 6px!important;
    overflow:hidden!important;
    border:1px solid var(--rb-border)!important;
    border-radius:14px!important;
    background:var(--rb-surface)!important;
    box-shadow:0 8px 20px rgba(4,25,52,.17)!important;
  }
  body.rb-driving-mobile-fullscreen .mobile-driver-map .maplibregl-ctrl-group button{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    color:var(--rb-text-primary)!important;
    background:var(--rb-surface)!important;
  }
  body.rb-driving-mobile-fullscreen .mobile-driver-map .maplibregl-ctrl-group button+button{border-top:1px solid var(--rb-border)!important}
  body.rb-driving-mobile-fullscreen .mobile-driver-map .maplibregl-ctrl-group button:focus-visible,
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 button:focus-visible{
    outline:3px solid color-mix(in srgb,var(--rb-accent) 62%,transparent)!important;
    outline-offset:2px!important;
  }
  html[data-rb-theme="dark"] body.rb-driving-mobile-fullscreen .mobile-driver-map .maplibregl-ctrl-icon{
    filter:invert(1) brightness(1.35)!important;
  }
}

@media(max-width:350px){
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom{grid-template-columns:minmax(0,1.15fr) minmax(119px,.85fr)!important}
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom>div{padding-inline:7px!important}
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom b{font-size:10.5px!important}
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4{grid-template-columns:minmax(0,1fr) 105px!important}
}

@media(max-width:390px) and (max-height:700px){
  body.rb-driving-mobile-fullscreen .rb-gps-hud-v4 .rb-nav-banner-v4{
    grid-template-columns:48px minmax(0,1fr)!important;
    gap:7px!important;
    min-height:76px!important;
    padding:7px 9px 7px 7px!important;
    border-radius:18px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4{width:48px!important;height:48px!important;border-radius:14px!important}
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4 .guidance-sign{width:44px!important;height:44px!important}
  body.rb-driving-mobile-fullscreen .rb-nav-icon-v4 .guidance-sign svg{width:37px!important;height:37px!important}
  body.rb-driving-mobile-fullscreen .rb-nav-banner-v4 strong{font-size:17px!important}
  body.rb-driving-mobile-fullscreen .rb-nav-context-v4{margin-top:3px!important}
  body.rb-driving-mobile-fullscreen .rb-gps-controls-v4,
  body.rb-driving-mobile-fullscreen .rb-gps-controls-v4 .follow-control{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-gps-controls-v4 .follow-control{border-radius:15px!important}
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 116px)!important}
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4 .interactive-speedometer.mobile-speedometer.rb-instrument-v5{
    width:84px!important;min-width:84px!important;max-width:84px!important;
    height:84px!important;min-height:84px!important;max-height:84px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4{
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    grid-template-rows:52px 48px!important;
    gap:6px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom{height:52px!important}
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom>div{padding:4px 8px!important}
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4,
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock,
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-finish-service{
    height:48px!important;
    min-height:48px!important;
  }
  body.rb-driving-mobile-fullscreen .rb-service-actions-v4 .mobile-service-dock-icon{
    flex-basis:32px!important;width:32px!important;height:32px!important;
  }
  body.rb-driving-mobile-fullscreen .mobile-driver-map .maplibregl-ctrl-bottom-right{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 116px)!important}
}

@keyframes rbHudSlideDown{
  from{opacity:0;transform:translateY(-14px) scale(.98)}
  to{opacity:1;transform:none}
}
@keyframes rbHudRise{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:none}
}
@keyframes rbHudToastIn{
  from{opacity:0;transform:translateX(-12px) scale(.98)}
  to{opacity:1;transform:none}
}

@media(prefers-reduced-motion:reduce){
  body.rb-driving-mobile-fullscreen .rb-nav-banner-v4,
  body.rb-driving-mobile-fullscreen .rb-instrument-rail-v4,
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4,
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack>*{animation:none!important}
}

/* HUD v5.1 — correctifs limites aux trois éléments signalés. */
.premium-speedometer.rb-instrument-v5 .speed-digital{
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  transform:none!important;
  pointer-events:none!important;
}
.premium-speedometer.rb-instrument-v5 .speed-digital b,
.premium-speedometer.rb-instrument-v5 .speed-digital small{
  position:static!important;
  inset:auto!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}
.premium-speedometer.rb-instrument-v5 .speed-digital b{line-height:.92!important}
.premium-speedometer.rb-instrument-v5 .speed-digital small{margin-top:1px!important;line-height:1!important}

@media(max-width:760px){
  body.rb-driving-mobile-fullscreen .premium-speedometer.rb-instrument-v5 .speed-digital{
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack,
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .mobile-alerts{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-alert.is-off-route{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:start!important;
    gap:3px!important;
    height:auto!important;
    min-height:0!important;
    padding:9px 11px!important;
    overflow:visible!important;
    text-align:left!important;
    border-color:var(--rb-border)!important;
    border-left-color:var(--rb-danger)!important;
    color:var(--rb-text-primary)!important;
    background:color-mix(in srgb,var(--rb-surface) 94%,transparent)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-alert.is-off-route b{
    display:block!important;
    color:var(--rb-danger)!important;
    white-space:normal!important;
    text-align:left!important;
  }
  body.rb-driving-mobile-fullscreen .rb-hud-toast-stack .driver-alert.is-off-route span{
    display:block!important;
    min-width:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    color:var(--rb-text-primary)!important;
    line-height:1.3!important;
    text-align:left!important;
    text-overflow:clip!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    -webkit-box-orient:initial!important;
    -webkit-line-clamp:unset!important;
  }

  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom>div:nth-child(2){
    grid-template-columns:minmax(max-content,1fr) max-content!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 .mobile-map-bottom{
    grid-template-columns:minmax(0,1fr) minmax(164px,.95fr)!important;
  }
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-delay,
  body.rb-driving-mobile-fullscreen .rb-bottom-cluster-v4 #map-eta{
    min-width:max-content!important;
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }
}
