body.site-ui .cr-reference{min-width:0;margin-block:20px;padding:16px;border:1px solid #456172;border-radius:10px;background:#152b38;color:#dce7ee}
body.site-ui .cr-reference>.cr-heading,body.site-ui .cr-reference>h4{font-size:16px;line-height:1.5;margin:0 0 14px;color:#e1efe9}
body.site-ui .cr-reference p{line-height:1.7}
body.site-ui .cr-table-wrap{max-width:100%;overflow-x:auto}
body.site-ui .cr-table{width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;line-height:1.6}
body.site-ui .cr-table th,body.site-ui .cr-table td{overflow-wrap:anywhere;white-space:normal;padding:11px 10px;text-align:start;vertical-align:top;border-bottom:1px solid #456172;background:transparent!important;color:#dce7ee}
body.site-ui .cr-table th{color:#c7e9da}
body.site-ui .cr-table tr:hover,body.site-ui .cr-table tbody tr:nth-child(even){background:#264353!important}
body.site-ui .cr-reference.earlier-levels{padding:0;border:0;background:transparent}
@media(max-width:650px){
body.site-ui .cr-reference{padding:13px;margin-block:16px}
body.site-ui .cr-table,body.site-ui .cr-table tbody{display:block;width:100%}
body.site-ui .cr-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body.site-ui .cr-table tbody tr{display:block;margin-bottom:14px;padding:8px;border:1px solid #496979;border-radius:8px;background:#17303e}
body.site-ui .cr-table tbody th,body.site-ui .cr-table tbody td{display:block;width:auto!important;padding:8px;border:0}
body.site-ui .cr-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:#aec8d7;margin-bottom:5px}
body.site-ui .cr-table tbody td+td{border-top:1px solid #425969}
body.site-ui .cr-table button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
body.site-ui.site-refresh #gear-detail .earlier-levels .upgrade-row.unavailable{background:#172e3b;color:#c4d8e2;opacity:1;border:1px solid #486675;border-radius:8px;margin:12px 0;padding:14px}
body.site-ui.site-refresh #gear-detail .earlier-levels .upgrade-row.unavailable strong{color:#bce1d3}
body.site-ui.site-refresh[data-page="heroes"] .hero-skill-desc{color:#c9dee6;line-height:1.7}

/* Weekly bundles must shrink inside stacked mobile cells; nested catalogue lists have wider defaults. */
body.site-ui.site-refresh #detail .weekly-full-reference,body.site-ui.site-refresh #detail .weekly-full-reference .cr-table-wrap,body.site-ui.site-refresh #detail .weekly-full-reference table,body.site-ui.site-refresh #detail .weekly-full-reference td{min-width:0!important;max-width:100%;box-sizing:border-box}
body.site-ui.site-refresh #detail .weekly-full-reference .reward-list{min-width:0!important;width:100%;max-width:100%;padding-inline-start:0;box-sizing:border-box}
body.site-ui.site-refresh #detail .weekly-full-reference .reward-list>li{min-width:0!important;display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;max-width:100%;box-sizing:border-box}
body.site-ui.site-refresh #detail .weekly-full-reference .item-main{min-width:0!important;max-width:100%;flex:1 1 160px}
body.site-ui.site-refresh #detail .weekly-full-reference .item-main>div{min-width:0!important;max-width:100%}
body.site-ui.site-refresh #detail .weekly-full-reference a{white-space:normal!important;overflow-wrap:anywhere;word-break:normal}
body.site-ui.site-refresh #detail .weekly-full-reference .reward-amount{min-width:0!important;max-width:100%;white-space:normal;flex:0 1 auto}

body.site-ui .cr-matrix-scroll{min-width:0;max-width:100%;overflow-x:auto}
body.site-ui .cr-matrix{min-width:540px;white-space:normal}

@media(max-width:650px){
body.site-ui.site-refresh #detail>.dialog-head{display:flex!important;flex-wrap:wrap!important;gap:10px!important;min-width:0!important;width:100%;max-width:100%;box-sizing:border-box;padding-inline:14px!important}
body.site-ui.site-refresh #detail>.dialog-head>*{min-width:0!important;max-width:100%;box-sizing:border-box}
body.site-ui.site-refresh #detail>.dialog-head>div:not(.compact-detail-actions){flex:1 1 170px}
body.site-ui.site-refresh #detail>.dialog-head .price-controls{flex:1 1 100%;width:100%!important;max-width:100%!important;min-width:0!important;display:flex;flex-wrap:wrap;gap:8px}
body.site-ui.site-refresh #detail>.dialog-head .price-controls select{min-width:0!important;max-width:100%}
body.site-ui.site-refresh #detail .compact-detail-actions{position:static!important;flex:1 1 100%;display:flex!important;justify-content:flex-end;flex-wrap:wrap!important;min-width:0!important;max-width:100%;gap:8px}
body.site-ui.site-refresh #detail .compact-detail-actions #close{position:static!important;margin:0!important;flex:0 1 auto;max-width:100%}
body.site-ui.site-refresh #detail .compact-detail-menu{inset-inline-end:0!important;max-width:min(300px,calc(100vw - 64px));min-width:0!important;box-sizing:border-box}
body.site-ui.site-refresh #detail .compact-detail-menu .dialog-actions{display:flex!important;flex-wrap:wrap!important;min-width:0!important;max-width:100%}
}
@media(max-width:650px){
body.site-ui.site-refresh #detail>.dialog-head .price-controls{flex:0 1 auto;width:auto!important}
body.site-ui.site-refresh #detail .compact-detail-actions{flex:1 1 auto;flex-direction:row!important;align-items:center!important;width:auto!important}
body.site-ui.site-refresh #detail .compact-detail-actions .compact-detail-more{position:relative!important}
}
@media(min-width:651px){
body.site-ui .weekly-full-reference .cr-table th:nth-child(1){width:10%}
body.site-ui .weekly-full-reference .cr-table th:nth-child(2){width:14%}
body.site-ui .weekly-full-reference .cr-table th:nth-child(3),body.site-ui .weekly-full-reference .cr-table th:nth-child(4){width:38%}
body.site-ui .weekly-full-reference .cr-table-wrap{overflow:visible}
body.site-ui .weekly-full-reference .cr-table thead th{position:sticky;top:72px;z-index:2;background:#203b4b!important}
}
