/* Scoped student workbench, no global theme overrides. */
.wed{--blue:#1d4ed8;--deep:#172554;--accent:#bfdbfe;--ink:#6366f1;--paper:#f8faff;color:#172554;background:var(--paper);border:1px solid #cbd5e1;border-radius:24px;overflow:hidden;font-family:inherit;margin:24px 0;box-shadow:0 18px 50px #1725540c;isolation:isolate}.wed *{box-sizing:border-box}.wed [hidden]{display:none!important}.wed-head{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:24px;padding:36px;background:linear-gradient(115deg,#172554,#1e40af);color:#fff;position:relative}.wed-head h2{color:#fff;margin:12px 0;font-size:clamp(25px,3vw,38px);line-height:1.12;letter-spacing:-.8px}.wed-head p{color:#dbeafe;max-width:630px;margin:0;line-height:1.65}.wed-eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#bfdbfe}.wed-visual{border:1px solid #ffffff40;background:linear-gradient(150deg,#ffffff1f,#60a5fa18);border-radius:18px;box-shadow:8px 12px 0 #17255470;transform:perspective(650px) rotateY(-12deg) rotateX(6deg);align-self:center;color:#bfdbfe}.wed-visual svg{display:block;width:100%;height:auto}.wed-workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}.wed-form{padding:28px;border-right:1px solid #cbd5e1;min-width:0}.wed-intro{font-size:13px;line-height:1.6;color:#475569;margin:0 0 24px}.wed fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}.wed legend{width:100%;font-weight:750;margin-bottom:16px;border-bottom:1px solid #dbeafe;padding-bottom:10px;font-size:15px}.wed legend b{display:inline-flex;width:26px;height:26px;border-radius:50%;align-items:center;justify-content:center;background:#dbeafe;color:#172554;font-size:12px;margin-right:6px}.wed-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wed-field{display:flex;flex-direction:column;gap:7px;min-width:0}.wed-field>span{font-size:12px;line-height:1.45;font-weight:650}.wed input,.wed select{width:100%;max-width:100%;min-width:0;background:#fff;border:1px solid #94a3b8;border-radius:10px;padding:12px;font-size:15px;color:#172554;min-height:46px;font-family:inherit}.wed input:focus,.wed select:focus{outline:3px solid #93c5fd;outline-offset:2px}.wed small{line-height:1.45}.wed-field small{font-size:11px;color:#475569}.wed button{font-family:inherit;cursor:pointer;border:1px solid #94a3b8;background:#fff;border-radius:10px;padding:11px 14px;font-size:12px;color:#172554;font-weight:700;line-height:1.4;white-space:normal}.wed button:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}.wed button:disabled{opacity:.5;cursor:default}.wed button.wed-calculate{background:#1d4ed8;color:#fff;border-color:#1d4ed8;box-shadow:0 4px 0 #172554}.wed-actions,.wed-presets,.wed-export{display:flex;gap:10px;flex-wrap:wrap}.wed-presets{margin-bottom:22px}.wed-actions{margin-top:8px}.wed-error{color:#a42121;font-size:13px;line-height:1.6}.wed-error:empty{display:none}.wed-output{padding:28px;background:linear-gradient(#eff6ff,#f8faff);min-width:0}.wed-output-head{border-bottom:1px solid #bfdbfe;padding-bottom:16px;margin-bottom:20px}.wed-output-head h3{font-size:17px;line-height:1.4;margin:0;color:#172554}.wed-output-head>span{font-size:11px;color:#475569}.wed-empty{padding:28px 18px;border:1px dashed #93c5fd;border-radius:16px;background:#ffffff80;line-height:1.6}.wed-empty strong{display:block;font-size:18px}.wed-empty p,.wed-footnote{font-size:12px;color:#475569;line-height:1.7}.wed-footnote{margin:18px 0 0}.wed-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.wed-metrics article{min-width:0;padding:16px;border:1px solid #bfdbfe;border-radius:14px;background:#fff;box-shadow:0 4px 0 #dbeafe}.wed-metrics article:first-child{background:#172554;color:#fff;border-color:#172554;grid-column:1/-1}.wed-metrics span{display:block;font-size:11px;line-height:1.5}.wed-metrics strong{display:block;font-size:25px;line-height:1.3;margin:8px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.wed-metrics small{font-size:11px}.wed-loss{color:#a42121}.wed-table{overflow:auto;max-width:100%;border:1px solid #cbd5e1;border-radius:12px;background:#fff;margin-bottom:16px}.wed-table table{width:100%;border-collapse:collapse;font-size:12px;margin:0}.wed-table th,.wed-table td{text-align:left;padding:10px;border-bottom:1px solid #e2e8f0;white-space:nowrap}.wed-table th{background:#dbeafe;color:#172554}.wed-result h4{font-size:14px;line-height:1.5;margin:24px 0 10px}.wed-note{font-size:12px;line-height:1.7;background:#eff6ff;border-left:3px solid #60a5fa;padding:12px;border-radius:0 8px 8px 0}.wed-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #cbd5e1;background:#fff;border-radius:12px;margin-bottom:12px}.wed-row .wed-field:first-child{grid-column:1/-1}.wed-remove{justify-self:start}.wed-export{margin-top:18px}.wed-insight{margin:0;padding:18px;background:#dbeafe;border-radius:16px;border:1px solid #93c5fd;min-width:0}.wed-insight figcaption{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.7px;margin-bottom:14px;line-height:1.6}.wed-flow{display:flex;gap:9px;flex-wrap:wrap}.wed-flow>div{background:#fff;border-radius:10px;padding:12px;flex:1 1 100px;min-width:0}.wed-flow small,.wed-flow b{display:block;font-size:11px;line-height:1.6}.wed-flow b{font-size:15px;overflow-wrap:anywhere}.wed-bars>div{margin-bottom:12px}.wed-bars>div>div:first-child{display:flex;gap:10px;justify-content:space-between;font-size:11px;line-height:1.6}.wed-bars span{overflow-wrap:anywhere}.wed-bars b{flex-shrink:0}.wed-track{height:9px;border-radius:20px;background:#bfdbfe;margin-top:6px;overflow:hidden}.wed-track>span{display:block;height:100%;background:#1d4ed8;border-radius:20px}.wed-track>span.negative{background:#b45309}.wed-insight>p{font-size:11px;line-height:1.6}.wed-calendar{display:grid;gap:8px}.wed-calendar>div{display:flex;justify-content:space-between;gap:10px;background:#fff;border-left:4px solid #60a5fa;padding:10px;font-size:11px;line-height:1.6;flex-wrap:wrap}.wed-stale .wed-result{opacity:.55}.wed-dirty{font-size:12px;color:#854d0e;background:#fef9c3;padding:12px;border-radius:8px}

.wed-gauge{width:140px;height:140px;margin:14px auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#1d4ed8 var(--progress),#bfdbfe 0);position:relative}.wed-gauge:before{content:"";position:absolute;inset:12px;border-radius:50%;background:#fff}.wed-gauge b{position:relative;font-size:24px;color:#172554;font-variant-numeric:tabular-nums}
/* A tool has its own input composition and worksheet view. */
.wed-subject-total .wed-workspace{grid-template-columns:1fr}.wed-subject-total .wed-form{border-right:0;border-bottom:1px solid #cbd5e1}
.wed-subject-total .wed-row{grid-template-columns:repeat(3,minmax(0,1fr))}.wed-subject-total .wed-row .wed-field:first-child{grid-column:auto}
.wed-weighted-grade .wed-workspace{grid-template-columns:1fr}.wed-weighted-grade .wed-form{border-right:0;border-bottom:1px solid #cbd5e1}
.wed-weighted-grade .wed-row{grid-template-columns:repeat(3,minmax(0,1fr))}.wed-weighted-grade .wed-row .wed-field:first-child{grid-column:auto}
.wed-semester-gpa .wed-workspace{grid-template-columns:1fr}.wed-semester-gpa .wed-form{border-right:0;border-bottom:1px solid #cbd5e1}
.wed-semester-gpa .wed-row{grid-template-columns:repeat(3,minmax(0,1fr))}.wed-semester-gpa .wed-row .wed-field:first-child{grid-column:auto}
.wed-cgpa .wed-workspace{grid-template-columns:1fr}.wed-cgpa .wed-form{border-right:0;border-bottom:1px solid #cbd5e1}
.wed-cgpa .wed-row{grid-template-columns:repeat(3,minmax(0,1fr))}.wed-cgpa .wed-row .wed-field:first-child{grid-column:auto}
.wed-grade-boundary .wed-workspace{grid-template-columns:1fr}.wed-grade-boundary .wed-form{border-right:0;border-bottom:1px solid #cbd5e1}
.wed-grade-boundary .wed-row{grid-template-columns:repeat(2,minmax(0,1fr))}.wed-grade-boundary .wed-row .wed-field:first-child{grid-column:auto}
.wed-exam-pacing .wed-workspace{grid-template-columns:1fr}.wed-exam-pacing .wed-form{border-right:0;border-bottom:1px solid #cbd5e1}
.wed-exam-pacing .wed-row{grid-template-columns:repeat(3,minmax(0,1fr))}.wed-exam-pacing .wed-row .wed-field:first-child{grid-column:auto}
.wed-attendance-forecast .wed-workspace{grid-template-columns:1fr}.wed-attendance-forecast .wed-form{border-right:0;border-bottom:1px solid #cbd5e1}
.wed-attendance-forecast .wed-row{grid-template-columns:repeat(4,minmax(0,1fr))}.wed-attendance-forecast .wed-row .wed-field:first-child{grid-column:auto}
.wed-study-allocation .wed-workspace{grid-template-columns:1fr}.wed-study-allocation .wed-form{border-right:0;border-bottom:1px solid #cbd5e1}
.wed-study-allocation .wed-row{grid-template-columns:repeat(2,minmax(0,1fr))}.wed-study-allocation .wed-row .wed-field:first-child{grid-column:auto}
.wed-revision-calendar .wed-workspace{grid-template-columns:1fr}.wed-revision-calendar .wed-form{border-right:0;border-bottom:1px solid #cbd5e1}
.wed-revision-calendar .wed-row{grid-template-columns:repeat(2,minmax(0,1fr))}.wed-revision-calendar .wed-row .wed-field:first-child{grid-column:auto}
.wed-assignment-plan .wed-workspace{grid-template-columns:1fr}.wed-assignment-plan .wed-form{border-right:0;border-bottom:1px solid #cbd5e1}
.wed-assignment-plan .wed-row{grid-template-columns:repeat(2,minmax(0,1fr))}.wed-assignment-plan .wed-row .wed-field:first-child{grid-column:auto}
.wed-revision-calendar input[type=date]{background:#eff6ff;border-color:#60a5fa;font-weight:750}
.wed-exam-countdown input[type=date]{background:#eff6ff;border-color:#60a5fa;font-weight:750}
.wed-assignment-plan input[type=date]{background:#eff6ff;border-color:#60a5fa;font-weight:750}
.wed-fee-installments input[type=date]{background:#eff6ff;border-color:#60a5fa;font-weight:750}
.wed-attendance .wed-form fieldset:first-of-type{border-left:4px solid #3b82f6;padding-left:14px}
.wed-attendance-recovery .wed-form fieldset:first-of-type{border-left:4px solid #3b82f6;padding-left:14px}
.wed-absence-allowance .wed-form fieldset:first-of-type{border-left:4px solid #3b82f6;padding-left:14px}
.wed-negative-marking .wed-form fieldset:first-of-type{border-left:4px solid #3b82f6;padding-left:14px}
.wed-test-attempts .wed-form fieldset:first-of-type{border-left:4px solid #3b82f6;padding-left:14px}
.wed-marks-percentage .wed-output{background:linear-gradient(145deg,#dbeafe,#f8faff)}
.wed-target-cgpa .wed-output{background:linear-gradient(145deg,#dbeafe,#f8faff)}
.wed-entry-target .wed-output{background:linear-gradient(145deg,#dbeafe,#f8faff)}
.wed-reading-time .wed-output{background:linear-gradient(145deg,#dbeafe,#f8faff)}
.wed-savings-goal .wed-output{background:linear-gradient(145deg,#dbeafe,#f8faff)}

.wed-semester-gpa .wed-row,.wed-cgpa .wed-row{border-left:4px solid #1d4ed8}.wed-grade-boundary .wed-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wed-grade-boundary .wed-row{grid-template-columns:1fr;margin:0}.wed-grade-boundary .wed-row .wed-field:first-child{grid-column:auto}.wed-assignment-plan .wed-row{border-top:3px solid #6366f1}.wed-study-allocation .wed-row{border-top:3px solid #2563eb}.wed-fee-installments .wed-calendar>div{border-left-color:#1d4ed8}.wed-pomodoro .wed-calendar>div:nth-child(4n){border-left-color:#6366f1}.wed-metrics article:first-child{background:linear-gradient(130deg,#172554,#1e40af)}
@media(max-width:900px){.wed-workspace{grid-template-columns:1fr}.wed-form{border-right:0;border-bottom:1px solid #cbd5e1}.wed-head{grid-template-columns:minmax(0,1fr) 160px;padding:26px;gap:18px}.wed .wed-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.wed{border-radius:17px;margin:16px 0}.wed-head{padding:24px 20px;grid-template-columns:1fr}.wed-head h2{font-size:27px}.wed-visual{width:150px;justify-self:end;margin-top:2px}.wed-form,.wed-output{padding:20px}.wed-fields{gap:13px}.wed-field>span{font-size:11px}.wed input,.wed select{font-size:14px;padding:10px}.wed-metrics strong{font-size:23px}.wed-metrics article{padding:13px}.wed-head p{font-size:13px}.wed-actions button{flex:1}.wed-row{padding:12px}.wed-flow>div{flex-basis:95px}.wed-grade-boundary .wed-rows{grid-template-columns:1fr}.wed .wed-row{grid-template-columns:repeat(2,minmax(0,1fr))}.wed .wed-row .wed-field:first-child{grid-column:1/-1}}
@media(max-width:360px){.wed-fields,.wed .wed-row{grid-template-columns:1fr}.wed .wed-row .wed-field:first-child{grid-column:auto}.wed-form,.wed-output{padding:16px}.wed-bars>div>div:first-child{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.wed *{transition:none!important;animation:none!important}.wed-visual{transform:none}}
@media print{body.wed-printing *{visibility:hidden}body.wed-printing .wed-print-target,body.wed-printing .wed-print-target *{visibility:visible}.wed-print-target{position:absolute;left:0;top:0;width:100%;margin:0;box-shadow:none;color:#000}.wed-head{background:#fff;color:#000}.wed-head h2,.wed-head p,.wed-eyebrow{color:#000}.wed-workspace{display:block}.wed-visual,.wed-export,.wed-actions,.wed-add,.wed-remove,.wed-presets{display:none!important}.wed-output{background:#fff}.wed-table{overflow:visible}.wed-table th,.wed-table td{white-space:normal}.wed-metrics article,.wed-metrics article:first-child{background:#fff;color:#000;box-shadow:none;break-inside:avoid}.wed-stale .wed-result{opacity:1}}
