/* Dashboard (pages/dashboard.templ). The now strip lives in components.css. */
/* ---------- pages/dashboard.templ ---------- */
.kw-dashboard-empty { padding-top: var(--space-md); padding-bottom: var(--space-md); text-align: center; font-size: var(--text-body-md); line-height: 1.25rem; color: var(--fg-muted); }
.kw-dashboard-head-actions { display: flex; align-items: center; gap: var(--space-xs); }
/* minmax(0,…) rather than a bare fr: an fr track's minimum is auto, so the
   nowrap description line inside a card pushed the whole column past its share
   and the page grew a horizontal scrollbar (#735). */
.kw-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: var(--space-md); align-items: flex-start; }
.kw-dashboard-tasks-card { padding: 0; }
.kw-dashboard-tasks-head { padding: 14px var(--space-md) var(--space-xs); margin-bottom: 0; }
.kw-dashboard-tasks { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-height: 360px; overflow-y: auto; padding: 0 var(--space-sm) var(--space-sm); }
.kw-dashboard-side { display: flex; flex-direction: column; gap: var(--space-sm); }
.kw-dashboard-activity-head { margin-bottom: 10px; }
.kw-dashboard-session-filters { display: flex; align-items: center; gap: var(--space-xs); }
.kw-dashboard-open-log { margin-left: var(--space-xxs); }
.kw-dashboard-goal-cta { font-size: 13px; }

.kw-week-chart-bars { display: flex; align-items: flex-end; justify-content: space-between; height: 70px; margin-bottom: var(--space-xxs); }
.kw-week-chart-labels { display: flex; justify-content: space-between; font-size: var(--text-eyebrow); font-weight: var(--weight-semibold); }

.kw-activity-bar { display: flex; height: 8px; margin-bottom: var(--space-sm); overflow: hidden; border-radius: var(--radius-xs); }
.kw-activity-legend { display: grid; grid-template-columns: 1fr 1fr; row-gap: 6px; column-gap: var(--space-sm); font-size: var(--text-body-sm); }
.kw-activity-legend-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; }
.kw-activity-legend-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.kw-activity-legend-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-activity-legend-value { color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* Day strip: dashboard Today/Week/Month and the Log day view (#1386). A
   labelled period puts the day label in a fixed first column, and the axis row
   gets an empty one, so every row shares one hour scale. */
.kw-day-strips { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--space-xs); }
.kw-day-strip { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.kw-day-strips--labelled .kw-day-strip { grid-template-columns: 48px minmax(0, 1fr); }
.kw-day-strips--labelled.kw-day-strips--compact { gap: 2px; }
.kw-day-strips--labelled.kw-day-strips--compact .kw-day-strip { grid-template-columns: 24px minmax(0, 1fr); }
.kw-day-strip-label { font-size: var(--text-eyebrow); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.kw-day-strips--compact .kw-day-strip-label { font-size: 9px; line-height: 1; }
.kw-day-strip--future { opacity: .4; }
.kw-day-chart-track { position: relative; height: 40px; }
.kw-day-strips--compact .kw-day-chart-track { height: 9px; }
.kw-day-chart-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--divider); }
.kw-day-chart-block { position: absolute; top: 10px; bottom: 10px; border-radius: 4px; opacity: .85; }
.kw-day-strips--compact .kw-day-chart-block { top: 1px; bottom: 1px; border-radius: 2px; }
.kw-day-chart-block:hover, .kw-day-chart-block:focus-visible { opacity: 1; z-index: 2; }
.kw-day-chart-block:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.kw-day-chart-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--orange); pointer-events: none; }
.kw-day-chart-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 0; width: max-content; max-width: min(240px, 45vw); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--divider); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-lg); color: var(--fg); font-size: var(--text-body-sm); line-height: 1rem; pointer-events: none; }
.kw-day-chart-tip--end { left: auto; right: 0; }
.kw-day-chart-block:hover .kw-day-chart-tip, .kw-day-chart-block:focus-visible .kw-day-chart-tip { display: block; }
.kw-day-chart-tip-head { display: flex; align-items: center; gap: var(--space-xs); font-weight: 600; }
.kw-day-chart-tip-task, .kw-day-chart-tip-time { display: block; margin-top: var(--space-xxxs); color: var(--fg-muted); overflow-wrap: anywhere; }
.kw-day-chart-tip-time { font-variant-numeric: tabular-nums; }
.kw-day-chart-labels { display: flex; margin-top: var(--space-xxs); justify-content: space-between; font-size: var(--text-eyebrow); color: var(--fg-muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.kw-day-chart-empty { padding: var(--space-xs) 0 0; text-align: center; font-size: 13px; color: var(--fg-muted); }
