  #dashboard-rando body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef2f7;
    margin: 0;
    padding: 0;
  }
  .container-custom {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .charts-wrapper {
    background: linear-gradient(180deg, #f6f9fc 0%, #eef4fb 100%);
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(31, 60, 136, 0.08);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
    min-height: 1200px;
  }
  .card-custom {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    color: black;
    margin-bottom: 20px;
  }
  .card-custom h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
  }
  .section-title {
    font-size: 20px;
    color: #3498db;
    margin-bottom: 10px;
    text-transform: uppercase;
  }
  .rando-info, .meteo-info {
    display: flex;
    justify-content: center;
    font-size: 16px;
    margin: 10px 0;
    align-items: center;
    margin: auto;
  }
  .emoji {
    font-size: 32px;
    margin-right: 10px;
  }
  .value {
    font-weight: bold;
  }
  .divider {
    border-bottom: 2px solid #ecf0f1;
    margin: 15px 0;
  }
  .dashboard-controls {
    color: #12263a;
    margin-bottom: 22px;
    padding: 20px 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(244,248,253,0.96) 100%);
    border: 1px solid rgba(31, 60, 136, 0.08);
    box-shadow: 0 12px 28px rgba(31, 60, 136, 0.08);
  }
  .dashboard-controls h5 {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 800;
    color: #102a43;
  }
  .dashboard-controls-caption {
    margin: 0 0 18px 0;
    color: #5f6c7b;
    font-size: 14px;
  }
  .dashboard-controls-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
    align-items: stretch;
  }
  #dashboard-rando .js-plotly-plot .plotly .modebar,
  #dashboard-rando .js-plotly-plot .plotly-notifier {
    display: none !important;
  }
  .dashboard-control {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(31, 60, 136, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
  }
  .dashboard-control label {
    display: block;
    font-weight: 700;
    margin-bottom: 0;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #486581;
  }
  .control-hint {
    color: #7b8794;
    font-size: 12px;
    margin-top: -4px;
  }
  .segmented-control {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .segmented-control input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .segmented-control label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    border: 1px solid rgba(31, 60, 136, 0.10);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    color: #1f3c88;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }
  .segmented-control label:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(31, 60, 136, 0.10);
  }
  .segmented-control input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #1f3c88 0%, #3498db 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(31, 60, 136, 0.24);
  }
  .detail-table-wrapper {
    margin-top: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(52, 152, 219, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(31, 60, 136, 0.08);
    overflow: hidden;
  }
  .detail-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 10px 20px;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.10), rgba(52, 152, 219, 0.02));
    border-bottom: 1px solid rgba(52, 152, 219, 0.10);
  }
  .detail-table-title {
    color: #1f3c88;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
  }
  .detail-table-subtitle {
    color: #5f6c7b;
    font-size: 13px;
    margin: 0;
  }
  .detail-table-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(31, 60, 136, 0.08);
    color: #1f3c88;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  table.km-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #22313f;
    font-size: 14px;
  }
  .km-table th,
  .km-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e8eef5;
    text-align: center;
    vertical-align: middle;
  }
  .km-table thead th {
    background: linear-gradient(135deg, #1f3c88 0%, #3498db 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.06);
  }
  .km-table thead th:first-child {
    border-top-left-radius: 12px;
  }
  .km-table thead th:last-child {
    border-top-right-radius: 12px;
  }
  .km-table tbody tr {
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }
  .km-table tbody tr:nth-child(odd) {
    background: rgba(245, 249, 255, 0.92);
  }
  .km-table tbody tr:nth-child(even) {
    background: #ffffff;
  }
  .km-table tbody tr:hover {
    background: rgba(52, 152, 219, 0.08);
    box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.10);
  }
  .km-table td:first-child {
    font-weight: 700;
    color: #1f3c88;
  }
  .km-table td strong {
    font-weight: 700;
    color: #12263a;
  }
  .km-table-scroll {
    max-height: 460px;
    overflow: auto;
    padding: 0 10px 10px 10px;
  }
  .detail-muted {
    color: #6c7a89;
    font-size: 12px;
  }
  .metric-pill {
    display: inline-block;
    min-width: 72px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(31, 60, 136, 0.08);
    color: #1f3c88;
    font-weight: 700;
    font-size: 12px;
  }
  .hidden {
    display: none;
  }
  .empty-state {
    color: #334e68;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 18px;
    padding: 20px;
    margin-top: 12px;
    border: 1px solid rgba(31, 60, 136, 0.08);
    box-shadow: 0 10px 24px rgba(31, 60, 136, 0.06);
  }
  .bottom-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
  }
  .plot-block {
    margin-top: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.96) 100%);
    border: 1px solid rgba(31, 60, 136, 0.08);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    padding: 12px;
  }
  @media (max-width: 991.98px) {
    .dashboard-controls-row {
      grid-template-columns: 1fr;
    }
    .bottom-charts-grid {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 640px) {
    #dashboard-rando.container-custom {
      padding: 8px !important;
    }

    .charts-wrapper {
      min-height: 0;
      padding: 12px;
      border-radius: 18px;
    }

    .dashboard-controls,
    .dashboard-control,
    .plot-block,
    .card-custom,
    .empty-state {
      padding: 12px;
      border-radius: 16px;
    }

    #distance-chart {
      height: min(560px, 142vw) !important;
    }

    #profil-altimetrie-chart {
      height: min(320px, 82vw) !important;
    }

    #heart-rate-zones-chart,
    #cadence-histogram-chart {
      height: min(300px, 78vw) !important;
    }

    .dashboard-controls h5 {
      font-size: 1.05rem;
    }

    .segmented-control {
      display: grid;
      grid-template-columns: 1fr;
      width: 100%;
    }

    .segmented-control label {
      min-height: 42px;
      width: 100%;
      padding: 10px 12px;
    }

    .detail-table-header {
      align-items: flex-start;
      flex-direction: column;
      padding: 14px;
    }

    .km-table-scroll {
      max-height: 360px;
      overflow-x: auto;
      padding: 0 6px 8px;
      -webkit-overflow-scrolling: touch;
    }

    table.km-table {
      min-width: 680px;
      font-size: 12px;
    }

    .km-table th,
    .km-table td {
      padding: 9px 10px;
    }
  }
