.scp{color:#123753;font-size:14px;line-height:1.65;min-width:0}.scp *{box-sizing:border-box}.scp h2,.scp h3,.scp h4,.scp p{margin:0}.scp h3{font-size:17px}.scp button,.scp select,.scp input{font:inherit}.scp button{cursor:pointer;color:#1260ad;border:1px solid #cbddee;background:white;border-radius:7px;padding:7px 12px}.scp button:hover{background:#edf5ff}.scp button:focus-visible,.scp select:focus-visible,.scp input:focus-visible,.scp-table:focus-visible{outline:3px solid #85bcfb;outline-offset:2px}.scp select,.scp input{border:1px solid #d4e1ef;border-radius:7px;padding:8px 11px;color:#123753;background:white;max-width:100%}.scp-primary{background:#1670ed!important;color:#fff!important;border-color:#1670ed!important}.scp-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.scp-controls label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#5d7390;max-width:100%}.scp-controls select{min-width:190px}.scp-search{margin-left:auto}.scp-controls .scp-search input{min-width:240px}.scp-card,.scp-metrics article{background:white;border:1px solid #dfe9f4;border-radius:12px;padding:20px;min-width:0;box-shadow:0 5px 18px #173b6410}.scp-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.scp-course h3{margin:10px 0 4px;font-size:20px}.scp-course p,.scp-note{font-size:12px;color:#667e99;line-height:1.7}.scp-eyebrow{color:#1670ed;font-size:12px}.scp-course-numbers{display:flex;gap:14px;justify-content:space-between;margin:22px 0}.scp-course-numbers strong{font-size:24px;display:block}.scp-course-numbers span{font-size:12px;color:#667e99}.scp-course>button{margin-top:16px;width:100%;display:flex;justify-content:space-between}.scp progress{display:block;width:100%;height:7px;border:0;border-radius:9px;overflow:hidden;background:#eaf1f8}.scp progress::-webkit-progress-bar{background:#eaf1f8}.scp progress::-webkit-progress-value{background:#2685fa}.scp-hero{background:linear-gradient(115deg,#073461,#0c62b2);color:white;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;margin-bottom:16px}.scp-hero span,.scp-hero p{font-size:12px;opacity:.9}.scp-hero h2{font-size:25px;margin:5px 0}.scp-hero-progress{text-align:right}.scp-hero-progress strong{display:block;font-size:36px}.scp-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}.scp-metrics article>span{font-size:13px;color:#476482}.scp-metrics strong{display:block;font-size:33px;line-height:1.35;margin:7px 0}.scp-metrics strong small{font-size:15px;font-weight:400;color:#6d84a1}.scp-metrics p{font-size:11px;color:#6d84a1;min-height:22px}.scp-metrics progress{margin-top:9px}.scp-amber strong{color:#df780b}.scp-main-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px;margin-bottom:18px}.scp-secondary-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.scp-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.scp-card-head>span{color:#748aa3;font-size:11px}.scp-legend{display:flex;align-items:center;gap:7px}.scp-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2879f5}.scp-legend i.cohort{background:#26b5c8;margin-left:8px}.scp-chart{display:block;width:100%;min-width:390px;height:auto;margin:12px 0}.scp-chart text{font-size:11px;fill:#7186a0}.scp-chart-scroll{overflow-x:auto}.scp-bar{display:grid;grid-template-columns:minmax(75px,1fr) minmax(50px,2fr) 48px;align-items:center;gap:10px;margin:13px 0 4px;font-size:13px}.scp-bar>span{overflow-wrap:anywhere}.scp-bar i{height:9px;border-radius:10px;background:#e9eff6;overflow:hidden}.scp-bar b{display:block;height:100%;background:linear-gradient(90deg,#176eee,#41a4fa);border-radius:10px}.scp-bar strong{text-align:right;font-size:12px}.scp-highlight{display:inline-block;background:#edf6ff;color:#1261b4;font-size:12px;padding:5px 12px;border-radius:20px;margin:12px 0!important}.scp-participation{border-top:1px solid #e8eef6;padding-top:16px;margin-top:17px}.scp-participation>div{display:flex;gap:10px;margin-top:12px}.scp-participation button{flex:1;background:#f5f9fe;text-align:left;padding:12px}.scp-participation strong{display:block;font-size:22px}.scp-participation span{font-size:11px}.scp-advice{background:#fff7e8;border:1px solid #ffebc5;border-radius:9px;padding:16px;margin-top:16px}.scp-advice>span{font-weight:600;color:#a75d0f}.scp-advice p{font-size:12px;margin:7px 0 12px;color:#687d96}.scp-advice-blue{background:#eef6ff;border-color:#dceafd}.scp-advice-blue>span{color:#155eac}.scp-empty{color:#7185a0;background:#f5f9fe;padding:24px 18px;border-radius:10px;line-height:1.8}.scp-card>.scp-empty{margin:14px 0}.scp-error{background:#fff4f2;border:1px solid #f2d6d0;color:#a23927;padding:18px;border-radius:10px}.scp-table{overflow-x:auto;max-width:100%}.scp-table table{width:100%;border-collapse:collapse;min-width:980px;font-size:12px}.scp-table th,.scp-table td{padding:12px 10px;text-align:left;border-bottom:1px solid #e6edf6}.scp-table th{background:#f1f6fc;color:#5d7794;font-weight:500;white-space:nowrap}.scp-table td:first-child{max-width:290px;overflow-wrap:anywhere}.scp-table td small{display:block;font-size:10px;color:#7d91aa;margin-top:3px}.scp-table td button{font-size:11px;white-space:nowrap;margin:2px}.scp-tabs{display:flex;gap:6px}.scp-tabs button{padding:4px 12px;font-size:12px}.scp-tabs button[aria-pressed=true]{background:#1d74eb;color:white;border-color:#1d74eb}.scp-pill{font-size:11px;color:#ae6d16;background:#fff6df;border-radius:12px;padding:3px 9px;white-space:nowrap}.scp-pill.done{color:#138467;background:#e4f6ed}.scp footer{font-size:11px;color:#7c91aa;padding:15px 3px}.scp-dialog{border:1px solid #d8e5f3;border-radius:12px;padding:22px;width:min(860px,94vw);max-height:85vh;overflow:auto;color:#123753}.scp-dialog::backdrop{background:#092a4c66}.scp-dialog header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.scp-answer{padding:15px 0;border-bottom:1px solid #e6edf6;overflow-wrap:anywhere}.scp-answer strong{font-size:14px}.scp-answer p{font-size:12px;color:#627b96;margin-top:6px}
@media(max-width:1100px){.scp-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.scp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.scp-main-grid{grid-template-columns:1fr}.scp-secondary-grid{grid-template-columns:1fr 1fr}.scp-search{margin-left:0}}
@media(max-width:650px){.scp{font-size:13px}.scp-controls{gap:9px}.scp-controls label{flex:1;min-width:0}.scp-controls select,.scp-controls input{font-size:16px;min-width:0!important;width:100%}.scp-controls .scp-search{flex-basis:100%}.scp-controls>button{font-size:12px;padding:8px}.scp-overview,.scp-secondary-grid{grid-template-columns:1fr}.scp-card,.scp-metrics article{padding:15px}.scp-hero{padding:18px;align-items:flex-start;gap:12px}.scp-hero h2{font-size:21px}.scp-hero-progress strong{font-size:27px}.scp-hero-progress span{font-size:10px}.scp-metrics{gap:9px}.scp-metrics strong{font-size:27px}.scp-metrics p{font-size:10px}.scp-card h3{font-size:16px}.scp-participation button{padding:9px}.scp-dialog{padding:16px}.scp-tabs button{padding:5px 10px}}

.scp-chart{stroke:none;fill:none}.scp-chart text{stroke:none;font-weight:400}.scp-hero>div:first-child{min-width:0}.scp-course h3,.scp-hero h2{overflow-wrap:anywhere}

/* Overview only. Original portrait detail selectors and markup above are unchanged. */
.student-view[data-view="courseAnalytics"]:has([data-student-course-portraits]:not([hidden]) > .scp-summary) > .module-head { display:none; }
.scp.scp-summary { --scpo-primary:#4f5bd5; --scpo-ink:#202b45; --scpo-muted:#6c778e; --scpo-line:#e5e9f2; color:var(--scpo-ink); }
.scp-summary svg { width:20px; height:20px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.scp-summary .scpo-heading { margin-bottom:21px; }
.scp-summary .scpo-heading h1 { margin:0; color:var(--scpo-ink); font-size:28px; font-weight:750; line-height:1.4; }
.scp-summary .scpo-heading p { margin-top:6px; color:var(--scpo-muted); font-size:14px; }
.scp-summary .scpo-controls { display:grid; grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) minmax(170px,1.15fr) auto; align-items:end; gap:14px; margin-bottom:20px; padding:17px 18px; border:1px solid var(--scpo-line); border-radius:16px; background:#fff; }
.scp-summary .scpo-controls label { min-width:0; color:var(--scpo-muted); }
.scp-summary .scpo-controls select, .scp-summary .scpo-controls input { width:100%; min-width:0; min-height:44px; color:var(--scpo-ink); border-color:#dce1f1; border-radius:10px; font-size:13px; }
.scp-summary .scpo-controls .scp-search { width:100%; margin:0; }
.scp-summary .scpo-controls .scpo-refresh { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:9px 12px; color:var(--scpo-primary); border:1px solid #dce1f1; border-radius:10px; background:#fff; font-size:13px; }
.scp-summary .scp-overview { display:block; }
.scp-summary .scpo-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:25px; }
.scp-summary .scpo-metric { display:flex; align-items:center; gap:13px; min-width:0; padding:20px 17px; border:1px solid #ffffff; border-radius:15px; background:#f0eeff; }
.scp-summary .scpo-metric > div { min-width:0; }
.scp-summary .scpo-metric-icon { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; color:#7060ce; border-radius:13px; background:#e8e3ff; }
.scp-summary .scpo-metric-icon svg { width:25px; height:25px; }
.scp-summary .scpo-metric > div > span { color:var(--scpo-muted); font-size:12px; }
.scp-summary .scpo-metric strong { display:block; margin-top:3px; color:var(--scpo-ink); font-size:27px; font-weight:750; line-height:1.4; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.scp-summary .scpo-metric strong small { margin-left:5px; font-size:12px; font-weight:500; }
.scp-summary .scpo-metric p { color:var(--scpo-muted); font-size:11px; line-height:1.7; }
.scp-summary .scpo-mint { background:#eaf6f1; }
.scp-summary .scpo-mint .scpo-metric-icon { color:#21876f; background:#daf0e6; }
.scp-summary .scpo-neutral { background:#edf1f7; }
.scp-summary .scpo-neutral .scpo-metric-icon { color:#63758e; background:#e4eaf3; }
.scp-summary .scpo-blue { background:#ecf3ff; }
.scp-summary .scpo-blue .scpo-metric-icon { color:#3975c7; background:#e1ecff; }
.scp-summary .scpo-amber { background:#fff4e4; }
.scp-summary .scpo-amber .scpo-metric-icon { color:#a76619; background:#ffebcb; }
.scp-summary .scpo-list-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }
.scp-summary .scpo-list-heading h2 { color:var(--scpo-ink); font-size:20px; font-weight:700; }
.scp-summary .scpo-list-heading > span { color:var(--scpo-muted); font-size:12px; }
.scp-summary .scpo-filters { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:17px; }
.scp-summary .scpo-filters button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:8px 18px; border:1px solid #dce1ef; border-radius:24px; color:var(--scpo-muted); background:#fff; font-size:13px; }
.scp-summary .scpo-filters button > span { display:inline-grid; place-items:center; min-width:21px; padding:0 5px; border-radius:12px; color:var(--scpo-ink); background:#eef1f7; font-size:12px; line-height:21px; }
.scp-summary .scpo-filters button[aria-pressed="true"] { color:#fff; border-color:var(--scpo-primary); background:var(--scpo-primary); }
.scp-summary .scpo-filters button[aria-pressed="true"] > span { color:#fff; background:#ffffff30; }
.scp-summary .scpo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:stretch; }
.scp-summary .scpo-grid > .scp-empty { grid-column:1 / -1; }
.scp-summary .scpo-course { --scpo-tint:#f1eeff; --scpo-accent:#7360ca; display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--scpo-line); border-radius:17px; background:#fff; box-shadow:0 5px 20px #202b4505; }
.scp-summary .scpo-tone-1 { --scpo-tint:#f1eeff; --scpo-accent:#7360ca; }
.scp-summary .scpo-tone-2 { --scpo-tint:#eaf6f1; --scpo-accent:#21876f; }
.scp-summary .scpo-tone-0 { --scpo-tint:#edf3fe; --scpo-accent:#3e76b9; }
.scp-summary .scpo-course-head { display:flex; align-items:flex-start; gap:13px; min-height:100px; padding:20px; background:var(--scpo-tint); }
.scp-summary .scpo-course-head > div { flex:1; min-width:0; }
.scp-summary .scpo-course-head h3 { color:var(--scpo-ink); font-size:19px; font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
.scp-summary .scpo-course-head p { margin-top:5px; color:var(--scpo-muted); font-size:12px; overflow-wrap:anywhere; }
.scp-summary .scpo-book { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; color:var(--scpo-accent); border:1px solid #ffffffdf; border-radius:12px; background:#ffffff8c; }
.scp-summary .scpo-book svg { width:26px; height:26px; }
.scp-summary .scpo-badge { flex-shrink:0; margin-top:3px; padding:4px 9px; color:#26755f; border-radius:7px; background:#dcf0e8; font-size:11px; white-space:nowrap; }
.scp-summary .scpo-badge-pending { color:#945b17; background:#fff0d7; }
.scp-summary .scpo-course-body { display:flex; flex:1; flex-direction:column; padding:20px; }
.scp-summary .scpo-progress-label { display:flex; justify-content:space-between; gap:12px; color:var(--scpo-muted); font-size:12px; }
.scp-summary .scpo-progress-label strong { margin-right:5px; color:var(--scpo-ink); font-size:14px; font-variant-numeric:tabular-nums; }
.scp-summary progress { height:8px; margin-top:9px; background:#eaf1ed; }
.scp-summary progress::-webkit-progress-bar { background:#eaf1ed; }
.scp-summary progress::-webkit-progress-value { background:#21876f; }
.scp-summary progress::-moz-progress-bar { background:#21876f; }
.scp-summary .scpo-no-tasks { margin-top:7px; color:var(--scpo-muted); font-size:12px; }
.scp-summary .scpo-numbers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:23px 0 20px; }
.scp-summary .scpo-numbers > div { min-width:0; }
.scp-summary .scpo-numbers > div + div { padding-left:20px; border-left:1px solid var(--scpo-line); }
.scp-summary .scpo-numbers span { color:var(--scpo-muted); font-size:12px; }
.scp-summary .scpo-numbers strong { display:block; margin-top:6px; color:var(--scpo-ink); font-size:29px; font-weight:750; line-height:1.3; letter-spacing:-.4px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.scp-summary .scpo-numbers small { margin-left:5px; color:var(--scpo-muted); font-size:12px; font-weight:400; letter-spacing:normal; }
.scp-summary .scpo-numbers p { margin-top:5px; color:var(--scpo-muted); font-size:11px; }
.scp-summary .scpo-negative { color:#ad4141!important; }
.scp-summary .scpo-reminder { margin-bottom:13px; color:#9a641b; font-size:11px; line-height:1.8; }
.scp-summary .scpo-course-foot { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:auto; padding-top:15px; border-top:1px solid var(--scpo-line); }
.scp-summary .scpo-course-foot > span { min-width:0; color:var(--scpo-muted); font-size:12px; }
.scp-summary .scpo-course-foot button { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; gap:10px; min-height:44px; padding:9px 15px; color:#fff; border:1px solid var(--scpo-primary); border-radius:10px; background:var(--scpo-primary); font-size:13px; }
.scp-summary .scpo-course-foot button svg { width:17px; height:17px; }
.scp-summary .scpo-course-foot button:hover { background:#414bbc; }
.scp-summary .scpo-credit-note { margin-top:19px; color:var(--scpo-muted); font-size:12px; }
.scp-summary button:focus-visible, .scp-summary select:focus-visible, .scp-summary input:focus-visible { outline-color:#9ba5ff; }
@media(max-width:1250px) and (min-width:1121px), (max-width:980px) {
  .scp-summary .scpo-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .scp-summary .scpo-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .scp-summary .scpo-course-head { flex-wrap:wrap; }
  .scp-summary .scpo-badge { margin-left:auto; }
}
@media(max-width:650px) {
  /* Compact only this overview's mobile header; portrait details keep the original shell. */
  body:has(.student-view.active > [data-student-course-portraits]:not([hidden]) > .scp-summary) .student-topbar { flex-wrap:nowrap; align-items:center; gap:10px; min-height:66px; }
  body:has(.student-view.active > [data-student-course-portraits]:not([hidden]) > .scp-summary) .student-topbar > div:not(.topbar-actions) { flex:1; min-width:0; }
  body:has(.student-view.active > [data-student-course-portraits]:not([hidden]) > .scp-summary) .student-topbar [data-page-title] { overflow:hidden; font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
  body:has(.student-view.active > [data-student-course-portraits]:not([hidden]) > .scp-summary) .student-topbar [data-page-subtitle] { display:none; }
  body:has(.student-view.active > [data-student-course-portraits]:not([hidden]) > .scp-summary) .topbar-actions { flex:0 0 auto; width:auto; margin-left:auto; }
  .scp-summary .scpo-heading { margin-bottom:17px; }
  .scp-summary .scpo-heading h1 { font-size:24px; }
  .scp-summary .scpo-heading p { font-size:12px; }
  .scp-summary .scpo-controls { grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:0; margin-bottom:17px; border:0; background:transparent; }
  .scp-summary .scpo-controls > label:first-child { grid-column:1 / -1; }
  .scp-summary .scpo-controls .scpo-course-picker { display:none; }
  .scp-summary .scpo-controls label > span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .scp-summary .scpo-controls .scp-search { grid-column:1; }
  .scp-summary .scpo-controls .scpo-refresh { grid-column:2; width:44px; padding:9px; }
  .scp-summary .scpo-refresh > span { display:none; }
  .scp-summary .scpo-controls select, .scp-summary .scpo-controls input { min-height:46px; font-size:16px; }
  .scp-summary .scpo-summary { gap:9px; margin-bottom:19px; }
  .scp-summary .scpo-metric { gap:9px; padding:10px; border-radius:12px; }
  .scp-summary .scpo-metric-icon { flex-basis:33px; width:33px; height:36px; border-radius:10px; }
  .scp-summary .scpo-metric-icon svg { width:22px; height:22px; }
  .scp-summary .scpo-metric > div > span { font-size:11px; }
  .scp-summary .scpo-metric strong { font-size:23px; }
  .scp-summary .scpo-metric strong small { margin-left:3px; font-size:11px; }
  .scp-summary .scpo-list-heading { display:none; }
  .scp-summary .scpo-filters { gap:8px; margin-bottom:14px; }
  .scp-summary .scpo-filters button { flex:1; gap:6px; padding:8px 9px; font-size:12px; }
  .scp-summary .scpo-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .scp-summary .scpo-course-head { flex-wrap:nowrap; gap:10px; min-height:0; padding:16px 14px; }
  .scp-summary .scpo-course-head h3 { font-size:17px; }
  .scp-summary .scpo-course-head p { font-size:11px; }
  .scp-summary .scpo-book { flex-basis:37px; width:37px; height:39px; border-radius:10px; }
  .scp-summary .scpo-book svg { width:23px; height:23px; }
  .scp-summary .scpo-badge { padding:4px 6px; font-size:10px; }
  .scp-summary .scpo-course-body { padding:16px 14px; }
  .scp-summary .scpo-numbers { gap:13px; margin:20px 0 17px; }
  .scp-summary .scpo-numbers > div + div { padding-left:14px; }
  .scp-summary .scpo-numbers strong { font-size:27px; }
  .scp-summary .scpo-numbers small { margin-left:3px; font-size:11px; }
  .scp-summary .scpo-course-foot { gap:9px; padding-top:13px; }
  .scp-summary .scpo-course-foot > span { font-size:11px; }
  .scp-summary .scpo-course-foot button { gap:6px; padding:8px 10px; font-size:12px; }
}
@media(max-width:360px) {
  .scp-summary .scpo-metric { gap:6px; padding:12px 8px; }
  .scp-summary .scpo-metric-icon { flex-basis:26px; width:26px; }
  .scp-summary .scpo-metric strong { font-size:21px; }
  .scp-summary .scpo-numbers strong { font-size:23px; }
  .scp-summary .scpo-numbers > div + div { padding-left:12px; }
}
