/* Light palette for the Typer. Loaded last; dark mode remains unchanged. */
html[data-mr-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg2: #f6f8fa;
  --card: #ffffff;
  --line: #d8e0e7;
  --text: #303740;
  --muted: #536471;
  --accent: #0d6efd;
  --gold: #866300;
  --green: #087f5b;
  --orange: #a84b00;
  --red: #d6293e;
  --surface-hover: #f3f6f9;
  --surface-selected: #e8f1ff;
  --link: #0052cb;
  --tp-scroll-track: #f3f6f9;
  --tp-scroll-thumb: #aab6c2;
  --tp-scroll-thumb-hover: #8796a5;
}
html[data-mr-theme="light"],
html[data-mr-theme="light"] body,
html[data-mr-theme="light"] :is(.app,.game-main,.game-sidebar,.screen-head,.typer-admin){
  background:#fff !important;
  color:var(--text) !important;
}
html[data-mr-theme="light"] *{scrollbar-color:#b7c2cc #f3f6f9;}
html[data-mr-theme="light"] ::-webkit-scrollbar-track,
html[data-mr-theme="light"] ::-webkit-scrollbar-corner{background:#f3f6f9;}
html[data-mr-theme="light"] ::-webkit-scrollbar-thumb{background:#b7c2cc;border-color:#f3f6f9;}

html[data-mr-theme="light"] :is(.manager-brand,.manager-brand-copy b,.screen-head h1,.screen-user,.view-heading h2,.ar-top h2){color:#303740 !important;}
html[data-mr-theme="light"] :is(.manager-brand-copy span,.nav-label,.screen-head p,.view-heading p,.ar-top p,.sidebar-profile small){color:#536471 !important;}
html[data-mr-theme="light"] .sidebar-profile{background:#fff !important;border-color:#d8e0e7 !important;}
html[data-mr-theme="light"] .game-sidebar .tab:hover,
html[data-mr-theme="light"] .game-sidebar .tab.active{background:#f3f6f9 !important;color:#303740 !important;}
html[data-mr-theme="light"] .game-sidebar .tab.active .tab-icon{color:#0d6efd !important;}
html[data-mr-theme="light"] .screen-head{border-color:#e5eaf0 !important;}

html[data-mr-theme="light"] :is(.command-rail,.match,.panel,.rank-ctrl,.mb-wrap,.boot,.ar-panel,.ar-duel,.rules-card,.wel-inline,.lvc,.ar-dialog,.typer-admin .card,.tp-segments,.tp-first-visit,.tp-help,.tp-profile-preview,.tp-item,.tp-workshop,.tp-craft-card,.tp-crate-summary,.tp-eng-panel,.tp-balance,.tp-coupon-dock,.tp-notify-popover,.tp-eng-dialog){
  background:#fff !important;
  border-color:#d8e0e7 !important;
  color:#303740 !important;
  box-shadow:none !important;
}
html[data-mr-theme="light"] :is(.command-link,.typed-match-toggle,.ar-btn,.bm-btn.edit,.h2h-btn,.watch-btn,.tp-button){
  background:#fff !important;
  border-color:#c8d2dc !important;
  color:#303740 !important;
}
html[data-mr-theme="light"] :is(.command-link,.typed-match-toggle,.ar-btn,.bm-btn.edit,.h2h-btn,.watch-btn,.tp-button):hover{background:#f3f6f9 !important;}
html[data-mr-theme="light"] .command-link.active{background:#303740 !important;border-color:#303740 !important;color:#fff !important;}

html[data-mr-theme="light"] :is(.bm,.bm.has-bet,.mb-item,.mb-ghead,.mb-rhead,.mb-gbody,.mb-rbody,.fx,.fx-detail,.ar-choice,.ar-user-option,.toast,.msg){
  background:#fff !important;
  border-color:#e5eaf0 !important;
  color:#303740 !important;
}
html[data-mr-theme="light"] :is(.bm:hover,.bm.has-bet:hover,.mb-head:hover,.mb-ghead:hover,.mb-rhead:hover){background:#f6f8fa !important;}
html[data-mr-theme="light"] :is(.scorebox input,.statbox input,select.scorer,.rank-search,.rank-sort,.h2h-selects select,.ar-month,.ar-field input,.ar-field select,.typer-admin input,.typer-admin select,.tp-inventory-filters select,.tp-ux-v4 .mcard-points .numwrap input){
  background:#fff !important;
  border-color:#c8d2dc !important;
  color:#303740 !important;
}
html[data-mr-theme="light"] :is(.opt,.scorer-chip,.sb){background:#fff !important;border-color:#c8d2dc !important;color:#303740 !important;}
html[data-mr-theme="light"] :is(.opt:hover,.scorer-chip:hover,.sb:hover){background:#f3f6f9 !important;}
html[data-mr-theme="light"] :is(.opt.sel,.opt.sel.no,.opt.sel.under,.scorer-chip.sel){background:#e8f1ff !important;color:#0052cb !important;border-color:#0d6efd !important;}

html[data-mr-theme="light"] :is(.ar-dialog-head,.ar-dialog-foot,.tp-eng-dialog-head){background:#fff !important;border-color:#d8e0e7 !important;}
html[data-mr-theme="light"] :is(.tp-notify-btn,.tp-eng-close,.tp-notify-row,.tp-eng-kpis>div,.tp-pass-level,.tp-mission,.tp-sprint-card,.tp-record,.tp-limited-list>div,.tp-profile-kpis>div,.tp-profile-section,.tp-profile-statgrid>div,.tp-profile-metrics-group){
  background:#fff !important;
  border-color:#d8e0e7 !important;
  color:#303740 !important;
}
html[data-mr-theme="light"] :is(.tp-notify-row:hover,.tp-notify-popover .tp-notify-row:hover){background:#f3f6f9 !important;}

html[data-mr-theme="light"] :is(.rank-sync-ui,#view-ranking .rank-table-panel.rank-grid,#view-coins .mrc-rank,#view-ranking .ar-rank-list){
  background:#fff !important;
  border-color:#d8e0e7 !important;
  box-shadow:none !important;
}
html[data-mr-theme="light"] :is(.rank-sync-ui .rank-grid-head,.rank-sync-ui .mrc-rank-head,.rank-sync-ui .ar-rank-list-head,#view-ranking .rank-grid-head,#view-coins .mrc-rank-head,#view-ranking .ar-rank-list-head){
  background:#f3f6f9 !important;
  border-color:#d8e0e7 !important;
  color:#536471 !important;
}
html[data-mr-theme="light"] :is(.rank-sync-ui .rank-grid-row,.rank-sync-ui .mrc-rank-row,.rank-sync-ui .ar-rank-row,#view-ranking .rank-grid-row,#view-coins .mrc-rank-row,#view-ranking .ar-rank-row){
  background:#fff !important;
  border-color:#e5eaf0 !important;
}
html[data-mr-theme="light"] :is(.rank-sync-ui .rank-grid-row,.rank-sync-ui .mrc-rank-row,.rank-sync-ui .ar-rank-row):hover{background:#f6f8fa !important;}
html[data-mr-theme="light"] :is(.rank-sync-ui .rank-name,.rank-sync-ui .mrc-who-copy>b,.rank-sync-ui .ar-rank-user-copy>b,.rank-sync-ui .ar-rank-podium-name>b){color:#303740 !important;}
html[data-mr-theme="light"] :is(.rank-sync-ui .mrc-money-value b,.rank-sync-ui .rk-total,.rank-sync-ui .ar-rank-points b){color:#17202b !important;}
html[data-mr-theme="light"] .rank-sync-ui .mrc-row-skin{background-color:#fff !important;}
html[data-mr-theme="light"] .rank-sync-ui .mrc-row-skin::before{opacity:.25 !important;}
html[data-mr-theme="light"] .rank-sync-ui .mrc-row-skin::after{opacity:.12 !important;mix-blend-mode:multiply !important;}
html[data-mr-theme="light"] :is(.rank-sync-ui .mrc-nick-badge,.rank-sync-ui .mrc-title-art,.rank-sync-ui .ar-mini-badges>span){background:#f3f6f9 !important;border-color:#d8e0e7 !important;}
html[data-mr-theme="light"] .rank-sync-ui .mrc-nick-title{background:#eef5ff !important;color:#303740 !important;}
html[data-mr-theme="light"] .rank-sync-ui .mrc-nick-title-text{color:#303740 !important;}

html[data-mr-theme="light"] .game-sidebar .tabs-wrap{background:#fff !important;border-color:#d8e0e7 !important;box-shadow:0 -8px 24px rgba(15,23,42,.08) !important;}
html[data-mr-theme="light"] .tp-save-area{background:#fff !important;border-color:#d8e0e7 !important;}
html[data-mr-theme="light"] .mcard-points .markets,
html[data-mr-theme="light"] .tp-ux-v4 .mcard-points .tp-stat-markets,
html[data-mr-theme="light"] .tp-extra-markets{background:#f8fafc !important;border-color:#d8e0e7 !important;}

/* Ranking, header counters and Dust help: keep all light-mode surfaces readable. */
html[data-mr-theme="light"] .rank-mode-btn{
  background:#fff !important;
  border-color:#c8d2dc !important;
  color:#536471 !important;
}
html[data-mr-theme="light"] .rank-mode-btn:hover{background:#f3f6f9 !important;color:#303740 !important;}
html[data-mr-theme="light"] .rank-mode-btn.on{
  background:#e8f1ff !important;
  border-color:#0d6efd !important;
  color:#0052cb !important;
}
html[data-mr-theme="light"] .rank-mode-btn.coins{background:#fffaf0 !important;color:#866300 !important;}
html[data-mr-theme="light"] .rank-mode-btn.coins.on{background:#fff4cc !important;border-color:#d9b34b !important;color:#6f5200 !important;}
html[data-mr-theme="light"] .rank-mode-btn.arena{background:#f5f8ff !important;color:#315caa !important;}
html[data-mr-theme="light"] .rank-mode-btn.arena.on{background:#e8f1ff !important;border-color:#0d6efd !important;color:#0052cb !important;}
html[data-mr-theme="light"] .rank-filter-toggle{background:#fff5f6 !important;border-color:#e7b8be !important;color:#d6293e !important;}
html[data-mr-theme="light"] .rank-filter-toggle:hover,
html[data-mr-theme="light"] .rank-filter-toggle.on{background:#ffe8eb !important;border-color:#d6293e !important;color:#b51f34 !important;}

html[data-mr-theme="light"] .rank-pill{background:#fff !important;border-color:#c8d2dc !important;color:#303740 !important;}
html[data-mr-theme="light"] .rank-pill span{color:#536471 !important;}
html[data-mr-theme="light"] .rank-pill.pts{background:#eef5ff !important;border-color:#8ab8f0 !important;color:#0052cb !important;}
html[data-mr-theme="light"] .rank-pill.coins{background:#fffaf0 !important;border-color:#e0c778 !important;color:#866300 !important;}
html[data-mr-theme="light"] .rank-pill.dust{background:#faf7ff !important;border-color:#d7c5ec !important;color:#794bc4 !important;}
html[data-mr-theme="light"] .rank-pill.dust i,
html[data-mr-theme="light"] .rank-pill.dust span{color:#794bc4 !important;}

html[data-mr-theme="light"] .tp-dust-rules{background:#faf7ff !important;border-color:#dac9ee !important;color:#303740 !important;}
html[data-mr-theme="light"] .tp-dust-rules>i{background:#f1e8fb !important;color:#794bc4 !important;box-shadow:none !important;}
html[data-mr-theme="light"] .tp-dust-rules small{color:#536471 !important;}
html[data-mr-theme="light"] .tp-dust-rules strong{color:#6f42a8 !important;}

html[data-mr-theme="light"] .inline-competition-filter .command-link,
html[data-mr-theme="light"] .rank-leagues-visible .command-link{background:#fff !important;border-color:#c8d2dc !important;color:#536471 !important;}
html[data-mr-theme="light"] .inline-competition-filter .command-link.active,
html[data-mr-theme="light"] .rank-leagues-visible .command-link.active{background:#e8f1ff !important;border-color:#0d6efd !important;color:#0052cb !important;}

@media (max-width:799px){
  html[data-mr-theme="light"] body{padding-bottom:calc(76px + env(safe-area-inset-bottom));}
}

/* Light theme 1.1 — complete coverage for dynamically rendered Typer modules. */
html[data-mr-theme="light"]::-webkit-scrollbar,
html[data-mr-theme="light"] body::-webkit-scrollbar{width:10px;height:8px;}
html[data-mr-theme="light"]::-webkit-scrollbar-track,
html[data-mr-theme="light"] body::-webkit-scrollbar-track,
html[data-mr-theme="light"]::-webkit-scrollbar-corner,
html[data-mr-theme="light"] body::-webkit-scrollbar-corner{background:#f3f6f9 !important;}
html[data-mr-theme="light"]::-webkit-scrollbar-thumb,
html[data-mr-theme="light"] body::-webkit-scrollbar-thumb{
  background:#aab6c2 !important;
  border:2px solid #f3f6f9 !important;
  border-radius:999px;
}
html[data-mr-theme="light"]::-webkit-scrollbar-thumb:hover,
html[data-mr-theme="light"] body::-webkit-scrollbar-thumb:hover{background:#8796a5 !important;}

/* Typowanie: podpowiedzi i etykiety punktów. */
html[data-mr-theme="light"] body.tp-ux-v4 .mcard-points .mrc-hint,
html[data-mr-theme="light"] body.tp-ux-v4 #view-terminarz .mrc-hint{
  background:#f3f6f9 !important;
  border-color:#c8d2dc !important;
  color:#40566b !important;
}
html[data-mr-theme="light"] body.tp-ux-v4 .mcard-points .tp-stat-markets .sl-label .pts{
  background:#e8f1ff !important;
  border-color:#8ab8f0 !important;
  color:#0052cb !important;
}

/* Ranking: filtry lig, liczby punktów i jasna baza pod kosmetykami. */
html[data-mr-theme="light"] body #view-ranking .rank-leagues-visible .command-link{
  background:#fff !important;
  border-color:#c8d2dc !important;
  color:#40566b !important;
}
html[data-mr-theme="light"] body #view-ranking .rank-leagues-visible .command-link b{color:#40566b !important;}
html[data-mr-theme="light"] body #view-ranking .rank-leagues-visible .command-link:hover{background:#f3f6f9 !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-ranking .rank-leagues-visible .command-link.active{
  background:#e8f1ff !important;
  border-color:#79adeb !important;
  color:#0052cb !important;
}
html[data-mr-theme="light"] body #view-ranking .rank-leagues-visible .command-link.active b{color:#0052cb !important;}
html[data-mr-theme="light"] body #view-ranking .rank-sync-ui :is(.rank-grid-row,.rk-main) .rk-total{
  color:#17202b !important;
  opacity:1 !important;
}
html[data-mr-theme="light"] body #view-ranking .rank-sync-ui :is(.rank-grid-row,.rk-main) .rk-exp{color:#657786 !important;opacity:1 !important;}
html[data-mr-theme="light"] body #view-ranking .rank-sync-ui :is(.rank-grid-row,.rk-main).mrc-row-skin{
  background-color:#fff !important;
  color:#17202b !important;
}
html[data-mr-theme="light"] body #view-ranking .rank-sync-ui :is(.rank-grid-row,.rk-main).mrc-row-skin::before{opacity:.18 !important;mix-blend-mode:multiply !important;}
html[data-mr-theme="light"] body #view-ranking .rank-sync-ui :is(.rank-grid-row,.rk-main).mrc-row-skin::after{opacity:.25 !important;mix-blend-mode:multiply !important;}
html[data-mr-theme="light"] body #view-ranking .rank-sync-ui :is(.rank-grid-row,.rk-main).mrc-row-skin :is(.rank-name,.uname,.uname-link,b,strong){color:#17202b !important;}

/* Arena 1 vs 1 — wersja ar4 generowana przez arena.js. */
html[data-mr-theme="light"] body #view-arena{color:#17202b !important;}
html[data-mr-theme="light"] body #view-arena .ar4-summary>div{
  background:#fff !important;
  border-color:#c8d2dc !important;
  color:#17202b !important;
}
html[data-mr-theme="light"] body #view-arena .ar4-summary>div>i{background:#eef5ff !important;color:#0052cb !important;}
html[data-mr-theme="light"] body #view-arena .ar4-summary b{color:#17202b !important;}
html[data-mr-theme="light"] body #view-arena .ar4-summary small{color:#657786 !important;}
html[data-mr-theme="light"] body #view-arena .ar4-tabs{border-bottom-color:#c8d2dc !important;}
html[data-mr-theme="light"] body #view-arena .ar4-tab{background:transparent !important;color:#657786 !important;}
html[data-mr-theme="light"] body #view-arena .ar4-tab:hover{background:#f3f6f9 !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-arena .ar4-tab.active{background:#e8f1ff !important;color:#0052cb !important;border-bottom-color:#0052cb !important;}
html[data-mr-theme="light"] body #view-arena .ar4-tab.active i{color:#0052cb !important;}
html[data-mr-theme="light"] body #view-arena :is(.ar4-empty,.ar4-duel,.ar4-guide,.ar4-history-filter){
  background:#fff !important;
  border-color:#c8d2dc !important;
  color:#17202b !important;
}
html[data-mr-theme="light"] body #view-arena .ar4-empty{color:#657786 !important;}
html[data-mr-theme="light"] body #view-arena .ar4-empty>i{color:#0052cb !important;}
html[data-mr-theme="light"] body #view-arena .ar4-empty strong{color:#17202b !important;}
html[data-mr-theme="light"] body #view-arena .ar4-guide>summary{background:#f7f9fb !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-arena .ar4-guide>summary small{color:#657786 !important;}
html[data-mr-theme="light"] body #view-arena .ar4-guide-grid>section{background:#fff !important;border-color:#d8e0e7 !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-arena .ar4-guide-grid section>div{border-bottom-color:#d8e0e7 !important;}
html[data-mr-theme="light"] body #view-arena .ar4-guide-grid p{color:#40566b !important;}

/* Kupon i rozwinięty formularz meczu. */
html[data-mr-theme="light"] body #view-coins .tp-segments{background:#fff !important;border-color:#c8d2dc !important;}
html[data-mr-theme="light"] body #view-coins .tp-segments button{background:#fff !important;color:#657786 !important;}
html[data-mr-theme="light"] body #view-coins .tp-segments button.on{background:#e8f1ff !important;color:#0052cb !important;border-color:#79adeb !important;}
html[data-mr-theme="light"] body #view-coins .mrc-filters button{background:#fff !important;border-color:#c8d2dc !important;color:#40566b !important;}
html[data-mr-theme="light"] body #view-coins .mrc-filters button.on{background:#eef5ff !important;border-color:#79adeb !important;color:#0052cb !important;}
html[data-mr-theme="light"] body #view-coins .mrc-row{background:#fff !important;border-color:#d8e0e7 !important;}
html[data-mr-theme="light"] body #view-coins .mrc-row.is-open{background:#f8fafc !important;box-shadow:inset 3px 0 #0d6efd !important;}
html[data-mr-theme="light"] body #view-coins .mrc-row-head{background:#fff !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-coins .mrc-row-head:hover{background:#f3f6f9 !important;}
html[data-mr-theme="light"] body #view-coins .mrc-row-body{background:#f7f9fb !important;border-top-color:#d8e0e7 !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-coins :is(.mrc-full,.mrc-msec){background:transparent !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-coins :is(.mrc-odd,.mrc-score,.mrc-chip,.mrc-mtabs button){background:#fff !important;border-color:#c8d2dc !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-coins :is(.mrc-odd:hover,.mrc-mtabs button:hover){background:#eef5ff !important;}
html[data-mr-theme="light"] body #view-coins .mrc-mtabs button.on{background:#e8f1ff !important;border-color:#79adeb !important;color:#0052cb !important;}
html[data-mr-theme="light"] body #view-coins .mrc-score-side>span{color:#17202b !important;}
html[data-mr-theme="light"] body #view-coins .tp-coupon-dock{background:#fff !important;border-color:#c8d2dc !important;box-shadow:0 12px 32px -25px rgba(15,23,42,.3) !important;}
html[data-mr-theme="light"] body #view-coins .tp-coupon-toggle{background:#fffaf0 !important;color:#6f5200 !important;}
html[data-mr-theme="light"] body #view-coins .tp-coupon-body,
html[data-mr-theme="light"] body #view-coins .tp-coupon-body .mrc-multi-coupon{background:#fff !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-coins .mrc-multi-head{background:#eef5ff !important;border-color:#8ab8f0 !important;color:#17202b !important;}

/* Skrzynki. */
html[data-mr-theme="light"] body #view-crate :is(.mrc-crate-available,.mrc-crate-tier-big,.mrc-crate-focus,.mrc-limited-compact,.mrc-crate-history.compact){
  background:#fff !important;
  border-color:#c8d2dc !important;
  color:#17202b !important;
}
html[data-mr-theme="light"] body #view-crate .mrc-crate-tier-big{
  background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--crate-color) 10%,transparent),transparent 56%),#fff !important;
}
html[data-mr-theme="light"] body #view-crate .mrc-crate-focus.ready{
  background:linear-gradient(110deg,color-mix(in srgb,var(--crate-color) 9%,#fff),#fff 56%) !important;
}
html[data-mr-theme="light"] body #view-crate :is(.mrc-crate-progress-v307,.mrc-crate-progress-card,.mrc-crate-wait,.mrc-crate-wait-big){
  background:#f3f6f9 !important;
  border-color:#c8d2dc !important;
  color:#40566b !important;
}
html[data-mr-theme="light"] body #view-crate :is(.mrc-crate-big-icon,.mrc-crate-focus-icon,.mrc-crate-big-badge,.mrc-crate-big-status,.mrc-crate-card-rarity){
  background:#f3f6f9 !important;
  border-color:#c8d2dc !important;
}
html[data-mr-theme="light"] body #view-crate :is(.mrc-crate-available-copy h3,.mrc-crate-slider-head h4,.mrc-crate-focus h3,.mrc-crate-big-copy strong,.mrc-limited-compact summary,.mrc-crate-history summary){color:#17202b !important;}

/* Profil, zasady i ekwipunek. */
html[data-mr-theme="light"] body :is(#view-profil,#view-rules) .command-rail{background:#fff !important;border-color:#d8e0e7 !important;}
html[data-mr-theme="light"] body :is(#view-profil,#view-rules) .command-link{background:#fff !important;border-color:#c8d2dc !important;color:#40566b !important;box-shadow:none !important;}
html[data-mr-theme="light"] body :is(#view-profil,#view-rules) .command-link.active{background:#e8f1ff !important;border-color:#79adeb !important;color:#0052cb !important;box-shadow:inset 0 -3px #0d6efd !important;}
html[data-mr-theme="light"] body :is(#view-profil,#view-rules) .command-link :is(b,small){color:inherit !important;}
html[data-mr-theme="light"] body #view-rules .rules-card{background:#fff !important;border-color:#d8e0e7 !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-inventory :is(.mrc-inventory-summary>div,.mrc-inventory-summary>.mrc-item-btn,.mrc-tabs,.mrc-tabs button){background:#fff !important;border-color:#c8d2dc !important;color:#40566b !important;}
html[data-mr-theme="light"] body #view-inventory .mrc-tabs button.on{background:#e8f1ff !important;border-color:#79adeb !important;color:#0052cb !important;}
html[data-mr-theme="light"] body #view-inventory .tp-profile-preview{background:#fff !important;border-color:#c8d2dc !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-inventory .tp-profile-preview .tp-preview-row{background:#f7f9fb !important;border-color:#d8e0e7 !important;color:#17202b !important;}
html[data-mr-theme="light"] body #view-inventory .tp-profile-preview .tp-preview-row.mrc-row-skin::before{opacity:.16 !important;mix-blend-mode:multiply !important;}

/* Light theme 1.2 — final contrast and parent-scrollbar companion fixes. */

/* Every category/command pill must remain readable on a white surface. */
html[data-mr-theme="light"] body .command-rail .command-link,
html[data-mr-theme="light"] body .inline-competition-filter .command-link,
html[data-mr-theme="light"] body .rank-leagues-visible .command-link{
  background:#fff !important;
  border-color:#c8d2dc !important;
  color:#40566b !important;
}
html[data-mr-theme="light"] body .command-rail .command-link :is(b,span,small,i),
html[data-mr-theme="light"] body .inline-competition-filter .command-link :is(b,span,small,i),
html[data-mr-theme="light"] body .rank-leagues-visible .command-link :is(b,span,small,i){
  color:inherit !important;
  opacity:1 !important;
}
html[data-mr-theme="light"] body .command-rail .command-link.active,
html[data-mr-theme="light"] body .inline-competition-filter .command-link.active,
html[data-mr-theme="light"] body .rank-leagues-visible .command-link.active{
  background:#e8f1ff !important;
  border-color:#79adeb !important;
  color:#0052cb !important;
}
html[data-mr-theme="light"] body .command-link:disabled,
html[data-mr-theme="light"] body .command-link.disabled{
  background:#f7f9fb !important;
  color:#657786 !important;
  opacity:.78 !important;
}
html[data-mr-theme="light"] body .command-link:disabled :is(b,span,small,i),
html[data-mr-theme="light"] body .command-link.disabled :is(b,span,small,i){color:#657786 !important;opacity:1 !important;}

/* Kupon: nagłówki rynków, kursy, średnie i dolny komunikat. */
html[data-mr-theme="light"] body #view-coins .mrc-msec h5 .mrc-sec-title{color:#303740 !important;}
html[data-mr-theme="light"] body #view-coins .mrc-msec h5 .mrc-sec-num{color:#b87800 !important;}
html[data-mr-theme="light"] body #view-coins .mrc-msec h5 .mrc-sec-meta{
  background:#eef2f6 !important;
  border-color:#c8d2dc !important;
  color:#40566b !important;
}
html[data-mr-theme="light"] body #view-coins .mrc-odd :is(span,b,small){color:#40566b !important;}
html[data-mr-theme="light"] body #view-coins .mrc-odd b{color:#17202b !important;}
html[data-mr-theme="light"] body #view-coins .mrc-odd.on{
  background:#e8f1ff !important;
  border-color:#79adeb !important;
}
html[data-mr-theme="light"] body #view-coins .mrc-odd.on b{color:#0052cb !important;}
html[data-mr-theme="light"] body #view-coins .mrc-score{
  background:#fff !important;
  border-color:#c8d2dc !important;
  box-shadow:0 10px 24px rgba(15,23,42,.12) !important;
}
html[data-mr-theme="light"] body #view-coins .mrc-score-mid b{color:#b87800 !important;}
html[data-mr-theme="light"] body #view-coins .mrc-score-mid small{color:#657786 !important;}
html[data-mr-theme="light"] body #view-coins .mrc-step button{
  background:#f3f6f9 !important;
  border-color:#c8d2dc !important;
  color:#17202b !important;
  box-shadow:none !important;
}
html[data-mr-theme="light"] body #view-coins .mrc-step b{color:#17202b !important;}
html[data-mr-theme="light"] body #view-coins .mrc-hint{
  background:#f3f6f9 !important;
  border-color:#c8d2dc !important;
  color:#40566b !important;
}

/* Skrzynki: komunikat o blokadzie nie może wracać do czarnej wersji. */
html[data-mr-theme="light"] body.tp-ux-v4 #view-crate .mrc-crate-focus .mrc-crate-action .mrc-crate-wait.mrc-crate-wait-big,
html[data-mr-theme="light"] body.tp-ux-v4 #view-crate .mrc-crate-focus .mrc-crate-wait{
  background:#f3f6f9 !important;
  border:1px solid #c8d2dc !important;
  color:#40566b !important;
  box-shadow:none !important;
}
html[data-mr-theme="light"] body.tp-ux-v4 #view-crate .mrc-crate-focus .mrc-crate-wait :is(i,span,b,small){color:#40566b !important;}

/* Ekwipunek: jasna baza profilu nawet przy aktywnym tle kosmetycznym. */
html[data-mr-theme="light"] body #view-inventory .tp-profile-preview.rank-sync-ui.rank-sync-ui .tp-preview-row.mrc-row-skin{
  background:#f7f9fb !important;
  background-color:#f7f9fb !important;
  border-color:#d8e0e7 !important;
  color:#17202b !important;
}
html[data-mr-theme="light"] body #view-inventory .tp-profile-preview.rank-sync-ui.rank-sync-ui .tp-preview-row.mrc-row-skin::before{
  opacity:.08 !important;
  mix-blend-mode:multiply !important;
}
html[data-mr-theme="light"] body #view-inventory .tp-profile-preview.rank-sync-ui.rank-sync-ui .tp-preview-row.mrc-row-skin::after{
  opacity:.06 !important;
  mix-blend-mode:multiply !important;
}
html[data-mr-theme="light"] body #view-inventory .tp-profile-preview .tp-preview-row :is(.uname,.uname-link,.mrc-nick-title-text,b,strong){color:#17202b !important;}

/* Light theme 1.3 — authoritative viewport and iframe scrollbars. */
:root[data-mr-theme="light"],
:root[data-mr-theme="light"] body,
:root[data-mr-theme="light"] *{
  color-scheme:light !important;
  scrollbar-color:#aab6c2 #f3f6f9 !important;
}
:root[data-mr-theme="light"]::-webkit-scrollbar,
:root[data-mr-theme="light"] body::-webkit-scrollbar,
:root[data-mr-theme="light"] *::-webkit-scrollbar{
  width:10px !important;
  height:8px !important;
}
:root[data-mr-theme="light"]::-webkit-scrollbar-track,
:root[data-mr-theme="light"] body::-webkit-scrollbar-track,
:root[data-mr-theme="light"] *::-webkit-scrollbar-track,
:root[data-mr-theme="light"]::-webkit-scrollbar-corner,
:root[data-mr-theme="light"] body::-webkit-scrollbar-corner,
:root[data-mr-theme="light"] *::-webkit-scrollbar-corner{
  background:#f3f6f9 !important;
}
:root[data-mr-theme="light"]::-webkit-scrollbar-thumb,
:root[data-mr-theme="light"] body::-webkit-scrollbar-thumb,
:root[data-mr-theme="light"] *::-webkit-scrollbar-thumb{
  background:#aab6c2 !important;
  border:2px solid #f3f6f9 !important;
  border-radius:999px !important;
}
:root[data-mr-theme="light"]::-webkit-scrollbar-thumb:hover,
:root[data-mr-theme="light"] body::-webkit-scrollbar-thumb:hover,
:root[data-mr-theme="light"] *::-webkit-scrollbar-thumb:hover{
  background:#8796a5 !important;
}
