/* dashboard — AI feature styles */

/* ===== Hero — the one place on the app with a real display size ===== */
.dash-hero { margin: 0 0 26px; }
.dash-greet {
  font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0; color: var(--text); }
.dash-date {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 13.5px; margin: 8px 0 0; }
.dash-clock {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  background: var(--bg-elev-2); border: 1px solid var(--border-soft);
  border-radius: 6px; padding: 2px 7px; }
.dash-sub { color: var(--text-faint); font-size: 12.5px; }
@media (max-width: 760px) {
  .dash-greet { font-size: 28px; }
  .dash-hero { margin-bottom: 18px; }
}

/* Daily briefing section — mostly reuses shared .ai-card / .ai-tag / .ai-loading */
.briefing-body { margin-top: 2px; }

/* keep the AI pill visually separated from the title text */
.section-title .ai-tag { margin-left: 4px; }

/* ===== Today progress ring ===== */
.today-progress { display: flex; align-items: center; gap: 14px; padding: 2px 0 8px; }
.today-progress .ring { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.today-progress .ring svg { display: block; width: 100%; height: 100%; }
.today-progress .ring-pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; }
.today-progress .ring-stats { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ===== Time-of-day buckets ===== */
.tod-buckets { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.tod-bucket { margin-bottom: 6px; }
.tod-bucket:last-child { margin-bottom: 0; }
.tod-label { font-size: 10.5px; font-weight: 700; color: var(--text-faint); padding: 2px 4px; }
.tod-row {
  display: flex; align-items: center; gap: 8px; padding: 4px 6px;
  border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--text); }
.tod-row:hover { background: var(--bg-elev-2); }
.tod-time { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--accent); flex-shrink: 0; }
.tod-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Plan my day (AI brain dump) ===== */
.plan-dump { width: 100%; }
.plan-dump::placeholder { color: var(--text-faint); }

/* ===== Weekly review ===== */
.section-title .rv-chip { margin-left: 2px; font-weight: 500; }
.rv-nudge { color: var(--text-dim); font-size: 12.5px; }
.rv-step-label { font-size: 10.5px; font-weight: 700; color: var(--text-faint); margin-bottom: 4px; }
.rv-step-title { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.rv-controls { margin-top: 12px; }

/* step 1 — wins */
.rv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rv-stat {
  background: var(--bg-elev-2); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 12px 14px; }
.rv-num { font-family: var(--mono); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rv-stat-label { font-size: 11.5px; font-weight: 500; color: var(--text-dim); margin-top: 3px; }
.rv-note { color: var(--text-faint); font-size: 12.5px; line-height: 1.55; margin-top: 10px; }

/* step 2 — overdue triage */
.rv-triage { display: flex; flex-direction: column; gap: 6px; }
.rv-tri-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  background: var(--bg-elev-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.rv-tri-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.rv-tri-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rv-drop { color: var(--danger); }
.rv-drop:hover { border-color: var(--danger); }

/* step 3 — reflection */
.rv-ta { width: 100%; margin-bottom: 8px; resize: vertical; }
.rv-ta::placeholder { color: var(--text-faint); }
.rv-wizard .ai-card { margin-top: 4px; }

/* past reviews (collapsed state) */
.rv-past { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.rv-past-title { font-size: 10.5px; font-weight: 700; color: var(--text-faint); padding: 2px 4px; margin-bottom: 4px; }
.rv-past-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.rv-past-row:hover { background: var(--bg-elev-2); }
.rv-week { font-weight: 600; flex-shrink: 0; }
.rv-meta { color: var(--text-dim); font-size: 12px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.rv-focus-line { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); font-size: 12.5px; }
.rv-past-detail {
  margin: 2px 4px 10px; padding: 10px 12px; font-size: 13px;
  background: var(--bg-elev-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.rv-detail-stats { color: var(--text-dim); font-size: 12px; margin-bottom: 8px; }
.rv-detail-block { margin-bottom: 8px; white-space: pre-wrap; }
.rv-detail-block:last-child { margin-bottom: 0; }
.rv-detail-label { font-size: 10.5px; font-weight: 700; color: var(--text-faint); margin-bottom: 2px; }

@media (max-width: 760px) {
  .today-progress { gap: 12px; }
  .today-progress .ring { width: 60px; height: 60px; }
  .today-progress .ring-pct { font-size: 12.5px; }
  .today-progress .ring-stats { font-size: 12.5px; }
  .rv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-tri-row { flex-wrap: wrap; }
  .rv-tri-text { flex-basis: 100%; white-space: normal; }
  .rv-tri-actions { margin-left: auto; }
  .rv-past-row { flex-wrap: wrap; row-gap: 2px; }
  .rv-focus-line { flex-basis: 100%; }
}


.today-progress .ring-stats { display: flex; flex-direction: column; gap: 1px; }
.ring-done { font-weight: 500; color: var(--text); }
.ring-left { color: var(--text-faint); font-size: 12.5px; }
