/* Overview: the landing dashboard. */
.overview { display: flex; flex-direction: column; gap: 16px; padding-top: 14px; max-width: 1320px; }

.ov-hero {
  display: flex; align-items: center; gap: 24px; padding: 24px 28px; border-radius: var(--r-xl); border: 0;
  background: var(--accent-soft);
}
.ov-hero h2 { font: 400 32px/1.25 var(--font-display); margin: 0 0 4px; letter-spacing: 0; color: var(--text); }
.ov-hero p { margin: 0 0 14px; }
.ov-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-actions button:not(.primary) { background: var(--surface); border-color: transparent; }
.ov-actions button:not(.primary):hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.ov-ring { position: relative; width: 112px; height: 112px; flex: none; display: grid; place-items: center; color: inherit; text-decoration: none; }
/* The ring and its label share one grid cell, so the label sits in the exact centre. */
.ov-ring > * { grid-area: 1 / 1; }
.ov-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ov-ring circle { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.ov-ring .ring-bg { stroke: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.ov-ring .ring-fg { stroke: var(--ok); transition: stroke-dasharray .6s var(--ease); }
.ov-ring-label { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ov-ring-label strong { font: 500 24px/1 var(--font-display); }
.ov-ring-label small { font-size: 11px; color: var(--muted); margin-top: 3px; }

.ov-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ov-stat {
  --t: var(--accent);
  display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface);
  color: inherit; text-decoration: none; transition: border-color .15s, background .15s; min-width: 0;
}
a.ov-stat:hover { background: color-mix(in srgb, var(--text) 4%, var(--surface)); text-decoration: none; }
.ov-stat.tone-blue { --t: var(--c-blue); } .ov-stat.tone-red { --t: var(--bad); } .ov-stat.tone-green { --t: var(--ok); }
.ov-stat.tone-amber { --t: var(--c-amber); } .ov-stat.tone-teal { --t: var(--c-teal); } .ov-stat.tone-accent { --t: var(--accent); }
.ov-stat-head { display: flex; align-items: center; gap: 8px; }
.ov-stat-icon { width: 32px; height: 32px; border-radius: var(--r-full); display: grid; place-items: center; background: color-mix(in srgb, var(--t) 16%, transparent); color: var(--t); flex: none; }
.ov-stat-label { font-size: 13px; color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-stat-value { font: 400 32px/1.15 var(--font-display); letter-spacing: 0; }
.ov-stat-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ov-stat-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-spark { width: 72px; height: 26px; color: var(--t); flex: none; opacity: .9; margin-bottom: 4px; }
.ov-spark svg { width: 100%; height: 100%; display: block; }

.ov-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.ov-card { grid-column: span 4; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ov-card.span-8 { grid-column: span 8; }
.ov-card.span-12 { grid-column: span 12; }
.ov-card-head { display: flex; align-items: center; gap: 8px; }
.ov-card-head h3 { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; margin: 0; }
.ov-card-head h3 .icon { color: var(--muted); }
.ov-card .donut svg { width: 118px; height: 118px; }
.ov-card .heatmap { overflow-x: auto; }
.ov-card .brain-card { border: 0; border-radius: var(--r); }

.ov-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 150px; }
.ov-day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; border-radius: 10px; color: inherit; text-decoration: none; }
.ov-day:hover { background: var(--surface-2); text-decoration: none; }
.ov-day.today { background: var(--accent-soft); }
.ov-day-name { font-size: 11px; color: var(--muted); font-weight: 600; }
.ov-day.today .ov-day-name { color: var(--accent-text); }
.ov-day-bar { flex: 1; width: 14px; border-radius: 7px; background: var(--surface-2); display: flex; align-items: flex-end; overflow: hidden; }
.ov-day-bar i { display: block; width: 100%; border-radius: 7px; background: var(--accent); transition: height .4s var(--ease); }
.ov-day strong { font-size: 13px; font-variant-numeric: tabular-nums; }

.ov-brief-wrap { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ov-brief { font-size: 13.5px; max-height: 220px; overflow: auto; }
.ov-brief-card { background: var(--surface); }
.ov-note-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--n-c, var(--surface-3)); border: 1px solid var(--border-strong); }
.overview .small.bad { color: var(--bad); }

@media (max-width: 1450px) {
  .ov-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .ov-card, .ov-card.span-8 { grid-column: span 6; }
}
@media (max-width: 760px) {
  .ov-hero { flex-direction: column-reverse; align-items: flex-start; padding: 18px; }
  .ov-ring { width: 88px; height: 88px; }
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-card, .ov-card.span-8 { grid-column: span 12; }
}
