/* All new rules are scoped to the weakness view. */
[data-view="weakness"] .sw-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:0 0 16px}
[data-view="weakness"] .sw-heading h1{margin:0 0 8px;color:#082d55;font-size:29px;line-height:1.3;letter-spacing:.2px}
[data-view="weakness"] .sw-heading p{margin:0;font-size:14px;line-height:1.7;color:#6d7f95}
[data-view="weakness"] .sw-preview-badge{padding:7px 12px;border-radius:7px;background:#e0efff;color:#075394;font-size:12px;font-weight:600;white-space:nowrap}
.sw{--sw-blue:#0759a7;--sw-ink:#0e2c50;color:var(--sw-ink);font-size:14px;line-height:1.5;min-width:0}
.sw *{box-sizing:border-box}
.sw button,.sw input,.sw select{font:inherit}
.sw button{cursor:pointer}
.sw button:disabled{cursor:default;opacity:.45}
.sw button:focus-visible,.sw input:focus-visible,.sw select:focus-visible{outline:3px solid #99c9ff;outline-offset:2px}
.sw-filters{background:#fff;border:1px solid #edf2f8;border-radius:10px;padding:15px 16px 7px;margin-bottom:16px}
.sw-filter-row{display:grid;grid-template-columns:1.35fr 1.13fr 1.3fr 1.1fr 112px;gap:20px;align-items:center}
.sw-filter-row label{display:flex;align-items:center;gap:12px;min-width:0;font-weight:600}
.sw-filter-row label>span{white-space:nowrap}
.sw select,.sw input{background:#fff;border:1px solid #d6e3f1;border-radius:6px;height:38px;color:#254260;padding:0 12px;min-width:0;width:100%}
.sw select{padding-right:23px;cursor:pointer}
.sw .sw-primary{height:38px;background:linear-gradient(#0762b3,#04559f);color:#fff;border:1px solid #0757a1;border-radius:6px;font-weight:600}
.sw-hint,.sw-footnote{display:flex;align-items:flex-start;gap:10px;background:#eaf3ff;border-radius:6px;padding:7px 10px;margin:10px 0 0;color:#6983a1;font-size:12px;line-height:1.5}
.sw-hint>span,.sw-footnote>span{display:inline-grid;place-items:center;flex:0 0 16px;height:16px;border-radius:50%;background:#4595fa;color:#fff;font-weight:700;font-family:Arial}
.sw-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:10px;background:#fff;border:1px solid #edf2f8;border-radius:10px;margin-bottom:16px}
.sw-metric{display:flex;align-items:center;gap:20px;background:linear-gradient(105deg,#edf5ff,#f5f9fe);border-radius:9px;min-height:80px;padding:10px 18px}
.sw-metric.red{background:linear-gradient(105deg,#fff0f1,#fff6f6)}
.sw-metric.amber{background:linear-gradient(105deg,#fff7e8,#fffaf2)}
.sw-icon{display:grid;place-items:center;width:55px;height:55px;flex:0 0 55px;border-radius:50%;background:#d5e9ff;color:#0764bb}
.sw-metric.red .sw-icon{color:#db2834;background:#ffe2e6}
.sw-metric.amber .sw-icon{color:#d77b02;background:#ffedcb}
.sw-icon svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.sw-metric>div>span{font-size:14px;font-weight:500}
.sw-metric strong{display:block;font-size:32px;line-height:1.2;color:#074278;letter-spacing:.3px;margin-top:3px}
.sw-metric.red strong{color:#be2530}.sw-metric.amber strong{color:#be6900}
.sw-metric small{font-size:16px;margin-left:7px;font-weight:500}
.sw-panel{background:#fff;border:1px solid #edf2f8;border-radius:10px;overflow:hidden;box-shadow:0 8px 26px #13487804}
.sw-panel-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:12px 20px 0;border-bottom:1px solid #e7eef6}
.sw-panel-title{display:flex;gap:15px;align-items:baseline;flex-wrap:wrap}
.sw-panel-title h2{font-size:22px;line-height:1.3;color:#082b50;margin:0;white-space:nowrap}
.sw-panel-title>span{font-size:12px;color:#74849a}
.sw-tabs{display:flex;gap:8px;margin-top:4px}
.sw-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#2b425e;padding:9px 13px 8px;font-size:14px;white-space:nowrap}
.sw-tabs button[aria-pressed="true"]{color:#0457a5;border-bottom-color:#0864b9;font-weight:700}
.sw-tabs button>span{margin-left:3px;color:#b2222e;font-size:12px;background:#fff0f1;border-radius:3px;padding:1px 4px}
.sw-tabs button:first-child>span{color:inherit;background:transparent;padding:0}
.sw-tools{display:flex;gap:12px;align-items:center;margin-bottom:12px;flex:0 1 44%;min-width:0}
.sw-search{position:relative;flex:1;min-width:120px}
.sw-search>span{position:absolute;left:12px;top:4px;color:#7995b0;font-size:23px}
.sw-search input{padding-left:34px}.sw-tools>select{width:186px;flex:0 1 186px}
.sw input::placeholder{color:#8797a9}
.sw-question{padding:0 20px;border-bottom:1px solid #e7eef6}
.sw-question-row{display:grid;grid-template-columns:44px minmax(180px,1fr) 227px 110px 222px;gap:15px;align-items:center;padding:12px 0 11px}
.sw-number{display:grid;place-items:center;align-self:start;margin-top:3px;width:38px;height:38px;flex:0 0 38px;background:#e1efff;border-radius:50%;font-size:17px;font-weight:600;color:#1476d2;font-variant-numeric:tabular-nums}
.sw-question-main{min-width:0}
.sw-question h3{margin:0 0 3px;font-size:16px;line-height:1.4;font-weight:650;color:#092b50;overflow-wrap:anywhere}
.sw-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:2px}
.sw-tags>span{background:#e8f4ff;color:#327db8;font-size:12px;padding:1px 6px;border-radius:4px}
.sw-source{font-size:12px;margin:0;color:#7c8da2;line-height:1.45;overflow-wrap:anywhere}
.sw-source button{display:inline;border:0;background:transparent;color:#3281c4;padding:0;text-align:left;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.sw-source button:hover{text-decoration:underline}
.sw-rate{align-self:start;margin-top:8px;font-variant-numeric:tabular-nums;text-align:center}
.sw-rate>div{display:flex;gap:10px;align-items:center}
.sw-rate>div>span{font-size:12px;color:#73869e;white-space:nowrap}
.sw-rate strong{font-size:15px;min-width:40px;text-align:right;color:#e13f46}
.sw-rate.amber strong{color:#cd7005}
.sw-rate progress{display:block;width:100%;height:12px;border:0;border-radius:4px;background:#eaf0f6;overflow:hidden;appearance:none}
.sw-rate progress::-webkit-progress-bar{background:#eaf0f6;border-radius:4px}
.sw-rate progress::-webkit-progress-value{background:linear-gradient(90deg,#ed6b70,#e44951);border-radius:4px}
.sw-rate.amber progress::-webkit-progress-value{background:linear-gradient(90deg,#ffbd59,#ff971d)}
.sw-rate progress::-moz-progress-bar{background:#e44951;border-radius:4px}
.sw-rate small{display:block;color:#7d8da0;font-size:12px;margin-top:3px}
.sw-rate small b{font-weight:500;color:#dd4c53}
.sw-status{text-align:center;align-self:start;margin-top:9px}
.sw-pill{display:inline-block;padding:5px 13px;white-space:nowrap;background:#fff3df;color:#be730b;font-size:12px;font-weight:600;border-radius:20px;line-height:1.3}
.sw-pill.repeated{color:#c83e48;background:#ffecee}.sw-status small{display:block;font-size:11px;color:#8594a6;margin-top:4px}
.sw-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;align-self:start;margin-top:7px}
.sw-actions>button,.sw-pagination button,.sw-error button{border:1px solid #bbd8f5;background:#fff;border-radius:5px;color:#1261a5;padding:7px 11px;white-space:nowrap;font-size:12px;font-weight:600;line-height:1.5}
.sw-actions>button:nth-child(2){background:#e6f1ff}
.sw .sw-chevron{border:0;background:transparent;padding:7px 0 7px 8px;margin-left:5px;color:#557591}
.sw-chevron svg,.sw-history button svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:1.5;vertical-align:middle}
.sw-chevron.open svg{transform:rotate(180deg)}
.sw-detail{background:linear-gradient(110deg,#f4f7fc,#f5f9fd);border-radius:7px;padding:12px 16px;margin:0 0 14px 0}
.sw-detail-title{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;font-weight:500;color:#45617e;margin-bottom:9px}
.sw-version{position:relative;font-size:11px;color:#8090a3;font-weight:400;max-width:50%}
.sw-version summary{cursor:pointer;list-style:none;white-space:nowrap}
.sw-version p{position:absolute;right:0;top:10px;width:260px;max-width:65vw;z-index:2;margin:8px 0 0;padding:12px;border:1px solid #d8e6f5;border-radius:6px;background:#fff;box-shadow:0 6px 20px #0d33581a;line-height:1.7;color:#526d89}
.sw-answers{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:13px}
.sw-answers>div{padding:8px 12px;min-width:0;border-radius:5px;background:#edf3fa;font-size:12px;overflow-wrap:anywhere}
.sw-answers span{display:block;color:#46607a;font-weight:500;margin-bottom:3px}
.sw-answers b{font-weight:600;line-height:1.6;font-size:13px}
.sw-my.wrong{background:#fff0f2;color:#ce2d3a}.sw-my.right,.sw-answers>.sw-correct{background:#eaf8f7;color:#137e76}
.sw-analysis p{color:#6c8096;line-height:1.7;font-size:12px;margin:0;white-space:pre-wrap}
.sw-history{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:12px;color:#46617e}
.sw-event{padding:3px 10px;border-radius:20px;font-size:12px;white-space:nowrap}
.sw-event.wrong{background:#ffe7eb;color:#ca3543}.sw-event.right{background:#e0f3ee;color:#168466}
.sw-history button{margin-left:auto;color:#1671c0;border:0;background:transparent;font-size:12px;padding:4px 0}
.sw-history button svg{transform:rotate(180deg)}
.sw-version-note{font-size:11px;color:#8190a0;margin:7px 0 0;line-height:1.6}
.sw-pagination{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:7px 20px;color:#4c6380;font-size:12px}
.sw-pagination>div{display:flex;gap:8px;flex-wrap:wrap}
.sw-pagination button{min-width:32px;height:30px;padding:4px 10px;font-weight:400}
.sw-pagination button[aria-current="page"]{background:#0863b4;border-color:#0863b4;color:#fff}
.sw-footnote{margin-top:0;padding:8px 12px;border-radius:0 0 7px 7px;background:#eaf3ff}
.sw-empty{padding:46px 22px;text-align:center;background:#fff;border-radius:8px;color:#6c8096}
.sw-empty strong{font-size:17px;color:#314f70;display:block;margin-bottom:8px}
.sw-empty p{margin:0;line-height:1.8;font-size:13px}
.sw-error{padding:26px;background:#fff5f5;color:#ad3940;border:1px solid #f3ced1;border-radius:8px}
.sw-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:1101px){.student-shell.student-weakness-active{grid-template-columns:223px minmax(0,1fr)}.student-weakness-active .student-sidebar{padding-top:16px}.student-weakness-active .sidebar-brand{min-height:48px;padding-bottom:12px}.student-weakness-active .sidebar-brand img{width:38px;height:38px}.student-weakness-active .sidebar-brand strong{font-size:15px}.student-weakness-active .student-nav{font-size:14px}}
@media(max-width:1450px){.sw-filter-row{gap:12px;grid-template-columns:1.3fr 1.1fr 1.2fr 1fr 85px}.sw-filter-row label{gap:8px}.sw-metric{gap:12px;padding:10px 14px}.sw-question-row{grid-template-columns:38px minmax(170px,1fr) 190px 90px 206px;gap:11px}.sw-actions>button{padding:6px 9px}.sw-panel-title{gap:8px}.sw-tools{flex-basis:43%}}
@media(max-width:1200px){.sw-filter-row{grid-template-columns:1fr 1fr}.sw-filter-row>.sw-primary{grid-column:2}.sw-question-row{grid-template-columns:38px minmax(140px,1fr) 185px}.sw-status{grid-column:2;justify-self:start;margin:0}.sw-actions{grid-column:3;margin:0;grid-row:2}.sw-tools{flex-basis:48%}.sw-panel-title>span{display:none}.sw-metric{gap:10px;padding:10px}.sw-icon{width:40px;height:40px;flex-basis:40px}.sw-icon svg{width:26px;height:26px}.sw-metric strong{font-size:27px}}
@media(max-width:760px){[data-view="weakness"] .sw-heading h1{font-size:25px}[data-view="weakness"] .sw-heading p{font-size:13px}.sw-filters{padding:12px 10px 6px}.sw-filter-row{gap:10px}.sw-filter-row label{display:block}.sw-filter-row label>span{display:block;font-size:12px;margin-bottom:4px}.sw-filter-row>.sw-primary{grid-column:1/-1}.sw-hint{font-size:11px;padding:7px}.sw-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}.sw-metric{gap:10px;min-height:77px;padding:10px}.sw-metric>div>span{font-size:12px}.sw-metric small{font-size:13px}.sw-icon{width:38px;height:38px;flex-basis:38px}.sw-icon svg{width:24px;height:24px}.sw-panel-head{display:block;padding:14px 12px 0}.sw-panel-title h2{font-size:20px}.sw-tools{margin:10px 0 12px;gap:8px}.sw-search{min-width:0}.sw-tools>select{width:145px;flex-basis:145px;font-size:12px}.sw-tabs{gap:1px}.sw-tabs button{padding:10px 8px;font-size:13px}.sw-question{padding:0 12px}.sw-question-row{grid-template-columns:30px minmax(0,1fr);gap:10px;padding:15px 0 12px}.sw-number{width:30px;height:30px;font-size:14px}.sw-question h3{font-size:15px}.sw-rate{grid-column:2;grid-row:2;width:min(100%,240px);margin:0;text-align:left}.sw-rate>div{gap:8px}.sw-rate small{margin-left:0}.sw-status{grid-column:2;grid-row:3;justify-self:start;align-self:start;display:flex;align-items:center;gap:6px}.sw-pill{font-size:11px;padding:4px 9px}.sw-status small{display:inline;margin:0}.sw-actions{grid-column:2;grid-row:4;justify-content:flex-start;flex-wrap:wrap}.sw .sw-chevron{margin-left:auto}.sw-detail{padding:12px;margin-bottom:12px}.sw-answers{grid-template-columns:1fr;gap:8px}.sw-history{gap:6px}.sw-history>span:first-child{flex-basis:100%}.sw-history button{margin-top:4px}.sw-pagination{padding:12px;flex-wrap:wrap;gap:10px}.sw-pagination>div{width:100%;justify-content:flex-end;gap:6px}.sw-footnote{font-size:11px}.sw input,.sw select{font-size:13px}.sw-preview-badge{display:none}}
