.reference-module{min-width:0}.reference-cards,.reference-formula-grid,.reference-staff-grid{align-items:start}.reference-formula-grid,.reference-staff-grid,.reference-calculator-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.reference-card{min-width:0;display:flex;flex-direction:column;gap:12px}.reference-card h2{font-size:17px;line-height:1.6;margin:0}.reference-card h3{font-size:13px;margin-top:14px}.reference-card>.pill{align-self:flex-start}.reference-card-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}.reference-card-meta small{font-size:10px}.reference-description,.reference-check p,.reference-extra p{color:var(--muted);font-size:12px;line-height:1.8}.reference-card .formula{margin:0;border:1px solid #29414e;border-radius:6px;overflow-wrap:anywhere;white-space:normal}.reference-card .equipment-effects{grid-template-columns:repeat(4,minmax(0,1fr))}.reference-extra{padding-top:10px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.reference-extra summary{cursor:pointer;color:#aec2cc;line-height:1.7}.reference-extra[open] summary{margin-bottom:10px}.reference-source{font-size:10px;border-top:1px solid var(--line);padding-top:10px;color:#81a2b1}.reference-source p{font-size:11px}.reference-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 0}.reference-values>div{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:7px 9px;background:#122c37;border-radius:5px;min-width:0}.reference-values dt{font-size:10px;color:#87a8ba;overflow-wrap:anywhere}.reference-values dd{margin:0;font-size:11px;color:#d5e7eb;text-align:right;overflow-wrap:anywhere}.reference-check{background:#0d1c26;border:1px solid #28424b;border-radius:7px;padding:11px;font-size:11px;color:var(--muted)}.reference-check>.pill{margin-bottom:8px}.reference-check .reference-extra{margin-top:9px}.reference-match-list{display:grid;gap:5px;max-height:180px;overflow:auto;font-size:10px;overflow-wrap:anywhere}.reference-fieldset{margin:0;min-width:0;padding-top:15px}.reference-fieldset legend{font-size:17px;font-weight:700;color:#dbe9ed;padding:0 8px}.reference-basis{display:grid;gap:7px;color:var(--muted);font-size:11px;margin-bottom:18px}.reference-basis input{width:100%;min-width:0;font-size:12px}.reference-fieldset .calculator-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-calculator-controls{margin-top:18px;display:grid;gap:15px}.reference-calculator-controls .muted{font-size:11px}.reference-confirm{display:flex;gap:11px;align-items:flex-start;font-size:12px;color:#bed0d8;cursor:pointer}.reference-confirm input{width:18px;height:18px;min-height:18px;margin:3px 0 0;flex:0 0 auto;accent-color:var(--gold)}.reference-calculator-controls .page-actions{flex-wrap:wrap}.reference-calculator-output{margin-top:20px}.reference-calculator-output h2{margin-bottom:15px}.reference-result-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.reference-result-totals>div{display:grid;gap:4px;min-width:0}.reference-result-totals small{font-size:11px}.reference-result-totals strong{font-size:30px;line-height:1.4;color:var(--gold);overflow-wrap:anywhere}.reference-result-table{margin-top:16px}.reference-negative,.reference-result-totals strong.reference-negative{color:#e99d94}.reference-result-table .data-table tbody th{font-size:11px;background:transparent}.reference-result-table td{font-variant-numeric:tabular-nums}.reference-result-table th,.reference-result-table td{width:25%}@media(max-width:1100px){.reference-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.reference-formula-grid,.reference-staff-grid,.reference-calculator-grid{grid-template-columns:1fr}.reference-result-totals{gap:10px}.reference-result-totals strong{font-size:25px}}@media(max-width:600px){.reference-cards{grid-template-columns:1fr}.reference-result-totals strong{font-size:22px}.reference-calculator-controls .page-actions{display:grid;grid-template-columns:1fr;width:100%}.reference-calculator-controls .button{white-space:normal;line-height:1.5}.reference-values>div{gap:6px;padding:6px}.reference-card-meta .pill{white-space:normal}.reference-check p{font-size:11px}}
.reference-table-scroll{margin-bottom:20px;max-width:100%}
.reference-table-scroll:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.reference-table{table-layout:auto}
.reference-table thead th{text-align:left}
.reference-table tbody tr{background:#0d1f29}
.reference-table tbody td,.reference-table tbody th{vertical-align:top}
.reference-table tbody th{background:inherit;color:var(--text);font-size:13px;white-space:normal;font-weight:600}
.reference-table tbody tr:last-child th{border-bottom:0}
.reference-table .reference-item-name{min-width:170px;max-width:250px}
.reference-item-name strong,.reference-staff-effect strong{font-weight:650;line-height:1.7}
.reference-item-name small,.reference-role small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:4px}
.reference-equipment-table{min-width:1020px}
.reference-equipment-table thead th:first-child{position:sticky;left:0;z-index:2}
.reference-equipment-table .reference-item-name{position:sticky;left:0;z-index:1}
.reference-equipment-table .reference-stat{padding:12px 9px;min-width:54px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:14px;font-weight:650;color:var(--gold)}
.reference-equipment-table thead th:not(:first-child):not(:nth-last-child(-n+2)){text-align:center;padding:13px 9px}
.reference-equipment-table .reference-stat.is-zero{font-weight:400;color:#7896a8}
.reference-acquisition{min-width:140px;max-width:230px;white-space:pre-line}
.reference-table-details{min-width:160px;max-width:460px;color:var(--muted);font-size:11px}
.reference-table-details>summary{color:var(--mint);cursor:pointer;font-size:12px;white-space:nowrap}
.reference-table-details[open]{min-width:280px}
.reference-table-details>.pill{margin-top:12px;white-space:normal}
.reference-table-details .reference-check{margin-top:12px}
.reference-table-details .reference-extra{margin-top:12px}
.reference-table-details .reference-source{margin-top:12px}
.reference-table-details h3{font-size:12px;margin:12px 0 0}
.reference-formulas-table{min-width:760px}
.reference-focus{white-space:nowrap}
.reference-formula-expression{display:block;min-width:240px;max-width:470px;font-family:Consolas,"Microsoft YaHei",monospace;font-size:13px;line-height:1.8;color:#b7dfe0;white-space:normal;overflow-wrap:anywhere}
.reference-formula-note{min-width:200px;max-width:400px;color:var(--muted)}
.reference-formula-note>.reference-table-details{margin-top:10px}
.reference-staff-table{min-width:900px}
.reference-old-number{font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}
.reference-role{min-width:105px;white-space:nowrap}
.reference-staff-effect{min-width:190px;max-width:300px}
.reference-suggestion{min-width:170px;max-width:320px;color:var(--muted);white-space:pre-line}
@media(max-width:700px){.reference-table td,.reference-table th{padding:10px 12px}.reference-equipment-table .reference-item-name{min-width:150px}.reference-table-details[open]{min-width:250px}}
