.grade-mode{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.grade-mode [aria-pressed=true]{background:#193e35;color:#fff9e7}.weight-panel{margin-bottom:24px}.weight-panel h2{margin-bottom:12px}.weight-row{display:grid;grid-template-columns:1.4fr .7fr .8fr auto;gap:14px;align-items:end;padding:14px 0;border-bottom:1px solid #d8dfd6}.weight-row input{font-size:18px}.weight-row button{margin-bottom:1px}.weight-row label{font-size:14px}.weight-row .calc-field{gap:6px}.weighted-grade-page .filled-example{margin:24px 0}.weighted-grade-page .example-cells{grid-template-columns:repeat(3,minmax(0,1fr))}.weight-note{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}.weight-note strong{font-variant-numeric:tabular-nums}.grade-settings{margin-top:22px;max-width:540px}.grade-settings select{padding:12px;border:1px solid #8b9b8e;border-radius:7px;background:white;color:#193b34;font:inherit;width:100%}.weighted-grade-page .help-label-text{min-height:32px}.batch-only[hidden],.manual-average[hidden],[hidden]{display:none!important}.import-panel{margin:24px 0}.import-panel h2{margin-bottom:14px}.file-label{margin-top:20px}.file-label input{font-size:16px;padding:12px;max-width:100%}.preview-summary{font-weight:600}.weighted-grade-page table th:first-child,.weighted-grade-page table td:first-child{text-align:left}.weighted-grade-page td{overflow-wrap:anywhere;max-width:220px}.weighted-grade-page .chart-scroll{max-height:440px}.result-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.import-errors{padding-left:22px;color:#993518;line-height:1.6}.template-fields{line-height:1.8}.weighted-grade-page code{overflow-wrap:anywhere}.csv-sample{overflow:auto;background:#fffdf6;border:1px solid #bdc8bb;padding:14px;border-radius:8px;font:13px/1.6 monospace}.weighted-grade-page .calc-result{margin:24px 0}.weighted-grade-page .calc-value{font-size:3.4rem}.grade-result-table{margin:20px 0}.weighted-grade-page .reset-row{display:flex;justify-content:flex-end;margin:16px 0}.weighted-grade-page .tool-guide{margin-top:32px}.weight-row.batch-row{grid-template-columns:1.4fr .7fr auto}
@media(max-width:640px){.weight-row,.weight-row.batch-row{grid-template-columns:1fr 1fr}.weight-row .category-label{grid-column:1/-1}.weight-row>button{justify-self:start}.weighted-grade-page .example-cells{grid-template-columns:1fr}.weighted-grade-page .calc-inputs{padding:20px}.weight-row .calc-field input{font-size:18px}}
.grade-mode .calc-button[aria-pressed=true],.grade-mode .calc-button[aria-pressed=true]:hover{background:#193e35;color:#fff9e7}
.assignment-method{min-width:0;border:1px solid #9eafa0;border-radius:10px;padding:16px;margin:24px 0}.assignment-method legend{font-weight:700;padding:0 6px}.assignment-method legend .hint-button{margin-left:8px;vertical-align:middle}.method-option{display:flex;align-items:flex-start;gap:10px;margin:14px 0;cursor:pointer}.method-option input{width:20px;height:20px;flex:0 0 20px;margin:2px 0;accent-color:#315c4b}.method-option small{display:block;margin-top:5px;font-size:14px;line-height:1.4}.method-comparison,.assignment-scores{display:grid;grid-template-columns:1fr 1fr;gap:14px}.assignment-scores{margin:16px 0;text-align:center}.assignment-scores>span{padding:14px;border:1px solid #bdc8bb;border-radius:8px;background:#edf2e3}.assignment-scores strong{display:block;font-size:24px;margin:8px}.method-comparison .example-cell>strong{font-size:28px}.method-comparison p{font-size:14px;line-height:1.5}.assignment-method .method-example{margin:14px 0 0}.method-example>summary{cursor:pointer;font-weight:600}@media(max-width:640px){.method-comparison{grid-template-columns:1fr}.assignment-method{padding:12px}.assignment-method legend{font-size:16px}}
.setup-summary{font-weight:600;line-height:1.6}.report-label-field select{width:100%;padding:12px;border:1px solid #8b9b8e;border-radius:7px;background:white;color:#193b34;font:inherit}#custom-period-field{margin-top:16px}#preview-details{margin:20px 0}#preview-details>summary,.print-menu>summary{cursor:pointer;font-weight:600;padding:12px;border:1px solid #8b9b8e;border-radius:7px;background:#edf2e3}.print-menu>div{display:flex;flex-wrap:wrap;gap:12px;padding:14px 0}.print-menu{align-self:start}.result-actions{align-items:start}.chart-print-meta{display:none}.grade-dots{margin:20px 0;break-inside:avoid}.grade-dots figcaption{font-weight:600}.grade-dots svg{display:block;width:100%;max-width:850px;margin:0 auto;font:12px system-ui,sans-serif;color:#193e35}.dot-grid{stroke:#bdc8bb;stroke-width:1}.grade-dot{fill:#193e35;stroke:#fffdf6;stroke-width:.4}.grade-dots text{fill:currentColor}.dot-score-list{font-size:14px;line-height:1.6}.dot-score-list summary{cursor:pointer;font-weight:600}.dot-score-list p{overflow-wrap:anywhere}.grade-bars .grade-bar-fill{border-right:0}
@media print{.chart-print-meta{display:none}.printing-grade-chart .chart-print-meta{display:block}.dot-score-list{display:none}.grade-dots svg{max-height:85mm}.grade-dot{fill:#222;stroke:white;print-color-adjust:exact;-webkit-print-color-adjust:exact}.weighted-grade-page .grade-chart-panel{break-inside:avoid}.weighted-grade-page #result-title{display:none}}
.grade-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;list-style:none;padding:0;margin:0 0 24px}.grade-steps li{padding:14px;border:1px solid #bdc8bb;border-radius:9px;background:#edf2e3;font-size:14px}.grade-steps strong{display:block;margin-bottom:4px}.help-action{display:inline-flex;align-items:center;gap:8px;max-width:100%}.help-action .hint-button{flex-shrink:0}.help-action .calc-button{min-width:0}.grade-entry-heading{margin:30px 0 16px}.grade-entry-heading h2{font-size:1.6rem}.manual-panel{margin-bottom:24px}.average-rows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}.weight-row,.weight-row.batch-row{grid-template-columns:minmax(0,1.6fr) minmax(0,.8fr) auto}.remember-categories{border-top:1px solid #bdc8bb;margin-top:20px;padding-top:12px}.remember-categories .calc-help{margin-top:8px}.remember-categories .check-help .calc-check{white-space:normal}.report-label-field{max-width:540px;margin:22px 0}.grade-chart-panel{margin:30px 0;padding:24px;border:1px solid #bdc8bb;background:#fffdf6;border-radius:14px}.grade-chart-panel h3{font-size:1.4rem;margin-top:0}.chart-controls{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.chart-controls select{width:100%;min-width:0;padding:12px;border:1px solid #8b9b8e;border-radius:7px;background:white;color:#193b34;font:inherit}.chart-controls .check-help .calc-check{white-space:normal}.chart-controls .help-field{min-width:0}.chart-controls .help-label-text{min-height:32px}#chart-report{border-top:1px solid #bdc8bb;padding-top:22px}#chart-report h3{font:700 1.7rem Georgia,serif;overflow-wrap:anywhere}#chart-report h4{font-size:1.1rem;margin:20px 0 12px}.chart-brand{font-size:12px;letter-spacing:.03em}.chart-caption{font-size:14px;line-height:1.55;overflow-wrap:anywhere}.chart-stat{font-weight:600;font-variant-numeric:tabular-nums}.grade-bars{margin:24px 0}.grade-bars figcaption{font-weight:600;margin-bottom:16px}.grade-bar-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(100px,2fr) minmax(85px,.65fr);gap:12px;align-items:center;margin:16px 0;break-inside:avoid}.grade-bar-label{font-size:14px;overflow-wrap:anywhere}.grade-bar-track{height:24px;background:#edf2e3;border:1px solid #9eafa0;border-radius:4px;overflow:hidden}.grade-bar-fill{height:100%;background:#315c4b;border-right:1px solid #193e35}.grade-bar-value{text-align:right;font-size:14px;font-variant-numeric:tabular-nums}
@media(max-width:640px){.grade-steps{grid-template-columns:1fr;gap:7px}.grade-steps li{padding:10px 14px}.grade-steps strong{display:inline;margin-right:8px}.weight-row,.weight-row.batch-row{grid-template-columns:1fr 1fr}.average-rows,.chart-controls{grid-template-columns:1fr}.grade-chart-panel{padding:18px}.grade-bar-row{grid-template-columns:minmax(0,1fr) minmax(80px,1.3fr) 75px;gap:8px}.grade-bar-label,.grade-bar-value{font-size:12px}}
@media print{body.weighted-grade-page{background:white!important;color:black!important}body.weighted-grade-page header,body.weighted-grade-page footer,.weighted-grade-page .tool-heading,.weighted-grade-page .grade-mode,.weighted-grade-page .weight-panel,.weighted-grade-page .import-panel,.weighted-grade-page .reset-row,.weighted-grade-page .tool-guide,.weighted-grade-page .result-actions{display:none!important}.weighted-grade-page main{width:100%!important;margin:0!important}.weighted-grade-page .calc-result{background:white!important;color:black!important;border:1px solid #999}.weighted-grade-page .calc-value{color:black!important}.weighted-grade-page .chart-scroll{overflow:visible;max-height:none}.weighted-grade-page .grade-chart{font-size:9pt}.weighted-grade-page .grade-chart th{position:static}.weighted-grade-page tr{break-inside:avoid}.weighted-grade-page .print-heading{display:block}}
@media print{.weighted-grade-page .grade-steps,.weighted-grade-page .grade-entry-heading,.weighted-grade-page .manual-panel,.weighted-grade-page .report-label-field,.weighted-grade-page .chart-controls,.weighted-grade-page #reset-confirm{display:none!important}.weighted-grade-page .grade-chart-panel{padding:0;border:0;background:white}.weighted-grade-page #chart-panel-title{display:none}.weighted-grade-page .grade-bar-track{background:white;border:1px solid #888}.weighted-grade-page .grade-bar-fill{background:#555;print-color-adjust:exact;-webkit-print-color-adjust:exact}.weighted-grade-page #chart-report{padding-top:0;border:0}.weighted-grade-page #chart-report h3,.weighted-grade-page #chart-report h4{break-after:avoid}.weighted-grade-page .grade-bars{break-inside:avoid}.printing-grade-chart #grade-results>:not(#grade-chart-panel){display:none!important}.printing-grade-chart .grade-chart-panel{margin:0}}
