/* Student "My Progress" page. Everything is scoped under .mp */
.mp{--ink:#15201B;--muted:#4A5A52;--line:#E8ECE8;--ground:#F5F6F2;--accent:#0F6B5C;--warn:#B4540A;
    background:var(--ground);color:var(--ink);padding:32px 16px 56px}
.mp-wrap{max-width:1040px;margin:0 auto;display:flex;flex-direction:column;gap:24px}
.mp h1,.mp h2{margin:0;font-weight:700}
.mp-head{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:space-between}
.mp-hi{font-size:14px;color:var(--muted);font-weight:500}
.mp-title{font-size:38px;line-height:1.1;margin-top:2px!important}
.mp-chip{display:flex;align-items:baseline;gap:8px;background:var(--ink);color:var(--ground);border-radius:999px;padding:10px 20px;font-size:14px}
.mp-chip-n{font-size:28px;font-weight:700}
.mp-card{background:#fff;border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:20px}
.mp-card-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:baseline}
.mp-card-head.mp-col{flex-direction:column;gap:2px}
.mp-card h2{font-size:22px}
.mp-muted{font-size:13px;color:var(--muted)}
.mp-empty{margin:0;color:var(--muted)}
.mp-link{color:var(--accent);font-weight:600}
.mp-link:hover{color:#0A4F44}
.mp-subjects{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.mp-subject{display:flex;flex-direction:column;gap:8px}
.mp-subject-row{display:flex;justify-content:space-between;font-weight:600}
.mp-bar{height:12px;background:var(--line);border-radius:6px}
.mp-bar-fill{height:12px;background:var(--accent);border-radius:6px}
.mp-bar-fill.is-low{background:var(--warn)}
.mp-paper{display:flex;flex-wrap:wrap;gap:24px;align-items:center;border-top:1px solid var(--line);padding-top:16px}
.mp-paper-score{font-size:32px;font-weight:700}
.mp-paper-score span{font-size:16px;font-weight:500;color:var(--muted)}
.mp-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.mp-tile{padding:20px;gap:4px}
.mp-big{font-size:36px;font-weight:700;margin-top:4px}
.mp-big span{font-size:18px;font-weight:500;color:var(--muted)}
.mp-strip{display:flex;gap:6px;margin-top:6px}
.mp-strip span{width:20px;height:8px;border-radius:4px;background:var(--line)}
.mp-strip span.is-on{background:var(--accent)}
.mp-weak-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:14px 0;border-top:1px solid var(--line)}
.mp-weak-text{flex:1 1 220px;min-width:0}
.mp-weak-name{font-weight:600}
.mp-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:10px;background:var(--accent);color:#fff!important;font-weight:600;text-decoration:none}
.mp-btn:hover{background:#0A4F44}
.mp-foot{text-align:center;font-size:14px}

/* Embedded in the dashboard's Performance card */
.mp-embed{background:none;padding:0;gap:16px;display:flex;flex-direction:column;margin-top:12px}
.mp-embed .mp-paper{border-top:0;padding-top:0}
.mp-embed .mp-tile{background:var(--ground);border-radius:12px;padding:14px}
.mp-embed .mp-big{font-size:28px}
.mp-tiles-3{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.mp-deltas{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mp-delta{font-size:13px;font-weight:600;color:var(--accent);background:#E6F1EE;border-radius:999px;padding:3px 10px}
.mp-delta.is-down{color:var(--warn);background:#FBEBDD}
.mp-practise{margin-left:auto;font-size:13px;font-weight:600;color:var(--accent)}
.perf-grid-single{grid-template-columns:1fr!important}

/* Paper-score chart tooltip */
.mp-spark{position:relative;display:inline-block;max-width:100%}
.mp-pt{cursor:pointer;outline:none}
.mp-pt:focus-visible .mp-dot,.mp-pt.is-on .mp-dot{stroke-width:4}
.mp-tip{position:absolute;transform:translate(-50%,-100%);background:#15201B;color:#fff;font-size:12px;font-weight:600;line-height:1.3;padding:6px 10px;border-radius:8px;white-space:nowrap;pointer-events:none;z-index:5;box-shadow:0 6px 16px -6px rgba(0,0,0,.4)}
.mp-tip[hidden]{display:none}
.mp-tip::after{content:"";position:absolute;left:50%;top:100%;margin-left:-5px;border:5px solid transparent;border-top-color:#15201B}
