/* Shared keyboard, motion and text accessibility. */
html body :focus-visible{outline:3px solid #ffca28!important;outline-offset:3px!important;box-shadow:0 0 0 5px #171a1d!important}
html[data-mt-theme="light"] body :focus-visible{outline-color:#164c7e!important;box-shadow:0 0 0 5px #fff!important}
.mt-skip-link{position:fixed!important;left:16px;top:10px;transform:translateY(-200%);z-index:2147483647;background:#ffca28;color:#15191d!important;padding:12px 18px;border-radius:6px;font-size:16px!important;font-weight:700}.mt-skip-link:focus{transform:none}
html body p a:not(.btn),html body .legal-original-v90 a,html body .mt-ampel-v307-benefits a{text-decoration:underline!important;text-underline-offset:.18em}
html body .st-social-v311-scanbtn{background:#b91625!important;color:#fff!important}
html body [data-archive] em,html body .chat-char-count{color:var(--mt-ui-muted,#b1b8c0)!important}
html body .mt-field-label{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;font-size:14px;color:var(--mt-ui-text)}
html body .mt-field-label input,html body .mt-field-label select{width:100%;box-sizing:border-box}
html body .tablewrap:focus-visible{outline-offset:-3px!important}
html body .tablewrap{max-width:100%;overflow:auto}
html body .mt-motion-control{font-size:12px;min-width:32px;min-height:32px;position:absolute;right:6px;top:4px;z-index:8;background:var(--mt-ui-card,#1b2127);color:var(--mt-ui-text,#fff);border:1px solid var(--mt-ui-border);border-radius:5px;padding:5px 9px}
html body #mtsLiveTicker{position:relative;padding-right:100px}
html body.mt-motion-paused *,html body.mt-motion-paused *::before,html body.mt-motion-paused *::after{animation-play-state:paused!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}html body *:not(#mtsLiveTicker *),html body *:not(#mtsLiveTicker *)::before,html body *:not(#mtsLiveTicker *)::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html body .mt-chart-data{padding:16px;margin-top:16px;border:1px solid var(--mt-ui-border);border-radius:8px}html body .mt-chart-data summary{cursor:pointer;font-weight:700;padding:8px}html body .mt-chart-data th,html body .mt-chart-data td{padding:10px;text-align:left}html body .mt-chart-data table{width:100%;border-collapse:collapse}
@media(forced-colors:active){html body button,html body .btn,html body input,html body select,html body textarea{border:1px solid ButtonText!important}html body :focus-visible{outline:3px solid Highlight!important;box-shadow:none!important}}
@media(max-width:600px){html body .legal-card-v90{padding:20px!important}html body .legal-hero-v90 h1{font-size:clamp(26px,7vw,38px)!important}html body .legal-contact-box{overflow-wrap:anywhere}}
html body main a:not([class]){text-decoration:underline!important;text-underline-offset:.18em}
html body .mt-chart-data .mt-chart-controls{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}html body .mt-chart-data button{min-height:40px}html body .mt-chart-data label{display:flex;flex-direction:column;gap:6px}html body .mt-chart-data input,html body .mt-chart-data select{min-height:44px;max-width:100%;font:inherit}
html body .account-nav-new,html body .tab-new-badge{background:#b91625!important;color:#fff!important;font-size:10px!important}
html body .scanner-table small,html body .user-id-mini{color:var(--mt-ui-muted,#b1b8c0)!important}
html body .preview-badge{color:#101418!important}
html body [hidden]{display:none!important}
html body .scanner-table.scanner-table-v11 .st-scan-name-copy small{color:var(--mt-ui-muted,#b1b8c0)!important;font-size:12px!important}
html body .user-id-mini{opacity:1!important}
html body .preview-badge{color:#000!important}

/* Complete light surfaces for legacy components. */
html[data-mt-theme="light"] body #chartCommunityPulse,
html[data-mt-theme="light"] body #chartWrap,
html[data-mt-theme="light"] body #legalToc,
html[data-mt-theme="light"] body #liveSchedule,
html[data-mt-theme="light"] body #liveScreenerSection,
html[data-mt-theme="light"] body #mtBlogHub,
html[data-mt-theme="light"] body #mtSentimentDashboard,
html[data-mt-theme="light"] body #signalWorkflow,
html[data-mt-theme="light"] body #topTraderSection,
html[data-mt-theme="light"] body .depot-capital-row,
html[data-mt-theme="light"] body .df-community-card,
html[data-mt-theme="light"] body .df-community-live,
html[data-mt-theme="light"] body .df-community-top,
html[data-mt-theme="light"] body .df-glance-item,
html[data-mt-theme="light"] body .df-market-glance,
html[data-mt-theme="light"] body .df-trader-card,
html[data-mt-theme="light"] body .empty-card.big,
html[data-mt-theme="light"] body .empty-state,
html[data-mt-theme="light"] body .first,
html[data-mt-theme="light"] body .live-countdown-box,
html[data-mt-theme="light"] body .live-info-card,
html[data-mt-theme="light"] body .live-stage-card,
html[data-mt-theme="light"] body .live-stage-footer,
html[data-mt-theme="light"] body .live-stage-topbar,
html[data-mt-theme="light"] body .mt-ampel-v307-benefits,
html[data-mt-theme="light"] body .mt-quick-access,
html[data-mt-theme="light"] body .mts-df-results-stage,
html[data-mt-theme="light"] body .signal-preview-card.signal-preview-main,
html[data-mt-theme="light"] body .signal-section.df-section.df-legacy-modules,
html[data-mt-theme="light"] body .st-screener-shell.mt-home-builder-module,
html[data-mt-theme="light"] body .st-social-v320-snapshot,
html[data-mt-theme="light"] body .st-system-footer,
html[data-mt-theme="light"] body .st-trader-card,
html[data-mt-theme="light"] body .stat{background:#fff!important;background-image:none!important;color:#20262c!important;border-color:#b9c2ca!important}

html[data-mt-theme="light"] body main[id] :is(p,li,small,label,td,th,caption,summary,h1,h2,h3,h4,em,strong,b,span){color:#20262c!important}
html[data-mt-theme="light"] body main[id] a:not(.btn){color:#194f79!important}
html[data-mt-theme="light"] body main[id] :is(.signal-kicker,.legal-kicker-v90,.blog-kicker,.signal-trust-strip b){color:#765800!important}
html[data-mt-theme="light"] body main[id] :is(.signal-hero-visual,.st-social-v320-snapshot,.signal-workflow-grid article,.st-social-v320-snapshot a,.st-social-v320-snapshot span){background:#fff!important;background-image:none!important}
html[data-mt-theme="light"] body main[id] :is(.green,.long,.green *, .long *){color:#12642e!important}
html[data-mt-theme="light"] body main[id] :is(.red,.short,.red *, .short *){color:#a01728!important}
html[data-mt-theme="light"] body main[id] :is(.badge.long,.st-trader-card .long){background:#e8f5eb!important}
html[data-mt-theme="light"] body main[id] .st-social-v311-scanbtn{color:#fff!important}
html[data-mt-theme="light"] body main[id] :is(.account-nav-new,.tab-new-badge){color:#fff!important}
html[data-mt-theme="light"] body main[id] :is(.asset-logo-code,.mt-instrument-name,.mt-instrument-symbol){color:#20262c!important}
html[data-mt-theme="light"] body main[id] :is(p,li,small,label,td,th,caption,summary,h1,h2,h3,h4,em,strong,b,span){-webkit-text-fill-color:currentColor!important}
html[data-mt-theme="light"] body main[id] :is([class*="kicker"],.signal-section-status){background-image:none!important;color:#765800!important;-webkit-text-fill-color:#765800!important}
html[data-mt-theme="light"] body main[id] :is(.mt-ampel-v307-benefits>a,.st-trader-actions>a,.collection-count,.chat-compose-friendly,.chat-side-card a,.pulse-score>div,.live-youtube-btn,.mt-instrument-state,.signal-secondary,.df-secondary,[data-hk]){background:#edf1f4!important;background-image:none!important}
html[data-mt-theme="light"] body main[id] a.st-social-v311-scanbtn{color:#fff!important}
html[data-mt-theme="light"] body main[id] .st-social-v311-sig{background:#e8f5eb!important;color:#12642e!important}
html[data-mt-theme="light"] body main[id] :is(.st-scan-loading,.market-glance-foot,#scanStatus){color:#505d68!important}
html[data-mt-theme="light"] body main[id] .scanner-table.scanner-table-v11 .st-scan-name-copy small{color:#505d68!important}
html[data-mt-theme="light"] body main[id] .df-glance-item>span>b{color:#20262c!important}
html[data-mt-theme="light"] body main[id] #dfTraderCount{color:#505d68!important}
html[data-mt-theme="light"] body main[id] .preview-badge{color:#000!important}
html body :is(button,input,select){min-height:24px}html body button{min-width:24px}
html[data-mt-theme="light"] body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:#78838b!important}
html[data-mt-theme="light"] body.crypgo-scanner-page .signal-page :is(.signal-workflow-grid article>span,.signal-preview-card strong,.df-subhead>span),html[data-mt-theme="light"] body.crypgo-scanner-page #signalHeroTitle em{color:#765800!important;-webkit-text-fill-color:#765800!important;background-image:none!important}
html[data-mt-theme="light"] body.crypgo-scanner-page #scanStatus{color:#505d68!important;-webkit-text-fill-color:#505d68!important}
html body .mt-motion-control{right:82px}
html[data-mt-theme="light"] body #adminShell :is(.admin-brand>span,#adminIdentity,.admin-sidebar-footer a,#adminSidebar i,.mt-shell-preview a,.mt-style-preview a,.crm-ticket-meta time,code,.audit-legend){color:#334f63!important;-webkit-text-fill-color:currentColor!important}
html[data-mt-theme="light"] body #adminShell .preview-sidebar,html[data-mt-theme="light"] body #adminShell .preview-sidebar .active,html[data-mt-theme="light"] body #adminShell :is(.crm-plan,.growth-badge,.backoffice-badge,#financeCloseChecklist>div){background:#edf1f4!important;color:#20262c!important}
html[data-mt-theme="light"] body.account-v23-body :is(.member-live-chat-compose,.live-schedule-section,.affiliate-kpis>span,.account-quick-links a,.dashboard-quick-links a,#dashboardKpis>span,#memberScannerSummary>div,#memberScannerSummary>span,.switch-row,#avatarPreview,.profile-public-note,.account-status-main,.notification-pref-card,#notificationOverview>span,.inbox-hero-badge,.inbox-summary>div,.inbox-compose,.creator-studio-trust,.creator-badge,.creator-policy-footer){background:#fff!important;background-image:none!important;color:#20262c!important}
html[data-mt-theme="light"] body.account-v23-body :is(.affiliate-featured-badge,.mts-df-risk){color:#505d68!important}
html[data-mt-theme="light"] body.account-v23-body #scanRows a{color:#194f79!important;-webkit-text-fill-color:#194f79!important}
html[data-mt-theme="light"] body.account-v23-body .new-member-first-steps a{background:#fff!important;background-image:none!important}
html[data-mt-theme="light"] body #adminShell .style-quick-preview a{color:#194f79!important}
html[data-mt-theme="light"] #adminShell #mtMainContent .style-quick-preview a{color:#194f79!important;-webkit-text-fill-color:#194f79!important}

/* Real-data badges and fallback logos retain readable contrast. */
html[data-mt-theme] body #mtMainContent .asset-logo b.asset-logo-code,html[data-mt-theme] body #mtsLiveTicker .asset-logo b.asset-logo-code{background:#20262c!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-mt-theme="light"] body #mtsMainHeader nav a.active{color:#30363d!important;-webkit-text-fill-color:#30363d!important}
html[data-mt-theme="light"] body .scanner-table tbody td .badge.long{background:#e2f5e7!important;color:#12642e!important;-webkit-text-fill-color:#12642e!important}
html[data-mt-theme="light"] body .scanner-table tbody td .badge.flat{background:#e6ecef!important;color:#303a40!important;-webkit-text-fill-color:#303a40!important}
html[data-mt-theme="light"] body #homeScreenerV325Head,html[data-mt-theme="light"] body #homeScreenerV325Head span{background:#eef0f2!important;color:#20262c!important;-webkit-text-fill-color:#20262c!important}
html[data-mt-theme="light"] body :is(.hub-pulse,.hub-pulse .pulse-head,.side-panel.market-glance,.side-panel.market-glance .side-head,.side-panel.value-nav .side-head){text-align:left!important}
html[data-mt-theme="light"] body :is(.mt-signal-card,.mt-signal-mini,.mt-signal-inline,.mt-sig-bottom,.signal-ticker-long,.signal-ticker-flat,.st-social-v313-focus){background:#fff!important;background-image:none!important;color:#20262c!important;border-color:#cfd5da!important;box-shadow:none!important}
html[data-mt-theme="light"] body :is(.mt-signal-card,.mt-signal-mini,.mt-signal-inline,.mt-sig-bottom,.signal-ticker-long,.signal-ticker-flat) :is(span,b,strong,small,em){background:transparent!important;color:#20262c!important;-webkit-text-fill-color:#20262c!important}
html[data-mt-theme="light"] body :is(.hub-card-body,.hub-card-body a,.hub-card-body h3,.hub-card-body p){text-decoration:none!important}
html[data-mt-theme="light"] body .hub-image-teaser{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-mt-theme="light"] body .hub-badge{background:#fff!important;color:#20262c!important;-webkit-text-fill-color:#20262c!important;border:1px solid #cfd5da!important}
html[data-mt-theme="dark"] body .hub-badge{background:#111820!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-mt-theme="light"] body .side-panel.market-glance :is(.market-glance-row,.market-glance-copy,.market-glance-copy strong,.market-glance-copy small){background:#fff!important;color:#20262c!important;-webkit-text-fill-color:#20262c!important;line-height:1.5!important}
html[data-mt-theme="light"] body .side-panel.market-glance .market-glance-row{margin-bottom:8px!important}
html body .mt-nav-value-head{padding-left:10px!important;text-align:left!important}
html body .market-glance-copy,html body .market-glance-copy :is(strong,small),html body .pulse-name{text-align:left!important}
html body :is(.mt-signal-card.mt-signal-mini.has-signal,.mt-signal-card.mt-signal-mini){width:60%!important;max-width:60%!important;margin-left:0!important;margin-right:auto!important;text-align:left!important}
html body :is(.mt-signal-card.mt-signal-mini.has-signal,.mt-signal-card.mt-signal-mini){margin-top:6px!important;margin-bottom:6px!important}
html body .pulse-item{align-items:center!important;gap:10px!important}
html body .pulse-item{display:grid!important;grid-template-columns:minmax(0,40%) minmax(0,60%)!important;align-items:center!important;gap:0!important}
html body .pulse-item .pulse-name,html body .pulse-item .market-glance-copy,html body .mt-nav-value-head{grid-column:1!important;min-width:0!important;text-align:left!important;padding-left:10px!important}
html body .pulse-item :is(.mt-signal-card,.mt-signal-mini,.mt-signal-inline),html body .market-glance-row :is(.mt-signal-card,.mt-glance-signal),html body .value-nav button :is(.mt-signal-card,.mt-nav-signal){grid-column:2!important;width:100%!important;max-width:100%!important;margin:6px 0!important;text-align:left!important;justify-self:stretch!important}
html body .pulse-item :is(.mt-signal-card,.mt-signal-mini,.mt-signal-inline) :is(span,b,strong,small,em){text-align:left!important}
html body :is(.st-social-v313-focus,.mt-signal-card,.mt-sig-bottom,.signal-ticker-long,.signal-ticker-flat,.pulse-item,.market-glance-row) a,html body :is(.st-social-v313-focus,.mt-signal-card,.mt-sig-bottom,.signal-ticker-long,.signal-ticker-flat,.pulse-item,.market-glance-row) :is(span,b,strong,small,em){text-decoration:none!important}
html body main .hub-card a,html body main .hub-card-body a,html body main .hub-lead a,html body main .hub-pulse a{text-decoration:none!important}
html body main .hub-card-body :is(h3,p,time,.hub-meta,.hub-action-row,strong){text-decoration:none!important}
html[data-mt-theme="dark"] body #liveStateBadge{background:#26343d!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-mt-theme="light"] body #liveStateBadge{background:#e8edf0!important;color:#20262c!important;-webkit-text-fill-color:#20262c!important}
html[data-mt-theme="light"] body #userDialog,html[data-mt-theme="light"] body #userDialog .user-edit-section,html[data-mt-theme="light"] body #userDialog .admin-user-avatar,html[data-mt-theme="light"] body #userDialog .user-edit-footer{background:#fff!important;color:#20262c!important;border-color:#cfd5da!important}
html[data-mt-theme="light"] body #userDialog input:not([type=checkbox]):not([type=file]),html[data-mt-theme="light"] body #userDialog select,html[data-mt-theme="light"] body #userDialog textarea{background:#fff!important;color:#20262c!important;border-color:#b7c0c9!important}
html[data-mt-theme="light"] body #adminShell .admin-sidebar,html[data-mt-theme="light"] body #adminShell .admin-workspace,html[data-mt-theme="light"] body #adminShell .admin-panel{background:#f3f4f5!important;color:#20262c!important}

/* Desktop light mode: convert the remaining homepage/newsroom/community surfaces. */
html[data-mt-theme="light"] body :is(.st-system-kpis,.st-system-kpis>*,.hub-card,.hub-lead,.hub-lead-body,.hub-pulse,.modern-most-read,.most-read,.market-glance,.market-glance-row,.value-nav,.newsroom-signals,.newsroom-plan,.newsroom-archive,.hub-filterbar,.hub-filter-tools,.hub-search-wrap,.hub-search,.st-social-v311-panel,.st-social-v311-top,.st-social-v311-scan,.st-social-v311-live,.st-social-v311-traders,.st-social-v311-scanrows,.st-social-v311-scanrow,.st-social-v311-cta,.st-social-v311-cta-copy,.st-social-v311-cta-points,.st-social-v320-snapshot,.community .feature,.community .empty-card,.community .empty-state,.community .step,.community .first,.community .launch,.community .footer-cta){background:#fff!important;background-image:none!important;color:#20262c!important;border-color:#cfd5da!important;box-shadow:0 1px 3px rgba(20,35,45,.08)!important}
html[data-mt-theme="light"] body :is(.st-system-kpis,.st-system-kpis>*) :is(span,b,strong,small,p,h1,h2,h3,h4){color:#20262c!important;-webkit-text-fill-color:#20262c!important}
html[data-mt-theme="light"] body :is(.hub-card,.hub-lead,.st-social-v311-panel,.community .feature,.community .empty-card,.community .empty-state,.community .step,.community .first) :is(h1,h2,h3,h4,p,span,b,strong,small,time,em){color:#20262c!important;-webkit-text-fill-color:#20262c!important}
html[data-mt-theme="light"] body :is(.hub-card a,.hub-lead a,.st-social-v311-panel a,.community a){color:#194f79!important;-webkit-text-fill-color:#194f79!important}
html[data-mt-theme="light"] body :is(.hub-card,.hub-lead,.st-social-v311-panel) :is(.hub-meta,.pulse-foot,.side-head,.hub-action-row,.st-social-v311-price,.st-social-v311-values){color:#505d68!important}
html[data-mt-theme="light"] body :is(.hub-filter,.hub-sort,.hub-search input,.market-glance-row,.value-nav button){background:#f4f6f7!important;color:#20262c!important;border-color:#b9c2ca!important}
html[data-mt-theme="light"] body :is(.mt-signal-card,.mt-signal-inline,.mt-signal-mini,.mt-glance-signal,.mt-nav-signal){background:#edf1f4!important;color:#20262c!important;border-color:#c5cdd3!important}
html[data-mt-theme="light"] body :is(.community .hero,.community .section,.community .feature-grid,.community .empty-grid,.community .steps){color:#20262c!important}

/* Keep the ticker control compact and pinned to its upper-right corner. */
html body #mtsLiveTicker{padding-right:58px!important}
html body #mtsLiveTicker .mt-motion-control{top:4px!important;right:4px!important;min-width:28px!important;width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:50%!important;font-size:0!important;line-height:28px!important;z-index:30!important}
html body #mtsLiveTicker .mt-motion-control::before{content:'Ⅱ';font-size:13px!important;font-weight:700}

/* In light mode the photographic hero stays visible beneath a soft white veil. */
html[data-mt-theme="light"] body #homeHeroModular{position:relative!important;isolation:isolate!important}
html[data-mt-theme="light"] body #homeHeroModular::after{content:'';position:absolute!important;inset:0!important;background:rgba(255,255,255,.6)!important;pointer-events:none!important;z-index:1!important;border-radius:inherit!important}
html[data-mt-theme="light"] body #homeHeroModular>*{position:relative!important;z-index:2!important}
html[data-mt-theme="light"] body #homeHeroModular .home-hero-media{position:relative!important;isolation:isolate!important}
html[data-mt-theme="light"] body #homeHeroModular .home-hero-media::after{content:'';position:absolute!important;inset:0!important;background:rgba(255,255,255,.6)!important;pointer-events:none!important;z-index:1!important;border-radius:inherit!important}
html[data-mt-theme="light"] body #homeHeroModular .home-hero-media>*{position:relative!important;z-index:2!important}

/* Scanner data remains readable at normal desktop zoom. */
html body .signal-tablewrap .scanner-table-v11 thead th{font-size:12px!important;line-height:1.3!important;letter-spacing:.01em!important}
html body .signal-tablewrap .scanner-table-v11 tbody td{font-size:14px!important;line-height:1.35!important}
html body .signal-tablewrap .scanner-table-v11 tbody td :is(b,strong,span,small){font-size:inherit!important}
html body .signal-tablewrap .scanner-table-v11 .st-scan-name :is(b,strong){font-size:15px!important}
html body .signal-tablewrap .scanner-table-v11 .st-scan-actions>button,html body .signal-tablewrap .scanner-table-v11 .st-scan-actions>a{font-size:12px!important;min-width:58px!important;padding-inline:9px!important}
@media(max-width:700px){
  html body #mtsLiveTicker .st-signal-ticker-label{display:none!important}
  html body #mtsLiveTicker{padding-left:0!important;padding-right:58px!important}
  html body #mtsLiveTicker .mt-motion-control{right:6px!important;top:4px!important;z-index:20!important}
  html body .mt-gauge-needle{display:block!important;z-index:5!important;height:5px!important;background:#101820!important;box-shadow:0 0 0 1px #fff!important}
  html body .admin-header{position:relative!important;padding-left:58px!important;min-height:120px!important;align-items:flex-start!important}
  html body .admin-tailadmin-style .admin-header>.admin-menu-toggle{position:absolute!important;left:10px!important;top:10px!important;margin:0!important}
  html body .admin-header-actions{margin-top:54px!important;flex-wrap:wrap!important}
  html body .mt-main-grid,html body .mt-overview,html body .mt-bottom{gap:12px!important}
  html body .mt-panel{padding:16px!important}
  html body .mt-gauge{max-width:330px!important;height:165px!important}
  html body .mt-forecast-chart .mt-system-followers{top:8px!important;right:8px!important;left:auto!important;position:absolute!important;max-width:calc(100% - 16px)!important;white-space:nowrap!important}
}
