/* Chart toolbar — indicators + legend (CF1 port) */
.cf2-chart-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.chart-indicators-wrap { position: relative; }
.chart-indicators-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border, #1f2a37);
  background: var(--surface2, #141c28);
  color: var(--text, #e5e7eb);
  cursor: pointer;
}
.chart-indicators-btn[aria-expanded="true"] {
  border-color: rgba(52,211,153,0.45);
  color: #6ee7b7;
}
.chart-indicators-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: min(280px, 90vw);
  padding: 12px;
  border-radius: 10px;
  background: #0f1419;
  border: 1px solid #2a3749;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.chart-indicators-panel.is-open { display: block; }
.chart-indicators-panel-head { font-size: 12px; font-weight: 800; color: #e5e7eb; margin-bottom: 4px; }
.chart-indicators-panel-note { font-size: 11px; color: #64748b; margin: 0 0 10px; }
.chart-indicators-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.chart-indicators-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cbd5e1; cursor: pointer; }
.chart-indicators-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.chart-indicators-label { flex: 1; }
.chart-indicators-tag { font-size: 9px; color: #64748b; }
.chart-indicators-reset {
  width: 100%;
  padding: 6px;
  font-size: 11px;
  color: #94a3b8;
  background: #0d131f;
  border: 1px solid #1f2a37;
  border-radius: 8px;
  cursor: pointer;
}
#chart-legend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted, #64748b);
  margin-left: auto;
}
.chart-legend-item { white-space: nowrap; }

.cf2-chart-pane.scorecard-chart--unified,
.cf2-tsc-chart.scorecard-chart--unified {
  position: relative;
  padding: 0;
  display: block;
  overflow: hidden;
}
.chart-stack {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 280px;
}
.chart-stack--single {
  min-height: 280px;
}
.chart-stack-pane {
  position: relative;
  min-height: 36px;
  overflow: hidden;
  border-top: 1px solid #1f2a37;
}
.chart-stack-pane--main {
  border-top: none;
  min-height: 140px;
}
.chart-stack-pane--main .chart-lwc-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.chart-stack-pane .chart-lwc-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.chart-cycle-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.chart-cycle-band {
  position: absolute;
  top: 0;
  bottom: 0;
}
.chart-cycle-band--dcl {
  background: rgba(74, 222, 128, 0.18);
  border-left: 1px solid rgba(74, 222, 128, 0.42);
  border-right: 1px solid rgba(74, 222, 128, 0.42);
  box-shadow: inset 0 0 24px rgba(74, 222, 128, 0.08);
}
.chart-cycle-band--wcl {
  background: rgba(56, 189, 248, 0.14);
  border-left: 1px solid rgba(56, 189, 248, 0.38);
  border-right: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow: inset 0 0 24px rgba(56, 189, 248, 0.06);
}
.chart-cycle-tag {
  position: absolute;
  top: 4px;
  z-index: 3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
  pointer-events: none;
}
.chart-cycle-tag--dcl {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.18);
}
.chart-cycle-tag--wcl {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.16);
}
.scorecard-chart--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-empty-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted, #64748b);
  font-size: 12px;
}

.daydesk-live-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52,211,153,0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52,211,153,0.35);
  margin-left: 8px;
  vertical-align: middle;
}
.daydesk-mock-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(251,191,36,0.12);
  color: #fcd34d;
  margin-left: 6px;
}
