/* #region zone:desk.fundamentals.kpi-style — แถบค่าสำคัญสี่ช่อง */
.fund-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 10px;
}
.fund-kpi {
  background: var(--chart-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--sp-3) 14px;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.fund-kpi-label {
  font-size: var(--u-text-xs);
  color: var(--muted);
}
.fund-kpi-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.fund-kpi-delta {
  overflow-wrap: anywhere;
  font-family: var(--font-sans);
  font-size: var(--u-text-xs);
  color: var(--muted);
}
.fund-spark {
  position: relative;
  margin-top: 6px;
  color: var(--muted);
}
.fund-spark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.fund-spark-line,
.fund-spark-gap {
  fill: none;
  stroke: var(--spark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.fund-spark-gap {
  stroke-dasharray: 3 4;
  opacity: 0.7;
}
.fund-spark-base,
.fund-spark-zero {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.fund-spark-zero {
  stroke: var(--muted);
  stroke-dasharray: 2 3;
  opacity: 0.6;
}
.fund-spark-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  cursor: help;
}
.fund-spark-dot::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 0 2px var(--chart-bg);
}
.fund-spark-dot.is-latest::before {
  inset: 4px;
}
.fund-spark-dot.is-missing::before {
  background: var(--chart-bg);
  border: 1.5px solid var(--spark);
  box-shadow: none;
}
.fund-spark-dot:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: -2px;
}
.fund-spark-value {
  position: absolute;
  transform: translate(-100%, -170%);
  font-family: var(--font-mono);
  font-size: var(--u-text-xs);
  font-weight: 600;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}
.fund-spark-axis {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: 2px;
  font-size: var(--u-text-xs);
  color: var(--muted);
}
.fund-kpi-reading {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: var(--sp-1);
}

/* #endregion */
