/* Two-page upgrade reference polish. Models, data and shared surfaces are unchanged. */
body.site-ui.site-refresh.game-ui[data-upgrade-page] main {max-width:1200px;margin-inline:auto}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main :is(h1,h2,h3) {text-wrap:balance}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main :is(input,select,button,summary,a):focus-visible {outline:2px solid #eac477;outline-offset:3px}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main details>summary {cursor:pointer;min-height:44px;display:flex;align-items:center;gap:12px;list-style:none;padding:10px 14px;border:1px solid #3d6070;border-radius:7px;background:#172e3c;color:#e4eff4;font-weight:650;font-size:13px}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main details>summary::-webkit-details-marker {display:none}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main details>summary::after {content:'›';font-size:22px;line-height:1;margin-left:auto;transform:none;color:#a8d5ca;flex:none}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main details[open]>summary::after {transform:rotate(90deg)}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main details>summary:hover {background:#214252;border-color:#75b6ad}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main details[open]>summary {margin-bottom:10px}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main :is(.list-intro,.level-hero) {padding:16px 18px;margin:0 0 14px;min-height:0;border:1px solid #345464;border-radius:10px;background-color:#102735}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main :is(.list-intro,.level-hero) h1 {font-size:clamp(24px,2.8vw,32px);margin:0 0 6px}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main :is(.list-intro,.level-hero) p {font-size:13px;line-height:1.6;margin:0;max-width:850px;color:#b9cbd4}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .list-tools {padding:12px 14px;margin-bottom:10px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .list-controls {display:flex;gap:12px 22px;margin:0;align-items:end;justify-content:start}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form {flex:1;gap:8px;flex-wrap:nowrap;align-items:end;min-width:0}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form label:first-child {flex:1;min-width:150px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form label:nth-child(2) {flex:0 0 112px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form :is(select,input) {width:100%;max-width:none;min-height:44px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form button {min-height:44px;white-space:nowrap}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-range {display:none}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .save-more-field {flex:0 1 235px;min-width:170px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .save-more-field select {min-height:44px;max-width:none}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .exact-toggle {min-height:44px;padding:0;font-size:12px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] :is(.save-more-summary,.list-tip) {font-size:12px;margin:8px 0 0;line-height:1.5}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .save-more-summary {padding:6px 9px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .level-range {padding:0;margin:10px 0 16px;border:0;background:none}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .level-range[open] {padding:12px;border:1px solid #345464;background:#102330}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .level-section {border:1px solid #345464;border-radius:9px;margin:16px 0 24px;overflow:visible}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .list-heading {padding:12px 14px 8px;margin:0;gap:4px 16px;align-items:center}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .list-heading h2 {font-size:17px;letter-spacing:0;line-height:1.4}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .list-heading>span {font-size:11px;color:#b9cbd4}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .cost-explanation {margin:0 12px 8px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .cost-explanation>summary {min-height:36px;padding:6px 10px;font-size:12px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .cost-explanation p {padding:0 2px;margin:8px 0;font-size:13px;color:#c1d2db}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] :is(.configured-note,.transition-note) {margin:8px 12px;font-size:12px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-wrap {border:0;border-radius:0 0 9px 9px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table {table-layout:fixed;font-variant-numeric:tabular-nums}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table caption {padding:8px 14px;font-size:11px;color:#bbced8}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table :is(th,td) {padding:6px 12px!important;text-align:right;line-height:1.5}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table th {background:#1c394a!important;color:#e2edf3!important;font-size:12px;font-weight:700;border-bottom:2px solid #658c9e}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table td {height:44px;font-size:13px!important;border-bottom:1px solid #2c4553}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table tbody tr:nth-child(even) {background:#102431}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table tbody tr:hover {background:#1c3b49}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table :is(th,td):first-child,body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .shared-table :is(th,td):nth-child(2),body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .rd-table :is(th,td):last-child {text-align:left}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .level-number {display:inline-flex;align-items:center;min-height:32px;font-size:13px;white-space:nowrap;color:#a9ded3;text-decoration:underline;text-underline-offset:3px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table tbody tr:is(:target,:focus,.range-selected) {background:#24483f!important;outline:2px solid #99d3bc;outline-offset:-2px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .gold-amount,body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .plan-amount {color:#edf4f7;font-weight:650}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .disc-amount {color:#d5c2f0!important}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .prereq-cell {color:#bed0d9!important}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .level-hero {display:block}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .tool-jumps {margin:0 0 10px;padding:0;min-height:44px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .preset-options {margin:0 0 12px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .plan-presets {margin:0;padding:12px;gap:8px;background:#102330}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .layout {margin-top:0;gap:18px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .panel {padding:14px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .panel h2 {font-size:17px;margin:0 0 12px;padding-bottom:10px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .panel :is(.field,.two-fields) {margin-bottom:12px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] :is(.mini-reference,.bonus-guide) {margin:10px 0 0;padding:0;border:0;background:none}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .modifier-levels {gap:6px;padding:4px 0}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .modifier-levels>span {padding:7px;font-variant-numeric:tabular-nums}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] #plan-total .range-heading {padding:10px 12px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] #plan-total .range-heading h2 {font-size:18px}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .stat-number {font-variant-numeric:tabular-nums}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .plan-actions {gap:8px;margin:12px 0}
body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .material-summary li {align-items:baseline;gap:14px}
@media(max-width:700px){
 body.site-ui.site-refresh.game-ui[data-upgrade-page] main :is(.list-intro,.level-hero) {padding:12px;margin-bottom:10px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .list-controls {gap:10px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form {flex:1 0 100%;flex-wrap:wrap;gap:6px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form label:first-child {flex:1 0 100%}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form label:nth-child(2) {flex:1}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form button {flex:0 0 68px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .save-more-field {flex:1 0 100%}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .exact-toggle {min-height:32px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .list-heading {padding:10px;display:block}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table :is(th,td) {padding:6px!important}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table th {font-size:11px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table td {font-size:12px!important}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .level-number {font-size:12px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .has-prerequisites {overflow:auto;max-height:65vh;overscroll-behavior:contain}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .rd-table {min-width:560px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .rd-table thead {top:0}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .panel {padding:12px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .tool-jumps {gap:6px;display:flex;flex-wrap:wrap}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="calculator"] .tool-jumps a {padding:8px;font-size:12px}
}
@media print{body.site-ui.site-refresh.game-ui[data-upgrade-page] main details>summary {color:#000;background:white}body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .has-prerequisites {max-height:none;overflow:visible}}

body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table tbody tr:nth-child(even) td {background:#102431!important}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table tbody tr:is(:hover,:target,:focus,.range-selected) td {background:#24483f!important}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .reference-table thead th {background:#1c394a!important}
body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .level-number {background:transparent}
@media(max-width:700px){
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form {display:flex!important;flex-wrap:wrap!important}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form label:first-child {flex:1 1 100%;width:100%}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .list-controls {background:transparent}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .list-tools {padding:10px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .save-more-field {flex:1 1 190px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] .exact-toggle {flex:1 1 100%;min-height:28px}
}

body.site-ui.site-refresh.game-ui[data-upgrade-page] main details>summary::before {content:none!important;display:none!important}
body.site-ui.site-refresh.game-ui[data-upgrade-page] main details>summary::after {position:static!important;width:auto!important;height:auto!important;border:0!important;background:none!important;mask:none!important;clip-path:none!important}
@media(min-width:360px) and (max-width:700px){
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form {flex-wrap:nowrap!important}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form label:first-child {flex:1 1 auto;width:auto;min-width:0}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form label:nth-child(2) {flex:0 0 74px}
 body.site-ui.site-refresh.game-ui[data-upgrade-page="costs"] #jump-form button {flex:0 0 52px;padding-inline:6px}
}
