/* Both slots keep their size for empty, single and multiple selections. */
.upgrade-page .upgrade-main { align-items:start; }
.upgrade-page :is(.upgrade-source-window,.upgrade-target-window) {
    box-sizing:border-box; height:320px!important; min-height:320px!important;
    max-height:320px; overflow:hidden!important; display:flex; flex-direction:column; padding:18px!important;
}
.upgrade-page :is(.upgrade-selected-area,.upgrade-target-area) {
    flex:1 1 0; min-height:0!important; height:auto!important;
    overflow:auto!important; scrollbar-gutter:stable both-edges; padding:6px 0!important;
    align-content:safe center; align-items:center; justify-content:center;
}
.upgrade-page .upgrade-selected-area.is-single { display:flex; }
.upgrade-page :is(.upgrade-selected-area.is-single,.upgrade-target-area.has-item) .upgrade-item-card.large {
    width:78%; max-width:none; max-height:100%; padding:16px 12px; margin:0 auto;
    box-sizing:border-box; overflow:auto; flex:none; border:0; background:none; box-shadow:none;
}
.upgrade-page :is(.upgrade-selected-area.is-single,.upgrade-target-area.has-item) .upgrade-item-card.large::after { display:none; }
.upgrade-page :is(.upgrade-selected-area.is-single,.upgrade-target-area.has-item) .upgrade-item-card.large::before { display:none; }
.upgrade-page :is(.upgrade-selected-area.is-single,.upgrade-target-area.has-item) .ui-icon { width:88px; height:88px; margin:0 auto 10px; }
.upgrade-page :is(.upgrade-selected-area.is-single,.upgrade-target-area.has-item) .ui-name { font-size:14px; margin-bottom:8px; }
.upgrade-page :is(.upgrade-selected-area.is-single,.upgrade-target-area.has-item) .ui-price { font-size:14px; }
.upgrade-page :is(.upgrade-selected-area.is-single,.upgrade-target-area.has-item) .upgrade-item-card.large .ui-icon { width:88px; height:88px; margin:0 auto 10px; }
.upgrade-page :is(.upgrade-selected-area.is-single,.upgrade-target-area.has-item) .upgrade-item-card.large .ui-name { font-size:14px; margin-bottom:8px; white-space:normal; }
.upgrade-page :is(.upgrade-selected-area.is-single,.upgrade-target-area.has-item) .upgrade-item-card.large .ui-price { font-size:14px; }
.upgrade-page .upgrade-panel-tools { display:flex; gap:10px; padding:5px 0; border:0; background:none; box-shadow:none; }
.upgrade-page .upgrade-panel-tools .upgrade-icon { width:22px; height:25px; min-width:22px; padding:2px; border:0; border-radius:0; background:none!important; box-shadow:none!important; color:#97999c; transition:color .25s ease,scale .3s ease; }
.upgrade-page .upgrade-panel-tools .upgrade-icon:hover { color:var(--accent); scale:1.1; transform:none; }
.upgrade-page .upgrade-panel-tools :is(#sound-toggle,#fast-toggle) { color:var(--accent); }
.upgrade-page .upgrade-panel-tools svg { width:100%; height:100%; display:block; }
#upgrade-toolbar .upgrade-icon { width:22px!important; height:25px!important; min-width:22px; padding:2px; border:0!important; border-radius:0!important; background:none!important; box-shadow:none!important; }
#upgrade-toolbar { gap:10px; border:0!important; background:none!important; box-shadow:none!important; }
.upgrade-page .upgrade-panel-title-icon { object-fit:contain; }
.upgrade-page #upgrade-btn .upgrade-action-image { filter:brightness(0)!important; opacity:1; width:25px; height:25px; }
.upgrade-page #upgrade-btn { display:flex; align-items:center; justify-content:center; gap:10px; min-height:50px; border-radius:10px; font-weight:850; transition:filter .3s ease,box-shadow .3s ease; }
.upgrade-page #upgrade-btn:not(:disabled) { color:#06120c; background:linear-gradient(var(--accent-hover),var(--accent)); border:1px solid var(--accent); box-shadow:inset 0 1px #ffffff25; }
.upgrade-page #upgrade-btn:not(:disabled):hover { filter:brightness(1.08); transform:none; }
html:not([data-halloween]):not([data-theme="orange"]) .upgrade-page :is(.upgrade-choice-window,.upgrade-bottom-panel,.upgrade-balance-add,.upgrade-target-controls) { background:var(--md-card)!important; border-color:var(--md-border); }
.upgrade-settings-modal.upgrade-info-modal { width:min(560px,calc(100vw - 32px)); max-height:85vh; overflow:auto; border:1px solid rgba(var(--accent-rgb),.25); background:var(--md-card,var(--bg-card)); border-radius:16px; box-shadow:0 24px 80px #0008; }
.upgrade-settings-modal .upgrade-settings-group { padding:16px 0; margin:0; border:0; border-bottom:1px solid #ffffff0c; background:none; border-radius:0; }
.upgrade-settings-modal .upgrade-settings-group:last-child { border-bottom:0; }
.upgrade-settings-modal :is(.upgrade-settings-label,.ur-animation-setting) { color:var(--text-white); font-weight:700; }
.upgrade-settings-modal .upgrade-settings-hint { color:var(--text-muted); line-height:1.6; }
#settings-modal .upgrade-settings-modal-v2 { background:linear-gradient(145deg,#0b0f16,#151b26 52%,#090c12)!important; }
#settings-modal .upgrade-settings-group { background:none!important; box-shadow:none!important; border:0!important; border-bottom:1px solid #ffffff0d!important; border-radius:0!important; padding:16px 0!important; margin:0!important; }
@media(max-width:900px){.upgrade-page :is(.upgrade-source-window,.upgrade-target-window){height:260px!important;min-height:260px!important;max-height:260px;}}
@media(max-width:480px){.upgrade-page :is(.upgrade-source-window,.upgrade-target-window){height:248px!important;min-height:248px!important;max-height:248px;}.upgrade-page :is(.upgrade-selected-area.is-single,.upgrade-target-area.has-item) .upgrade-item-card.large .ui-icon{width:65px;height:65px;}}
@media(prefers-reduced-motion:reduce){.upgrade-page :is(.upgrade-icon,#upgrade-btn){transition:none!important;}}
