   /* ====== Responsive my progress CSS ====== */
:root {
  --bg:#f7f9fc;
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#2563eb;
  --accent-2:#4f46e5;
  --success:#16a34a;
  --danger:#dc2626;
  --radius:10px;
  --shadow: 0 8px 24px rgba(31,41,55,0.06);
  --max-width:1100px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html,body{height:100%;margin:0;background:var(--bg);color:#0f172a}
.page-wrapper{max-width:var(--max-width);margin:28px auto;padding:20px}

/* ===== Top section ===== */
.top {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:18px;
}
.user-card {
  display:flex;
  gap:16px;
  align-items:center;
}
.avatar {
  height:64px;width:64px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--accent-2),var(--accent));
  color:white;display:grid;place-items:center;
  font-weight:700;font-size:20px;
  box-shadow:var(--shadow);
}
.user-name {font-size:1.25rem;font-weight:700;margin:0}
.user-sub {margin:0;color:var(--muted);font-size:0.95rem}
.controls {display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.btn {
  background:var(--accent);
  color:white;
  padding:8px 12px;
  border-radius:8px;
  text-decoration:none;
  border:0;
  cursor:pointer;
  font-weight:600;
  box-shadow:0 6px 18px rgba(37,99,235,0.12);
}
.btn--ghost {
  background:transparent;
  color:var(--accent-2);
  border:1px solid rgba(37,99,235,0.12);
  box-shadow:none;
}

/* ===== Card / sections ===== */
.card {
  background:var(--card);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  margin-bottom:16px;
}

/* Overview */
.overview h3{margin:0 0 12px 0;font-size:1.05rem}
.overview-stats {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.stat {
  flex:1 1 160px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  border-radius:10px;
  padding:12px;
  border:1px solid #eef2ff;
}
.stat .label{color:var(--muted);font-size:0.85rem;margin-bottom:6px;display:block}
.stat .value{font-weight:700;font-size:1.1rem}

.skill-list {
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.skill-pill {
  background:#eef2ff;
  color:var(--accent-2);
  padding:6px 10px;
  border-radius:999px;
  font-size:0.9rem;
  border:1px solid rgba(79,70,229,0.06);
}

/* Summary */
.summary-title{font-size:0.95rem;margin:0 0 10px 0}
.mini {display:flex;flex-direction:column;gap:10px}
.mini-row{display:flex;justify-content:space-between;color:var(--muted);font-size:0.95rem}

/* Table */
.table-wrap{overflow-x:auto;margin-top:12px}
table{
  width:100%;
  border-collapse:collapse;
  font-size:0.95rem;
  min-width:600px; /* prevent columns stacking */
}
thead th{
  text-align:left;
  font-size:0.85rem;
  color:var(--muted);
  padding:12px 10px;
  border-bottom:1px solid #eef2ff;
  background:linear-gradient(180deg,rgba(246,248,255,0.6),transparent);
  position:sticky;
  top:0;
  z-index:2;
  white-space:nowrap;
}
tbody td{
  padding:12px 10px;
  border-bottom:1px solid #f1f5f9;
  vertical-align:middle;
  white-space:nowrap; /* keep date/time in one line */
}
.chip {
  display:inline-block;
  padding:6px 8px;
  border-radius:8px;
  background:#f1f5f9;
  color:var(--muted);
  font-weight:600;
  font-size:0.85rem;
  border:1px solid rgba(15,23,42,0.03);
}

.loading { text-align:center;color:var(--muted);padding:18px }
.small { font-size:0.85rem;color:var(--muted) }

/* ===== Responsive adjustments ===== */
@media (max-width:640px){
  .avatar{height:56px;width:56px;font-size:18px}
  .stat{flex:1 1 48%}
  thead th, tbody td{padding:10px 8px}
}