
:root {
  --bg: #02040a;
  --panel: rgba(8, 12, 22, 0.74);
  --panel-strong: rgba(8, 12, 22, 0.90);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: #aab4c4;
  --gold: #e1b65b;
  --gold2: #ffe29b;
  --blue: #151515;
  --cyan: #7bdfff;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body, #app { width: 100%; height: 100%; margin: 0; }
body {
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 18%, rgba(60, 102, 159, 0.28), transparent 34%),
    radial-gradient(circle at 21% 76%, rgba(225, 182, 91, 0.12), transparent 28%),
    var(--bg);
}
#app { position: relative; isolation: isolate; }
#globe { position: absolute; inset: 0; z-index: 1; }
#globe canvas { outline: none; filter: contrast(1.07) saturate(1.08) brightness(1.02); }
#app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 55%, transparent 0 31%, rgba(2,4,10,0.03) 42%, rgba(2,4,10,0.52) 100%),
    linear-gradient(180deg, rgba(2,4,10,0.24), transparent 30%, rgba(2,4,10,0.62));
}
.hud {
  position: absolute;
  z-index: 5;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.route-panel {
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  width: min(430px, calc(100vw - 24px));
  padding: 16px;
  border-radius: 24px;
}
.brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brandline strong { display: block; font-size: 18px; letter-spacing: 0.02em; }
.brandline small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.pulse {
  width: 14px; height: 14px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 0 rgba(20, 20, 20, 0.45);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 20, 20, 0.45); }
  70% { box-shadow: 0 0 0 13px rgba(20, 20, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 20, 20, 0); }
}
h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 40px); line-height: 1.04; }
p { margin: 0 0 14px; color: var(--muted); line-height: 1.42; font-weight: 650; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle,
.show-info,
.close-card {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.toggle { min-height: 42px; padding: 0 14px; border-radius: 14px; font-weight: 750; }
.toggle:hover, .show-info:hover, .close-card:hover { transform: translateY(-1px); }
.toggle.active {
  border-color: rgba(47, 124, 255, 0.88);
  background: linear-gradient(135deg, rgba(47,124,255,0.35), rgba(123,223,255,0.12));
  color: #eef5ff;
}
.info-card {
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 28px));
  padding: 18px;
  border-radius: 26px;
  background: var(--panel-strong);
}
.close-card {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 30px;
  display: grid;
  place-items: center;
}
.kicker {
  color: var(--gold2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.info-card h2 { margin: 0 42px 8px 0; font-size: clamp(22px, 4vw, 32px); line-height: 1.08; }
.info-card p { margin: 0 0 14px; }
.info-card dl { display: grid; gap: 8px; margin: 0; }
.info-card dl div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.info-card dt { color: var(--muted); font-size: 12px; }
.info-card dd { margin: 0; font-weight: 750; }
.show-info {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 6;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(8,12,22,0.86);
}
.hover-popup {
  position: fixed;
  z-index: 10;
  pointer-events: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(8,12,22,0.84);
  box-shadow: 0 12px 34px rgba(0,0,0,0.36);
  font-size: 13px;
  font-weight: 800;
  transform: translate(14px, 14px);
}
.legal-footer {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(245,247,251,0.72);
  background: rgba(8,12,22,0.48);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  backdrop-filter: blur(16px);
}
.legal-footer a { color: inherit; text-decoration: none; }
.loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  gap: 16px;
  align-content: center;
  background: rgba(2,4,10,0.88);
  transition: opacity .35s ease, visibility .35s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 58px; height: 58px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: var(--blue);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.noscript-seo { padding: 24px; max-width: 720px; }
body.night #globe canvas { filter: contrast(1.1) saturate(1.03) brightness(.86); }
@media (max-width: 720px) {
  .route-panel {
    top: max(10px, env(safe-area-inset-top));
    width: min(360px, calc(100vw - 20px));
    padding: 12px;
    border-radius: 18px;
    background: rgba(8,12,22,0.48);
  }
  .route-panel h1 { font-size: 24px; }
  .route-panel p { font-size: 13px; margin-bottom: 10px; }
  .brandline small { display: none; }
  .toggle { min-height: 36px; padding: 0 10px; font-size: 12px; }
  .info-card { display: none; }
  .show-info { display: none; }
  .legal-footer { font-size: 12px; bottom: max(8px, env(safe-area-inset-bottom)); }
}


/* Kartenmodus-Ergänzungen */
body.standard-map #globe canvas {
  filter: contrast(1.03) saturate(0.65) brightness(1.08);
}



body.standard-map .toggle.active {
  border-color: rgba(30,30,30,0.82);
  background: linear-gradient(135deg, rgba(40,40,40,0.32), rgba(255,255,255,0.10));
}




/* OpenStreetMap Standardmodus */
.osm-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: #d6dbdc;
  transition: opacity .22s ease;
}

body.osm-active #globe {
  opacity: 0;
  pointer-events: none;
}

body.osm-active .osm-map {
  opacity: 1;
  pointer-events: auto;
}

body.osm-active #app::before {
  display: none;
}

body.osm-active .leaflet-control-attribution {
  font-size: 11px;
}

.osm-route-marker {
  border-radius: 999px;
  background: #050505;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.92);
  box-shadow: 0 2px 12px rgba(0,0,0,.28);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
}

.osm-route-marker span {
  display: block;
  line-height: 1;
}

.osm-country-label {
  background: transparent;
  border: 0;
  pointer-events: none;
  text-align: center;
}

.osm-country-label span {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  color: rgba(0,0,0,.72);
  background: rgba(255,255,255,.50);
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 1px rgba(255,255,255,.6);
  box-shadow: 0 1px 8px rgba(0,0,0,.10);
}

body.osm-active .route-panel {
  background: rgba(8, 12, 22, 0.82);
}


/* Standard Satellit Modus */
body.standard-map:not(.osm-active) #globe canvas {
  filter: contrast(1.02) saturate(0.92) brightness(1.03);
}


/* Attribution für Standard Satellit */
.osm-globe-attribution {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.58);
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}

body.osm-globe-active .osm-globe-attribution {
  opacity: 1;
}

body.osm-active .osm-globe-attribution {
  opacity: 0;
}


/* Ladefehler sichtbar statt endlosem Rädchen */
.loader.load-error {
  background: rgba(2, 4, 10, 0.92);
}

.loader-error-box {
  width: min(540px, calc(100vw - 36px));
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(8, 12, 22, 0.94);
  color: #fff;
  box-shadow: 0 24px 90px rgba(0,0,0,0.45);
  display: grid;
  gap: 10px;
}

.loader-error-box strong {
  font-size: 1.25rem;
}

.loader-error-box span {
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
}

.loader-error-box small {
  color: rgba(255,255,255,0.58);
  line-height: 1.45;
}


/* V25: Handy Layout Fix */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  #app,
  #globe,
  #osmMap {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }

  .hud.hero-card {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    max-height: 42vh;
    padding: 14px;
    border-radius: 18px;
    overflow: hidden;
  }

  .hero-card h1 {
    font-size: clamp(1.45rem, 8.5vw, 2.35rem);
    line-height: 0.98;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-card .eyebrow,
  .hero-card p {
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .hero-card p {
    margin-bottom: 12px;
  }

  .mode-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mode-row::-webkit-scrollbar {
    display: none;
  }

  .toggle {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .info-card {
    left: 10px;
    right: 10px;
    bottom: 48px;
    width: auto;
    max-width: calc(100vw - 20px);
    max-height: 34vh;
    overflow: auto;
    padding: 14px;
    border-radius: 18px;
  }

  .info-card h2 {
    font-size: clamp(1.25rem, 6.5vw, 1.9rem);
    line-height: 1.05;
  }

  .info-card p,
  .info-card dd,
  .info-card dt {
    font-size: 0.88rem;
    line-height: 1.28;
  }

  .info-card dl {
    gap: 8px;
  }

  .close-card {
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
  }

  .show-info {
    right: 10px;
    bottom: 54px;
  }

  .legal-footer {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: 8px;
    font-size: 0.78rem;
    padding: 6px 10px;
    max-width: calc(100vw - 20px);
    white-space: nowrap;
  }

  .hover-popup {
    max-width: calc(100vw - 24px);
    font-size: 0.9rem;
  }

  .osm-globe-attribution {
    right: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
    font-size: 10px;
  }
}

/* Sehr schmale Handys */
@media (max-width: 420px) {
  .hud.hero-card {
    top: 8px;
    left: 8px;
    right: 8px;
    max-width: calc(100vw - 16px);
    max-height: 40vh;
    padding: 12px;
  }

  .hero-card h1 {
    font-size: clamp(1.35rem, 8vw, 2.05rem);
  }

  .hero-card p {
    font-size: 0.84rem;
  }

  .toggle {
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .info-card {
    left: 8px;
    right: 8px;
    bottom: 44px;
    max-width: calc(100vw - 16px);
  }
}

/* END V25 MOBILE FIX */


/* Legal-Seiten müssen scrollbar sein. Das globale body overflow:hidden gilt nur für den Globus. */
body.legal-body {
  height: auto !important;
  min-height: 100vh;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background:
    radial-gradient(circle at 70% 10%, rgba(60,102,159,0.22), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(225,182,91,0.12), transparent 30%),
    #02040a;
}

body.legal-body .legal-wrap {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 70px;
  color: var(--text);
}

body.legal-body .legal-wrap h1 {
  margin-top: 18px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 8vw, 3.8rem);
}

body.legal-body .legal-wrap h2 {
  margin: 30px 0 10px;
  font-size: clamp(1.25rem, 4.8vw, 1.75rem);
}

body.legal-body .legal-wrap p,
body.legal-body .legal-wrap li {
  color: rgba(245,247,251,0.82);
  font-weight: 600;
  line-height: 1.62;
}

body.legal-body .legal-wrap a {
  color: var(--gold2);
}

body.legal-body .legal-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(8,12,22,0.62);
}

body.legal-body .legal-card {
  margin: 16px 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(8,12,22,0.62);
}


/* V36: Plus/Minus direkt im linken Bedienkasten */
.route-panel-inner-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.78);
  background: rgba(5, 8, 15, 0.92);
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 12px 34px rgba(0,0,0,0.42);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.route-panel-inner-toggle:active {
  transform: translateY(1px);
}

/* Kasten verkleinert: links bleibt nur eine kleine Bedienleiste mit Plus */
.hud.route-panel.route-panel-collapsed {
  width: 310px;
  max-width: calc(100vw - 32px);
  min-height: 72px;
  padding: 16px 66px 16px 20px;
  overflow: hidden;
}

.hud.route-panel.route-panel-collapsed .brandline,
.hud.route-panel.route-panel-collapsed h1,
.hud.route-panel.route-panel-collapsed p,
.hud.route-panel.route-panel-collapsed .buttons {
  display: none !important;
}

.hud.route-panel.route-panel-collapsed::before {
  content: "Rallye Route";
  display: block;
  color: #ffffff;
  font-weight: 950;
  font-size: 1.05rem;
  line-height: 1.1;
}

.hud.route-panel.route-panel-collapsed::after {
  content: "Globus Bedienfeld";
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.62);
  font-weight: 800;
  font-size: 0.82rem;
}

/* Mobile: Kasten bleibt oben links, Button sitzt im Kasten rechts oben */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  #app,
  #globe,
  #osmMap {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }

  .hud.route-panel {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    max-height: 42vh;
    padding: 14px 64px 14px 14px;
    border-radius: 18px;
    overflow: hidden;
  }

  .route-panel-inner-toggle {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.55rem;
  }

  .route-panel h1 {
    font-size: clamp(1.45rem, 8.5vw, 2.35rem);
    line-height: 0.98;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .route-panel .brandline small,
  .route-panel p {
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .route-panel p {
    margin-bottom: 12px;
  }

  .route-panel .buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .route-panel .buttons::-webkit-scrollbar {
    display: none;
  }

  .route-panel .toggle {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .hud.route-panel.route-panel-collapsed {
    left: 10px;
    right: auto;
    width: min(280px, calc(100vw - 20px));
    min-height: 62px;
    padding: 12px 58px 12px 14px;
  }
}

@media (max-width: 420px) {
  .hud.route-panel {
    top: 8px;
    left: 8px;
    right: 8px;
    max-width: calc(100vw - 16px);
    max-height: 40vh;
    padding: 12px 62px 12px 12px;
  }

  .route-panel h1 {
    font-size: clamp(1.35rem, 8vw, 2.05rem);
  }

  .route-panel p {
    font-size: 0.84rem;
  }

  .route-panel .toggle {
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .hud.route-panel.route-panel-collapsed {
    left: 8px;
    width: min(260px, calc(100vw - 16px));
  }
}


/* V37: Embedmodus blendet Globus Legal Footer aus */
body.embed-mode .legal-footer {
  display: none !important;
}

body.embed-mode .osm-globe-attribution {
  bottom: 8px;
}


/* V39: sichtbare Karten-Attribution, auch wenn Impressum/Datenschutz im Embedmodus ausgeblendet sind */
.map-attribution {
  position: absolute;
  z-index: 8;
  left: 14px;
  bottom: 10px;
  max-width: min(520px, calc(100vw - 28px));
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8, 12, 22, 0.64);
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.map-attribution a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
}

.map-attribution a:hover {
  color: #ffffff;
  text-decoration: underline;
}

body.embed-mode .map-attribution {
  display: block !important;
}

body.embed-mode .legal-footer {
  display: none !important;
}

@media (max-width: 760px) {
  .map-attribution {
    left: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
    font-size: 10px;
    padding: 5px 8px;
  }
}





/* V52: Mobile Globus Bedienfläche komplett sichtbar, ohne inneres Scrollen */
@media (max-width: 760px) {
  .hud.route-panel {
    left: 12px !important;
    right: 12px !important;
    top: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    padding: 14px 16px 12px !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    border-radius: 22px !important;
  }

  .hud.route-panel .brandline {
    font-size: clamp(0.92rem, 4.1vw, 1.18rem) !important;
    line-height: 1.08 !important;
    margin: 0 56px 8px 0 !important;
  }

  .hud.route-panel h1 {
    font-size: clamp(1.72rem, 8.2vw, 2.48rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.055em !important;
    margin: 0 56px 8px 0 !important;
  }

  .hud.route-panel p {
    font-size: clamp(0.82rem, 3.55vw, 1.02rem) !important;
    line-height: 1.18 !important;
    margin: 0 0 10px 0 !important;
  }

  .hud.route-panel .buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
  }

  .hud.route-panel .buttons button {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 36px !important;
    padding: 8px 7px !important;
    font-size: clamp(0.72rem, 3.25vw, 0.88rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    border-radius: 16px !important;
  }

  .route-panel-inner-toggle {
    top: 18px !important;
    right: 18px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    font-size: 1.85rem !important;
    z-index: 10 !important;
  }

  .hud.route-panel.route-panel-collapsed {
    width: auto !important;
    max-width: 210px !important;
    height: auto !important;
    min-height: 58px !important;
    max-height: 64px !important;
    overflow: hidden !important;
    padding: 9px 68px 9px 16px !important;
  }

  .hud.route-panel.route-panel-collapsed::after {
    font-size: 0.95rem !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 430px) {
  .hud.route-panel {
    left: 10px !important;
    right: 10px !important;
    top: 10px !important;
    padding: 12px 14px 10px !important;
    border-radius: 20px !important;
  }

  .hud.route-panel .brandline {
    font-size: clamp(0.86rem, 3.85vw, 1.02rem) !important;
    margin: 0 52px 6px 0 !important;
  }

  .hud.route-panel h1 {
    font-size: clamp(1.45rem, 7.25vw, 2.05rem) !important;
    line-height: 0.94 !important;
    margin: 0 52px 7px 0 !important;
  }

  .hud.route-panel p {
    font-size: clamp(0.76rem, 3.28vw, 0.92rem) !important;
    line-height: 1.14 !important;
    margin-bottom: 8px !important;
  }

  .hud.route-panel .buttons {
    gap: 7px !important;
    margin-top: 7px !important;
  }

  .hud.route-panel .buttons button {
    min-height: 32px !important;
    padding: 7px 5px !important;
    font-size: clamp(0.66rem, 2.95vw, 0.78rem) !important;
    line-height: 1.05 !important;
    border-radius: 14px !important;
  }

  .route-panel-inner-toggle {
    top: 14px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 1.65rem !important;
  }
}

@media (max-width: 370px) {
  .hud.route-panel {
    padding: 10px 12px 9px !important;
  }
  .hud.route-panel .brandline { font-size: 0.78rem !important; margin-bottom: 5px !important; }
  .hud.route-panel h1 { font-size: 1.32rem !important; margin-bottom: 6px !important; }
  .hud.route-panel p { font-size: 0.70rem !important; line-height: 1.12 !important; margin-bottom: 7px !important; }
  .hud.route-panel .buttons button { min-height: 29px !important; font-size: 0.61rem !important; padding: 6px 4px !important; }
}
