/* ── TODAY (dashboard) ──────────────────────────────────── */
.today-hero { padding: 0; }
.next-class-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: left;
  box-shadow: var(--shadow-card);
}
.next-class-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.next-class-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-class-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); }
.next-class-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.next-class-meta { font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-class-countdown {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 11px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.mini-agenda { display: flex; flex-direction: column; gap: 6px; }
.mini-agenda-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: left;
  font-size: 12.5px;
}
.mini-agenda-time { font-family: var(--font-display); font-weight: 600; color: var(--text-secondary); flex-shrink: 0; width: 44px; }
.mini-agenda-title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-agenda-sub { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

.today-suggestion {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}

/* A plain fact (free time between classes), not a suggestion — kept
   visually quieter than .today-suggestion so the two aren't confused. */
.free-period-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
}
.free-period-note .icon { color: var(--text-muted); flex-shrink: 0; }

/* ── TIMETABLE (week strip / month grid + day agenda) ────── */
.timetable-mode-toggle { margin-bottom: 12px; }
.week-nav { display: flex; align-items: center; gap: 6px; }
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
}
.week-day.is-today .week-day-num { color: var(--accent); }
.week-day.selected { background: var(--text-primary); color: var(--bg); }
.week-day.selected .week-day-num, .week-day.selected.is-today .week-day-num { color: var(--bg); }
.week-day-name { font-size: 9.5px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; opacity: 0.7; }
.week-day-num { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.week-day-preview { font-size: 9px; font-weight: 600; min-height: 11px; display: flex; align-items: center; gap: 2px; opacity: 0.8; }

.month-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.month-weekday-row span {
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.month-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-secondary);
}
.month-cell.outside-month { opacity: 0.35; }
.month-cell.is-today .month-cell-num { color: var(--accent); }
.month-cell.selected { background: var(--text-primary); color: var(--bg); }
.month-cell.selected .month-cell-num, .month-cell.selected.is-today .month-cell-num { color: var(--bg); }
.month-cell-num { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; }
.month-cell-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.month-cell.selected .month-cell-dot { background: var(--bg); }

.agenda-list { display: flex; flex-direction: column; gap: 6px; }

/* ── ANALYTICS ──────────────────────────────────────────── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}
.stat-unit { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-caption { font-size: 10.5px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.2px; }

/* ── FOCUS ──────────────────────────────────────────────── */
.focus-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 6px 4px 4px;
}
.subject-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
}
.focus-ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s ease;
}
.focus-ring.is-break { background: var(--success-soft); }
.focus-phase { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-muted); }
.focus-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 1px;
}
.focus-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.focus-history { display: flex; flex-direction: column; gap: 6px; }
.focus-history-row {
  display: flex;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 12.5px;
}
.focus-history-row.incomplete { opacity: 0.55; }

/* ── ANALYTICS ──────────────────────────────────────────── */
.range-toggle { display: flex; gap: 6px; }
.perf-list { display: flex; flex-direction: column; gap: 16px; }
.perf-header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.perf-pct { margin-left: auto; color: var(--text-muted); font-weight: 700; font-size: 12.5px; }
.perf-bar-track {
  height: 5px;
  background: var(--surface-2);
  border-radius: 3px;
  margin: 8px 0 6px;
  overflow: hidden;
}
.perf-bar-fill { height: 100%; border-radius: 3px; }
.perf-meta { font-size: 11px; color: var(--text-muted); }

.weak-list { display: flex; flex-direction: column; gap: 6px; }
.weak-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 12px;
  color: var(--text-secondary);
}
.weak-row .icon { color: var(--danger); flex-shrink: 0; margin-top: 2px; }
.weak-row strong { display: block; font-size: 13px; color: var(--text-primary); margin-bottom: 1px; }
