/* dashboard.css — dashboard view */

/* Donut centre text: SVG <text> defaults to a BLACK fill, which is
 * unreadable on the dark theme (2026-11-12 phone bug: "৪০% নির্ভুলতা"
 * invisible inside the circle). */
.chart-donut .chart-num { fill: var(--ink); font-size: 24px; font-weight: 800; }
.chart-donut .chart-cap { fill: var(--muted); font-size: 12px; }
.dash-hero {
  background: linear-gradient(135deg, var(--bg2), rgba(245, 158, 11, .12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.dash-hero h1 { font-size: 1.4rem; margin-bottom: 4px; }
.dash-hero p { color: var(--muted); margin-bottom: 14px; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.dash-grid { display: grid; gap: 14px; }
.dash-section { margin-top: 4px; }
.dash-section > h2 { font-size: 1.08rem; margin-bottom: 10px; }

.resume-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.resume-card .resume-row { display: flex; gap: 10px; flex-wrap: wrap; }

.subject-bar { margin-bottom: 12px; }
.subject-bar .subject-bar-head { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.subject-bar .subject-bar-head span:last-child { color: var(--muted); font-weight: 400; }

.attempt-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.attempt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
}
.attempt-item .attempt-main { flex: 1; min-width: 0; }
.attempt-item .attempt-title { font-weight: 700; overflow-wrap: break-word; }
.attempt-item .attempt-meta { font-size: .84rem; color: var(--muted); }
.attempt-item .attempt-score { font-weight: 800; color: var(--gold); white-space: nowrap; }
