/* Result report, shared by the student result page and the admin attempt view */
.report{display:grid;gap:16px;--rp-line:#D6DDE6;--rp-muted:#5A6676;--rp-soft:#F6F8FB;--rp-brand:#2A4C78;--rp-ok:#2C9244;--rp-bad:#C63A22;--rp-warn:#B86E00}
.rp-panel{background:#fff;border:1px solid var(--rp-line);border-radius:8px;padding:18px 20px}
.rp-panel h2{margin:0 0 12px;font-size:17px}
.rp-hero{display:grid;grid-template-columns:auto 1fr;gap:16px 34px;align-items:center}
.rp-score{font-size:58px;font-weight:700;line-height:1;color:var(--rp-brand)}
.rp-score small{font-size:22px;color:var(--rp-muted);font-weight:500}
.rp-cap{color:var(--rp-muted);font-size:14px;margin-top:6px}
.rp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}
.rp-stat{border-left:4px solid var(--rp-line);padding:2px 12px}
.rp-stat b{display:block;font-size:22px;line-height:1.3}
.rp-stat b small{font-size:14px;color:var(--rp-muted);font-weight:500}
.rp-stat span{font-size:13px;color:var(--rp-muted)}
.rp-stat.c{border-color:var(--rp-ok)}.rp-stat.w{border-color:var(--rp-bad)}.rp-stat.p{border-color:var(--rp-warn)}.rp-stat.t{border-color:var(--rp-brand)}
.rp-bars{display:grid;gap:10px;margin-bottom:14px}
.rp-bar-row{display:grid;grid-template-columns:120px 1fr 60px;gap:12px;align-items:center}
.rp-bar-row b{text-align:right}
.rp-bar{height:12px;background:#E6ECF4;border-radius:6px;overflow:hidden}
.rp-bar i{display:block;height:100%;background:var(--rp-brand);border-radius:6px}
.rp-tblwrap{overflow-x:auto}
.rp-tbl{width:100%;border-collapse:collapse;font-size:14px}
.rp-tbl th,.rp-tbl td{border-bottom:1px solid var(--rp-line);padding:8px 10px;text-align:center;white-space:nowrap}
.rp-tbl th{background:var(--rp-soft);color:var(--rp-muted);font-weight:600}
.rp-tbl td:first-child,.rp-tbl th:first-child{text-align:left}
.rp-insights{margin:0;padding-left:20px}.rp-insights li{margin:6px 0;max-width:80ch}
.rp-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.rp-chip{font:inherit;font-size:14px;border:1px solid var(--rp-line);background:var(--rp-soft);border-radius:16px;padding:4px 12px;cursor:pointer;color:inherit}
.rp-chip[aria-pressed="true"]{background:var(--rp-brand);border-color:var(--rp-brand);color:#fff}
.rp-sec{margin:18px 0 0;font-size:16px;color:var(--rp-brand)}
.rp-q{border:1px solid var(--rp-line);border-radius:8px;padding:12px 14px;margin-top:10px;display:grid;gap:8px}
.rp-q-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rp-muted{color:var(--rp-muted);font-size:13px}
.rp-tag{margin-left:auto;font-size:12px;font-weight:600;padding:2px 10px;border-radius:12px;color:#fff}
.rp-tag.correct{background:var(--rp-ok)}.rp-tag.wrong{background:var(--rp-bad)}.rp-tag.partial{background:var(--rp-warn)}.rp-tag.skip{background:#E2E6EC;color:#323C4A}
.rp-qtext{font-family:"Noto Serif",Georgia,serif;font-size:15.5px;line-height:1.7;overflow-x:auto}
.rp-qtext img,.rp-opts img,.rp-sol img{max-width:100%;height:auto}
.rp-opts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;font-family:"Noto Serif",Georgia,serif;font-size:15px}
.rp-opts li{display:flex;gap:8px;padding:4px 8px;border-radius:6px;border:1px solid transparent}
.rp-opts .k{font-family:Hind,sans-serif;font-weight:600;color:var(--rp-muted)}
.rp-opts li.key{background:#E3F3E7;border-color:#B9E0C2}
.rp-opts li.mine:not(.key){background:#FCEDEA;border-color:#F0C2B8}
.rp-opts li.mine::after{content:"Your answer";margin-left:auto;font-family:Hind,sans-serif;font-size:12px;color:var(--rp-muted)}
.rp-ans{font-size:14px;color:var(--rp-muted);display:flex;gap:6px 18px;flex-wrap:wrap}
.rp-ans b{color:#1A2330}
.rp-sol summary{cursor:pointer;color:#2462A6;font-size:14px}
.rp-sol>div{font-family:"Noto Serif",Georgia,serif;font-size:15px;line-height:1.7;padding:6px 0 0}
@media (max-width:700px){.rp-hero{grid-template-columns:1fr}.rp-opts{grid-template-columns:1fr}.rp-bar-row{grid-template-columns:90px 1fr 50px}.rp-score{font-size:46px}}
table.qtbl{border-collapse:collapse;margin:6px 0}table.qtbl td{border:1px solid #9aa6b5;padding:3px 10px}
.qtext img,.rp-qtext img,.paper-q img,.rp-opts img{max-width:100%;height:auto;vertical-align:middle}
/* performance analysis */
.an h3{font-size:15px;margin:16px 0 8px;color:#33415c}
.an-tips{list-style:none;padding:0;margin:0 0 6px;display:grid;gap:8px}
.an-tips li{padding:10px 12px 10px 14px;border-radius:8px;border-left:4px solid #8fa3bf;background:#f3f6fa;font-size:15px;line-height:1.45}
.an-tips li.good{border-color:#2e8b4a;background:#eef8f1}
.an-tips li.warn{border-color:#d08a00;background:#fff7e6}
.an-tips li.bad{border-color:#c0392b;background:#fdeeec}
.an-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.an-tbl td,.an-tbl th{padding:6px 8px}
.an-acc-cell{white-space:nowrap;min-width:150px}
.an-acc{display:inline-block;width:90px;height:8px;background:#e7ebf1;border-radius:4px;overflow:hidden;vertical-align:middle;margin-right:8px}
.an-acc i{display:block;height:100%;border-radius:4px}
.an-acc i.g{background:#2e8b4a}.an-acc i.y{background:#d9a21b}.an-acc i.r{background:#c0392b}
.an-trend{width:100%;max-width:720px;height:auto;display:block;margin:4px 0 8px}
.an-trend .grid{stroke:#e2e7ee;stroke-width:1}
.an-trend .lab{font-size:11px;fill:#7a8699}
.an-trend .line{fill:none;stroke:#1d4e89;stroke-width:2.5}
.an-trend .dot{fill:#1d4e89}
.an-trend .val{font-size:11px;fill:#1d2733;font-weight:600}
.an-hist{display:flex;align-items:flex-end;gap:6px;height:180px;padding-top:18px}
.an-hist .col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}
.an-hist .col i{display:block;width:100%;background:#4f7cb8;border-radius:4px 4px 0 0;min-height:1px}
.an-hist .v{font-size:12px;font-weight:600}
.an-hist .l{font-size:11px;color:#7a8699;white-space:nowrap}
.an-alert{border:1px solid #f0c2b8;background:#fff6f4}
.an-alert li{margin:4px 0}
tr.flag td{background:#fff3f0}
tr.flag-on td{background:#eef4fb}
.an-ai{margin-top:18px;border-top:1px solid #e2e7ee;padding-top:12px}
.an-ai-text h4{margin:12px 0 4px;font-size:15px;color:#1d4e89}
.an-ai-text ul{margin:0;padding-left:20px}
.an-ai-text li{margin:3px 0;line-height:1.45}
