/* Personal appearance controls. Existing theme tokens own both color schemes. */
.site-user-menu{max-height:calc(100dvh - 90px);overflow-y:auto}
html .home-page .hero-new .button-discord-main{color:#FFFFFF}
html[data-color-scheme="dark"] .range-store .rank-continuous-list .from-plus{color:var(--muted)}

/* Only light mode overrides the legacy dark presentation. No layout changes. */
html[data-color-scheme="light"]{--light-vip-ink:#197241;--light-plus-ink:#176B9B}
html[data-color-scheme="light"] body::before,html[data-color-scheme="light"] body[class]::before{opacity:var(--landscape-light-header-opacity,.13)}
html[data-color-scheme="light"] body::after,html[data-color-scheme="light"] body[class]::after{opacity:var(--landscape-light-content-opacity,.07)}
html[data-color-scheme="light"] body{background-color:var(--bg)!important;color:var(--text);color-scheme:light}
html[data-color-scheme="light"] body .site-header.site-header-simple .site-control{color:var(--appearance-accent)}
html[data-color-scheme="light"] body .site-header.site-header-simple .site-control:hover{color:var(--text)}
html[data-color-scheme="light"] .site-brand,html[data-color-scheme="light"] .site-footer-brand{color:var(--text)}
html[data-color-scheme="light"] .site-footer.site-footer-simple .site-footer-brand{color:var(--text)}
html[data-color-scheme="light"] .site-header-simple .site-brand-accent,html[data-color-scheme="light"] .site-footer.site-footer-simple .site-footer-brand>span>span{color:var(--appearance-accent2)}
html[data-color-scheme="light"] :is(.site-brand,.site-footer-brand)>img{filter:none;background:var(--appearance-accent2);border-radius:50%}
html[data-color-scheme="light"] :is(.site-session-placeholder,#user-menu-initial){background:var(--appearance-raised);border-color:var(--appearance-border);color:var(--text)}
html[data-color-scheme="light"] .site-user-menu{color:var(--text)}
html[data-color-scheme="light"] .site-user-menu a,html[data-color-scheme="light"] .site-footer.site-footer-simple .site-footer-links a{color:var(--appearance-link)}
html[data-color-scheme="light"] .site-footer.site-footer-simple .site-footer-socials>a{color:var(--muted)}
html[data-color-scheme="light"] .site-footer.site-footer-simple .site-footer-socials>a:hover{background:var(--appearance-hover);color:var(--appearance-link)}
html[data-color-scheme="light"] .site-footer.site-footer-simple .site-footer-bottom{border-color:var(--appearance-border)}
html[data-color-scheme="light"] :is(.site-copyright,.site-legal-notice){color:var(--muted)}
html[data-color-scheme="light"] .home-page .hero-new-description{color:var(--text);text-shadow:none}
html[data-color-scheme="light"] .home-page .hero-new-indicators li{background:var(--appearance-panel);border-color:var(--appearance-border)}
html[data-color-scheme="light"] .home-page .terraria-indicator{color:#3F7457}
html[data-color-scheme="light"] .home-page .platform-indicator{stroke:#406B8B}
html[data-color-scheme="light"] .home-page .community-indicator{stroke:var(--appearance-accent)}
html[data-color-scheme="light"] .home-page .gallery-dot::before{opacity:.85}
html[data-color-scheme="light"] .home-page .gallery-dot[aria-pressed="true"]::before{opacity:1}
html[data-color-scheme="light"] .home-page .shop-preview-section{background:var(--appearance-panel);border-color:var(--appearance-border);box-shadow:0 8px 28px #39264D0C}
html[data-color-scheme="light"] .home-page .shop-preview-section .shop-preview-support{color:var(--muted)}
html[data-color-scheme="light"] .home-page .shop-preview-content h2 .home-title-vip{color:var(--light-vip-ink);background:none}
html[data-color-scheme="light"] .home-page .shop-preview-content h2 .home-title-plus{color:var(--light-plus-ink);background:none}
html[data-color-scheme="light"] .range-store .store-page-title{color:var(--text);text-shadow:none}
html[data-color-scheme="light"] .range-store .store-page-title::before{background:radial-gradient(circle,#7551A20D,transparent 70%)}
html[data-color-scheme="light"] .range-store .store-title-text{background:linear-gradient(180deg,#262232,#7551A2);background-clip:text;-webkit-background-clip:text;filter:none}
html[data-color-scheme="light"] .range-store .store-title-ornament{color:#967021;filter:none}
html[data-color-scheme="light"] .range-store .store-page-intro{color:var(--text);text-shadow:none}
html[data-color-scheme="light"] .range-store :is(.store-purchase-note a,.store-support-link,.upgrade-information){color:var(--appearance-link)}
html[data-color-scheme="light"] .range-store .benefits-title{color:var(--text);text-shadow:none}
html[data-color-scheme="light"] .range-store{--benefits-guide:var(--appearance-hover)}
html[data-color-scheme="light"] .range-store .benefits-table-frame{border-color:var(--appearance-border)}
html[data-color-scheme="light"] .range-store .benefits-table .feature-category-row>th,html[data-color-scheme="light"] .range-store .benefits-table>thead>tr>th{background:var(--appearance-raised);color:var(--muted)}
html[data-color-scheme="light"] .range-store .rank-choice-group::after{background:var(--appearance-card);border-color:var(--appearance-border);box-shadow:inset 0 1px 3px #39264D14}
html[data-color-scheme="light"] .range-store .rank-choice-group::before{background:var(--appearance-panel);border-color:var(--appearance-accent2);box-shadow:0 1px 4px #39264D17}
html[data-color-scheme="light"] .range-store :is(.benefits-selector,.benefits-purchase-selector) .rank-choice{color:var(--muted)}
html[data-color-scheme="light"] .range-store :is(.benefits-selector,.benefits-purchase-selector) .rank-choice[aria-pressed="true"]{color:var(--text)}
html[data-color-scheme="light"] .range-store .benefits-table>tbody>.rank-compare-feature::after{border-color:var(--appearance-accent2)}
html[data-color-scheme="light"] .range-store .feature-info-icon{color:var(--appearance-accent)}
html[data-color-scheme="light"] .range-store .rank-continuous-list .from-plus{color:var(--muted)}
html[data-color-scheme="light"] .range-store #store-availability-status{background:#FFF5DB;color:#805B14;border-color:#D8C59A}
html[data-color-scheme="light"] .range-store .store-benefit-bubble{--benefit-bubble-surface:var(--appearance-bubble);color:var(--text);box-shadow:0 -5px 18px #39264D30}
html[data-color-scheme="light"] .store-benefit-bubble :is(.benefit-bubble-head code,.benefit-timings dd,.benefit-timings strong){color:var(--text)}
html[data-color-scheme="light"] .store-benefit-bubble .benefit-notes{color:var(--muted)}
html[data-color-scheme="light"] :is(.identity-vip,.identity-plus,.terraria-prefix,.discord-role-mention){padding:1px 4px;border-radius:4px;background:var(--appearance-card);text-shadow:none}
html[data-color-scheme="light"] :is(.identity-vip,.prefix-vip){color:var(--light-vip-ink)}
html[data-color-scheme="light"] :is(.identity-plus,.prefix-plus){color:var(--light-plus-ink)}
html[data-color-scheme="light"] .range-store .rank-continuous-list .feature-mark.is-included circle{fill:var(--appearance-check);stroke:none}
html[data-color-scheme="light"] .range-store .rank-continuous-list .feature-mark.is-included path{stroke:#FFFFFF}
html[data-color-scheme="light"] .range-store .rank-continuous-list .feature-mark.is-unavailable circle{fill:var(--appearance-crossBg);stroke:var(--appearance-cross)}
html[data-color-scheme="light"] .range-store .rank-continuous-list .feature-mark.is-unavailable path{stroke:var(--appearance-cross)}
html[data-color-scheme="light"] .range-store .benefit-value{padding:1px 4px;border-radius:4px;background:var(--appearance-card);color:#805B14}
html[data-color-scheme="light"] .range-store [data-feature="/house"] [data-rank="vip"] .benefit-value{background:transparent;color:var(--muted)}
/* Original shields stay untouched; pale scenery and deeper rank text fit light surfaces. */
html[data-color-scheme="light"] :is(.home-page,.range-store){--vip-accent:var(--light-vip-ink);--plus-accent:var(--light-plus-ink)}
html[data-color-scheme="light"] :is(.home-rank-preview,.range-store .store-ranks .store-card,.range-store .benefits-purchase-footer .purchase-cell,.range-store .benefits-purchase-desktop .compact-rank-option){
 --light-rank-surface:var(--appearance-vipCard);--light-rank-ink:var(--light-vip-ink);--light-rank-scene:url('/img/rank-backgrounds/vip-quiet.svg');
 background:linear-gradient(color-mix(in srgb,var(--light-rank-surface) 96%,transparent),color-mix(in srgb,var(--light-rank-surface) 94%,transparent)),var(--light-rank-scene) center/cover no-repeat,var(--light-rank-surface);
 border-color:color-mix(in srgb,var(--light-rank-ink) 24%,var(--appearance-border));color:var(--light-rank-ink);box-shadow:inset 0 1px #FFFFFF99,0 5px 16px #39264D12;
}
html[data-color-scheme="light"] :is(.home-rank-plus,.range-store .store-ranks .store-card-featured,.range-store .benefits-purchase-footer .purchase-cell[data-rank="plus"],.range-store .benefits-purchase-desktop [data-purchase-rank="plus"]){--light-rank-surface:var(--appearance-plusCard);--light-rank-ink:var(--light-plus-ink);--light-rank-scene:url('/img/rank-backgrounds/plus-quiet.svg')}
html[data-color-scheme="light"] .range-store .store-ranks .store-card{--rank-accent:var(--light-vip-ink)}
html[data-color-scheme="light"] .range-store .store-ranks .store-card-featured{--rank-accent:var(--light-plus-ink)}
html[data-color-scheme="light"] .range-store .store-ranks h3{color:var(--rank-accent)}
html[data-color-scheme="light"] .range-store .store-ranks :is(h3,.store-price){text-shadow:none}
html[data-color-scheme="light"] .range-store .store-ranks .store-price,html[data-color-scheme="light"] .range-store :is(.compact-rank-copy,[data-compact-price],.compact-price-fixed){color:var(--text)}
html[data-color-scheme="light"] .range-store :is(.store-gift-action,.store-card-featured .store-gift-action){background:var(--appearance-raised);color:#805B14;box-shadow:none}
html[data-color-scheme="light"] .site-theme-page .product-hero{--product-accent:var(--light-vip-ink)}
html[data-color-scheme="light"] .site-theme-page .product-hero:is([data-product-page="plus"],[data-product-page="upgrade"]){--product-accent:var(--light-plus-ink)}
html[data-color-scheme="light"] .site-theme-page .product-hero::before{opacity:.1}
html[data-color-scheme="light"] .site-theme-page :is(.product-kicker,.product-subtitle){width:fit-content;max-width:100%;padding:2px 6px;border-radius:5px;background:var(--appearance-card)}
html[data-color-scheme="light"] .site-theme-page [data-gift-page] .store-card{--gift-accent:var(--light-vip-ink);background:var(--appearance-vipCard);color:var(--text);box-shadow:0 5px 16px #39264D12}
html[data-color-scheme="light"] .site-theme-page [data-gift-page] .store-card:is([data-product="plus"],[data-product="upgrade"]){--gift-accent:var(--light-plus-ink);background:var(--appearance-plusCard)}
html[data-color-scheme="light"] .site-theme-page [data-gift-page] :is(.store-description,.store-card ul,.store-price){color:var(--text)}
html[data-color-scheme="light"] .site-theme-page [data-gift-page] :is(.store-tier,.store-subtitle){color:var(--appearance-accent)}
html[data-color-scheme="light"] .site-theme-page [data-gift-product],html[data-color-scheme="light"] .site-theme-page [data-gift-product]:hover:not(:disabled){background:var(--appearance-raised);color:#805B14}
html[data-color-scheme="light"] :is(.terms-modal-card,.payment-modal-card,.cart-panel,.detail-card){background:var(--appearance-panel);border-color:var(--appearance-border);color:var(--text)}
html[data-color-scheme="light"] :is(.terms-intro,.terms-legal-note,.payment-step-copy,.payment-modal-footnote,.purchase-context-note,.payment-summary,.cart-empty,.cart-note){color:var(--muted)}
html[data-color-scheme="light"] :is(.payment-method-option,.gift-recipient-card,.payment-amount-panel,.cart-item,.case-box,.action-box){background:var(--appearance-card);border-color:var(--appearance-border);color:var(--text)}
html[data-color-scheme="light"] :is(.payment-method-option,.gift-recipient-card,.cart-item) :is(strong,p,span){color:inherit}
html[data-color-scheme="light"] :is(.payment-close,.terms-modal-card .payment-close,.text-button,.cart-close,.detail-close){background:var(--appearance-raised);border-color:var(--appearance-border);color:var(--text)}
html[data-color-scheme="light"] .button-primary:not(.button-discord-main):not(.store-buy):not(.compact-buy):not(#detail-buy-button):not(#upgrade-card-button){background:var(--appearance-accent);border-color:var(--appearance-accent);color:#FFFFFF}
html[data-color-scheme="light"] :is(.terms-feedback,.payment-feedback,.account-feedback){color:var(--muted)}
html[data-color-scheme="light"] .site-theme-page .orders-table tbody tr:hover,html[data-color-scheme="light"] .site-theme-page .rank-compare-table>tbody>.rank-compare-feature:hover>:is(th,td){background:var(--appearance-hover)}
html[data-color-scheme="light"] .site-theme-page.error-page .error-inner .button{color:#FFFFFF}
html[data-color-scheme="light"] .site-theme-page>main[style] a{color:var(--appearance-link)!important}
html[data-color-scheme="light"] .account-main .store-price{color:var(--text)}
html[data-color-scheme="light"] :is(.terms-modal-card,.payment-modal-card,.appearance-admin-main) label{color:var(--text)}
html[data-color-scheme="light"] :is(main,dialog,.terms-modal-card,.payment-modal-card,.detail-card) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),select,textarea){background:var(--appearance-raised);color:var(--text);border-color:var(--appearance-border)}
html[data-color-scheme="light"] :is(input,textarea)::placeholder{color:var(--muted)}
html[data-color-scheme="light"] :is(input[type="checkbox"],input[type="radio"],input[type="range"]){accent-color:var(--appearance-accent)}
html[data-color-scheme="light"] :is(.order-status,.badge){color:var(--appearance-accent)}
html[data-color-scheme="light"] .badge.error{color:#97384A;background:#FFF0F2}
html[data-color-scheme="light"] .stat-value{color:var(--text)}
html[data-color-scheme="light"] #discord-check-button{background:var(--appearance-raised);color:var(--text);border-color:var(--appearance-border)}
html[data-color-scheme="light"] :is(.shop-notice,.toast,.terms-document,.terms-accept-label,.manual-code,.rank-world-list span){background:var(--appearance-card);border-color:var(--appearance-border);color:var(--text)}
html[data-color-scheme="light"] :is(.payment-order-id,.payment-instructions,.paypal-checkout-panel,.purchase-season-notice){background:var(--appearance-card);border-color:var(--appearance-border);color:var(--text)}
html[data-color-scheme="light"] :is(.terms-accept-label a,.upgrade-info-dialog a,.purchase-context-note a){color:var(--appearance-link)}
html[data-color-scheme="light"] :is(.manual-code-label,.manual-code p,.payment-reference-form>p,.payment-order-id>span,.payment-amount-panel>span,.payment-amount-panel small,.payment-instructions p,.paypal-checkout-panel>p,.cart-line,.cart-empty,.cart-note){color:var(--muted)}
html[data-color-scheme="light"] :is(.manual-code-value,.payment-order-id code,.paypal-checkout-panel h3,.cart-code,.cart-product,.cart-confirm,.rank-popover-head strong){color:var(--text)}
html[data-color-scheme="light"] .payment-method-option:hover:not(:disabled){background:var(--appearance-hover)}
html[data-color-scheme="light"] .terms-read-hint{color:#805B14}
html[data-color-scheme="light"] .terms-read-hint.is-complete{color:#1C7044}
html[data-color-scheme="light"] .terms-progress{background:var(--appearance-raised)}
html[data-color-scheme="light"] .terms-progress i{background:var(--appearance-accent)}
html[data-color-scheme="light"] .terms-read-hint.is-complete .terms-progress i{background:var(--appearance-check)}
html[data-color-scheme="light"] :is(.upgrade-info-dialog,.rank-benefit-popover){background:var(--appearance-panel);border-color:var(--appearance-border);color:var(--text)}
html[data-color-scheme="light"] :is(.upgrade-info-dialog button,.rank-popover-close,.cart-btn){background:var(--appearance-raised);border-color:var(--appearance-border);color:var(--text)}
html[data-color-scheme="light"] .rank-popover-head{background:var(--appearance-bubble)}
html[data-color-scheme="light"] :is(.cart-status,.badge){background:#FFF5DB;border-color:#D8C59A;color:#805B14}
html[data-color-scheme="light"] .badge.ok{background:#E3F2E8;border-color:#87B89B;color:#1C7044}
html[data-color-scheme="light"] :is(.badge.info,.badge.refund){background:var(--appearance-raised);border-color:var(--appearance-border);color:var(--appearance-link)}
html[data-color-scheme="light"] :is(.badge.error,.cart-btn-danger,.detail-card .reject,.detail-card .order-actions .reject){background:#FFF0F2;border-color:#DCAAB4;color:#97384A}
html[data-color-scheme="light"] .cart-btn-primary{background:var(--appearance-accent);border-color:var(--appearance-accent);color:#FFFFFF}
html[data-color-scheme="light"] body [data-kind="warning"]{color:#805B14;background-color:#FFF5DB;border-color:#D8C59A}
html[data-color-scheme="light"] body [data-kind="success"]{color:#1C7044;background-color:#E3F2E8;border-color:#87B89B}
html[data-color-scheme="light"] body [data-kind="error"]{color:#97384A;background-color:#FFF0F2;border-color:#DCAAB4}
