/* Same restrained arrow comparison as the boss-relic result. Only values that
   actually change are strong; capped proc chances stay in the normal text tone. */
#modal[data-view="forge"] .forge-comparison{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:0 10px;border-top:1px solid #514932;border-bottom:1px solid #514932;padding:16px 8px;margin:18px 0;color:#b8c6aa}
#modal[data-view="forge"] .forge-compare-heading{font-size:14px;line-height:1.5;font-weight:400;color:#c7c3b6}
#modal[data-view="forge"] .forge-compare-heading small{display:block;font-size:12px;color:#b8c6aa;margin-top:2px}
#modal[data-view="forge"] .forge-compare-arrow{align-self:center;font-size:23px;color:#b8bda7}
#modal[data-view="forge"] .forge-compare-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:10px;margin-top:14px}
#modal[data-view="forge"] .forge-compare-row>div{min-width:0}
#modal[data-view="forge"] .forge-compare-label{display:block;font-size:12px;line-height:1.5;font-weight:400;margin-bottom:4px;word-break:keep-all;overflow-wrap:anywhere}
#modal[data-view="forge"] .forge-compare-value{display:block;font-size:22px;line-height:1.4;font-weight:400;color:#b8c6aa;font-variant-numeric:tabular-nums;white-space:nowrap}
#modal[data-view="forge"] .forge-compare-value.is-changed{font-weight:700;color:#f3dea5}
#modal[data-view="forge"] .forge-row-arrow{font-size:16px;color:#7c927a}
#modal[data-view="forge"] .forge-weapon-details{color:#b8c6aa;font-size:12px;line-height:1.8;text-align:left;overflow-wrap:anywhere}
#modal[data-view="forge"] .forge-weapon-details summary{width:fit-content;margin:auto;cursor:pointer;padding:6px 12px;min-height:32px;color:#b8c6aa}
#modal[data-view="forge"] .forge-weapon-details summary:focus-visible{outline:2px solid #d9bd83;outline-offset:2px}
#modal[data-view="forge"] .forge-weapon-details p{padding:8px 0 2px}
/* The track remains a read-only preview, as before. The two late stages stay
   together and borrow the dimmed QWER empty-slot treatment plus its lock icon. */
#modal[data-view="forge"] .chance-track{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:4px;margin:18px 0}
#modal[data-view="forge"] .chance-track span{padding:0;background:none;font:inherit;line-height:inherit}
#modal[data-view="forge"] .forge-chance-step{position:relative;min-width:0;min-height:66px;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:7px 1px;background:#293c2e;font-size:12px;line-height:1.55;text-align:center;color:#d8dfce;border:1px solid transparent}
#modal[data-view="forge"] .forge-chance-step.next{border-color:#d4bc81;outline:none;background:#4f5437}
#modal[data-view="forge"] .forge-late-stages{grid-column:span 2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;border-top:1px solid #56634a;padding-top:3px}
#modal[data-view="forge"] .forge-late-stages>small{grid-column:1/-1;color:#a8b396;font-size:10px;line-height:1.5;white-space:nowrap}
#modal[data-view="forge"] .forge-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#modal[data-view="forge"] .forge-chance-step.is-locked{padding-top:18px;padding-bottom:4px;background:linear-gradient(140deg,#303522,#192018);border-color:#5c5b3b66;color:#95a087;box-shadow:inset 0 0 0 1px #0b191455}
#modal[data-view="forge"] .forge-chance-step.is-locked>span:not(.forge-stage-lock){opacity:.54}
#modal[data-view="forge"] .forge-chance-step.is-locked .forge-stage-lock{position:absolute;right:2px;top:1px;font-size:10px;line-height:1.3;opacity:.85}
#modal[data-view="forge"] .forge-owned{margin:20px 0 16px}
#modal[data-view="forge"] .forge-owned h4{margin:0 0 5px;font-size:12px;line-height:1.5;font-weight:400;color:#a8b396}
#modal[data-view="forge"] .forge-owned p{font-size:13px;line-height:1.9;overflow-wrap:anywhere}
#modal[data-view="forge"] .forge-owned p>span:not(.forge-owned-separator){display:inline-block;max-width:100%;vertical-align:top}
#modal[data-view="forge"] .forge-option{margin:14px 0}
#modal[data-view="forge"] .forge-option .modal-button{max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere}
#modal[data-view="forge"] .forge-scroll-source{margin-top:22px}
@media(max-width:760px){
 #modal[data-view="forge"] .forge-stage{padding:18px 0}
 #modal[data-view="forge"] .forge-comparison{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:0 6px;padding:14px 0}
 #modal[data-view="forge"] .forge-compare-row{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:6px}
 #modal[data-view="forge"] .forge-compare-value{font-size:20px}
 #modal[data-view="forge"] .chance-track{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
 #modal[data-view="forge"] .forge-weapon-details summary{min-height:44px;padding:10px 12px}
}

/* Final weapons have ten stages: keep the same cell width as the ordinary
   track, but center their complete row and each wrapped phone row. */
#modal[data-view="forge"] .chance-track.is-final-weapon{display:flex;justify-content:center;flex-wrap:wrap;align-items:flex-end}
#modal[data-view="forge"] .chance-track.is-final-weapon>.forge-chance-step{flex:0 0 calc((100% - 44px)/12)}
@media(max-width:760px){
 #modal[data-view="forge"] .chance-track.is-final-weapon>.forge-chance-step{flex-basis:calc((100% - 25px)/6)}
}
