/* Preserve the artwork frames and selection effects; only data surfaces change. */
.header-account .account-popover{right:0;max-width:calc(100vw - 24px);box-sizing:border-box;max-height:calc(100dvh - 90px);overflow-y:auto}
.header-account .account-logout{display:block;visibility:inherit;opacity:1;background:var(--surface-soft);color:#82534f;font-family:var(--sans);border-color:var(--line)}
html[data-theme=dark] .header-account .account-logout{color:#f0c4b9;background:#34413a;border-color:#64705d}
html[data-theme=dark] .header-account .account-logout:hover{background:#455348;color:#fff4df}
html[data-theme=dark] #mailbox .compose-stamp:not(.has-stamp){background:transparent url('../assets/design37/mail-stamp.png') center/contain no-repeat;box-shadow:none;border:0;opacity:1}
html[data-theme=dark] #mailbox .compose-stamp:not(.has-stamp)::after{color:#becaab}
#memories .rings{width:220px;height:220px;transform:none;margin:0;overflow:visible}
#memories .rings .companion-ring{display:block;left:50%;top:50%;translate:-50% -50%;border:1.4px solid #89a775;opacity:.8;z-index:1}
#memories .ring-days{width:46%;height:46%;background:var(--surface);border-color:var(--line);box-shadow:0 4px 16px #4b6b3e12}
#memories .ring-days strong{font-size:34px}html[data-theme=dark] #memories .rings .companion-ring{border-color:#b4cd98;box-shadow:0 0 10px #a4c48116}
.shop-summary .shop-watch-metric{min-width:0;align-self:stretch}.cultivation-title{display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:600}
.cultivation-title button{font-size:10px;white-space:nowrap}
.cultivation-grid54{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:6px;margin-top:12px;text-align:center}
.cultivation-grid54>div{display:flex;flex-direction:column;gap:7px;align-items:center;padding:10px 4px;background:var(--surface-raised);border-radius:10px;min-width:0}
.cultivation-grid54 span{font-size:11px}.cultivation-grid54 strong{font-size:20px!important;line-height:1.4!important;color:var(--muted)}
.cultivation-grid54 #shop-watch-time{font-size:13px!important;white-space:nowrap}.cultivation-grid54 .done{color:var(--deep)}
.cultivation-grid54 small{font-size:9px!important;white-space:normal}.cultivation-note54{font-size:10px!important;line-height:1.75;display:block;margin-top:8px}
#cultivation-earned{font-size:11px;display:block;margin-top:10px;color:var(--deep)}
#live-binding-code{font-size:11px;overflow-wrap:anywhere;background:var(--surface-soft);padding:10px;border-radius:8px;user-select:text}
.shop-summary .shop-redeemed-metric{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;gap:8px;min-width:0}
.shop-redeemed-metric .redemption-count54{font-size:12px;color:var(--muted)}.shop-redeemed-metric #shop-redeemed{font:inherit!important;display:inline!important;color:var(--deep)}
.shop-goal-label54{font-size:11px;display:block;width:100%;color:var(--muted)}#shop-goal{width:100%;margin-top:5px;border:1px solid var(--line);border-radius:8px;background:var(--surface-raised);color:var(--ink);font:inherit;padding:8px;text-overflow:ellipsis}
#shop-estimate,#shop-fastest{font-size:12px!important;line-height:1.6!important;color:var(--deep)}#shop-goal-price,#shop-estimate-note{font-size:10px!important;line-height:1.7;color:var(--muted)}
#shop-guard-multiplier{color:var(--gold);font-weight:600;line-height:1.8}
.resource-fields54{padding:12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px}.resource-fields54 small{font-size:11px;line-height:1.6}.resource-remove54{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;font-size:11px}.resource-remove54 input{width:auto!important}
#live-config54{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}#live-config54 label{display:flex;flex-direction:column;gap:8px;font-size:12px}#live-config54 input{padding:10px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}#live-config54 .full{grid-column:1/-1}#live-config54 .live-enable54{flex-direction:row;align-items:center}
#live-config54 .live-enable54{justify-content:flex-start}#live-config54 input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;padding:0;margin:0;accent-color:var(--green,#52764c)}#live-config54>div.full{display:flex;flex-wrap:wrap;gap:8px}#live-config54 input[type=password]{min-width:0;width:100%;box-sizing:border-box}
html[data-theme=dark]{--paper:#141d1a;--surface:#202d26;--surface-soft:#26382d;--surface-raised:#2b3c30;--text:#eeeede;--ink:#eeeede;--muted:#becbb7;--deep:#c9ddaf;--green:#b6ce9e;--line:#455743;--gold:#d7c18b;--art-paper:#202d26;--art-cream:#243329}
html[data-theme=dark] :is(.shop-summary,.shop-product,.shop-orders,.yearring-panel,.sync-panel,.letter-compose,.mailbox-picker){background-color:var(--surface);border-color:var(--line)}
html[data-theme=dark] :is(.shop-product-copy p,.shop-stock,.memory-meta,.shop-order-row small,.gift-records-count,.gift-pagination-status){color:var(--muted)}
html[data-theme=dark] :is(.shop-order-row,.gift-pagination button,.gift-records-summary,.lottery-odds){border-color:var(--line)}
html[data-theme=dark] :is(.shop-stock,.gift-pagination button,.message-tools button){background:var(--surface-raised);color:var(--text)}
html[data-theme=dark] .gift-order-actions .btn.primary{color:#1c2b20;background:#c5d8aa}html[data-theme=dark] #mailbox .letter-rich{background:var(--surface-soft);color:var(--text)}
@media(min-width:761px){#shop .shop-summary{grid-template-columns:minmax(160px,.9fr) minmax(320px,1.8fr) minmax(200px,1.15fr)}#shop .shop-medal-metric{min-width:0}#shop .shop-watch-metric{margin-top:12px}}
@media(max-width:760px){.header-account .account-popover{right:0;width:min(270px,calc(100vw - 24px))}#memories .rings{width:150px;height:150px;margin:0;transform:none}#memories .ring-days strong{font-size:26px}#memories .ring-days small{font-size:8px}#memories .yearring-panel{grid-template-columns:minmax(0,1fr) 150px;gap:12px;padding:22px 16px}.shop-summary .shop-redeemed-metric{width:100%;padding-top:16px}.cultivation-grid54{gap:5px}#live-config54{grid-template-columns:1fr}}
@media(max-width:390px){#memories .yearring-panel{grid-template-columns:1fr}#memories .rings{margin:6px auto}#shop .shop-summary{padding:16px}.cultivation-grid54 small{font-size:9px!important}}
@media(prefers-reduced-motion:reduce){#memories .companion-ring{animation:none!important}}

@media(min-width:761px){#shop .shop-summary .shop-medal-metric{grid-template-columns:minmax(105px,.65fr) minmax(200px,1.35fr)}#shop .shop-summary .shop-watch-metric{margin-top:0}}
html[data-theme=dark] #shop .shop-summary>div{border-color:var(--line)}
#shop #cultivation-earned{font-family:var(--sans);font-size:12px!important;line-height:1.7!important;font-weight:600;margin:10px 0 0}
#shop #shop-guard-multiplier{color:var(--gold)}
@media(max-width:760px){
 #shop .shop-summary{grid-template-columns:minmax(0,1fr)!important;gap:12px;padding:0;background:none;border:0;box-shadow:none}
 #shop .shop-summary>div{min-height:0;width:100%;padding:18px 20px;box-sizing:border-box;border:1px solid var(--line)!important;border-radius:20px;align-items:stretch}
 #shop .shop-summary .shop-points-main{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px}
 #shop .shop-points-main #shop-points{font-size:28px;grid-row:1/3;grid-column:2}
 #shop .shop-summary .shop-medal-metric{grid-template-columns:minmax(0,1fr);gap:14px}
 #shop .shop-medal-data{display:grid;grid-template-columns:1fr auto;gap:5px 12px;align-items:center}
 #shop .shop-medal-data #shop-medal-level{font-size:18px;margin:0;grid-column:2;grid-row:1/3}
 #shop .shop-summary .shop-watch-metric{padding:14px 0 0;border-left:0;border-top:1px solid var(--line)}
 #shop .cultivation-title{display:flex;flex-direction:row;justify-content:space-between}
 #shop .cultivation-grid54{grid-template-columns:1.3fr 1fr 1fr;gap:8px}
 #shop .cultivation-grid54>div{padding:12px 6px}
 #shop .cultivation-grid54 small{font-size:10px!important;line-height:1.5}
 #shop .cultivation-grid54 span{font-size:12px;white-space:nowrap}
 #shop #shop-goal{font-size:12px}#shop #shop-estimate,#shop #shop-fastest{font-size:13px!important;margin:0}
 #shop .shop-summary .shop-redeemed-metric{gap:10px}
 .header-account .account-popover-head>div{display:block!important;min-width:0;flex:1}
 .header-account .account-popover-head strong,.header-account .account-popover-head span{display:block!important;visibility:inherit;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

#cultivation-note:empty{display:none}
