/* Light theme: soft blue instead of white (design-refs/light-blue, variant 4 «Стекло», 2026-10-21).
   White glares; every page surface, card, field and button is a soft blue instead.
   Coin art, coin cards and stickers keep their own colours.
   --lb-page  — page background, blue down to the bottom (it used to fade to near-white)
   --lb-card  — cards and panels: translucent blue glass over the page glow
   --lb-field — fields, tabs and buttons inside cards
   --lb-edge  — the card rim (blue hairline, not a white one) */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]){
  --lb-page:radial-gradient(900px 600px at 15% 0%,rgba(0,152,234,.24),transparent 60%),radial-gradient(800px 600px at 95% 30%,rgba(77,184,255,.2),transparent 60%),linear-gradient(165deg,#CCE2F9,#D5E8FB);
  --lb-card:rgba(212,232,252,.72);--lb-field:rgba(192,221,249,.78);--lb-edge:rgba(0,120,200,.16);--lb-blur:blur(18px) saturate(160%);
  --lb-solid:#D6E8FA;--lb-solid-field:#C4DDF6;   /* opaque versions for things over a scrim or page content: dialogs, menus, dropdowns */
  --lb-on:#E4F1FD;                                /* the chosen segment: a step lighter than its field, still blue */
}

/* фон страницы: голубой до самого низа (раньше внизу уходил почти в белый #F7FAFF) */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body{background:var(--lb-page)!important;background-attachment:fixed!important}
/* Bubble Map: стеклянные полосы и карта — на голубом */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body #bubbleMapView{--b-glass:var(--lb-card);--b-map:radial-gradient(ellipse at 50% 30%,#D8EAFC 0%,#C9E0F8 60%,#BDD7F4 100%)}

/* карточки и панели */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.lr-card,.tgt-post,.wlt-ev-feed-row,.wlt-wallet-row,.cpx-card,.dex-side-card,.wlt-hist-hero,.wlt-feed-view,.sidebar,
  #detailView .trades-wrap,section.wlt-cb,.wlt-hero){
  background-color:var(--lb-card)!important;background-image:var(--lb-card-img,none)!important;
  -webkit-backdrop-filter:var(--lb-blur);backdrop-filter:var(--lb-blur);border-color:var(--lb-edge)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.lr-card,.tgt-post,.wlt-ev-feed-row,.wlt-wallet-row,.cpx-card,.dex-side-card){box-shadow:inset 0 0 0 1px var(--lb-edge),0 8px 24px -18px rgba(10,37,64,.25)!important}
/* сам блок графика и торговли на странице монеты: голубой до низа вместо перехода в белый */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body #detailView.dv-c3.dv-spot .dv-grid::before{background:radial-gradient(80% 90% at 30% 0%,rgba(0,152,234,.2),transparent 62%),linear-gradient(180deg,#CBE3FA 0%,#D4E8FB 58%)!important}

/* поля, вкладки, кнопки */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]){--vsf-bg:var(--lb-field)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(#searchTrigger,.vsf,.tgt-search-wrap,.wlt-search-wrap,.dex-sc-box,#detailView .bs-amount-card,.cpx-chk,.cpx-tabs,.pnl-period-tabs,.pnl-bg-filters,.wlt-prof-tabs,
  #btnSignin,.wlt-hb:not([class*="--active"]),.wlt-showall-btn,.wlt-io-btn-sec,.tf-btn:not(.active),.pnl-bg-arrow,.pnl-bg-tool,.dex-sc-flip,#dexSlipBtn,.cpx-btn--hero,.bm-zoom-controls,.c-heart,.c-stage-pool,.cpx-node-dot){
  background-color:var(--lb-field)!important;background-image:none!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #detailView :is(.bs-tab:not(.active),.dex-sc-tok-gram){background-color:var(--lb-field)!important}
/* активные сегменты остаются чуть светлее поля — так видно выбранное */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.home-explore-pill.is-active,.dv-type-seg.active,.sth-seg button[aria-pressed="true"]){background:var(--lb-on)!important}
/* капсула шапки монеты */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body #detailView.dv-c3.dv-spot{--c3-glass:var(--lb-field)}
/* Learn: карточки и фильтры через свои токены */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .learn-view{--lr-panel:var(--lb-card)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .lr-seg button:not([aria-selected="true"]){background:var(--lb-field)!important}
/* активность под графиком монеты */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body #detailView.dv-c3.dv-spot .trades-wrap{background:radial-gradient(70% 120% at 0% 0%,rgba(0,152,234,.14),transparent 55%),var(--lb-card)!important}

/* dialogs, menus and dropdowns: opaque soft blue (glass over a scrim turns grey).
   The create, deposit and coin-PNL dialogs keep their own dark artwork look. */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .modal:not(.cm-modal):not(.dep-modal):not(.coin-pnl-modal),
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(#searchDrop.ms-drop,#dvTfMenu,.dv-tf-menu,#tselModal){background:var(--lb-solid)!important;background-image:none!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader .ms-wrap.is-open :is(.search-bar,.search-bar:hover,.search-bar:focus-within){background:var(--lb-solid)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader{--search-bg:var(--lb-solid);--search-card:var(--lb-solid-field);--search-card-hover:#C9E1F8}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.ep-input,.ep-textarea,.modal-close,.aw-av-preview,.ts-close-btn,.ts-hero,.ts-preset,.sr-chip,.dex-fee-track,.dex-sc-max){background-color:var(--lb-solid-field)!important;background-image:none!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .ts-preset:is(.active,[aria-pressed="true"]){background-color:var(--lb-on)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #platformHeader #searchWrap.ms-wrap.is-open{background:var(--lb-solid)!important}

/* text on the blue surfaces: the old greys and link blues were tuned for white and drop below
   4.5:1 here, so they step darker (measured on the rendered blue, 2026-10-21):
   secondary/muted → #34506B, links → #005FA3 (≥5:1), up-green → #0B6129 (both nudged darker 2026-11-04: ≥4.5:1 on the deepest blues) */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]){--lb-text-2:#34506B;--lb-link:#005FA3;--lb-up:#0B6129}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body #detailView.dv-c3.dv-spot{--c3-mute:var(--lb-text-2)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.ms-kbd,.wlt-hist-loading,.wlt-coord-av-more,.wlt-section-lbl,.wlt-wallet-addr,.wlt-showall-cap,.tgt-members,.tgt-time,.tgt-coin-mc,.xtr-handle,
  .bm-placeholder,.pnl-ptab:not(.active),.pnl-bg-chip,.dex-sc-box-lbl,.dex-sc-box-usd,.dex-sc-bal,.lr-seg button span,.lr-card-min,
  .dv-htick,.dv-dev-txt small,.dv-mc-lbl,.bs-bal-txt,.bond-row > span:first-child,.bs-c3-ticks button){color:var(--lb-text-2)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .lr-seg button[aria-selected="true"] span{color:inherit!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.wlt-showall-cta,.tgt-stat,.tgt-link,#bondPct,.btn-signin,.dex-sc-max,.tgt-av-letter){color:var(--lb-link)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .tgt-feed .tgt-coin-chg.tgt-chg-pos{color:var(--lb-up)!important}

/* phones: the liquid-glass nav strip and More-tray drops take the blue tint (the white highlight stays small) */
@media(max-width:600px){
  html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body .mobile-bottom-nav.mobile-bottom-nav{background:rgba(206,229,252,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.45),inset 0 1px 0 rgba(255,255,255,.7),0 16px 40px -12px rgba(10,37,64,.35)}
  html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body .mobile-bottom-nav.mobile-bottom-nav::before{background:radial-gradient(60% 120% at 20% 0%,rgba(226,240,255,.45),transparent 70%)}
  html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body .mobile-bottom-nav .mbn-item:not(.mbn-create-btn)::before{background:rgba(230,243,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 0 0 1px rgba(0,120,200,.12),0 4px 12px -6px rgba(10,37,64,.3)}
}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body .mbn-tray .mbn-tray-ico-wrap.mbn-tray-ico-wrap{background:radial-gradient(60% 50% at 35% 25%,rgba(236,246,255,.75),rgba(196,224,251,.28) 60%,rgba(206,230,252,.4))}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body .mbn-tray .mbn-tray-lbl{background:rgba(218,236,254,.75);box-shadow:inset 0 0 0 1px rgba(0,120,200,.12)}

/* ── full pass over every light-theme rule that painted white (2026-10-21, 263 rules reviewed).
   Kept white on purpose: coin cards and their badges, QR codes, toggle knobs and slider thumbs,
   chart price labels and event dots, the dark create/deposit dialogs, the blue Points hero button. ── */
/* deeper blue everywhere: the profile panel and the page share one background */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #wltHistPanel{background:var(--lb-page)!important;background-attachment:fixed!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.live-card,.pv-ref-steps,.pv-ref-step,.pv-ref-scoreboard,.pv-ref-person,.pv-ref-stats,.pv-ref-score,.pv-ref-row,.pv-camp-stage,.pv-camp-metric,.pv-camp-badge,.pv-camp-path,.pv-camp-path-step,.pv-camp-board,.pv-camp-cta,.pv-camp-roll,
  .bs-send-card,.bond-xpool-banner,.tgt-rk-row,.tgt-rank-panel,.tgt-hero,.tgt-topcoins.wlt-coord--signal,.wlt-coord--signal,.wlt-created-item,.wlt-hist-event,
  .bm-top,.bm-detail-stat,.bm-side,.wlt-prof-stat,.bm-pg-holders-sidebar,.bm-holders-list,.bm-hl-item,.bm-hl-cluster-row,.pv-header,.pv-balance-main,
  .th-card,.stat-card,.bond-card,#dvHoldersList > .th-row,.th-row-creator,.th-row-burn,.dex-swap-card,.dex-doc-article,.dex-hero,.dex-art-aside,.dex-prog-card,.dex-art-formula,.dex-doc-table,
  .wlt-section,.pv-coins-empty,.pv-rewards-box,.pv-ref-hero,.pv-ref-link-card,.pv-ref-history,.pv-notif-card,.wlt-stat-card,.wlt-created-chart-card,.wbd-tile,.wlt-istat-wrap,.wlt-pnl-card,
  .hv-summary,.wl-summary,.hv-empty,.wl-empty,.pnl-empty,.desc-card,.tgt-dv-card,.vk-heatmap,.vk-dist,.wlt-premium-gauge,.wlt-premium-dist,.pnl-flow-card,.pnl-alloc-card,
  .wlt-wallet-ring-card,.wlt-created-pie,.dex-tabstrip,.ticker-wrap):not(#_){background-color:var(--lb-card)!important;background-image:none!important;border-color:var(--lb-edge)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.wlt-cluster-tip,.bm2-tip,.bm2-sheet,.bm-tooltip,.dv-fs-ohlc,.dv-ev-tip,.dv-area-tip,#editProfileModal .modal,#editProfileModal .ep-modal,#wmModal .wm-modal-box,
  #storyAuthModal .story-auth-modal,#platformHeader .wallet-dropdown):not(#_){background-color:var(--lb-solid)!important;background-image:none!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.btn-topbar-back,.pill,.btn-more,.btn-back,.dv-btn,.ep-input,.ep-textarea,.dv-chart-ctrl .dv-type-toggle,.dv-chart-ctrl .dv-tf-btn,.dv-chart-ctrl .dv-chart-ico,
  .tgt-topcoin-chip,.tgt-seg,.tgt-search-inp,.wlt-search-input,.aw-av-preview,.wlt-io-btn:not(.wlt-io-btn-primary),.bm-search-inp,.bm-pg-input,.bm-zoom-btn,.bm-fs-btn,.bm2-zoom-controls,
  .tgt-fchip,.wlt-cluster-chip,.dex-ext-btn,.dex-ext-dsc,.dex-ext-gecko,.dex-sc-tok:not(.dex-sc-tok-select),.dex-sc-tok-selected,.dex-lang-toggle,.dex-sc-slip,
  .pv-addr-chip,.pv-explorer-btn,.pv-tg-btn,.pv-edit-btn,.btn-edit-profile-sm,.wlt-hist-edit-btn,.wlt-hist-tg-btn,.pv-camp-cta-url,.pv-ref-link-url,.pv-ref-copy-btn,
  .wlt-follow-row-btn,#wmModal .wm-modal-close,.wlt-istat-icon-btn,.pnl-trades-filters,.pnl-trades-random,.trades-filter .tf-btn:not(.active),.chat-input,.cpx-btn--card,
  .story-auth-inp,#addWalletModal .modal-close):not(#_){background-color:var(--lb-field)!important;background-image:none!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.pv-seg-btn.is-active,.st-nav-btn.is-on,.ts-tog-btn.active,.vk-cmp-tab.active):not(#_){background-color:var(--lb-on)!important;background-image:none!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.wlt-hist-event:hover,.wlt-ev-feed-row:hover,.tgt-topcoin-chip:hover,.pill:hover,.btn-more:hover,.tgt-fchip:hover,.wlt-cluster-chip:hover,.wlt-io-btn:not(.wlt-io-btn-primary):hover,
  .dex-ext-btn:hover,.pnl-bg-arrow:hover,.pnl-bg-tool:hover,.pnl-trades-random:hover,.tgt-search-inp:focus,.wlt-search-input:focus,.dex-sc-box:focus-within,.dv-btn:hover,
  .dv-vtab:hover:not(.active),.home-explore-pill:not(.is-active):hover,.story-auth-inp:focus):not(#_){background-color:var(--lb-on)!important;background-image:none!important}
/* Bubble Map: the empty/loading veil over the map was near-white */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body #bubbleMapView .bm-overlay-loading{background:rgba(204,226,249,.55)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body #bubbleMapView .tgt-hero-icon{background:var(--lb-field)!important}
/* every page's own "muted text" token points at the darker blue-grey too */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body{--b-sub:var(--lb-text-2);--tm-t2:var(--lb-text-2);--lr-mute:var(--lb-text-2);--pp-mute:var(--lb-text-2);--cp-sub:var(--lb-text-2);
  --wmx-mute:var(--lb-text-2);--ts-mute:var(--lb-text-2);--search-muted:var(--lb-text-2);--vsf-mute:var(--lb-text-2)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body #detailView.dv-c3.dv-spot{--c3-mute:var(--lb-text-2)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.bm-pg-sub,.dex-fee-name,.pv-nc-sub,.cpx-tab[aria-selected="false"] span,.en2-h > span:first-child){color:var(--lb-text-2)!important}
/* Points: its card and soft-fill tokens were white / near-white */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.cpx,#pointsPage,#campaignView){--cp-card:var(--lb-card);--cp-soft:var(--lb-field);--cp-sub:var(--lb-text-2)}
/* Audit 2026-11-04: the base tokens were still tuned for white, and fell to 1.1–4:1 on the blue
   (Buy/Sell amounts 1.6:1, holder shares 1.1–2:1, profile labels 2.2:1). They step darker here;
   fills that use the same tokens (rails, dots, bars) just read a shade deeper. Heat shares from
   _pctHeatColor() are mixed toward black by --heat-dim (0% in dark). */
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]){--lb-text-3:#3A5873;--lb-dn:#A50E2C;--lb-violet:#5B21B6;
  --t2:var(--lb-text-2);--t3:var(--lb-text-3);--grn:var(--lb-up);--red:var(--lb-dn);--heat-dim:50%}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.holdings-view,.watchlist-view,.pv-header,.pv-tabs-row,.wlt-section,.wlt-stat-cards,.wlt-pnl-card,
  .pv-rewards-box,.pv-ref-hero,.pv-ref-stats,.pv-ref-link-card,.pv-ref-history,.pv-notif-card,.pv-balance-main,.wlt-istat-wrap){--t2:var(--lb-text-2);--t3:var(--lb-text-3);--lt-mute:var(--lb-text-3)}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.tr-buy .tr-ton,.tr-buy .tr-unit,.tr-type.buy,.dv-ht-mc-mult.pos,.dv-ht-conc-val.hi,.badge-pool,#tmPnl.up,.tm-stat .up){color:var(--lb-up)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.tr-sell .tr-ton,.tr-sell .tr-unit,.tr-type.sell,.dv-ht-mc-mult.neg,.dv-ht-conc-val.danger,.ep-req){color:var(--lb-dn)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .dv-ht-conc-val.mid{color:#7A4E00!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .badge-vella{color:var(--lb-violet)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.dv-ht-title-ct,#tmExplorer,#wltHistAddr,#wltEditProfileBtn,#wltHistTonscan){color:var(--lb-link)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.ts-slider-ticks span,.ts-close-btn,.modal-close,.dep-close,.wlt-feed-view .tf-btn:not(.active),.wlt-stat-card-lbl,.wlt-stat-card-sub){color:var(--lb-text-2)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(.tr-type.transfer,.wlt-ev3-tk,.wlt-ev3-with-t){color:var(--lb-link)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) :is(#detailView table th,.wlt-prof-tab:not(.active)){color:var(--lb-text-2)!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .wlt-prof-tab.active{background:#0070B8!important}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) .dv-ht-title-ct{color:#004A80!important}
