.daily-actions-chart { margin: 20px 0; padding: 22px; border: 1px solid var(--spark-line, #ded9d1); border-radius: 22px; background: var(--spark-surface, #fff); color: var(--spark-ink, #202124); }
.daily-actions-chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.daily-actions-chart-heading h3 { margin: 0; font-size: 20px; }
.daily-actions-chart-heading p { margin: 6px 0 0; color: var(--spark-muted, #666); font-size: 13px; }
.daily-actions-chart-heading label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.daily-actions-chart-heading select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--spark-line, #ded9d1); border-radius: 10px; background: var(--spark-surface, #fff); color: inherit; font: inherit; }
.daily-actions-chart-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.daily-actions-chart-totals span { display: block; font-size: 12px; color: var(--spark-muted, #666); }
.daily-actions-chart-totals strong { display: block; margin-top: 6px; font-size: 28px; }
.daily-actions-chart-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.daily-actions-chart-day { min-width: 0; text-align: center; font-size: 12px; }
.daily-actions-chart-value { display: block; font-weight: 700; font-size: clamp(9px, 2vw, 13px); overflow-wrap: anywhere; }
.daily-actions-chart-track { height: 132px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--spark-line, #ded9d1); margin: 8px 0; }
.daily-actions-chart-bar { width: 65%; max-width: 48px; background: #b8a5ce; border-radius: 7px 7px 0 0; }
.daily-actions-chart-day[data-selected] .daily-actions-chart-bar { background: #705387; }
.daily-actions-chart-day[data-selected] > span { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.daily-actions-chart-day small { display: block; margin-top: 4px; color: var(--spark-muted, #666); }
.daily-actions-chart-help { margin: 18px 0 0; font-size: 12px; color: var(--spark-muted, #666); line-height: 1.5; }
@media (max-width: 600px) { .daily-actions-chart { padding: 16px; } .daily-actions-chart-bars { gap: 4px; } .daily-actions-chart-totals strong { font-size: 24px; } }
/* A moving wash of color keeps the chart lively without competing with totals. */
.daily-actions-chart { position: relative; isolation: isolate; overflow: hidden; box-shadow: 0 10px 32px rgb(112 83 135 / 8%); }
.daily-actions-chart::before { content: ''; position: absolute; z-index: -1; inset: -45%; pointer-events: none; background: radial-gradient(ellipse at 24% 28%, rgb(193 156 239 / 24%), transparent 42%), radial-gradient(ellipse at 78% 65%, rgb(247 180 144 / 22%), transparent 40%), radial-gradient(ellipse at 48% 80%, rgb(133 210 206 / 16%), transparent 38%); animation: daily-actions-drift 18s ease-in-out infinite alternate; }
.daily-actions-chart-eyebrow { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--spark-muted, #675473); }
.daily-actions-chart-totals > div { padding: 14px; border: 1px solid rgb(151 121 173 / 18%); border-radius: 16px; background: color-mix(in srgb, var(--spark-surface, #fff) 70%, transparent); }
.daily-actions-chart-bar { background: linear-gradient(180deg, #c7abe7, #a78ac7); transition: height 550ms cubic-bezier(.22, 1, .36, 1); }
.daily-actions-chart-day[data-selected] .daily-actions-chart-bar { background: linear-gradient(180deg, #c086d6, #7955a6); box-shadow: 0 0 18px rgb(163 107 200 / 22%); }
.daily-actions-chart-encouragement { margin: 20px 0 0; font-size: 13px; font-weight: 600; }
.daily-actions-chart-help { margin-top: 8px; }
@keyframes daily-actions-drift { from { transform: translate(-3%, -2%) rotate(-6deg); } to { transform: translate(4%, 3%) rotate(9deg); } }
@media (prefers-reduced-motion: reduce) { .daily-actions-chart::before { animation: none; } .daily-actions-chart-bar { transition: none; } }

.spark-team-home .tsp-actions-body > .daily-actions-chart { order: 2; }
