/* Shared session trend chart (Session Complete + Dashboard) */

.session-trend-panel {
  margin-bottom: 16px;
  padding: 12px 14px 10px;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md);
}

.session-trend-panel[hidden] {
  display: none !important;
}

.session-trend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.session-trend-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.session-trend-mode {
  display: inline-flex;
  flex-shrink: 0;
  padding: 2px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  background: var(--surface-2, #f8fafc);
}

.session-trend-mode-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.session-trend-mode-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.session-trend-mode-option input:focus {
  outline: none;
}

.session-trend-mode-option span {
  display: block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-secondary);
}

.session-trend-mode-option:has(input:checked) span {
  background: var(--accent);
  color: #fff;
}

.session-trend-mode-option:focus-within span {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.session-trend-chart {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.session-trend-svg {
  display: block;
  overflow: visible;
}

.session-trend-plot-bg {
  fill: var(--accent-light, #e8f1fb);
  stroke: rgba(30, 110, 181, 0.18);
  stroke-width: 1;
}

.session-trend-grid {
  stroke: rgba(30, 110, 181, 0.22);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.session-trend-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.session-trend-target {
  stroke: var(--text-muted, #94a3b8);
  stroke-width: 1.25;
  stroke-dasharray: 4 3;
}

.session-trend-target-label {
  font-size: 8px;
  font-family: inherit;
  font-weight: 700;
  fill: var(--text-muted, #94a3b8);
}

.session-trend-dot {
  fill: var(--accent);
  stroke: var(--surface, #fff);
  stroke-width: 1.5;
}

.session-trend-axis {
  font-size: 9px;
  font-family: inherit;
  fill: var(--text-muted);
}

.session-trend-xlabel {
  font-size: 9px;
  font-family: inherit;
  fill: var(--text-muted);
}

.session-trend-axis-hints {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.session-trend-empty-hint {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.session-trend-empty-msg {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}
