.ride-daily-charts {
  margin-top: 54px;
  background:
    linear-gradient(180deg, rgba(244, 248, 251, 0) 0%, rgba(229, 242, 247, 0.72) 18%, rgba(244, 248, 251, 0) 100%);
  color: var(--ink, #081735);
}

.ride-chart-container {
  position: relative;
  width: min(100% - 28px, 1440px);
  margin: 0 auto;
}

.ride-chart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.ride-chart-kicker {
  display: inline-flex;
  width: 88px;
  height: 8px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #14a083;
}

.ride-chart-head h2 {
  margin: 0;
  color: var(--ink, #081735);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.ride-chart-head p {
  max-width: 920px;
  margin: 10px 0 0;
  color: var(--muted, #536277);
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 800;
  line-height: 1.35;
}

.ride-chart-date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(20, 160, 131, 0.28);
  border-radius: 999px;
  background: #dcf7ef;
  color: #08745f;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.ride-chart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ride-chart-stat {
  min-width: 0;
  min-height: 118px;
  border: 1px solid rgba(8, 23, 53, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(8, 23, 53, 0.07);
  padding: 16px;
}

.ride-chart-stat span {
  display: block;
  color: var(--muted, #536277);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.ride-chart-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--ink, #081735);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  line-height: 1;
}

.ride-chart-stat small {
  display: block;
  margin-top: 8px;
  color: var(--muted, #536277);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.ride-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ride-chart-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8, 23, 53, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 250, 0.95)),
    #fff;
  box-shadow: 0 18px 52px rgba(8, 23, 53, 0.09);
}

.ride-chart-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(8, 23, 53, 0.09);
  padding: 18px 20px 14px;
}

.ride-chart-panel-head h3 {
  margin: 0;
  color: var(--ink, #081735);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.ride-chart-panel-head p {
  margin: 7px 0 0;
  color: var(--muted, #536277);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.ride-chart-badge {
  align-self: start;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(23, 110, 180, 0.22);
  border-radius: 999px;
  background: #e7f4fd;
  color: #176eb4;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ride-chart-body {
  position: relative;
  padding: 12px 16px 16px;
}

.ride-chart-stage {
  position: relative;
  width: 100%;
  min-height: 240px;
}

.ride-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ride-chart-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed rgba(8, 23, 53, 0.18);
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.78);
  color: var(--muted, #536277);
  padding: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 850;
}

.ride-chart-axis,
.ride-chart-label {
  fill: var(--muted, #536277);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.ride-chart-title-label {
  fill: var(--ink, #081735);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.ride-chart-gridline {
  stroke: rgba(8, 23, 53, 0.1);
  stroke-width: 1;
}

.ride-chart-baseline {
  stroke: rgba(8, 23, 53, 0.18);
  stroke-width: 2;
}

.ride-bar {
  fill: url("#rideBarGradient");
  filter: drop-shadow(0 8px 10px rgba(23, 110, 180, 0.15));
}

.ride-bar.is-low {
  fill: #18a878;
}

.ride-bar.is-mid {
  fill: #f1a638;
}

.ride-bar.is-high {
  fill: #e8605a;
}

.ride-chart-line {
  fill: none;
  stroke: #176eb4;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ride-chart-line-glow {
  fill: none;
  stroke: rgba(63, 188, 217, 0.32);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ride-chart-area {
  fill: rgba(63, 188, 217, 0.13);
}

.ride-chart-point {
  fill: #fff;
  stroke: #176eb4;
  stroke-width: 4;
}

.ride-chart-point.is-current {
  stroke: #14a083;
  fill: #dcf7ef;
}

.ride-chart-point.is-peak {
  stroke: #e8605a;
  fill: #ffe8e5;
}

.ride-chart-hit {
  cursor: pointer;
  fill: transparent;
  stroke: transparent;
  outline: none;
}

.ride-chart-hit:focus-visible + .ride-chart-point,
.ride-chart-hit:focus-visible + .ride-bar,
.ride-chart-point.is-active,
.ride-bar.is-active {
  filter: drop-shadow(0 0 10px rgba(23, 110, 180, 0.45));
}

.ride-chart-tooltip {
  position: absolute;
  z-index: 4;
  max-width: min(300px, calc(100vw - 44px));
  border: 1px solid rgba(8, 23, 53, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(8, 23, 53, 0.18);
  color: var(--ink, #081735);
  padding: 12px 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -112%);
  transition: opacity 120ms ease, transform 120ms ease;
}

.ride-chart-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -120%);
}

.ride-chart-tooltip strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.ride-chart-tooltip span {
  display: block;
  margin-top: 5px;
  color: var(--muted, #536277);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.ride-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  color: var(--muted, #536277);
  font-size: 13px;
  font-weight: 900;
}

.ride-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ride-chart-legend span::before {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #176eb4;
  content: "";
}

.ride-chart-legend .is-green::before {
  background: #14a083;
}

.ride-chart-legend .is-amber::before {
  background: #f1a638;
}

.ride-chart-legend .is-red::before {
  background: #e8605a;
}

@media (max-width: 900px) {
  .ride-chart-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ride-chart-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ride-daily-charts {
    margin-top: 44px;
  }

  .ride-chart-container {
    width: min(100% - 22px, 1440px);
  }

  .ride-chart-head h2 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .ride-chart-head p {
    font-size: 16px;
  }

  .ride-chart-stats {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .ride-chart-stat {
    min-height: auto;
    padding: 13px 14px;
  }

  .ride-chart-stat strong {
    font-size: 30px;
  }

  .ride-chart-panel-head {
    display: block;
    padding: 15px 15px 11px;
  }

  .ride-chart-badge {
    margin-top: 10px;
  }

  .ride-chart-body {
    padding: 10px;
  }

  .ride-chart-stage {
    min-height: 202px;
  }

  .ride-chart-axis,
  .ride-chart-label {
    font-size: 11px;
  }

  .ride-chart-line {
    stroke-width: 4;
  }

  .ride-chart-line-glow {
    stroke-width: 9;
  }
}
