/* v3.9.33 — TOKIDEX complete collection palette. Visual only; no plugin behavior changes. */
body:has(.ts-collection){--tx-navy:#0c2038;--tx-deep:#101d32;--tx-blue:#719bd0;--tx-cream:#f1e9db;--tx-paper:#fffaf1;--tx-gold:#efbf62;--tx-ink:#10233e;background:var(--tx-cream)!important}
body:has(.ts-collection) .ts-collection{color:var(--tx-ink)!important}
/* Uniform content panels below the header, including dynamic tab contents. */
body:has(.ts-collection) :is(.ts-discovery-main,.ts-badges,.ts-showcase,.ts-profile-section,.ts-analytics,.ts-tokidex-index,.ts-species-focus,.ts-species-card,.ts-journal,.ts-found-intro,.ts-market-note,.ts-market-card,.ts-market-hero,.ts-trade-binder,.ts-trade-pass,.ts-trade-match,.ts-sale-row,.ts-sale-form,.ts-sale-filters,.ts-profile-achievements,.ts-profile-recent,.ts-collection-grid,.ts-access-panel,.ts-empty,.ts-index-empty,.ts-showcase-empty,.ts-tiertrack,.ts-focus-stats,.ts-focus-stats4,.ts-trade-grid,.ts-trade-form,.ts-inbox-summary,.ts-inbox-detail){background:var(--tx-paper)!important;color:var(--tx-ink)!important;border-color:#8aa9d0!important;border-radius:2px!important;box-shadow:4px 4px 0 rgba(113,155,208,.38)!important}
body:has(.ts-collection) :is(.ts-discovery-main,.ts-badges,.ts-showcase,.ts-analytics,.ts-tokidex-index,.ts-market-card,.ts-species-card,.ts-journal,.ts-profile-section) :is(h1,h2,h3,h4,strong){color:var(--tx-ink)!important}
body:has(.ts-collection) :is(.ts-discovery-main,.ts-badges,.ts-showcase,.ts-analytics,.ts-tokidex-index,.ts-market-card,.ts-species-card,.ts-journal,.ts-profile-section) :is(p,small,li,label){color:#324965!important}
body:has(.ts-collection) :is(.ts-kicker,.ts-sectionline,.ts-badgehead,.ts-cardtop,.ts-species-no){color:#426ba1!important}
/* Dashboard numeric rows and collection progress */
body:has(.ts-collection) :is(.ts-levelrow,.ts-focus-stats,.ts-focus-stats4,.ts-profile-stats,.ts-tiertrack){background:#e9f0fa!important;border-color:#739bd0!important;color:var(--tx-ink)!important}
body:has(.ts-collection) :is(.ts-levelrow,.ts-focus-stats,.ts-focus-stats4,.ts-profile-stats) :is(strong,b){color:var(--tx-ink)!important}
body:has(.ts-collection) :is(.ts-badge,.ts-badge-progress,.ts-locked,.ts-step){border-color:#93b0d4!important}
body:has(.ts-collection) :is(.ts-badge,.ts-badge-progress,.ts-locked){background:#fffaf1!important;color:#203a59!important}
/* Consistent retro section titles and control bars */
body:has(.ts-collection) :is(.ts-index-head,.ts-focus-head,.ts-badgehead,.ts-journal-row,.ts-sale-row,.ts-interest-row,.ts-provenance-row){border-color:#94afd2!important}
body:has(.ts-collection) :is(.ts-tabs,.ts-collection-tools,.ts-search,.ts-franchise-filter){background:var(--tx-navy)!important;color:#fffaf1!important;border-color:#719bd0!important}
body:has(.ts-collection) :is(.ts-tabs,.ts-collection-tools) a{color:#fffaf1!important}
body:has(.ts-collection) :is(.ts-btn,button.ts-btn,.ts-market-actions a,.ts-card-actions a){border-radius:2px!important;border-color:#719bd0!important}
body:has(.ts-collection) :is(input,select,textarea){color:var(--tx-ink);border-color:#8aa9d0;background:#fffdf9}
body:has(.ts-collection) :is(.ts-card,.ts-species-card,.ts-journal-row,.ts-showcase-grid>*,.ts-market-grid>*,.ts-trade-grid>*){border-color:#8aa9d0!important}
/* Protect dark sections and existing high-contrast header/nav from light-panel overrides. */
body:has(.ts-collection) :is(.ts-collection-head,.ts-statbar,.ts-collector-nav){background-color:var(--tx-navy)!important;color:#fffaf1!important}
body:has(.ts-collection) .ts-collection-head :is(h1,h2,p,span){color:inherit}
body:has(.ts-collection) .ts-statbar :is(strong,b){color:#fffaf1!important}
body:has(.ts-collection) .ts-statbar :is(span,small){color:var(--tx-gold)!important}
@media(max-width:720px){body:has(.ts-collection) :is(.ts-discovery-main,.ts-badges,.ts-showcase,.ts-analytics,.ts-market-card){box-shadow:2px 2px 0 rgba(113,155,208,.3)!important}}
