.ms-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
  margin-block: 12px;
}
.ms-chart {
  min-width: 0;
  position: relative;
  margin: 12px 0;
  padding: 10px;
  color: #142b4b;
  background: linear-gradient(160deg, #ffffffdb, #f4f8fcdb);
  border: 1px solid #d0dff1;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px #244a7909;
}
.ms-chart-grid .ms-chart { margin: 0; }
.ms-chart-header {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.ms-chart h3 {
  margin: 0;
  color: #142b4b;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.ms-chart-summary {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.ms-chart-summary > div { min-width: 0; }
.ms-chart-summary:has(.ms-chart-peer-median) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ms-chart-median { text-align: left; }
.ms-chart-peer-median { text-align: center; }
.ms-chart-median dt::before, .ms-chart-peer-median dt::before {
  content: "";
  display: inline-block;
  width: 12px;
  margin-right: 4px;
  border-top: 1.5px dashed #8594a8;
  vertical-align: middle;
}
.ms-chart-latest { text-align: right; }
.ms-chart-summary dt {
  color: #48617e;
  font-size: 11px;
  line-height: 1.3;
}
.ms-chart-summary dd {
  margin: 2px 0 0;
  color: #143c75;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.ms-chart-plot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: #f3f7fc;
}
.ms-chart svg {
  display: block;
  max-width: none;
  flex-shrink: 0;
}
.ms-chart svg text {
  fill: #48617e;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.ms-chart svg tspan { font-size: 10px; }
.ms-grid-line {
  stroke: #c6d8ea;
  stroke-dasharray: 3 4;
}
.ms-grid-baseline {
  stroke: #99b2cf;
  stroke-dasharray: none;
}
.ms-area-top { stop-color: #5196ed; stop-opacity: .27; }
.ms-area-bottom { stop-color: #5196ed; stop-opacity: .035; }
.ms-series-line {
  fill: none;
  stroke: #255cbe;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ms-median-line {
  stroke: #8594a8;
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  pointer-events: none;
}
.ms-chart [data-ms-chart-point] {
  cursor: pointer;
  stroke: transparent;
  stroke-width: 15;
  pointer-events: all;
}
.ms-chart [data-ms-chart-point]:is(:focus-visible, [aria-expanded="true"]) {
  filter: drop-shadow(0 0 2px #16344e80);
}
.ms-chart [data-ms-chart-point]:focus-visible { outline: 2px solid #225c9f; outline-offset: 2px; }
.ms-chart[data-ms-active] { z-index: 2; }
.ms-chart-info:empty { display: none; }
.ms-chart-info:not(:empty) {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: min(280px, calc(100% - 16px));
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 9px 12px;
  border: 1px solid #d5e4f3;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: 0 4px 16px #18345224;
  color: #183452;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ms-chart-info span {
  color: #48617e;
  font-size: 12px;
}
.ms-chart .ms-chart-period { margin: 6px 0 0; color: #60758d; font-size: 11px; line-height: 1.35; text-align: right; font-variant-numeric: tabular-nums; }
.ms-chart-scroll {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.ms-chart-scroll::-webkit-scrollbar { display: none; }
.ms-chart .ms-chart-range[hidden] { display: none; }
.ms-chart .ms-chart-range { min-height: 28px; height: 28px; padding: 0; margin: 2px 0 0; }
@media (pointer: coarse) {
  .ms-chart [data-ms-chart-point] { stroke-width: 23; }
}
@media (forced-colors: active) {
  .ms-chart svg text { fill: CanvasText; }
  .ms-grid-line, .ms-series-line, .ms-median-line { stroke: CanvasText; }
  .ms-chart-median dt::before { border-color: CanvasText; }
  .ms-chart [data-ms-chart-point] { fill: LinkText; }
  .ms-chart polygon { display: none; }
  .ms-chart-info:not(:empty) { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .ms-chart-info span, .ms-chart .ms-chart-period { color: CanvasText; }
}

.ms-chart-peer-median dt::before { border-color: #a68d7b; border-top-style: dotted; }
.ms-peer-median-line { stroke: #a68d7b; stroke-width: 1.5; stroke-dasharray: 2 4; pointer-events: none; }
@media (forced-colors: active) { .ms-peer-median-line { stroke: CanvasText; } .ms-chart-peer-median dt::before { border-color: CanvasText; } }

.ms-lazy-chart { min-height: 210px; }

.ms-filter-panel { margin-block: 10px; }
.ms-filter-trigger {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 5px 14px; border: 1px solid #c3d3e4; border-radius: 12px;
  background: #f7faff; color: #163959; font-weight: 650; cursor: pointer;
}
.ms-filter-panel > summary::-webkit-details-marker { display: none; }
.ms-filter-trigger::after { content: "⌄"; margin-inline-start: 8px; }
.ms-filter-panel[open] > .ms-filter-trigger::after { transform: rotate(180deg); }
.ms-filter-group { min-width: 0; margin: 10px 0; padding: 0; border: 0; }
.ms-filter-group legend { margin-bottom: 4px; padding: 0; font-size: .875rem; }
.ms-filter-group > div { display: flex; gap: 6px; flex-wrap: wrap; }
.ms-filter-group .ms-filter-chip {
  width: auto; min-height: 44px; padding: 5px 12px; border: 1px solid #c3d3e4; border-radius: 12px;
  background: #f7faff; color: #163959; font: inherit; cursor: pointer;
}
.ms-filter-group .ms-filter-chip[aria-pressed="true"] { background: #175ba4; border-color: #175ba4; color: white; }
.ms-filter-chip:focus-visible, .ms-filter-trigger:focus-visible { outline: 3px solid #1f5bff; outline-offset: 2px; }
[data-stat-key][hidden], [data-ms-lazy-key][hidden], [data-metric-empty][hidden] { display: none !important; }
.ms-home-charts { grid-column: 1 / -1; min-width: 0; }
