#terram-performance-chart.tm-performance-dashboard {
  margin: 22px 0 38px;
  padding: 24px;
  border: 1px solid #d9e3e9;
  border-radius: 8px;
  background: #fff;
  color: #173247;
}
.tm-performance-dashboard__topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.tm-performance-dashboard__source { margin: 0; color: #587084; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tm-performance-toggle, .tm-performance-range { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-performance-toggle button, .tm-performance-range button { border: 1px solid #cbd8e0; border-radius: 4px; background: #fff; color: #30566e; cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1; padding: 9px 11px; }
.tm-performance-toggle button.is-active, .tm-performance-range button.is-active { border-color: #123d58; background: #123d58; color: #fff; }
.tm-performance-toggle button:focus-visible, .tm-performance-range button:focus-visible { outline: 3px solid rgba(60, 147, 184, .42); outline-offset: 2px; }
.tm-performance-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.tm-performance-card { min-width: 0; padding: 14px; border: 1px solid #e1e9ee; border-radius: 6px; background: #f8fafb; }
.tm-performance-card__label, .tm-performance-card__detail { display: block; }
.tm-performance-card__label { color: #587084; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tm-performance-card__value { display: block; margin: 7px 0 5px; color: #173247; font-size: clamp(17px, 2vw, 23px); line-height: 1.1; }
.tm-performance-card__detail { color: #6a7f8e; font-size: 12px; line-height: 1.35; }
.tm-performance-card.is-positive .tm-performance-card__value { color: #18794e; }
.tm-performance-card.is-negative .tm-performance-card__value { color: #a13e3e; }
.tm-performance-range { margin-bottom: 14px; }
.tm-performance-canvas-wrap { position: relative; height: 390px; }
.tm-performance-note { margin: 14px 0 0; color: #6a7f8e; font-size: 12px; line-height: 1.5; }
@media (max-width: 980px) { .tm-performance-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  #terram-performance-chart.tm-performance-dashboard { margin-left: -10px; margin-right: -10px; padding: 17px; }
  .tm-performance-dashboard__topline { align-items: flex-start; flex-direction: column; }
  .tm-performance-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-performance-card:last-child { grid-column: span 2; }
  .tm-performance-canvas-wrap { height: 300px; }
  .tm-performance-toggle button, .tm-performance-range button { min-height: 38px; padding: 9px 10px; }
}
