:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203034;background:#f4f6f5;font-synthesis:none;--line:#dde4e0;--muted:#64716c;--green:#b61919}*{box-sizing:border-box}body{margin:0;font-size:15px}button,input,select{font:inherit}button,summary{cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #dd4444;outline-offset:3px}header{padding:21px 32px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}header>div{display:flex;align-items:center;gap:18px}h1{font-size:26px;letter-spacing:-1px;margin:0}header span{color:var(--muted);font-size:14px}.button{border:1px solid #cdd7d0;border-radius:7px;padding:9px 14px;background:white;color:#203034;font-size:14px;font-weight:550;white-space:nowrap}.button:hover:not(:disabled){background:#eef3eb}.button.primary{background:#203034;color:#fff;border-color:#203034;min-width:90px}.button.next{background:#ffe5e5;border-color:#e8aaaa}.button.next:hover:not(:disabled){background:#ffd6d6}main{max-width:1700px;margin:auto;padding:20px 32px}.controls{display:flex;align-items:center;gap:17px;margin-bottom:20px}.transport{display:flex;gap:8px}.controls label{font-size:14px;display:flex;gap:8px;align-items:center}.controls select{padding:7px;border:1px solid var(--line);border-radius:6px;background:#fff}.step-count{font-size:14px;color:var(--muted);margin-left:auto;font-variant-numeric:tabular-nums}.layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(440px,1fr);gap:20px;align-items:start}.history-panel,.state-panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line)}h2{font-size:17px;letter-spacing:-.3px;margin:0}.panel-heading p{font-size:13px;color:var(--muted);margin:6px 0 0;line-height:1.5}.badge{background:#f0f3f0;color:var(--muted);padding:5px 8px;border-radius:5px;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.history{height:calc(100vh - 300px);min-height:370px;max-height:950px;overflow:auto;padding:22px;scrollbar-width:thin;scroll-padding:18px}.record{position:relative;margin:0 0 20px 14px;padding:0 0 0 22px;border-left:2px solid #e4e9e5;transition:opacity .2s}.record:last-child{margin-bottom:0}.record-number{position:absolute;left:-15px;top:0;width:28px;height:28px;display:grid;place-items:center;background:#f0f3ef;border:3px solid white;border-radius:50%;font-size:11px;color:#66746b;font-weight:700}.record.current .record-number{background:#203034;color:#fff}.record-card{border:1px solid #e3e8e4;border-radius:9px;overflow:hidden;background:white}.record.current .record-card{border-color:#df8c8c;box-shadow:0 0 0 2px #fff0f0}.record.later{opacity:.55}.record-head{border:0;display:block;text-align:left;width:100%;background:transparent;padding:15px 16px 10px;color:inherit}.record-head:hover{background:#f8faf6}.record-meta{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;color:var(--muted);margin-bottom:8px;letter-spacing:.5px;text-transform:uppercase}.record-meta .selected{margin-left:auto;color:#b61919;letter-spacing:0}.record-head h3{font-size:15px;font-weight:650;line-height:1.5;margin:0}.record-body{padding:0 16px 16px}.record-body>p{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 12px}.record-body>p:last-child{margin:0}.record.related .record-head{background:#fff0f0}.mini-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}.mini-table th,.mini-table td{text-align:right;padding:9px 8px;border-bottom:1px solid #edf0ed}.mini-table th{font-size:11px;color:#68736d;font-weight:500;background:#f7f9f6}.mini-table th:first-child,.mini-table td:first-child{text-align:left}.mini-table tr:last-child td{border:0}.mini-table .positive{color:#b61919;font-weight:650}.mini-table .negative{color:#ae5348;font-weight:650}.table-wrap{overflow-x:auto;border:1px solid #e3e8e4;border-radius:7px}.note{background:#f7f8f5;border-left:3px solid #b7c9a5;padding:9px 11px;font-size:12px;line-height:1.7;color:#55644f;margin-top:12px}.winner-list{display:flex;flex-wrap:wrap;gap:7px}.winner{font-size:13px;background:#fff0f0;color:#8c2525;padding:7px 10px;border-radius:6px}.thresholds{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.threshold-chip{padding:8px 11px;background:#f3f5f2;border-radius:6px;font-size:13px;color:#526049}.threshold-chip.chosen{background:#ffe5e5;box-shadow:inset 0 0 0 1px #e5aaaa;color:#8c2525}.threshold-chip strong{margin-left:8px}.history-footer{padding:13px 22px;border-top:1px solid var(--line);font-size:13px;color:var(--muted);min-height:45px;background:#fbfcfa}.state-content{padding:20px}.filter-label{font-size:12px;color:var(--muted);display:block;margin-bottom:7px}#studentFilter{width:100%;padding:10px 12px;background:white;border:1px solid #ccd7ce;border-radius:7px;color:#203034;font-size:14px}.course-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0 16px}.course-summary{border:1px solid var(--line);border-radius:7px;padding:10px 8px}.course-summary strong{font-size:14px}.course-summary span{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.5}.course-summary.closed{background:#fff0f0;border-color:#efc5c5}.course-summary.active{box-shadow:0 0 0 2px #e6aaaa}.balance-table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.balance-table th,.balance-table td{padding:11px 7px;border-bottom:1px solid #e9eeea;text-align:right}.balance-table th{font-size:11px;font-weight:500;color:var(--muted);background:#f8faf7}.balance-table th:first-child,.balance-table td:first-child{text-align:left}.balance-table tr:last-child td{border:0}.balance-table td:first-child{font-weight:600}.registered{color:#a52020;font-weight:600}.legend{font-size:11px;color:var(--muted);line-height:1.7;margin:12px 0;display:flex;flex-direction:column;gap:3px}.legend-check{font-style:normal;color:#a52020}.student-summary{margin-top:16px;padding:12px;background:#f5f8f1;border-radius:7px;font-size:13px;line-height:1.8}.student-summary strong{display:block;color:#3c5b29}.ranking-details{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.ranking-details summary{font-size:13px;color:#465c41}.ranking-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.ranking{border:1px solid var(--line);padding:10px;border-radius:7px;font-size:12px}.ranking strong{font-size:13px}.ranking ol{padding-left:19px;margin:10px 0}.ranking li{padding:3px 0}.ranking li span{float:right}.ranking small{color:var(--muted)}.precision{font-size:11px;color:#7b877d;line-height:1.6;margin:18px 0 0}dialog{width:min(580px,calc(100% - 32px));border:1px solid var(--line);border-radius:12px;padding:24px;color:#203034;box-shadow:0 20px 80px #20303433}dialog::backdrop{background:#14212677}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.rule{border-top:1px solid var(--line);padding:14px 0}.rule strong{font-size:14px}.rule p{font-size:14px;line-height:1.6;color:var(--muted);margin:6px 0 0}.new-record .record-card{animation:enter .35s ease-out}@keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}@media(max-width:1050px){header{padding:18px 22px}main{padding:18px 22px}.layout{grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:14px}.history{padding:18px 14px}.record{padding-left:18px;margin-left:10px}.record-body{padding:0 12px 13px}.record-head{padding:13px 12px 9px}.state-content{padding:15px}.balance-table th,.balance-table td{padding:10px 5px;font-size:11px}.controls{gap:12px}.button{padding:9px 11px}.panel-heading{padding:17px}.course-summary{padding:9px 6px}}@media(max-width:800px){.layout{grid-template-columns:1fr}.history{height:480px;min-height:0;max-height:65vh}.controls{flex-wrap:wrap;gap:10px}.transport{flex:1}.step-count{margin-left:0}.controls label{margin-left:auto}.state-panel{margin-bottom:20px}header span{font-size:12px}.balance-table th,.balance-table td{font-size:13px;padding:12px 9px}.state-content{padding:18px}}@media(max-width:460px){header{padding:15px 16px}header>div{gap:10px}header span{max-width:120px;font-size:11px}main{padding:14px 12px}.controls{gap:10px}.transport{width:100%;flex-basis:100%;justify-content:space-between;gap:5px}.button{font-size:13px;padding:9px 11px}.panel-heading{padding:15px}.panel-heading p{font-size:12px}.history{padding:16px 10px}.record{padding-left:15px;margin-left:10px}.record-meta{font-size:10px}.record-head h3{font-size:14px}.mini-table{font-size:12px}.mini-table th,.mini-table td{padding:8px 5px}.state-content{padding:14px}.balance-table th,.balance-table td{font-size:11px;padding:10px 6px}}

.algorithm-intro{background:#fff;border:1px solid var(--line);border-radius:12px;padding:21px 22px;margin-bottom:20px}.algorithm-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding:0;list-style:none;counter-reset:steps;margin:18px 0}.algorithm-steps li{counter-increment:steps;font-size:14px;line-height:1.65}.algorithm-steps strong{display:block;font-size:14px;margin-bottom:6px}.algorithm-steps strong:before{content:counter(steps) '. ';color:var(--green)}.algorithm-steps span{color:var(--muted)}.edge-cases{border-top:1px solid var(--line);padding-top:13px}.edge-cases summary{font-size:13px;color:#8c2525}.edge-cases dl{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:18px 0 0}.edge-cases dt{font-size:13px;font-weight:650}.edge-cases dd{font-size:13px;color:var(--muted);line-height:1.7;margin:5px 0 0}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:22px}.comparison-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.comparison-content{padding:17px 20px}.capacity-note{color:var(--muted);font-size:12px;line-height:1.5;margin:12px 0 0}.result-pending{min-height:222px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;background:#f8faf6;border:1px dashed #d4dfcc;border-radius:8px}.result-pending strong{font-size:14px;font-weight:550;color:#52634a}.result-pending p{font-size:13px;color:var(--muted);line-height:1.8;max-width:330px;margin:10px 0 0}@media(max-width:1050px){.comparison{gap:14px}.comparison-content{padding:15px}.algorithm-steps{gap:16px}.algorithm-steps li{font-size:13px}}@media(max-width:800px){.algorithm-steps{grid-template-columns:1fr 1fr}.comparison{grid-template-columns:1fr}.result-pending{min-height:130px;padding:20px}.algorithm-intro{padding:18px}.comparison .mini-table{font-size:13px}}@media(max-width:460px){.algorithm-steps{grid-template-columns:1fr;gap:13px}.edge-cases dl{grid-template-columns:1fr}.comparison-content{padding:12px}.comparison .mini-table{font-size:12px}}

.allocation-input{width:100%;min-width:42px;max-width:74px;padding:7px 5px;text-align:right;border:1px solid #c7d3c9;border-radius:5px;background:#fff;color:#203034;font-size:13px;font-variant-numeric:tabular-nums}.allocation-input:focus{outline:2px solid #d43e3e;outline-offset:1px}.allocation-input[aria-invalid=true]{border-color:#bf7469}.allocation-table td{padding:6px}.allocation-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.allocation-message{font-size:12px;line-height:1.7;color:var(--muted);margin:10px 0 0}.invalid-total{color:#b61919;font-weight:600}.allocation-error-row td{color:#b61919;white-space:normal;font-size:12px;text-align:left!important;background:#fff7f4}.allocation-actions [hidden],.allocation-error-row[hidden]{display:none}@media(max-width:460px){.allocation-input{min-width:37px;padding:7px 3px}.allocation-table td{padding:6px 3px}}

.department-logo{width:54px;height:54px;object-fit:contain}.department-title{display:flex;flex-direction:column;gap:4px}.department-title span{font-size:13px}.method-intro{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:12px}.method-intro p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}.method-intro strong{display:block;color:#203034;margin-bottom:5px}.model-note{font-size:12px;color:var(--muted);line-height:1.7;padding:10px 12px;background:#f5f7f4;border-radius:6px}.proposed-heading{font-size:14px;margin:20px 0 0}.mode-switch{border:1px solid var(--line);background:white;border-radius:10px;padding:14px 18px;margin:0 0 18px;display:flex;gap:15px;flex-wrap:wrap}.mode-switch legend{font-size:13px;font-weight:600;padding:0 6px}.mode-switch label{padding:10px 14px;border:1px solid var(--line);border-radius:7px;font-size:14px;cursor:pointer}.mode-switch label:has(input:checked){background:#fff0f0;border-color:#e3a5a5}.mode-switch small{display:block;margin:5px 0 0 23px;font-size:12px;color:var(--muted)}.mode-switch p{width:100%;margin:0;font-size:13px;color:var(--muted);line-height:1.6}.mode-switch input{accent-color:#cf1515}.comparison-totals{display:flex;gap:18px;margin-top:15px}.comparison-totals span{font-size:12px;color:var(--muted);flex:1}.comparison-totals strong{display:block;font-size:18px;color:#203034;margin-top:6px}.outcome-table th{white-space:normal}.outcome-table td{font-size:12px}@media(max-width:800px){.method-intro{grid-template-columns:1fr;gap:14px}.department-title span{max-width:none;font-size:12px}.department-logo{width:42px;height:42px}}@media(max-width:460px){.department-title span{max-width:210px;font-size:11px}.mode-switch{padding:12px}.mode-switch label{width:100%}}

[hidden]{display:none!important}.mode-switch{border:0;padding:0;background:transparent;margin:0 0 20px}.mode-switch legend{margin-bottom:10px}.mode-switch label{flex:1;background:white}.mode-switch label:has(input:checked){border-color:#e00000;box-shadow:inset 0 -3px #e00000}.mode-switch p{display:none}.method-steps{list-style:none;padding:0;margin:18px 0;display:grid;gap:12px}.method-steps li{border-left:3px solid #ed2222;padding:5px 0 5px 15px}.method-steps strong{font-size:14px}.method-steps p{font-size:14px;line-height:1.6;color:var(--muted);margin:5px 0 0}.preference-editor{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.preference-editor h3{font-size:16px;margin:0 0 8px}.preference-editor p{font-size:13px;line-height:1.65;color:var(--muted)}.preference-editor label{font-size:13px;margin-right:10px}.preference-editor select{padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:white}.matrix-help{background:#fff4f4;padding:10px;border-radius:5px}.matrix-panel{margin-top:12px}.matrix-panel th{white-space:normal}.matrix-panel th:first-child{min-width:100px}.saved-matrix{margin:12px 0}.saved-matrix summary{font-size:14px;padding:8px;background:#fff4f4;cursor:pointer}#preferenceErrors{color:#b61919}.button.primary{background:#d90000;border-color:#d90000}.button.primary:hover:not(:disabled){background:#b90000}.comparison{align-items:start}
.shared-input{display:grid;grid-template-columns:1fr 1.3fr;gap:30px;background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:30px}.section-kicker{font-size:11px;letter-spacing:1.4px;font-weight:700;color:#7a7a7a}.shared-input h2{font-size:24px;margin:10px 0 12px}.shared-input p{font-size:14px;line-height:1.7;color:var(--muted)}.shared-input .allocation-message{font-size:12px}.shared-input .edge-cases{margin-top:18px}.presentation-label{font-size:12px;color:var(--muted)}.dual-systems{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.system-column{border:1px solid #d9ddda;border-radius:14px;overflow:hidden;background:white}.system-column.proposed{border-color:#ed8c8c;box-shadow:0 4px 25px #e1000009}.system-intro{padding:26px;min-height:370px;background:#f1f2f2;border-bottom:1px solid var(--line)}.proposed .system-intro{background:linear-gradient(130deg,#fff0f0,#fffafa);border-top:4px solid #e00000;padding-top:22px}.system-label{font-size:11px;letter-spacing:1.2px;font-weight:700;color:#73787a}.proposed .system-label{background:#df0000;color:white;padding:5px 9px;border-radius:4px;letter-spacing:1px}.system-intro h2{font-size:26px;letter-spacing:-.8px;margin:17px 0 12px}.system-intro p,.system-intro li{font-size:14px;line-height:1.8;color:#596361}.system-intro ol{padding-left:19px}.system-example{font-size:12px;line-height:1.7;border-top:1px solid #d6dbd8;padding-top:12px;color:#65706a}.proposed .system-example{color:#9d2828;border-color:#f0caca}.system-controls{display:flex;gap:6px;flex-wrap:wrap;padding:16px;border-bottom:1px solid var(--line)}.system-controls .button{font-size:12px;padding:8px 10px}.system-controls .step-count{font-size:12px;align-self:center}.history-title{display:flex;align-items:center;justify-content:space-between;padding:17px 20px}.history-title h3{font-size:15px;margin:0}.paired-history{height:490px;min-height:0;max-height:none;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 15px}.state-details{padding:16px 20px}.state-details summary{font-size:13px;color:#5e6761;cursor:pointer}.state-details .table-wrap{margin-top:12px}.system-result{border-top:1px solid var(--line);padding:0 20px 20px}.system-result .history-title{padding-left:0;padding-right:0}.pending-copy{font-size:13px;color:var(--muted);line-height:1.7}.legacy .record.current .record-card{border-color:#9da6a2;box-shadow:none}.legacy .record.current .record-number{background:#646d68;color:white}.legacy .winner,.legacy .threshold-chip.chosen{background:#ecefec;color:#45514a;box-shadow:none}.legacy .positive{color:#46514b}.legacy .note{border-color:#b5bdb7}.legacy .button.primary{background:#525c56;border-color:#525c56}.proposed .system-result{background:#fffafa}@media(max-width:1000px){.shared-input{grid-template-columns:1fr}.system-intro{padding:20px;min-height:420px}.system-intro h2{font-size:22px}.dual-systems{gap:14px}.system-controls{padding:12px}.system-result{padding:0 12px 16px}}@media(max-width:760px){.dual-systems{grid-template-columns:1fr}.system-intro{min-height:0}.shared-input{padding:18px;gap:20px}.paired-history{height:420px}.presentation-label{display:none}.system-intro h2{font-size:24px}}

header{position:static;padding-top:14px;padding-bottom:14px;box-shadow:0 1px 5px #00000008}.department-title{gap:3px}.department-title .department-name{font-size:14px;font-weight:600;color:#38413d;max-width:none}.department-title .department-subtitle{font-size:12px;max-width:none}.department-logo{flex-shrink:0}.shared-input h2{font-size:21px;margin:0 0 12px}.system-intro h2{font-size:23px;margin:0 0 12px;letter-spacing:-.4px}.system-intro{min-height:310px}.proposed .system-intro{background:#fff8f8}html{scroll-padding-top:0}@media(max-width:1000px){.system-intro{min-height:350px}}@media(max-width:760px){.system-intro{min-height:0}.department-title .department-name{font-size:13px}.department-title .department-subtitle{font-size:11px}}

.preference-value{font-weight:650}.system-result .mini-table th{white-space:normal}.score-metrics{border-top:1px solid var(--line);padding-top:14px}.score-section{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-top:24px}.score-section>p,.score-definition p{font-size:14px;color:var(--muted);line-height:1.75}.score-definition{margin:14px 0}.score-definition summary{font-size:14px;cursor:pointer}.score-section .table-wrap{margin-top:16px;max-width:850px}.score-average{font-weight:650;background:#fff5f5}.score-section .mini-table th{white-space:normal}@media(max-width:760px){.score-section{padding:18px}.score-section .mini-table{font-size:12px}}

.score-section{margin-top:0;margin-bottom:28px}.score-section .table-wrap{max-width:none}.result-comparison td,.result-comparison th{padding:12px}.result-comparison thead th{text-align:center}.result-comparison thead th:first-child{text-align:left}.result-comparison tbody td{text-align:center}.process-heading{margin:28px 0 18px}.process-heading h2{font-size:21px}.process-heading p{font-size:14px;line-height:1.7;color:var(--muted);margin:8px 0 0}@media(max-width:760px){.result-comparison td,.result-comparison th{padding:10px 8px}}

.system-overview{margin-bottom:26px;align-items:stretch}.system-overview .system-intro{height:100%;min-height:0;border-bottom:0}.flow-title{font-size:17px;margin:0;padding:18px 20px;background:#f1f2f2;border-bottom:1px solid var(--line)}.proposed .flow-title{background:#fff5f5;border-top:3px solid #e00000}.system-overview .system-column{box-shadow:none}

.result-comparison .proposed-cell{background:#fff0f0;color:#8f1717}.result-comparison .proposed-group{background:#cf1515;color:#fff;font-weight:700;border-top:3px solid #ae1010;border-bottom-color:#cf1515}.result-comparison thead .proposed-cell:not(.proposed-group){background:#ffe1e1;font-weight:600}.result-comparison .proposed-start{border-left:1px solid #efb7b7}.result-comparison .proposed-end{border-right:1px solid #efb7b7}.result-comparison .score-average .proposed-cell{background:#ffdddd;font-weight:700}

.result-comparison .outcome-difference{text-align:left;white-space:normal;min-width:150px;max-width:260px;line-height:1.65;font-size:13px}.outcome-difference span{display:block}.outcome-same{color:var(--muted)}.outcome-gained{font-weight:600;color:#384b3b}.outcome-lost{color:#9b3434}

.result-comparison .outcome-same{font-weight:400;color:#64716c;background:transparent;padding:0}.result-comparison .outcome-gained,.result-comparison .outcome-lost{font-weight:650;padding:6px 9px;border-radius:6px;line-height:1.6;margin:3px 0}.result-comparison .outcome-gained{color:#166534;background:#eaf7ee;border:1px solid #b9dfc4}.result-comparison .outcome-lost{color:#a91e26;background:#fff0f0;border:1px solid #efbdc1}.outcome-sign{font-weight:750;font-size:15px;margin-right:4px}

.analysis-nav{display:flex;gap:16px;flex-shrink:0}.analysis-nav a,.batch-downloads a{font-size:13px;color:#a91e26;text-underline-offset:4px}.batch-section{background:white;border:1px solid var(--line);border-radius:12px;padding:26px;margin-top:30px;scroll-margin-top:18px}.batch-section h2{font-size:23px}.batch-section h3{font-size:17px;margin:25px 0 14px}.batch-section p,.batch-section li{font-size:14px;line-height:1.8;color:var(--muted)}.batch-meta{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.batch-meta span{font-size:12px;padding:6px 10px;background:#f2f4f2;border-radius:5px}.batch-findings{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.batch-findings p{border:1px solid #eed0d0;background:#fff8f8;padding:14px;border-radius:8px;margin:0}.batch-findings strong{display:block;color:#203034}.batch-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.trial-bar{display:grid;grid-template-columns:90px 1fr 90px;gap:10px;align-items:center;font-size:12px;margin:14px 0}.trial-bar>div{height:16px;background:#f1f1f1;border-radius:4px;overflow:hidden}.trial-bar i{height:100%;display:block}.trial-bar .gain{background:#267344}.trial-bar .same{background:#89938d}.trial-bar .loss{background:#cf3939}.trial-bar strong{font-weight:500;text-align:right}.batch-filter{display:block;font-size:13px;margin:14px 0}.batch-filter select{padding:8px;border:1px solid var(--line);border-radius:6px;margin-left:10px;background:white}.batch-examples{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.batch-examples article{padding:17px;border:1px solid var(--line);border-radius:8px}.batch-examples h4{font-size:14px;margin:0 0 10px}.batch-examples p{font-size:13px}.batch-method{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}.batch-method summary{font-size:14px;cursor:pointer}.batch-method .capacity-note{overflow-wrap:anywhere}.batch-downloads{display:flex;gap:18px;flex-wrap:wrap;margin-top:22px}.shared-input form{min-width:0}.allocation-table{min-width:420px}@media(max-width:900px){.batch-grid,.batch-findings{grid-template-columns:1fr}.batch-examples{grid-template-columns:1fr}.analysis-nav{flex-direction:column;gap:8px}.batch-section{padding:18px}.trial-bar{grid-template-columns:75px 1fr 80px}}

/* Reading view: show results first, reveal controls and details on demand. */
[hidden]{display:none!important}
.allocation-input[readonly]{border-color:transparent;background:transparent;box-shadow:none;color:inherit;cursor:default;pointer-events:none}
#editAllocations{margin:8px 0 16px}
.process-section{margin:32px 0}
.reading-details{margin:14px 0;border:1px solid #e5e7eb;border-radius:12px;padding:16px;background:#fff}
.reading-details>summary{cursor:pointer;font-weight:600;color:#333;line-height:1.5}
.reading-details[open]>summary{margin-bottom:20px}
.system-overview .system-intro p{margin-bottom:0}
#restoreExample{margin-bottom:8px}

.need-line{display:block;font-weight:400;color:#65716e;font-size:12px;margin-top:6px}.batch-findings{flex-wrap:wrap}#analysisSource{margin:8px 0 16px;padding:8px}
