/* PondLife 7.81 — ONLY the approved Trading Post list/table refinements. */
/* Full-width rarity colors; no per-cell background or rarity-name-only coloring. */
body:has(#trading-post) .sp-trading-rarity-panel #trading-rarity-grid .sp-rarity-board-row{color:#fff!important;border-color:transparent!important;}
body:has(#trading-post) .sp-trading-rarity-panel #trading-rarity-grid .sp-rarity-board-row.rarity-common{background:#414B5A!important}
body:has(#trading-post) .sp-trading-rarity-panel #trading-rarity-grid .sp-rarity-board-row.rarity-uncommon{background:#176A43!important}
body:has(#trading-post) .sp-trading-rarity-panel #trading-rarity-grid .sp-rarity-board-row.rarity-rare{background:#2059A8!important}
body:has(#trading-post) .sp-trading-rarity-panel #trading-rarity-grid .sp-rarity-board-row.rarity-epic{background:#7032A0!important}
body:has(#trading-post) .sp-trading-rarity-panel #trading-rarity-grid .sp-rarity-board-row.rarity-legendary{background:#986000!important}
body:has(#trading-post) .sp-trading-rarity-panel #trading-rarity-grid .sp-rarity-board-row.rarity-mythical{background:#92288C!important}
body:has(#trading-post) .sp-trading-rarity-panel #trading-rarity-grid .sp-rarity-board-row.rarity-special{background:#A92065!important}
body:has(#trading-post) .sp-trading-rarity-panel #trading-rarity-grid .sp-rarity-board-row.rarity-event{background:#4D419F!important}
body:has(#trading-post) .sp-trading-rarity-panel #trading-rarity-grid .sp-rarity-board-row :is(.sp-rarity-board-name,.sp-rarity-board-name b,.sp-rarity-board-name .sp-rarity-symbol,.sp-rarity-board-in,.sp-rarity-board-value,strong,span){color:#fff!important;text-shadow:none!important;background:transparent!important}
/* Hide visual counts only: IDs remain for the existing renderer. */
body:has(#trading-post) #trading-duplicate-count,body:has(#trading-post) #trading-missing-count{display:none!important}
/* Six cards in exactly 3 columns on desktop; existing 7.77 pager continues handling six per page. */
@media(min-width:701px){
 body:has(#trading-post) #trading-duplicates .sp-trading-card-grid.sp-trading-duplicate-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:8px!important}
 body:has(#trading-post) #trading-duplicates .sp-trading-duplicate-grid>.sp-trading-duck-card{width:100%!important;min-width:0!important;max-width:none!important;flex:none!important}
}
/* Duplicate cards: centered maximum label and compact minus/count/plus control. */
body:has(#trading-post) #trading-duplicates .sp-trading-qty-label{display:block!important;width:100%!important;text-align:center!important;margin:3px auto 2px!important;line-height:1.2!important}
body:has(#trading-post) #trading-duplicates .sp-trading-qty-label small{display:block!important;text-align:center!important;width:100%!important;margin:0!important;font-size:11px!important}
body:has(#trading-post) #trading-duplicates .sp-trading-qty-control{display:grid!important;grid-template-columns:30px 30px 30px!important;justify-content:center!important;align-items:center!important;width:92px!important;max-width:100%!important;gap:0!important;margin:0 auto 3px!important;padding:0!important}
body:has(#trading-post) #trading-duplicates .sp-trading-qty-control :is(button,span){width:30px!important;min-width:0!important;margin:0!important;padding:0!important;text-align:center!important}
/* Larger bold point values in both trading card sets only. */
body:has(#trading-post) #trading-duplicates .sp-trading-meta-points,body:has(#trading-post) #trading-missing .sp-trading-meta-points{font-size:15px!important;line-height:1.3!important;font-weight:900!important}
/* Trade-for cards: eliminate unused padding below claim buttons without changing click behavior. */
body:has(#trading-post) #trading-missing .sp-trading-claim-card{padding-bottom:2px!important;gap:2px!important}
body:has(#trading-post) #trading-missing .sp-trading-claim-card .sp-trading-card-button{margin-bottom:0!important;flex-shrink:0!important}
