/* BER IELTS — Tiến độ (progress.js) */
.pg{display:grid;gap:16px}
.pg-tabs{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:14px;background:var(--flesh-soft);justify-self:start}
.pg-tabs button{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:inherit;font-weight:800;cursor:pointer}
.pg-tabs button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.pg-tabs em{font-style:normal;font-size:12px;padding:1px 7px;border-radius:999px;background:var(--flesh);color:var(--skin)}
.pg-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pg-stats .panel{display:grid;gap:2px;padding:16px 18px}
.pg-stats small{color:var(--muted);font-weight:700;font-size:13px}
.pg-stats b{font-size:34px;font-weight:900;line-height:1.1;color:var(--ink);font-variant-numeric:tabular-nums}
.pg-stats em{font-style:normal;font-size:13px;font-weight:700;color:var(--muted)}
.pg-stats em.up{color:var(--ok)}.pg-stats em.down{color:var(--abs)}
.pg-card{display:grid;gap:12px}
.pg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pg-head h2{margin:0;font-size:18px}
.pg-legend{display:flex;gap:6px;flex-wrap:wrap}
.pg-legend button{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.pg-legend i{width:12px;height:12px;border-radius:50%;border:2px solid var(--c);background:transparent}
.pg-legend button.on{color:var(--ink);border-color:var(--c)}
.pg-legend button.on i{background:var(--c)}
.pg-chart{width:100%;height:auto;overflow:visible}
.pg-grid{stroke:var(--line);stroke-width:1}.pg-grid.major{stroke-width:1.3}
.pg-ax{fill:var(--muted);font-size:12px;font-weight:600}
.pg-line{fill:none;stroke:var(--c);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round;opacity:.85}
.pg-line.ov{stroke-width:3.5;opacity:1}
.pg-dot{fill:var(--surface);stroke:var(--c);stroke-width:2.2;cursor:pointer}
.pg-dot.ov{fill:var(--c)}
.pg-dot:hover{stroke-width:4}
.pg-goal{stroke:#E5482D;stroke-width:1.6;stroke-dasharray:6 5}
.pg-goal-t{fill:#E5482D;font-size:12px;font-weight:800}
.pg-weak{font-size:14px;color:var(--muted)}.pg-weak b{color:var(--abs)}
.pg-bars{display:grid;gap:10px}
.pg-bar{display:grid;grid-template-columns:44px minmax(0,1fr) 42px;align-items:center;gap:10px}
.pg-bar span{font-weight:800;font-size:14px}
.pg-bar div{height:12px;border-radius:999px;background:var(--flesh-soft);overflow:hidden}
.pg-bar i{display:block;height:100%;border-radius:inherit;background:var(--skin);transition:width .4s}
.pg-bar.weak i{background:#E5482D}.pg-bar.weak span{color:var(--abs)}
.pg-bar b{text-align:right;font-variant-numeric:tabular-nums}
.pg-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pg-list button{display:grid;grid-template-columns:60px minmax(0,1fr) auto;gap:14px;align-items:center;width:100%;padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.pg-list button:hover{border-color:var(--skin)}
.pg-band{display:grid;place-items:center;height:48px;border-radius:12px;background:var(--flesh-soft);font-size:22px;font-weight:900;color:var(--skin)}
.pg-mid{min-width:0}.pg-mid small{display:block;color:var(--muted);font-size:12.5px}
.pg-mid b{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pg-sc{display:flex;gap:6px}
.pg-sc i{display:grid;justify-items:center;min-width:40px;padding:3px 6px;border-radius:8px;background:var(--flesh-soft);font-style:normal;font-weight:800;font-size:14px}
.pg-sc small{font-size:10.5px;color:var(--muted)}
.pg-empty{display:grid;justify-items:center;gap:10px;padding:34px 20px;text-align:center}
.pg-empty h2{margin:0}.pg-empty p{margin:0;max-width:520px;color:var(--muted)}
.pg-modal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:16px;background:rgba(20,26,14,.5)}
.pg-mcard{position:relative;width:min(860px,100%);max-height:calc(calc(100dvh * var(--vz, 1)) - 32px);overflow:auto;padding:22px 24px;border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 24px 60px rgba(0,0,0,.3)}
.pg-x{position:absolute;top:12px;right:12px;width:34px;height:34px;border:0;border-radius:50%;background:var(--flesh-soft);color:var(--ink);cursor:pointer}
.pg-k{margin:0 0 4px;color:var(--muted);font-size:13px;font-weight:700}
.pg-mcard h2{margin:0 40px 12px 0;font-size:18px}
.pg-essay{margin:0 0 12px;padding:10px 14px;border:1px solid var(--line);border-radius:12px}
.pg-essay summary{cursor:pointer;font-weight:800}
.pg-essay p{margin:10px 0 0;line-height:1.6}
.pg-mact{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.pg-del.arm{color:#fff;background:var(--abs);border-color:var(--abs)}
@media (max-width:760px){
  .pg-stats{grid-template-columns:1fr 1fr}
  .pg-list button{grid-template-columns:52px minmax(0,1fr)}
  .pg-sc{grid-column:1/-1}
}
.pg-card{padding:18px 20px}.pg-empty{padding:34px 20px}@media (max-width:760px){.pg-card{padding:14px}}
@media (max-width:760px){.pg-ax{font-size:24px}.pg-goal-t{font-size:22px}.pg-line{stroke-width:4}.pg-line.ov{stroke-width:6}}
.pg-ax-n{fill:var(--ink);font-weight:800}.pg-ax-d{font-size:11px;opacity:.8}@media (max-width:760px){.pg-ax-d{font-size:20px}}
