#dashboard {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 84px minmax(0, 43fr) minmax(0, 19fr) minmax(0, 19fr) minmax(0, 19fr);
  background: #fff;
}

.overview-header {
  position: relative;
  z-index: 10;
  min-width: 0;
  padding: 11px 12px;
  border-bottom: 1px solid var(--cc-divider);
  background: #fff;
}

.header-copy {
  position: absolute;
  top: 12px;
  left: 13px;
  width: min(45%, 230px);
  min-width: 0;
}

.summary-title,
.summary-subtitle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-title {
  color: #183f38;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.summary-subtitle {
  margin-top: 3px;
  color: var(--cc-faint);
  font-size: 8px;
  line-height: 11px;
}

.segmented {
  position: absolute;
  display: grid;
  overflow: hidden;
  padding: 2px;
  border-radius: 7px;
  background: #f0f2f2;
}

.segmented button {
  min-width: 0;
  height: 23px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--cc-faint);
  font-size: 8px;
  font-weight: 650;
  line-height: 23px;
  white-space: nowrap;
}

.segmented button.is-active {
  background: #ddf8f2;
  color: var(--cc-accent);
}

.market-control {
  top: 10px;
  right: 47px;
  width: 118px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.range-control {
  top: 45px;
  right: 13px;
  width: 132px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.icon-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--cc-accent);
  font-size: 22px;
  line-height: 1;
}

.fullscreen-button { top: 10px; right: 10px; }
.icon-button:active { background: #e8f8f4; }

.pane {
  position: relative;
  min-height: 0;
  border-top: 1px solid var(--cc-divider);
}

.pane:first-child { border-top: 0; }

.pane-title,
.pane-value {
  position: absolute;
  z-index: 4;
  top: 5px;
  font-size: 9px;
  line-height: 14px;
  pointer-events: none;
}

.pane-title { left: 9px; color: var(--cc-text); font-weight: 650; }
.pane-value { right: 9px; color: var(--cc-accent); font-weight: 650; }

.chart-host { position: absolute; inset: 23px 0 0 0; }

#performance { inset: 46px 0 0 0; }

#legend {
  position: absolute;
  z-index: 5;
  top: 23px;
  right: 8px;
  left: 9px;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.legend-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font: 650 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.legend-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.legend-symbol { color: var(--cc-text); }

@media (max-width: 350px) {
  .header-copy { width: 42%; }
  .market-control { width: 108px; }
  .range-control { width: 122px; }
}
