.monthly-trend-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 16px 0;
}
.monthly-trend-form label {
  display: grid;
  gap: 5px;
  width: min(100%, 160px);
}
.monthly-trend-form .monthly-trend-search { width: min(100%, 235px); }
.monthly-trend-form select,
.monthly-trend-form input { width: 100%; min-width: 0; }
.monthly-trend-product {
  margin: 24px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.monthly-trend-product > summary { font-weight: 700; cursor: pointer; }
.monthly-trend-candidates {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}
.monthly-trend-candidates button { text-align: left; justify-content: start; overflow-wrap: anywhere; }
.monthly-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 410px), 1fr));
  gap: 16px;
}
.monthly-chart {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.monthly-chart figcaption { margin-bottom: 6px; font-size: 15px; font-weight: 800; }
.monthly-chart svg { display: block; width: 100%; height: auto; }
.monthly-chart text { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.trend-gridline { stroke: var(--line); }
.trend-line { fill: none; stroke: var(--primary); stroke-width: 2.5; }
.trend-point { fill: var(--primary); stroke: white; stroke-width: 1.5; }
.monthly-chart details { font-size: 13px; }
.monthly-chart summary { cursor: pointer; color: var(--primary-dark); }
.monthly-chart-values {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  max-height: 180px;
  overflow: auto;
  margin: 8px 0 0;
}
.monthly-chart-values dd { margin: 0; font-variant-numeric: tabular-nums; }
