

    @font-face {
      font-family: "Inter";
      src: url("Inter_18pt-Light.768630d6eb69.woff2") format("woff2");
      font-weight: 300;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Inter";
      src: url("Inter_18pt-Regular.0d65fccc7db3.woff2") format("woff2");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Inter";
      src: url("Inter_18pt-Medium.634a1de5d5c7.woff2") format("woff2");
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Inter";
      src: url("Inter_18pt-SemiBold.5358547202e1.woff2") format("woff2");
      font-weight: 600;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Inter";
      src: url("Inter_18pt-Bold.1cd4748d9c07.woff2") format("woff2");
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Inter";
      src: url("Inter_18pt-ExtraBold.52defb7fccba.woff2") format("woff2");
      font-weight: 800;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Inter";
      src: url("Inter_18pt-Black.74273d750c11.woff2") format("woff2");
      font-weight: 900;
      font-style: normal;
      font-display: swap;
    }

    

    

    

    

    :root {
      --primary-orange: #ff6600;
      --primary-orange-hover: #e65c00;
      --hl-blue: #001b41;
      --text-dark: #07152f;
      --text-muted: #64748b;
      --border-color: #e2e8f0;
      --bg-map: #eef3f7;
      --panel-shadow: 0 4px 16px rgba(0, 27, 65, 0.08);
      --control-shadow: 0 3px 12px rgba(0, 27, 65, 0.10);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: Inter, Arial, sans-serif;
    }

    html,
    body {
      width: 100%;
      height: 100%;
    }

    body {
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
      color: var(--text-dark);
      background: #ffffff;
      -webkit-font-smoothing: antialiased;
      text-rendering: geometricPrecision;
    }

    header {
      height: 64px;
      min-height: 64px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 24px;
      padding: 0 24px;
      border-bottom: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.98);
      z-index: 1200;
      box-shadow: 0 2px 16px rgba(0, 27, 65, 0.05);
    }

    .header-left {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }

    .logo-area {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 760;
      font-size: 18px;
      letter-spacing: -0.035em;
      color: var(--text-dark);
      white-space: nowrap;
      min-width: 0;
    }

    .logo-area svg {
      width: 25px;
      height: 25px;
      color: var(--text-dark);
      flex: 0 0 auto;
    }

    .logo-area span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sally-app-icon {
      display: block;
      width: 32px;
      height: 32px;
      object-fit: contain;
      flex: 0 0 auto;
    }


    .partner-logos {
      justify-self: start;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 20px;
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 650;
      white-space: nowrap;
      height: 64px;
    }

    .partner-logo-img {
      display: block;
      width: auto;
      object-fit: contain;
      flex: 0 0 auto;
    }

    .partner-logo-hl {
      height: 36px;
      max-width: 190px;
    }

    .partner-logo-nexxiot {
      height: 20px;
      max-width: 120px;
      margin-top: 1px;
    }

    .main-container {
      display: flex;
      flex: 1;
      min-height: 0;
      height: calc(100vh - 64px);
      background: var(--bg-map);
    }

    #map-container {
      flex: 1;
      min-width: 0;
      height: 100%;
      position: relative;
      background: var(--bg-map);
      overflow: hidden;
    }

    #map {
      width: 100%;
      height: 100%;
      background: var(--bg-map);
      z-index: 1;
    }

    .leaflet-container {
      background: var(--bg-map);
      font-family: Inter, Arial, sans-serif;
    }

    .leaflet-control-attribution {
      display: none !important;
    }

    .leaflet-tile-pane {
      filter: none;
    }

    .maplibregl-map,
    .maplibregl-canvas-container {
      font-family: Inter, Arial, sans-serif !important;
    }

    .maplibregl-canvas {
      /* Do not apply a CSS filter here. Route layers are drawn inside the
         MapLibre canvas so the route can sit below map labels. A canvas filter
         would also recolor #FF6600 and make the recent route look darker.
         The neutral map tone is handled by applyAfricaMapTone() below. */
      filter: none;
    }

    .maplibregl-control-container,
    .maplibregl-ctrl-attrib {
      display: none !important;
    }

    .loader-wrap {
      min-height: 190px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .loader {
      position: relative;
      width: 54px;
      height: 54px;
      border-radius: 2px;
    }

    .loader div {
      width: 8%;
      height: 24%;
      background: rgb(128, 128, 128);
      position: absolute;
      left: 50%;
      top: 30%;
      opacity: 0;
      border-radius: 2px;
      box-shadow: 0 0 3px rgba(0,0,0,0.2);
      animation: fade458 1s linear infinite;
    }

    @keyframes fade458 {
      from { opacity: 1; }
      to { opacity: 0.25; }
    }

    .loader .bar1 { transform: rotate(0deg) translate(0, -130%); animation-delay: 0s; }
    .loader .bar2 { transform: rotate(30deg) translate(0, -130%); animation-delay: -1.1s; }
    .loader .bar3 { transform: rotate(60deg) translate(0, -130%); animation-delay: -1s; }
    .loader .bar4 { transform: rotate(90deg) translate(0, -130%); animation-delay: -0.9s; }
    .loader .bar5 { transform: rotate(120deg) translate(0, -130%); animation-delay: -0.8s; }
    .loader .bar6 { transform: rotate(150deg) translate(0, -130%); animation-delay: -0.7s; }
    .loader .bar7 { transform: rotate(180deg) translate(0, -130%); animation-delay: -0.6s; }
    .loader .bar8 { transform: rotate(210deg) translate(0, -130%); animation-delay: -0.5s; }
    .loader .bar9 { transform: rotate(240deg) translate(0, -130%); animation-delay: -0.4s; }
    .loader .bar10 { transform: rotate(270deg) translate(0, -130%); animation-delay: -0.3s; }
    .loader .bar11 { transform: rotate(300deg) translate(0, -130%); animation-delay: -0.2s; }
    .loader .bar12 { transform: rotate(330deg) translate(0, -130%); animation-delay: -0.1s; }

    .loader-label {
      color: var(--text-muted);
      font-size: 11px;
      line-height: 1.35;
      font-weight: 650;
      text-align: center;
    }

    .map-loading-overlay {
      position: absolute;
      inset: 0;
      z-index: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(238, 243, 247, 0.56);
      backdrop-filter: blur(4px) saturate(0.88);
      -webkit-backdrop-filter: blur(4px) saturate(0.88);
      pointer-events: none;
      transition: opacity 0.2s ease;
    }

    .map-loading-overlay.is-hidden {
      opacity: 0;
    }

    .map-loading-card {
      background: transparent;
      border: 0;
      padding: 0;
      display: grid;
      justify-items: center;
      gap: 10px;
    }

    .map-loading-card .loader-wrap {
      min-height: 54px;
    }

    .map-custom-controls {
      position: absolute;
      top: 20px;
      left: 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 1000;
    }

    .map-btn {
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.96);
      border-radius: 2px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--control-shadow);
      cursor: pointer;
      border: 1px solid var(--border-color);
      padding: 0;
      font-family: inherit;
      font-size: 18px;
      font-weight: 650;
      color: var(--text-dark);
      transition: all 0.18s ease;
      user-select: none;
      backdrop-filter: blur(10px);
    }

    .map-btn:hover {
      background-color: #ffffff;
      transform: translateY(-1px);
    }

    .map-btn svg {
      width: 18px;
      height: 18px;
    }

    .map-btn.is-loading svg {
      animation: mapControlSpin 0.85s linear infinite;
    }

    .map-btn:disabled {
      cursor: wait;
      opacity: 0.72;
    }

    @keyframes mapControlSpin {
      to { transform: rotate(360deg); }
    }

    .map-bottom-status {
      position: absolute;
      bottom: 22px;
      left: 24px;
      z-index: 1000;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .journey-countdown {
      width: 246px;
      background: rgba(255, 255, 255, 0.97);
      border: 1px solid var(--border-color);
      border-radius: 2px;
      box-shadow: var(--control-shadow);
      padding: 10px 12px 11px 12px;
      backdrop-filter: blur(12px);
    }

    .countdown-kicker {
      font-size: 10px;
      font-weight: 800;
      color: var(--primary-orange);
      text-transform: uppercase;
      letter-spacing: 0.045em;
      margin-bottom: 4px;
      white-space: nowrap;
    }

    .countdown-main {
      display: flex;
      align-items: baseline;
      gap: 6px;
      color: var(--text-dark);
      margin-bottom: 7px;
    }

    .countdown-days {
      font-size: 26px;
      line-height: 1;
      font-weight: 850;
      letter-spacing: -0.06em;
    }

    .countdown-label {
      font-size: 12px;
      font-weight: 750;
      color: var(--text-muted);
      white-space: nowrap;
    }

    .countdown-progress {
      width: 100%;
      height: 5px;
      border-radius: 2px;
      background: #e2e8f0;
      overflow: hidden;
      margin-bottom: 7px;
    }

    .countdown-progress-bar {
      height: 100%;
      width: 0%;
      background: var(--primary-orange);
      border-radius: 2px;
      transition: width 0.35s ease;
    }

    .countdown-meta {
      font-size: 10px;
      line-height: 1.3;
      font-weight: 650;
      color: var(--text-muted);
      white-space: nowrap;
    }

    .status-badge {
      min-height: 40px;
      background: rgba(255, 255, 255, 0.97);
      padding: 10px 14px;
      border-radius: 2px;
      box-shadow: var(--control-shadow);
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 12px;
      font-weight: 700;
      border: 1px solid var(--border-color);
      backdrop-filter: blur(10px);
      color: var(--text-dark);
      width: fit-content;
      max-width: 340px;
    }

    .status-badge .info-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 17px;
      height: 17px;
      border-radius: 50%;
      border: 1px solid #aeb8c5;
      color: var(--text-dark);
      font-size: 11px;
      font-weight: 800;
      flex: 0 0 auto;
    }

    .map-route-info-row {
      display: flex;
      align-items: stretch;
      gap: 8px;
      width: fit-content;
      max-width: calc(100vw - 48px);
    }

    .map-attribution-credit {
      width: fit-content;
      max-width: calc(100vw - 48px);
      color: rgba(100, 116, 139, 0.86);
      font-size: 9px;
      line-height: 1.25;
      font-weight: 600;
      letter-spacing: -0.01em;
      text-shadow: 0 1px 1px rgba(255, 255, 255, 0.76);
      pointer-events: auto;
      user-select: none;
    }

    .map-attribution-credit a,
    .map-attribution-credit a:visited,
    .map-attribution-credit a:hover,
    .map-attribution-credit a:active {
      color: inherit;
      text-decoration: none;
      font-weight: inherit;
    }

    .map-attribution-credit a:focus-visible {
      outline: 1px dotted rgba(100, 116, 139, 0.65);
      outline-offset: 2px;
    }

    .routing-warning {
      position: absolute;
      top: 78px;
      left: 20px;
      z-index: 1000;
      max-width: min(360px, calc(100vw - 40px));
      padding: 8px 10px;
      border-radius: 2px;
      border: 1px solid rgba(148, 163, 184, 0.34);
      background: rgba(255, 255, 255, 0.92);
      box-shadow: var(--control-shadow);
      color: var(--text-muted);
      font-size: 10.5px;
      line-height: 1.35;
      font-weight: 650;
      backdrop-filter: blur(10px);
      pointer-events: none;
    }

    .routing-warning.is-hidden {
      display: none;
    }

    .tracking-notice {
      position: absolute;
      top: 20px;
      left: 72px;
      z-index: 1000;
      max-width: min(320px, calc(100vw - 164px));
      padding: 8px 10px;
      border: 1px solid rgba(148, 163, 184, 0.34);
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: var(--control-shadow);
      color: var(--text-muted);
      font-size: 10.5px;
      line-height: 1.35;
      font-weight: 650;
      backdrop-filter: blur(10px);
      pointer-events: none;
    }

    .tracking-notice.is-hidden {
      display: none;
    }

    .route-legend {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      gap: 11px;
      padding: 10px 12px;
      border-radius: 2px;
      border: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.94);
      box-shadow: var(--control-shadow);
      backdrop-filter: blur(12px);
      color: var(--text-dark);
      pointer-events: none;
    }

    .route-legend-title {
      display: none;
    }

    .route-legend-row {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      height: 18px;
    }

    .route-legend-line {
      width: 24px;
      height: 0;
      border-top: 3px solid var(--primary-orange);
      border-radius: 2px;
      flex: 0 0 auto;
    }

    .route-legend-line.is-history {
      border-top-color: #768A9D;
      opacity: 0.95;
    }

    .route-legend-line.is-fallback {
      border-top-color: #94a3b8;
      border-top-style: dashed;
      opacity: 0.95;
    }

    .route-legend-label {
      min-width: 0;
      color: #334155;
      font-size: 11px;
      line-height: 1;
      font-weight: 720;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .scale-card {
      width: 88px;
      text-align: center;
      color: var(--text-dark);
      font-size: 11px;
      font-weight: 650;
      opacity: 0.9;
    }

    .scale-card::before {
      content: "";
      display: block;
      width: 88px;
      height: 10px;
      border-left: 2px solid var(--text-dark);
      border-right: 2px solid var(--text-dark);
      border-bottom: 2px solid var(--text-dark);
      margin-bottom: 5px;
    }

    .lars-info-widget {
      position: absolute;
      top: 20px;
      right: 22px;
      z-index: 1002;
    }

    .lars-avatar-button {
      position: relative;
      width: 58px;
      height: 58px;
      border: 0;
      border-radius: 50%;
      background: #ffffff;
      color: var(--primary-orange);
      box-shadow: var(--control-shadow);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      isolation: isolate;
    }

    .lars-avatar-button::before {
      content: "";
      position: absolute;
      inset: 6px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f7f9fc 34%, #e9eef5 100%);
      border: 2px solid rgba(255, 102, 0, 0.35);
      z-index: 1;
    }

    .lars-avatar-ring {
      position: absolute;
      inset: -7px;
      border-radius: 50%;
      border: 2px solid rgba(255, 102, 0, 0.35);
      animation: larsPulse 2.4s ease-in-out infinite;
    }

    .lars-avatar-initials {
      position: relative;
      z-index: 2;
      font-size: 17px;
      font-weight: 850;
      letter-spacing: -0.04em;
    }

    @keyframes larsPulse {
      0%, 100% { transform: scale(0.92); opacity: 0.35; }
      50% { transform: scale(1.12); opacity: 0.9; }
    }

    .lars-tooltip {
      position: absolute;
      top: 70px;
      right: 0;
      width: 310px;
      background: rgba(255, 255, 255, 0.98);
      border: 1px solid var(--border-color);
      border-radius: 2px;
      box-shadow: 0 14px 34px rgba(0, 27, 65, 0.16);
      padding: 16px;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-8px);
      transition: opacity 0.18s ease, transform 0.18s ease;
      backdrop-filter: blur(14px);
    }

    .lars-tooltip.is-open {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .lars-tooltip-kicker {
      font-size: 11px;
      font-weight: 800;
      color: var(--primary-orange);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 6px;
    }

    .lars-tooltip h3 {
      font-size: 17px;
      line-height: 1.15;
      margin-bottom: 9px;
      letter-spacing: -0.04em;
      color: var(--text-dark);
    }

    .lars-tooltip p {
      font-size: 12px;
      line-height: 1.45;
      color: #334155;
      font-weight: 500;
    }

    .lars-tooltip p + p {
      margin-top: 9px;
    }


    .subscription-widget {
      position: relative;
      z-index: 1001;
      width: 246px;
      color: var(--text-dark);
      pointer-events: auto;
    }

    .subscription-widget.is-hidden,
    .subscription-widget.is-minimized {
      width: 46px;
    }

    .subscription-widget.is-minimized .subscription-dismiss {
      display: none;
    }

    .subscription-widget.is-minimized .subscription-toggle {
      width: 46px;
      min-height: 46px;
      height: 46px;
      padding: 0;
      border-radius: 2px;
      gap: 0;
    }

    .subscription-widget.is-minimized .subscription-toggle-label {
      display: none;
    }

    .subscription-widget.is-minimized .subscription-toggle svg {
      width: 18px;
      height: 18px;
    }

    .subscription-widget.is-minimized .subscription-panel {
      display: none !important;
    }

    .subscription-dismiss {
      position: absolute;
      top: -7px;
      right: -7px;
      z-index: 4;
      width: 22px;
      height: 22px;
      border: 1px solid var(--border-color);
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.98);
      color: var(--text-muted);
      font-size: 16px;
      line-height: 18px;
      font-weight: 800;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 3px 10px rgba(0, 27, 65, 0.12);
      transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
    }

    .subscription-dismiss:hover {
      color: var(--primary-orange);
      border-color: rgba(255, 102, 0, 0.45);
      background: #ffffff;
      transform: translateY(-1px);
    }

    .subscription-toggle {
      position: relative;
      width: 100%;
      min-height: 42px;
      border: 2px solid var(--primary-orange);
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.96);
      color: var(--primary-orange);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 11px;
      padding: 0 20px;
      font-size: 11px;
      line-height: 1;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      box-shadow: 0 3px 12px rgba(0, 27, 65, 0.10);
      overflow: hidden;
      transition: color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease, border-color 0.22s ease;
      backdrop-filter: blur(10px);
    }

    .subscription-toggle::before {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--primary-orange);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.36s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      z-index: 0;
    }

    .subscription-toggle:hover,
    .subscription-widget.is-open .subscription-toggle {
      color: #ffffff;
      box-shadow: 0 8px 20px rgba(255, 102, 0, 0.22);
      transform: translateY(-1px);
    }

    .subscription-toggle:hover::before,
    .subscription-widget.is-open .subscription-toggle::before {
      transform: scaleX(1);
    }

    .subscription-toggle:active {
      transform: translateY(0) scale(0.98);
    }

    .subscription-toggle-label,
    .subscription-toggle svg {
      position: relative;
      z-index: 1;
    }

    .subscription-toggle svg {
      width: 16px;
      height: 16px;
      flex: 0 0 auto;
      transition: transform 0.24s ease;
    }

    .subscription-toggle:hover svg,
    .subscription-widget.is-open .subscription-toggle svg {
      transform: rotate(18deg) scale(1.08);
    }

    .subscription-panel {
      display: none;
      position: absolute;
      left: 0;
      bottom: calc(100% + 10px);
      width: 310px;
      padding: 13px 13px 14px 13px;
      background: rgba(255, 255, 255, 0.98);
      border: 1px solid var(--border-color);
      border-radius: 2px;
      box-shadow: 0 14px 34px rgba(0, 27, 65, 0.15);
      backdrop-filter: blur(14px);
    }

    .subscription-widget.is-open .subscription-panel {
      display: block;
    }

    .subscription-copy {
      margin: 0 0 10px 0;
      font-size: 12px;
      line-height: 1.45;
      color: #334155;
      font-weight: 500;
    }

    .subscription-field {
      width: 100%;
      height: 36px;
      padding: 0 10px;
      border: 1px solid #cbd5e1;
      border-radius: 2px;
      font-size: 12px;
      outline: none;
      background: #ffffff;
      color: var(--text-dark);
      box-shadow: inset 0 1px 2px rgba(0, 27, 65, 0.03);
    }

    .subscription-field:focus {
      border-color: var(--primary-orange);
      box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
    }

    .subscription-consent {
      display: grid;
      grid-template-columns: 16px 1fr;
      gap: 8px;
      margin: 10px 0 12px 0;
      font-size: 10.5px;
      line-height: 1.35;
      color: #475569;
      font-weight: 550;
    }

    .subscription-consent input {
      margin-top: 2px;
      accent-color: var(--primary-orange);
    }

    .subscription-consent a {
      color: var(--primary-orange);
      font-weight: 800;
      text-decoration: none;
    }

    .subscription-consent a:hover {
      text-decoration: underline;
    }

    .subscription-submit {
      width: 100%;
      height: 36px;
      border: 0;
      border-radius: 2px;
      background: var(--primary-orange);
      color: #ffffff;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 7px 16px rgba(255, 102, 0, 0.20);
      transition: background 0.18s ease, transform 0.18s ease;
    }

    .subscription-submit:hover {
      background: var(--primary-orange-hover);
      transform: translateY(-1px);
    }

    .subscription-submit:disabled {
      opacity: 0.65;
      cursor: not-allowed;
      transform: none;
    }

    .subscription-message {
      min-height: 16px;
      margin-top: 9px;
      font-size: 11px;
      line-height: 1.35;
      color: var(--text-muted);
      font-weight: 650;
    }

    .subscription-message.is-success {
      color: #2f6b36;
    }

    .subscription-message.is-error {
      color: #b42318;
    }

    .app-credit-widget {
      position: absolute;
      right: 22px;
      bottom: 22px;
      z-index: 1000;
      width: 230px;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid var(--border-color);
      border-radius: 2px;
      box-shadow: var(--control-shadow);
      backdrop-filter: blur(12px);
      color: var(--text-dark);
      overflow: hidden;
    }

    .app-credit-widget summary {
      list-style: none;
      cursor: pointer;
      padding: 8px 10px;
      font-size: 10px;
      line-height: 1.2;
      font-weight: 800;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.045em;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      user-select: none;
    }

    .app-credit-widget summary::-webkit-details-marker {
      display: none;
    }

    .app-credit-widget summary::after {
      content: "+";
      color: var(--primary-orange);
      font-size: 14px;
      line-height: 1;
      font-weight: 800;
    }

    .app-credit-widget[open] summary::after {
      content: "−";
    }

    .app-credit-body {
      padding: 0 10px 10px 10px;
      font-size: 11px;
      line-height: 1.45;
      color: #334155;
      font-weight: 500;
    }

    .app-credit-body strong {
      color: var(--text-dark);
      font-weight: 800;
    }

    .app-credit-body a {
      color: var(--primary-orange);
      font-weight: 800;
      text-decoration: none;
    }

    .app-credit-body a:hover {
      text-decoration: underline;
    }

    .sidebar {
      width: 470px;
      min-width: 470px;
      height: 100%;
      border-left: 1px solid var(--border-color);
      display: flex;
      flex-direction: column;
      gap: 0;
      background: #f7f9fc;
      z-index: 1001;
      padding: 12px;
    }

    .panel {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 2px;
      box-shadow: var(--panel-shadow);
    }

    .panel.is-panel-collapsed .table-container,
    .panel.is-panel-collapsed .feed-container,
    .panel.is-panel-collapsed .feed-footer {
      opacity: 0;
      pointer-events: none;
    }


    .panel-travel-log {
      flex: 1.06;
    }

    .panel-community {
      flex: 0.94;
    }

    .panel-resizer {
      height: 20px;
      min-height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: ns-resize;
      user-select: none;
      touch-action: none;
      flex: 0 0 auto;
    }

    .panel-resizer span {
      width: 48px;
      height: 3px;
      border-radius: 2px;
      background: #cbd5e1;
      transition: background 0.18s ease, width 0.18s ease;
    }

    .panel-resizer:hover span,
    .panel-resizer.is-dragging span {
      width: 62px;
      background: var(--primary-orange);
    }

    .panel-header {
      padding: 18px 18px 10px 18px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      border-bottom: 1px solid var(--border-color);
      gap: 12px;
    }

    .panel-title h2 {
      font-size: 18px;
      line-height: 1.05;
      font-weight: 800;
      letter-spacing: 0.005em;
      color: var(--text-dark);
      margin-bottom: 5px;
    }

    .panel-subtitle {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 650;
      letter-spacing: -0.01em;
    }

    .context-menu-dots {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 18px;
      color: var(--text-muted);
      line-height: 1;
      transform: rotate(90deg);
      border-radius: 2px;
      transition: background 0.18s ease;
    }

    .context-menu-dots:hover {
      background: #eef3f8;
    }

    .feed-sort {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 3px;
      border: 1px solid var(--border-color);
      border-radius: 2px;
      background: #f8fafc;
      flex: 0 0 auto;
    }

    .sort-btn {
      height: 26px;
      padding: 0 10px;
      border: 0;
      border-radius: 2px;
      background: transparent;
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 750;
      cursor: pointer;
    }

    .sort-btn.is-active {
      background: #ffffff;
      color: var(--primary-orange);
      box-shadow: 0 1px 4px rgba(0, 27, 65, 0.08);
    }

    .table-container {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      padding: 0 0 12px 0;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
      text-align: left;
      table-layout: fixed;
    }

    th {
      position: sticky;
      top: 0;
      background: rgba(255, 255, 255, 0.98);
      color: var(--text-dark);
      font-weight: 750;
      padding: 12px 8px 10px 8px;
      border-bottom: 1px solid var(--border-color);
      z-index: 1;
      letter-spacing: -0.02em;
    }

    th:first-child,
    td:first-child {
      padding-left: 18px;
    }

    th:last-child,
    td:last-child {
      padding-right: 18px;
    }

    td {
      padding: 12px 8px;
      border-bottom: 1px solid #eef2f6;
      vertical-align: top;
      line-height: 1.35;
      color: #10233f;
      font-weight: 500;
      word-break: normal;
    }

    tr.active-row td {
      color: var(--primary-orange);
      font-weight: 650;
    }

    .date-cell {
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .dot-indicator {
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 0 !important;
      background-color: var(--primary-orange);
      flex: 0 0 auto;
    }

    .avatar {
      width: 31px;
      height: 31px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 750;
      font-size: 11px;
      flex-shrink: 0;
      border: 1px solid currentColor;
      background: #ffffff;
    }

    .avatar.orange { color: #c95300; background: rgba(255, 102, 0, 0.08); }
    .avatar.blue { color: #315f9f; background: rgba(49, 95, 159, 0.09); }
    .avatar.green { color: #2f6b36; background: rgba(47, 107, 54, 0.10); }
    .avatar.purple { color: #7047a6; background: rgba(112, 71, 166, 0.10); }
    .avatar.yellow { color: #8d6811; background: rgba(201, 148, 19, 0.12); }
    .avatar.grey { color: #475569; background: rgba(71, 85, 105, 0.09); }

    .feed-container {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      padding: 12px 14px 10px 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    }

    .chat-message {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 10px;
      align-items: start;
    }

    .message-bubble {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 2px;
      padding: 10px 11px 8px 11px;
      box-shadow: 0 2px 8px rgba(0, 27, 65, 0.04);
    }

    .message-meta {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 4px;
    }

    .message-author {
      font-size: 12px;
      font-weight: 800;
      color: var(--text-dark);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .message-time {
      font-size: 10px;
      font-weight: 600;
      color: var(--text-muted);
      white-space: nowrap;
    }

    .message-text {
      font-size: 12px;
      line-height: 1.42;
      font-weight: 500;
      color: #334155;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .message-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .message-action-btn {
      height: 26px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 0 9px;
      border-radius: 2px;
      border: 1px solid #d6dee8;
      background: #ffffff;
      color: #475569;
      font-size: 11px;
      font-weight: 750;
      cursor: pointer;
      transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .message-action-btn:hover {
      border-color: var(--primary-orange);
      color: var(--primary-orange);
      background: rgba(255, 102, 0, 0.06);
      transform: translateY(-1px);
    }

    .message-action-btn.active {
      border-color: rgba(255, 102, 0, 0.35);
      color: var(--primary-orange);
      background: rgba(255, 102, 0, 0.08);
    }

    .message-action-btn svg {
      width: 13px;
      height: 13px;
    }

    .boosted-badge {
      display: inline-flex;
      align-items: center;
      height: 20px;
      padding: 0 7px;
      border-radius: 2px;
      background: rgba(255, 102, 0, 0.08);
      color: var(--primary-orange);
      font-size: 10px;
      font-weight: 800;
      margin-left: 6px;
      vertical-align: middle;
    }

    .feed-footer {
      padding: 12px 18px;
      border-top: 1px solid var(--border-color);
      display: grid;
      grid-template-rows: auto auto;
      gap: 10px;
      background: #ffffff;
    }

    .comment-options {
      display: grid;
      grid-template-columns: 128px 1fr;
      gap: 10px;
    }

    .comment-row {
      display: flex;
      gap: 12px;
    }

    .identity-select,
    .name-input {
      height: 34px;
      padding: 0 11px;
      border: 1px solid #cbd5e1;
      border-radius: 2px;
      font-size: 12px;
      outline: none;
      background-color: #ffffff;
      color: var(--text-dark);
      box-shadow: inset 0 1px 2px rgba(0, 27, 65, 0.03);
    }

    .identity-select:focus,
    .name-input:focus {
      border-color: var(--primary-orange);
      box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
    }

    .name-input[disabled] {
      opacity: 0.55;
      background: #f8fafc;
      cursor: not-allowed;
    }

    .comment-input {
      flex: 1;
      min-width: 0;
      height: 38px;
      padding: 0 13px;
      border: 1px solid #cbd5e1;
      border-radius: 2px;
      font-size: 12px;
      outline: none;
      background-color: #ffffff;
      color: var(--text-dark);
      box-shadow: inset 0 1px 2px rgba(0, 27, 65, 0.03);
    }

    .comment-input::placeholder {
      color: var(--text-muted);
    }

    .comment-input:focus {
      border-color: var(--primary-orange);
      box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
    }

    .send-btn {
      height: 38px;
      background-color: var(--primary-orange);
      color: #ffffff;
      border: none;
      padding: 0 20px;
      border-radius: 2px;
      font-weight: 700;
      font-size: 12px;
      cursor: pointer;
      transition: background-color 0.18s ease, transform 0.18s ease;
      box-shadow: 0 7px 16px rgba(255, 102, 0, 0.22);
    }

    .send-btn:hover {
      background-color: var(--primary-orange-hover);
      transform: translateY(-1px);
    }

    .chat-loader-cell {
      flex: 1;
      min-height: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .location-marker {
      position: relative;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--primary-orange);
      border: 4px solid #ffffff;
      box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.26), 0 8px 22px rgba(255, 102, 0, 0.34);
    }

    .location-marker::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      width: 78px;
      height: 78px;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle, rgba(255, 102, 0, 0.21) 0%, rgba(255, 102, 0, 0.10) 48%, rgba(255, 102, 0, 0) 74%);
      z-index: -1;
      animation: pulse 2.6s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { transform: translate(-50%, -50%) scale(0.86); opacity: 0.8; }
      50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
    }

    .leaflet-popup-content-wrapper {
      border-radius: 2px;
      box-shadow: 0 8px 28px rgba(0, 27, 65, 0.14);
    }

    .leaflet-popup-content {
      margin: 12px 14px;
      font-family: Inter, Arial, sans-serif;
      font-size: 12px;
      line-height: 1.42;
      color: #334155;
    }

    .popup-title {
      font-weight: 800;
      color: var(--text-dark);
      margin-bottom: 5px;
    }

    .popup-meta {
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 600;
      margin-top: 5px;
    }

    .popup-coordinates {
      margin-top: 8px;
      padding: 7px 8px;
      border-radius: 2px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      color: var(--text-dark);
      font-size: 11px;
      font-weight: 750;
      line-height: 1.45;
      font-family: Inter, Arial, sans-serif;
    }

    .popup-coordinates span {
      display: block;
    }

    .popup-multi {
      max-height: 260px;
      overflow-y: auto;
      padding-right: 4px;
    }

    .popup-event {
      padding: 8px 0;
      border-bottom: 1px solid #e2e8f0;
    }

    .popup-event:last-child {
      border-bottom: 0;
    }


    .map-btn.is-active {
      color: var(--primary-orange);
      border-color: rgba(255, 102, 0, 0.42);
      background: #ffffff;
      box-shadow: 0 6px 18px rgba(255, 102, 0, 0.16);
    }

    .geofence-label-icon {
      background: transparent !important;
      border: 0 !important;
    }

    .geofence-label-marker {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      height: 22px;
      max-width: 136px;
      padding: 0 7px;
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid rgba(255, 102, 0, 0.32);
      color: var(--text-dark);
      box-shadow: 0 4px 12px rgba(0, 27, 65, 0.10);
      font-size: 10px;
      line-height: 1;
      font-weight: 820;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      pointer-events: none;
      backdrop-filter: blur(8px);
    }

    .geofence-label-marker::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--primary-orange);
      flex: 0 0 auto;
      opacity: 0.88;
    }

    .geofence-label-marker.is-planned::before {
      opacity: 0.48;
    }

    .geofence-popup .leaflet-popup-content-wrapper {
      border-radius: 2px;
      border: 1px solid rgba(226, 232, 240, 0.98);
      box-shadow: 0 12px 28px rgba(0, 27, 65, 0.14);
    }

    .geofence-popup .leaflet-popup-content {
      margin: 13px 14px 12px 14px;
    }

    .geofence-popup .leaflet-popup-close-button {
      top: 7px !important;
      right: 7px !important;
      width: 22px !important;
      height: 22px !important;
      border-radius: 2px !important;
      background: transparent !important;
      color: var(--text-muted) !important;
      font-size: 18px !important;
      line-height: 20px !important;
      font-weight: 750 !important;
      transition: color 0.18s ease, transform 0.18s ease;
    }

    .geofence-popup .leaflet-popup-close-button:hover {
      color: var(--primary-orange) !important;
      transform: translateY(-1px);
    }

    .geofence-card {
      min-width: 252px;
      max-width: 306px;
      color: var(--text-dark);
    }

    .geofence-card-header {
      display: block;
      padding-right: 28px;
      margin-bottom: 8px;
    }

    .geofence-card-main {
      min-width: 0;
    }

    .geofence-meta-with-support {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start;
      gap: 15px;
    }

    .geofence-bic-support {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 4px;
      margin-top: 0;
      color: var(--text-muted);
      text-decoration: none;
      line-height: 1;
      flex: 0 0 auto;
    }

    .geofence-bic-support span {
      display: block;
      color: var(--text-muted);
      font-size: 11px;
      line-height: 1.3;
      font-weight: 560;
      letter-spacing: -0.01em;
      text-transform: none;
      white-space: nowrap;
    }

    .geofence-bic-support img {
      display: block;
      width: auto;
      height: 45px;
      object-fit: contain;
      opacity: 0.96;
    }

    .geofence-kicker {
      font-size: 10px;
      font-weight: 850;
      color: var(--primary-orange);
      text-transform: uppercase;
      letter-spacing: 0.055em;
      margin-bottom: 4px;
    }

    .geofence-title {
      font-size: 15px;
      line-height: 1.15;
      font-weight: 850;
      letter-spacing: -0.035em;
      margin-bottom: 0;
    }

    .geofence-meta {
      display: grid;
      grid-template-columns: 72px 1fr;
      gap: 5px 9px;
      font-size: 11px;
      line-height: 1.3;
      color: #334155;
    }

    .geofence-meta span:nth-child(odd) {
      color: var(--text-muted);
      font-weight: 720;
    }

    .geofence-note {
      margin-top: 9px;
      padding: 8px 9px;
      border-radius: 2px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      font-size: 10.5px;
      line-height: 1.35;
      color: #475569;
      font-weight: 560;
    }

    .geofence-note a,
    .geofence-license a,
    .geofence-reference a {
      color: var(--primary-orange);
      font-weight: 800;
      text-decoration: none;
    }

    .geofence-note a:hover,
    .geofence-license a:hover,
    .geofence-reference a:hover {
      text-decoration: underline;
    }

    .geofence-license,
    .geofence-reference {
      margin-top: 7px;
      font-size: 10px;
      line-height: 1.35;
      color: #64748b;
      font-weight: 560;
    }

    .geofence-reference {
      padding-top: 7px;
      border-top: 1px solid #e2e8f0;
    }

    @media (max-width: 420px) {
      .geofence-card {
        min-width: 226px;
        max-width: calc(100vw - 54px);
      }

      .geofence-card-header {
        padding-right: 24px;
      }

      .geofence-meta-with-support {
        gap: 10px;
      }

      .geofence-bic-support img {
        height: 45px;
      }

      .geofence-bic-support span {
        font-size: 11px;
      }
    }

    .border-event-icon {
      background: transparent !important;
      border: 0 !important;
    }

    .border-event-marker {
      position: relative;
      width: 26px;
      height: 32px;
      cursor: pointer;
      transform: translateZ(0);
      transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .border-event-marker::before {
      content: "";
      position: absolute;
      left: 2px;
      top: 1px;
      width: 21px;
      height: 21px;
      border-radius: 50% 50% 50% 2px;
      background: #ffffff;
      border: 1.5px solid rgba(255, 102, 0, 0.78);
      box-shadow:
        0 3px 10px rgba(0, 27, 65, 0.14),
        0 1px 4px rgba(255, 102, 0, 0.14);
      transform: rotate(-45deg);
    }

    .border-event-marker::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 1px;
      width: 14px;
      height: 4px;
      border-radius: 50%;
      background: rgba(0, 27, 65, 0.14);
      filter: blur(1px);
      transform: translateX(-50%);
    }

    .border-event-marker:hover {
      transform: translateY(-1px);
    }

    .border-event-glow {
      position: absolute;
      left: 50%;
      top: 12px;
      z-index: -1;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: rgba(255, 102, 0, 0.12);
      transform: translate(-50%, -50%);
      animation: borderEventSoftFade 4.8s ease-in-out infinite;
      pointer-events: none;
    }

    .border-event-marker .border-event-info-bubble {
      position: absolute;
      left: 12.5px;
      top: 11.5px;
      z-index: 2;
      width: 13px;
      height: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      background: var(--primary-orange);
      color: #ffffff;
      border: 0;
      box-shadow: none;
      font-family: Inter, Arial, sans-serif;
      font-size: 8.6px;
      line-height: 1;
      font-weight: 850;
      font-style: normal;
      font-variant-ligatures: none;
      letter-spacing: 0;
      text-align: center;
      text-indent: 0;
      padding: 0 0 0.2px 0;
      -webkit-font-smoothing: antialiased;
      text-rendering: geometricPrecision;
      pointer-events: none;
    }

    .border-event-marker .border-event-info-bubble::before,
    .border-event-marker .border-event-info-bubble::after {
      content: none !important;
      display: none !important;
    }

    @keyframes borderEventSoftFade {
      0%, 100% {
        opacity: 0.08;
        transform: translate(-50%, -50%) scale(0.9);
      }
      50% {
        opacity: 0.18;
        transform: translate(-50%, -50%) scale(1.12);
      }
    }

    .border-event-popup .leaflet-popup-content-wrapper {
      padding: 0 !important;
      overflow: hidden;
      border: 1px solid rgba(226, 232, 240, 0.98) !important;
      border-radius: 2px !important;
      background: #ffffff !important;
      box-shadow: 0 12px 32px rgba(0, 27, 65, 0.16) !important;
    }

    .border-event-popup .leaflet-popup-content {
      width: 318px !important;
      max-width: calc(100vw - 38px) !important;
      margin: 0 !important;
      font-family: Inter, Arial, sans-serif;
    }

    .border-event-popup .leaflet-popup-tip {
      background: #ffffff !important;
      box-shadow: 0 4px 12px rgba(0, 27, 65, 0.10) !important;
    }

    .border-event-popup .leaflet-popup-close-button {
      top: 8px !important;
      right: 8px !important;
      width: 22px !important;
      height: 22px !important;
      border-radius: 2px !important;
      background: transparent !important;
      color: var(--text-muted) !important;
      font-size: 18px !important;
      line-height: 20px !important;
      font-weight: 750 !important;
      transition: color 0.18s ease, transform 0.18s ease;
    }

    .border-event-popup .leaflet-popup-close-button:hover {
      color: var(--primary-orange) !important;
      transform: translateY(-1px);
    }

    .border-event-card {
      position: relative;
      overflow: hidden;
      padding: 14px;
      border-radius: 2px;
      color: var(--text-dark);
      background: #ffffff;
      box-shadow: inset 2px 0 0 rgba(255, 102, 0, 0.42);
      animation: borderEventCardIn 0.34s ease both;
    }

    .border-event-card-header {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 18px 1fr;
      gap: 9px;
      align-items: center;
      padding-right: 24px;
      margin-bottom: 12px;
    }

    .border-event-card-info {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--primary-orange);
      color: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      line-height: 1;
      font-weight: 850;
    }

    .border-event-kicker {
      font-size: 10px;
      line-height: 1.1;
      font-weight: 800;
      color: var(--primary-orange);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 3px;
    }

    .border-event-title {
      font-size: 16px;
      line-height: 1.15;
      font-weight: 820;
      letter-spacing: -0.035em;
      color: var(--text-dark);
    }

    .border-event-route {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr 18px 1fr;
      gap: 7px;
      align-items: stretch;
      margin-bottom: 12px;
    }

    .border-event-route.is-single {
      display: block;
      padding: 9px 10px;
      border: 1px solid #e2e8f0;
      border-radius: 2px;
      background: #f8fafc;
      font-size: 12px;
      line-height: 1.35;
      font-weight: 760;
      color: #10233f;
    }

    .border-event-route-side {
      min-width: 0;
      padding: 8px 9px;
      border: 1px solid #e2e8f0;
      border-radius: 2px;
      background: #f8fafc;
    }

    .border-event-route-side span {
      display: block;
      margin-bottom: 3px;
      font-size: 9px;
      line-height: 1;
      font-weight: 820;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
    }

    .border-event-route-side strong {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #10233f;
      font-size: 12px;
      line-height: 1.15;
      font-weight: 820;
      white-space: nowrap;
    }

    .border-event-route-arrow {
      display: flex;
      align-items: center;
      justify-content: center;
      align-self: center;
      width: 18px;
      height: 24px;
      background: transparent;
      color: var(--primary-orange);
      font-size: 15px;
      font-weight: 850;
      box-shadow: none;
    }

    .border-event-meta-grid {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 6px;
      margin-bottom: 11px;
    }

    .border-event-meta-row {
      display: grid;
      grid-template-columns: 68px 1fr;
      gap: 9px;
      font-size: 11px;
      line-height: 1.35;
    }

    .border-event-meta-label {
      color: var(--text-muted);
      font-weight: 720;
    }

    .border-event-meta-value {
      color: #334155;
      font-weight: 620;
    }

    .border-event-description {
      position: relative;
      z-index: 1;
      padding: 9px 10px;
      border: 1px solid #e2e8f0;
      border-radius: 2px;
      background: #f8fafc;
      color: #334155;
      font-size: 11px;
      line-height: 1.45;
      font-weight: 560;
    }

    @keyframes borderEventCardIn {
      from {
        opacity: 0;
        transform: translateY(5px) scale(0.99);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .border-event-marker,
      .border-event-glow,
      .border-event-card {
        animation: none !important;
        transition: none !important;
      }
    }

    @media (max-width: 760px) {
      .border-event-marker {
        width: 24px;
        height: 30px;
      }

      .border-event-marker::before {
        width: 20px;
        height: 20px;
      }

      .border-event-marker .border-event-info-bubble {
        left: 12px;
        top: 11px;
        width: 12px;
        height: 12px;
        font-size: 8px;
        line-height: 1;
        padding: 0 0 0.2px 0;
      }

      .border-event-popup .leaflet-popup-content {
        width: min(300px, calc(100vw - 24px)) !important;
      }

      .border-event-card {
        padding: 13px;
      }

      .border-event-card-header {
        grid-template-columns: 18px 1fr;
        gap: 8px;
      }

      .border-event-title {
        font-size: 15px;
      }

      .border-event-route {
        grid-template-columns: 1fr 16px 1fr;
        gap: 6px;
      }

      .border-event-route-arrow {
        width: 16px;
        font-size: 14px;
      }
    }

    @media (max-width: 1100px) {
      header {
        grid-template-columns: auto minmax(0, 1fr);
        height: auto;
        min-height: 64px;
        padding: 12px 18px;
        gap: 12px 16px;
      }

      .partner-logos {
        justify-self: start;
        justify-content: flex-start;
        flex-wrap: nowrap;
        height: auto;
        gap: 14px;
      }

      .partner-logo-hl {
        height: 30px;
        max-width: 160px;
      }

      .partner-logo-nexxiot {
        height: 18px;
        max-width: 110px;
      }

      .main-container {
        flex-direction: column;
      }

      #map-container {
        height: 56vh;
        min-height: 420px;
        flex: none;
      }

      .sidebar {
        width: 100%;
        min-width: 0;
        height: calc(44vh - 64px);
        min-height: 360px;
        flex-direction: row;
        border-left: 0;
        border-top: 1px solid var(--border-color);
      }

      .panel {
        min-width: 0;
      }

      .panel-resizer {
        width: 20px;
        height: auto;
        min-height: 0;
        min-width: 20px;
        cursor: ew-resize;
      }

      .panel-resizer span {
        width: 3px;
        height: 48px;
      }

      .panel-resizer:hover span,
      .panel-resizer.is-dragging span {
        width: 3px;
        height: 62px;
      }
    }

    @media (max-width: 760px) {
      html,
      body {
        height: auto;
        min-height: 100%;
      }

      body {
        min-height: 100svh;
        overflow-y: auto;
        overflow-x: hidden;
      }

      header {
        position: sticky;
        top: 0;
        grid-template-columns: 1fr;
        padding: 12px 14px;
        gap: 10px;
      }

      .logo-area {
        width: 100%;
        font-size: 16px;
        gap: 8px;
      }

      .partner-logos {
        justify-self: start;
        justify-content: flex-start;
        width: 100%;
        gap: 10px;
        row-gap: 8px;
        flex-wrap: wrap;
      }

      .partner-logos span:first-child {
        width: 100%;
        font-size: 11px;
      }

      .partner-logo-hl {
        height: 28px;
        max-width: 150px;
      }

      .partner-logo-nexxiot {
        height: 17px;
        max-width: 105px;
      }

      .main-container {
        height: auto;
        min-height: calc(100svh - 96px);
        overflow: visible;
      }

      #map-container {
        height: 52svh;
        min-height: 340px;
        max-height: 520px;
        width: 100%;
      }

      .map-custom-controls {
        top: 12px;
        left: 12px;
        gap: 7px;
      }

      .map-btn {
        width: 38px;
        height: 38px;
      }

      .map-bottom-status {
        left: 12px;
        right: 12px;
        bottom: 12px;
      }

      .journey-countdown {
        width: min(230px, calc(100vw - 24px));
        padding: 9px 11px;
      }

      .countdown-days {
        font-size: 23px;
      }

      .countdown-meta {
        font-size: 10px;
      }

      .status-badge {
        max-width: calc(100vw - 24px);
        padding: 9px 12px;
        font-size: 11px;
      }

      .scale-card {
        display: none;
      }

      .lars-info-widget {
        top: 12px;
        right: 12px;
      }

      .lars-avatar-button {
        width: 50px;
        height: 50px;
      }

      .lars-avatar-initials {
        font-size: 15px;
      }

      .lars-tooltip {
        top: 60px;
        right: 0;
        width: min(310px, calc(100vw - 24px));
        max-height: 44svh;
        overflow-y: auto;
      }

      .sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 10px;
        gap: 0;
        border-left: 0;
        border-top: 1px solid var(--border-color);
      }

      .panel {
        width: 100%;
        flex: none;
      }

      .panel-travel-log {
        height: 360px;
      }

      .panel-community {
        height: 500px;
      }

      .panel-resizer {
        width: 100%;
        height: 18px;
        min-height: 18px;
        min-width: 0;
        cursor: ns-resize;
      }

      .panel-resizer span {
        width: 48px;
        height: 3px;
      }

      .panel-resizer:hover span,
      .panel-resizer.is-dragging span {
        width: 62px;
        height: 3px;
      }

      .panel-header {
        padding: 14px 14px 9px 14px;
      }

      .panel-title h2 {
        font-size: 17px;
        letter-spacing: 0.005em;
      }

      .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      table {
        min-width: 520px;
      }

      .feed-container {
        padding: 10px;
        gap: 9px;
      }

      .chat-message {
        grid-template-columns: 30px 1fr;
        gap: 8px;
      }

      .avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
      }

      .message-bubble {
        border-radius: 2px;
        padding: 9px 10px 8px 10px;
      }

      .message-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
      }

      .message-actions {
        flex-wrap: wrap;
      }

      .comment-options {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .comment-row {
        gap: 8px;
      }

      .comment-input {
        height: 40px;
        font-size: 13px;
      }

      .send-btn {
        height: 40px;
        padding: 0 14px;
        font-size: 12px;
      }
    }

    @media (max-width: 420px) {
      .status-badge {
        line-height: 1.35;
      }
    }

    @media (max-width: 760px) and (max-height: 620px) {
      .app-credit-widget[open] {
        max-height: 126px;
      }
    }

    /* FINAL MOBILE RESPONSIVE FIX */
    @media (max-width: 760px) {
      html,
      body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
      }

      body {
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
      }

      header {
        position: sticky;
        top: 0;
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        padding: 10px 12px 9px 12px;
        gap: 7px;
        z-index: 1400;
      }

      .logo-area {
        font-size: 15px;
        gap: 7px;
        max-width: 100%;
      }

      .logo-area svg {
        width: 22px;
        height: 22px;
      }

      .partner-logos {
        width: 100%;
        justify-self: start;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        row-gap: 4px;
        flex-wrap: wrap;
        height: auto;
        font-size: 10px;
        line-height: 1;
      }

      .partner-logos span:first-child {
        width: auto;
        flex: 0 0 auto;
      }

      .partner-logo-hl {
        height: 24px;
        max-width: 132px;
      }

      .partner-logo-nexxiot {
        height: 15px;
        max-width: 92px;
      }

      .main-container {
        height: auto;
        min-height: 0;
        overflow: visible;
      }

      #map-container {
        width: 100%;
        height: 61svh;
        min-height: 390px;
        max-height: 560px;
        overflow: hidden;
      }

      .map-custom-controls {
        top: 10px;
        left: 10px;
        gap: 6px;
      }

      .map-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
      }

      .map-btn svg {
        width: 16px;
        height: 16px;
      }

      .lars-info-widget {
        top: 10px;
        right: 10px;
        z-index: 1010;
      }

      .lars-avatar-button {
        width: 44px;
        height: 44px;
      }

      .lars-avatar-button::before {
        inset: 5px;
      }

      .lars-avatar-ring {
        inset: -5px;
      }

      .lars-avatar-initials {
        font-size: 14px;
      }

      .lars-tooltip {
        top: 54px;
        right: 0;
        width: min(300px, calc(100vw - 20px));
        max-height: 52svh;
        overflow-y: auto;
        padding: 13px;
        z-index: 1012;
      }

      .lars-tooltip h3 {
        font-size: 15px;
      }

      .lars-tooltip p {
        font-size: 11px;
        line-height: 1.38;
      }

      .app-credit-widget {
        position: absolute !important;
        top: 64px !important;
        right: 10px !important;
        bottom: auto !important;
        width: auto !important;
        min-width: 126px !important;
        max-width: 168px !important;
        max-height: 38px !important;
        opacity: 0.98 !important;
        z-index: 1008 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 2px !important;
        box-shadow: 0 4px 14px rgba(0, 27, 65, 0.14) !important;
        overflow: hidden !important;
      }

      .app-credit-widget summary {
        padding: 10px 11px !important;
        font-size: 10.5px !important;
        line-height: 1 !important;
        color: var(--text-dark) !important;
        white-space: nowrap !important;
      }

      .app-credit-widget summary::after {
        font-size: 13px !important;
        margin-left: 9px !important;
      }

      .app-credit-widget[open] {
        top: 64px !important;
        right: 10px !important;
        bottom: auto !important;
        width: min(306px, calc(100vw - 20px)) !important;
        min-width: 0 !important;
        max-width: min(306px, calc(100vw - 20px)) !important;
        max-height: 230px !important;
        opacity: 1 !important;
        overflow-y: auto !important;
        box-shadow: 0 10px 28px rgba(0, 27, 65, 0.20) !important;
      }

      .app-credit-widget[open] summary {
        padding: 11px 12px !important;
        font-size: 11.5px !important;
      }

      .app-credit-body {
        padding: 0 12px 12px 12px !important;
        font-size: 11.5px !important;
        line-height: 1.45 !important;
      }

      .map-bottom-status {
        left: 10px !important;
        right: 10px !important;
        bottom: 12px !important;
        gap: 6px !important;
        max-width: calc(100vw - 20px) !important;
        pointer-events: none;
      }

      .journey-countdown,
      .map-route-info-row,
      .route-legend,
      .status-badge,
      .map-attribution-credit {
        pointer-events: auto;
      }

      .map-route-info-row {
        gap: 6px !important;
        max-width: calc(100vw - 20px) !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
      }

      .map-attribution-credit {
        max-width: calc(100vw - 20px) !important;
        font-size: 7.5px !important;
        line-height: 1.22 !important;
        opacity: 0.86 !important;
      }

      .route-legend {
        width: auto !important;
        min-height: 30px !important;
        padding: 6px 8px !important;
        gap: 8px !important;
        opacity: 0.96 !important;
      }

      .route-legend-title {
        display: none !important;
      }

      .route-legend-row {
        gap: 5px !important;
        height: 16px !important;
      }

      .route-legend-line {
        width: 19px !important;
        border-top-width: 3px !important;
      }

      .route-legend-label {
        font-size: 8.8px !important;
      }

      .journey-countdown {
        width: 150px !important;
        padding: 7px 8px !important;
      }

      .countdown-kicker {
        font-size: 8px !important;
        margin-bottom: 2px !important;
      }

      .countdown-main {
        gap: 4px !important;
        margin-bottom: 4px !important;
      }

      .countdown-days {
        font-size: 19px !important;
      }

      .countdown-label {
        font-size: 10px !important;
      }

      .countdown-progress {
        height: 3px !important;
        margin-bottom: 4px !important;
      }

      .countdown-meta {
        font-size: 8px !important;
      }

      .status-badge {
        min-height: 30px !important;
        max-width: 220px !important;
        padding: 6px 8px !important;
        gap: 6px !important;
        font-size: 9.5px !important;
        line-height: 1.25 !important;
      }

      .status-badge .info-icon {
        width: 13px !important;
        height: 13px !important;
        font-size: 8px !important;
      }

      .scale-card {
        display: none !important;
      }

      .sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 8px;
        border-left: 0;
        border-top: 1px solid var(--border-color);
        overflow: visible;
      }

      .panel {
        width: 100%;
        flex: none;
        min-width: 0;
      }

      .panel-travel-log {
        height: 330px;
      }

      .panel-community {
        height: 430px;
      }

      .panel-header {
        padding: 12px 12px 8px 12px;
      }

      .panel-title h2 {
        font-size: 16px;
        letter-spacing: 0.005em;
      }

      .panel-subtitle {
        font-size: 10px;
      }

      .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      table {
        min-width: 520px;
      }

      th:first-child,
      td:first-child {
        padding-left: 12px;
      }

      th:last-child,
      td:last-child {
        padding-right: 12px;
      }

      td,
      th {
        padding-top: 9px;
        padding-bottom: 9px;
      }

      .feed-container {
        padding: 10px;
        gap: 9px;
      }

      .chat-message {
        grid-template-columns: 30px 1fr;
        gap: 8px;
      }

      .avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
      }

      .message-bubble {
        padding: 9px 10px 8px 10px;
      }

      .message-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
      }

      .comment-options {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .comment-row {
        gap: 8px;
      }

      .comment-input {
        height: 40px;
        font-size: 13px;
      }

      .send-btn {
        height: 40px;
        padding: 0 14px;
        font-size: 12px;
      }
    }

    @media (max-width: 420px) {
      #map-container {
        height: 61svh;
        min-height: 380px;
      }

      .partner-logos span:first-child {
        width: 100%;
      }

      .journey-countdown {
        width: 142px !important;
      }

      .countdown-progress,
      .countdown-meta {
        display: none !important;
      }

      .countdown-main {
        margin-bottom: 0 !important;
      }

      .status-badge {
        max-width: 205px !important;
      }

      .app-credit-widget {
        max-width: 160px !important;
      }

      .app-credit-widget[open] {
        width: min(300px, calc(100vw - 20px)) !important;
        max-width: min(300px, calc(100vw - 20px)) !important;
      }
    }

    @media (max-width: 760px) and (max-height: 700px) {
      #map-container {
        height: 64svh;
        min-height: 330px;
      }

      .journey-countdown {
        display: none !important;
      }

      .status-badge {
        max-width: 215px !important;
      }

      .app-credit-widget[open] {
        max-height: 180px !important;
      }
    }

    @media (max-width: 760px) {
      .subscription-widget {
        top: 112px !important;
        right: 10px !important;
        width: min(306px, calc(100vw - 20px)) !important;
        z-index: 1009 !important;
      }

      .subscription-toggle {
        min-height: 39px !important;
        padding: 0 17px !important;
        font-size: 10px !important;
        letter-spacing: 0.10em !important;
      }

      .subscription-toggle svg {
        width: 15px !important;
        height: 15px !important;
      }

      .subscription-panel {
        padding: 12px 11px 12px 11px !important;
      }

      .subscription-copy {
        font-size: 11.5px !important;
      }
    }


    /* Subscription CTA: mobile-safe and minimizable, not removable */
    .subscription-widget.is-minimized {
      flex: 0 0 auto;
    }

    .subscription-widget.is-minimized .subscription-toggle {
      box-shadow: 0 6px 18px rgba(255, 102, 0, 0.22);
    }

    .subscription-widget.is-minimized .subscription-toggle::before {
      transform: scaleX(1);
    }

    .subscription-widget.is-minimized .subscription-toggle svg {
      color: #ffffff;
    }

    @media (max-width: 760px) {
      .subscription-widget {
        width: min(306px, calc(100vw - 20px)) !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        z-index: 1011 !important;
      }

      .subscription-widget.is-minimized {
        width: 46px !important;
      }

      .subscription-widget.is-minimized .subscription-toggle {
        width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;
        border-radius: 2px !important;
      }

      .subscription-panel {
        left: 0 !important;
        bottom: calc(100% + 9px) !important;
        width: min(310px, calc(100vw - 20px)) !important;
        max-height: min(420px, 62svh) !important;
        overflow-y: auto !important;
      }

      .subscription-copy {
        font-size: 11.5px !important;
        line-height: 1.42 !important;
      }

      .subscription-consent {
        font-size: 10px !important;
        line-height: 1.32 !important;
      }
    }



    /* Protected official comments and replies */
    body.moderator-mode .comment-options {
      display: none;
    }

    body.moderator-mode .feed-footer {
      gap: 0;
    }

    .moderator-pill {
      display: none;
      align-items: center;
      gap: 6px;
      width: fit-content;
      max-width: 100%;
      height: 24px;
      padding: 0 8px;
      border-radius: 2px;
      background: rgba(255, 102, 0, 0.08);
      border: 1px solid rgba(255, 102, 0, 0.22);
      color: var(--primary-orange);
      font-size: 10px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: 0.045em;
      margin-bottom: 9px;
    }

    body.moderator-mode .moderator-pill {
      display: inline-flex;
    }

    .chat-message.is-reply {
      margin-left: 38px;
      grid-template-columns: 28px 1fr;
      position: relative;
    }

    .chat-message.is-reply::before {
      content: "";
      position: absolute;
      left: -19px;
      top: 16px;
      width: 15px;
      height: 1px;
      background: rgba(255, 102, 0, 0.28);
    }

    .chat-message.is-reply .avatar {
      width: 26px;
      height: 26px;
      font-size: 9px;
    }

    .message-bubble.is-official {
      border-color: rgba(255, 102, 0, 0.34);
      background: #fffaf6;
      box-shadow:
        inset 2px 0 0 rgba(255, 102, 0, 0.55),
        0 2px 8px rgba(0, 27, 65, 0.04);
    }

    .official-badge,
    .admin-badge {
      display: inline-flex;
      align-items: center;
      height: 20px;
      padding: 0 7px;
      border-radius: 2px;
      font-size: 10px;
      font-weight: 850;
      margin-left: 6px;
      vertical-align: middle;
    }

    .official-badge {
      background: rgba(255, 102, 0, 0.10);
      color: var(--primary-orange);
    }

    .admin-badge {
      background: rgba(0, 27, 65, 0.08);
      color: var(--hl-blue);
    }

    .reply-link-btn {
      height: 26px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 0 9px;
      border-radius: 2px;
      border: 1px solid rgba(255, 102, 0, 0.28);
      background: rgba(255, 102, 0, 0.06);
      color: var(--primary-orange);
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    }

    .reply-link-btn:hover {
      background: rgba(255, 102, 0, 0.10);
      border-color: rgba(255, 102, 0, 0.42);
      transform: translateY(-1px);
    }

    .protected-reply-composer {
      grid-column: 2;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      margin-top: 8px;
    }

    .protected-reply-input {
      height: 34px;
      border: 1px solid #cbd5e1;
      border-radius: 2px;
      padding: 0 10px;
      font-size: 12px;
      outline: none;
      background: #ffffff;
      color: var(--text-dark);
    }

    .protected-reply-input:focus {
      border-color: var(--primary-orange);
      box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
    }

    .protected-reply-send {
      height: 34px;
      border: 0;
      border-radius: 2px;
      background: var(--primary-orange);
      color: #ffffff;
      padding: 0 12px;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.18s ease, transform 0.18s ease;
    }

    .protected-reply-send:hover {
      background: var(--primary-orange-hover);
      transform: translateY(-1px);
    }

    .protected-reply-send:disabled {
      opacity: 0.65;
      cursor: not-allowed;
      transform: none;
    }

    .empty-feed-note {
      padding: 18px 12px;
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 650;
      text-align: center;
    }

    @media (max-width: 760px) {
      .chat-message.is-reply {
        margin-left: 24px;
        grid-template-columns: 26px 1fr;
      }

      .chat-message.is-reply::before {
        left: -13px;
        width: 10px;
      }

      .protected-reply-composer {
        grid-template-columns: 1fr;
      }
    }


    @media (max-width: 420px) {
      .subscription-widget {
        width: min(292px, calc(100vw - 20px)) !important;
      }

      .subscription-panel {
        width: min(300px, calc(100vw - 20px)) !important;
      }
    }


    /* Streamlined Travel Log rows with expandable full text */
    .panel-travel-log tbody tr {
      height: 62px;
    }

    .panel-travel-log td {
      height: 62px;
      max-height: 62px;
      vertical-align: middle;
      overflow: hidden;
      padding-top: 9px;
      padding-bottom: 9px;
    }

    .panel-travel-log th:first-child,
    .panel-travel-log td:first-child {
      padding-left: 14px;
    }

    .panel-travel-log th:last-child,
    .panel-travel-log td:last-child {
      padding-right: 14px;
    }

    .travel-log-day {
      display: flex;
      align-items: center;
      gap: 5px;
      max-width: 100%;
      overflow: visible;
      white-space: nowrap;
      font-size: 11.5px;
      letter-spacing: -0.02em;
    }

    .travel-log-day .dot-indicator {
      width: 6px;
      height: 6px;
      border-radius: 0 !important;
      flex: 0 0 auto;
    }

    .travel-log-location,
    .travel-log-time {
      display: block;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 11.5px;
      letter-spacing: -0.015em;
    }

    .travel-log-log-cell {
      padding-right: 10px;
    }

    .travel-log-preview-wrap {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 24px;
      gap: 8px;
      align-items: center;
      min-height: 40px;
    }

    .travel-log-preview {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      max-height: 34px;
      color: #334155;
      font-size: 12px;
      line-height: 1.35;
      font-weight: 520;
      word-break: break-word;
    }

    .travel-log-expand-btn {
      width: 24px;
      height: 24px;
      border: 1px solid rgba(255, 102, 0, 0.28);
      border-radius: 2px;
      background: rgba(255, 102, 0, 0.06);
      color: var(--primary-orange);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      line-height: 1;
      font-weight: 780;
      cursor: pointer;
      transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
      flex: 0 0 auto;
    }

    .travel-log-expand-btn:hover {
      background: rgba(255, 102, 0, 0.10);
      border-color: rgba(255, 102, 0, 0.44);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(255, 102, 0, 0.12);
    }

    .travel-log-expand-btn:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.16);
    }

    .travel-log-popover-backdrop {
      position: fixed;
      inset: 0;
      z-index: 2600;
      background: rgba(0, 27, 65, 0.18);
      backdrop-filter: blur(2px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease;
    }

    .travel-log-popover-backdrop.is-open {
      opacity: 1;
      pointer-events: auto;
    }

    .travel-log-popover {
      position: fixed;
      z-index: 2601;
      left: 50%;
      top: 50%;
      width: min(520px, calc(100vw - 32px));
      max-height: min(620px, calc(100svh - 44px));
      transform: translate(-50%, calc(-50% + 8px)) scale(0.985);
      opacity: 0;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: 2px;
      border: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.99);
      box-shadow: 0 18px 46px rgba(0, 27, 65, 0.20);
      transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .travel-log-popover.is-open {
      opacity: 1;
      pointer-events: auto;
      transform: translate(-50%, -50%) scale(1);
    }

    .travel-log-popover-header {
      display: grid;
      grid-template-columns: 1fr 28px;
      gap: 12px;
      align-items: start;
      padding: 16px 16px 12px 16px;
      border-bottom: 1px solid var(--border-color);
      background: #ffffff;
    }

    .travel-log-popover-kicker {
      margin-bottom: 5px;
      color: var(--primary-orange);
      font-size: 10px;
      line-height: 1.1;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .travel-log-popover-title {
      color: var(--text-dark);
      font-size: 17px;
      line-height: 1.15;
      font-weight: 850;
      letter-spacing: -0.04em;
    }

    .travel-log-popover-meta {
      margin-top: 7px;
      color: var(--text-muted);
      font-size: 11px;
      line-height: 1.35;
      font-weight: 650;
    }

    .travel-log-popover-close {
      width: 28px;
      height: 28px;
      border: 1px solid var(--border-color);
      border-radius: 2px;
      background: #ffffff;
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      line-height: 1;
      font-weight: 760;
      cursor: pointer;
      transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
    }

    .travel-log-popover-close:hover {
      color: var(--primary-orange);
      border-color: rgba(255, 102, 0, 0.40);
      background: #fffaf6;
      transform: translateY(-1px);
    }

    .travel-log-popover-body {
      padding: 15px 16px 17px 16px;
      overflow-y: auto;
      color: #334155;
      font-size: 13px;
      line-height: 1.55;
      font-weight: 500;
      white-space: pre-wrap;
      word-break: break-word;
      background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    @media (max-width: 760px) {
      .panel-travel-log tbody tr,
      .panel-travel-log td {
        height: 58px;
        max-height: 58px;
      }

      .panel-travel-log th:first-child,
      .panel-travel-log td:first-child {
        padding-left: 10px;
      }

      .panel-travel-log th:last-child,
      .panel-travel-log td:last-child {
        padding-right: 10px;
      }

      .travel-log-day,
      .travel-log-time,
      .travel-log-location {
        font-size: 11px;
      }

      .travel-log-preview-wrap {
        grid-template-columns: minmax(0, 1fr) 24px;
        gap: 7px;
      }

      .travel-log-preview {
        font-size: 11.5px;
        max-height: 32px;
      }

      .travel-log-popover {
        width: min(330px, calc(100vw - 20px));
        max-height: min(540px, calc(100svh - 28px));
      }

      .travel-log-popover-header {
        padding: 14px 14px 11px 14px;
      }

      .travel-log-popover-title {
        font-size: 16px;
      }

      .travel-log-popover-body {
        padding: 13px 14px 15px 14px;
        font-size: 12.5px;
        line-height: 1.52;
      }
    }



    /* Community scorecard */
    .community-scorecard {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      padding: 12px 14px 13px 14px;
      border-bottom: 1px solid var(--border-color);
      background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    .community-score-item {
      min-width: 0;
      min-height: 56px;
      padding: 10px 8px 9px 8px;
      border: 1px solid #e2e8f0;
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 2px 8px rgba(0, 27, 65, 0.035);
      display: grid;
      gap: 5px;
      justify-items: center;
      align-content: center;
    }

    .community-score-value {
      color: var(--primary-orange);
      font-size: 18px;
      line-height: 1.08;
      font-weight: 850;
      letter-spacing: 0.005em;
      font-variant-numeric: tabular-nums;
    }

    .community-score-label {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--text-muted);
      font-size: 9px;
      line-height: 1;
      font-weight: 820;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .panel.is-panel-collapsed .community-scorecard,
    .panel.is-panel-collapsed .table-container,
    .panel.is-panel-collapsed .feed-container,
    .panel.is-panel-collapsed .feed-footer {
      opacity: 0;
      pointer-events: none;
    }

    /* Mobile Travel Log: no horizontal scrolling, all columns visible */
    @media (max-width: 760px) {
      .panel-travel-log .table-container {
        overflow-x: hidden !important;
        padding-bottom: 8px !important;
      }

      .panel-travel-log table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        font-size: 10px !important;
      }

      .panel-travel-log th:nth-child(1),
      .panel-travel-log td:nth-child(1) {
        width: 25% !important;
      }

      .panel-travel-log th:nth-child(2),
      .panel-travel-log td:nth-child(2) {
        width: 13% !important;
      }

      .panel-travel-log th:nth-child(3),
      .panel-travel-log td:nth-child(3) {
        width: 22% !important;
      }

      .panel-travel-log th:nth-child(4),
      .panel-travel-log td:nth-child(4) {
        width: 40% !important;
      }

      .panel-travel-log th,
      .panel-travel-log td {
        padding-left: 4px !important;
        padding-right: 4px !important;
      }

      .panel-travel-log th:first-child,
      .panel-travel-log td:first-child {
        padding-left: 7px !important;
      }

      .panel-travel-log th:last-child,
      .panel-travel-log td:last-child {
        padding-right: 7px !important;
      }

      .panel-travel-log tbody tr,
      .panel-travel-log td {
        height: 54px !important;
        max-height: 54px !important;
      }

      .travel-log-day {
        gap: 3px !important;
        font-size: 10px !important;
        letter-spacing: -0.055em !important;
      }

      .travel-log-day .dot-indicator {
        width: 5px !important;
        height: 5px !important;
        border-radius: 0 !important;
      }

      .travel-log-time,
      .travel-log-location {
        font-size: 10.2px !important;
        letter-spacing: -0.035em !important;
      }

      .travel-log-log-cell {
        padding-right: 5px !important;
      }

      .travel-log-preview-wrap {
        grid-template-columns: minmax(0, 1fr) 20px !important;
        gap: 5px !important;
        min-height: 34px !important;
      }

      .travel-log-preview {
        font-size: 10.6px !important;
        line-height: 1.25 !important;
        max-height: 27px !important;
        -webkit-line-clamp: 2 !important;
      }

      .travel-log-expand-btn {
        width: 20px !important;
        height: 20px !important;
        font-size: 14px !important;
      }

      .community-scorecard {
        gap: 7px;
        padding: 9px 8px 10px 8px;
      }

      .community-score-item {
        min-height: 48px;
        padding: 8px 5px 7px 5px;
        gap: 4px;
      }

      .community-score-value {
        font-size: 15px;
        line-height: 1.08;
        letter-spacing: 0.005em;
      }

      .community-score-label {
        font-size: 7.6px;
        letter-spacing: 0.025em;
      }
    }

    @media (max-width: 380px) {
      .panel-travel-log th,
      .panel-travel-log td {
        padding-left: 3px !important;
        padding-right: 3px !important;
      }

      .panel-travel-log th:first-child,
      .panel-travel-log td:first-child {
        padding-left: 6px !important;
      }

      .travel-log-day {
        font-size: 9.5px !important;
      }

      .travel-log-time,
      .travel-log-location {
        font-size: 9.8px !important;
      }

      .travel-log-preview {
        font-size: 10.1px !important;
      }

      .travel-log-preview-wrap {
        grid-template-columns: minmax(0, 1fr) 19px !important;
        gap: 4px !important;
      }

      .travel-log-expand-btn {
        width: 19px !important;
        height: 19px !important;
        font-size: 13px !important;
      }

      .community-score-label {
        font-size: 7.2px;
      }
    }

    /* Mobile restore from 06-07 reference: keep the current content/logic, but prevent the later grid override from compressing the map controls. */
    @media (max-width: 520px) {
      .map-route-info-row {
        flex-direction: column !important;
        width: fit-content !important;
        max-width: calc(100vw - 20px) !important;
        align-items: flex-start !important;
      }

      .route-legend {
        justify-content: flex-start !important;
      }

      .route-legend-label {
        max-width: none !important;
      }
    }




    /* Final design polish: left-aligned website logos, right-aligned app title, square/rectangular bullets, calmer panel spacing. */
    header {
      grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
      position: relative !important;
      overflow: visible !important;
    }

    .header-left {
      justify-self: end !important;
      justify-content: flex-end !important;
      text-align: right !important;
    }

    .logo-area {
      justify-content: flex-end !important;
      text-align: right !important;
    }

    .partner-logos {
      justify-self: start !important;
      justify-content: flex-start !important;
      align-items: flex-start !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 2px !important;
      height: auto !important;
      line-height: 1 !important;
    }

    .supported-label {
      display: block !important;
      width: auto !important;
      margin: 0 0 1px 1px !important;
      color: var(--text-muted) !important;
      font-size: 8.5px !important;
      line-height: 1.05 !important;
      font-weight: 600 !important;
      letter-spacing: 0.035em !important;
      text-transform: uppercase !important;
    }

    .partner-logo-row {
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      gap: 18px !important;
      min-width: 0 !important;
      line-height: 1 !important;
    }

    .partner-logo-row a {
      display: inline-flex !important;
      align-items: center !important;
      flex: 0 0 auto !important;
    }

    .dot-indicator {
      border-radius: 0 !important;
    }

    .panel-title h2,
    .community-score-value {
      letter-spacing: 0.005em !important;
    }

    .panel-resizer {
      background: transparent;
    }

    @media (max-width: 760px) {
      header {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
      }

      .partner-logos {
        width: auto !important;
        min-width: 0 !important;
        justify-self: start !important;
        align-items: flex-start !important;
        gap: 2px !important;
      }

      .supported-label {
        margin: 0 0 1px 1px !important;
        font-size: 7.5px !important;
        font-weight: 600 !important;
        letter-spacing: 0.03em !important;
      }

      .partner-logo-row {
        gap: 9px !important;
      }

      .partner-logo-hl {
        height: 22px !important;
        max-width: 118px !important;
      }

      .partner-logo-nexxiot {
        height: 14px !important;
        max-width: 82px !important;
      }

      .logo-area {
        width: auto !important;
        max-width: 100% !important;
        margin-left: auto !important;
        font-size: 14px !important;
        gap: 6px !important;
      }

      .logo-area svg {
        width: 20px !important;
        height: 20px !important;
      }

      .sally-app-icon {
        width: 28px !important;
        height: 28px !important;
      }
    }

    @media (max-width: 420px) {
      header {
        gap: 8px !important;
      }

      .partner-logo-row {
        gap: 7px !important;
      }

      .partner-logo-hl {
        height: 20px !important;
        max-width: 104px !important;
      }

      .partner-logo-nexxiot {
        height: 12px !important;
        max-width: 72px !important;
      }

      .logo-area {
        font-size: 12.5px !important;
        letter-spacing: -0.045em !important;
      }

      .logo-area svg {
        display: none !important;
      }

      .sally-app-icon {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
      }
    }


    /* Sally header icon: stable frame, no image scaling during motion. */
    .sally-app-icon-frame {
      --sally-size: 32px;
      --sally-drive-x: -300px;
      --sally-drive-y: 0px;
      position: relative;
      z-index: 1701;
      display: inline-block !important;
      width: var(--sally-size) !important;
      height: var(--sally-size) !important;
      min-width: var(--sally-size) !important;
      max-width: var(--sally-size) !important;
      min-height: var(--sally-size) !important;
      max-height: var(--sally-size) !important;
      flex: 0 0 var(--sally-size) !important;
      line-height: 0 !important;
      font-size: 0 !important;
      opacity: 1;
      visibility: visible;
      transform: translate3d(0, 0, 0);
      transform-origin: 50% 50%;
      transform-box: border-box;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      transition: none !important;
      contain: paint;
      will-change: auto;
    }

    .sally-app-icon-frame .sally-app-icon {
      position: absolute !important;
      inset: 0 !important;
      display: block !important;
      width: 100% !important;
      height: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
      min-height: 100% !important;
      max-height: 100% !important;
      flex: none !important;
      aspect-ratio: auto !important;
      object-fit: contain !important;
      object-position: center center !important;
      transform: none !important;
      transition: none !important;
      opacity: 1 !important;
      visibility: visible !important;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      image-rendering: auto;
    }

    .sally-app-icon-frame.is-driving-away {
      pointer-events: none;
      will-change: transform, opacity;
      animation:
        sallyIconDriveOutTransform 2.28s linear 0s 1 forwards,
        sallyIconDriveOutOpacity 2.28s ease-out 0s 1 forwards;
    }

    .sally-app-icon-frame.is-fading-back {
      pointer-events: none;
      opacity: 0;
      visibility: visible;
      transform: translate3d(0, 0, 0);
      will-change: opacity;
      animation: sallyIconFadeBackIn 0.5s ease-out 0s 1 forwards;
    }

    .sally-app-icon-frame.is-drive-complete {
      opacity: 1 !important;
      visibility: visible !important;
      transform: translate3d(0, 0, 0) !important;
      pointer-events: auto !important;
      will-change: auto !important;
    }

    @keyframes sallyIconDriveOutTransform {
      from {
        transform: translate3d(0, 0, 0);
      }
      to {
        transform: translate3d(var(--sally-drive-x), var(--sally-drive-y), 0);
      }
    }

    @keyframes sallyIconDriveOutOpacity {
      0%, 82% {
        opacity: 1;
      }
      100% {
        opacity: 0;
      }
    }

    @keyframes sallyIconFadeBackIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    @media (max-width: 760px) {
      .sally-app-icon-frame {
        --sally-size: 28px;
      }

      .tracking-notice {
        top: 12px;
        left: 60px;
        right: 72px;
        width: auto;
        max-width: none;
        padding: 7px 9px;
        font-size: 9.5px;
        line-height: 1.3;
        box-shadow: 0 2px 8px rgba(0, 27, 65, 0.08);
      }

      .routing-warning {
        top: 58px;
        left: 60px;
        right: 72px;
        width: auto;
        max-width: none;
        padding: 7px 9px;
        font-size: 9.5px;
        line-height: 1.3;
        box-shadow: 0 2px 8px rgba(0, 27, 65, 0.08);
      }

      .map-loading-overlay {
        background: rgba(238, 243, 247, 0.52);
        backdrop-filter: blur(4px) saturate(0.88);
        -webkit-backdrop-filter: blur(4px) saturate(0.88);
      }
    }

    @media (max-width: 420px) {
      .sally-app-icon-frame {
        --sally-size: 24px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .sally-app-icon-frame.is-driving-away,
      .sally-app-icon-frame.is-fading-back {
        animation: none !important;
      }
    }


  
.route-legend{flex-wrap:wrap;max-width:calc(100% - 24px)}

/* A non-blocking status remains visible after the saved map is ready. */
.live-update-status{position:absolute;top:20px;left:50%;transform:translateX(-50%);z-index:1001;display:flex;align-items:center;gap:9px;width:max-content;max-width:calc(100% - 180px);padding:9px 12px;background:rgba(255,255,255,.96);border:1px solid rgba(0,27,65,.07);border-radius:3px;box-shadow:0 2px 8px rgba(0,27,65,.08);pointer-events:none;color:#25364a;font-size:11px;line-height:1.35;font-weight:600;}
.live-update-status[hidden]{display:none;}
#liveUpdateDetail{display:block;margin-top:2px;color:#687584;font-size:10px;font-weight:400;}
.live-update-spinner{width:12px;height:12px;flex:0 0 12px;border:1.5px solid #e3e7eb;border-top-color:#ff6600;border-radius:50%;animation:live-update-spin 1s linear infinite;}
.live-update-status.is-delayed .live-update-spinner{animation:none;border-color:#bbc4cc;}
@keyframes live-update-spin{to{transform:rotate(360deg);}}
@media(max-width:600px){.live-update-status{top:16px;max-width:calc(100% - 156px);padding:7px 9px;gap:7px;font-size:10px;}#liveUpdateDetail{font-size:9px;}}
@media(prefers-reduced-motion:reduce){.live-update-spinner{animation:none;border-top-color:#ff6600;}}
