/* Mwhib Publisher Dashboard Dark Mode v1 — visual-only, /dashboard scoped. */
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"]{color-scheme:dark;--md-bg:#0d1117;--md-side:#0a0e13;--md-head:#0f151d;--md-card:#151b23;--md-card2:#111821;--md-hover:#1b2430;--md-border:#26303b;--md-border2:#202a36;--md-text:#f4f7fa;--md-text2:#d7dee7;--md-muted:#98a2b3;--md-muted2:#7f8b99;--md-accent:#f97316;--md-accent2:#fb923c}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] body,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #root,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .App{background:var(--md-bg)!important;color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] main{background:var(--md-bg)!important;color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar{background:var(--md-side)!important;color:var(--md-text)!important;border-color:var(--md-border)!important;box-shadow:0 24px 60px rgba(0,0,0,.36)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] header.sticky.top-0.z-20{background:rgba(15,21,29,.96)!important;color:var(--md-text)!important;border-color:var(--md-border)!important;box-shadow:0 8px 28px rgba(0,0,0,.18)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-white{background-color:var(--md-card)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-slate-50,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-gray-50{background-color:var(--md-bg)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-slate-100,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-gray-100,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-gray-200{background-color:var(--md-hover)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-orange-50,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-orange-100{background-color:rgba(249,115,22,.13)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] header[class*="from-orange-50"][class*="via-white"][class*="to-white"]{background-color:var(--md-card)!important;background-image:linear-gradient(to left,rgba(249,115,22,.10),#151b23 46%,#151b23)!important;border-color:#463426!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-emerald-50,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-green-50,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-green-100{background-color:rgba(16,185,129,.13)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-blue-50,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-blue-100{background-color:rgba(59,130,246,.13)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-rose-50,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-red-50,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-red-100{background-color:rgba(244,63,94,.12)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-violet-50,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-purple-50{background-color:rgba(139,92,246,.13)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-slate-950,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-slate-900,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-slate-800,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-gray-900,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-gray-800{color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-slate-700,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-gray-700{color:var(--md-text2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-slate-600,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-gray-600,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-slate-500,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-gray-500{color:var(--md-muted)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-slate-400,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .text-gray-400{color:var(--md-muted2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .border,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .border-b,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .border-t,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .border-l,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .border-r,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] [class*="border-slate-"],html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] [class*="border-gray-"]{border-color:var(--md-border)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .divide-y>:not([hidden])~:not([hidden]){border-color:var(--md-border2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] input,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] select,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] textarea{background:#101720!important;border-color:#2b3644!important;color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] input::placeholder,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] textarea::placeholder{color:#718096!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] select option{background:#101720;color:var(--md-text)}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] [class*="hover:bg-slate-50"]:hover,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] [class*="hover:bg-slate-100"]:hover,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] [class*="hover:bg-gray-50"]:hover,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] [class*="hover:bg-gray-100"]:hover{background:var(--md-hover)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] [class*="hover:bg-orange-"]:hover{background:rgba(249,115,22,.16)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] [class*="hover:bg-red-"]:hover{background:rgba(239,68,68,.13)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .shadow,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .shadow-sm,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .shadow-md,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .shadow-lg,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .shadow-xl,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .shadow-2xl{box-shadow:0 12px 30px rgba(0,0,0,.22)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .shadow-inner{box-shadow:inset 0 1px 5px rgba(0,0,0,.34)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] table{color:var(--md-text2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] thead{background:#111821!important;color:var(--md-muted)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] th,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] td{border-color:var(--md-border2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] tbody tr:hover{background:rgba(255,255,255,.025)!important}
/* Custom publisher analytics / earnings */
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-shell,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-card,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-panel,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-bars,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-chart,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-table-wrap{background:var(--md-card)!important;color:var(--md-text)!important;border-color:var(--md-border)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-card .k,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-sub,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-label,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-table th{color:var(--md-muted)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-card .v,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-title,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-table td{color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-track,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pev3-track{background:#202a36!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-more:hover,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pev3-more:hover{background:rgba(249,115,22,.12)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pev3-list{background:transparent!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pev3-row,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pev3-more-wrap{border-color:var(--md-border2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pev3-title strong,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pev3-amount{color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pev3-title span,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pev3-empty{color:var(--md-muted)!important}
/* Overview comments */
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-comments{background:var(--md-card)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-head,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-footer{border-color:var(--md-border)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-title,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-user{color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-time,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-content,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-reply{color:var(--md-muted)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-avatar{background:var(--md-hover)!important}
/* Overview modal layer */
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-modal,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-head,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-article,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-summary>div,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-earning,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-loading,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-empty{background:var(--md-card)!important;border-color:var(--md-border)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-body{background:var(--md-bg)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-head{border-color:var(--md-border)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-head h2,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-article h3,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-summary strong,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-earning strong{color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-head p,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-excerpt,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-meta,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-summary span,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-earning span,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-earning small{color:var(--md-muted)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-close,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-page,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-search,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-filter{background:#101720!important;color:var(--md-text)!important;border-color:var(--md-border)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-tabs{background:#101720!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-tabs button{color:var(--md-muted)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mom-tabs button.active{background:var(--md-hover)!important;color:var(--md-accent2)!important}
/* Charts */
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .recharts-cartesian-grid line{stroke:#26303b!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .recharts-text,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .recharts-text tspan{fill:#98a2b3!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .recharts-tooltip-wrapper>div{background:#151b23!important;border-color:#26303b!important;color:#f4f7fa!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] [role="menu"],html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] [role="dialog"]{color:var(--md-text)!important}
/* Header theme toggle */
.mwhib-theme-toggle{position:relative;width:40px;height:40px;min-width:40px!important;min-height:40px!important;display:inline-flex;align-items:center;justify-content:center;margin-inline-end:6px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#475569;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.mwhib-theme-toggle:hover{background:#f8fafc;color:#ea580c;border-color:#fdba74;transform:translateY(-1px)}
.mwhib-theme-toggle:focus-visible{outline:2px solid #f97316;outline-offset:2px}.mwhib-theme-toggle svg{width:19px;height:19px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mwhib-theme-toggle{background:#151b23;color:#f4f7fa;border-color:#2b3644}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .mwhib-theme-toggle:hover{background:#1b2430;color:#fb923c;border-color:#7c4a25}
@media(max-width:640px){.mwhib-theme-toggle{width:38px;height:38px;min-width:38px!important;min-height:38px!important;margin-inline-end:4px;border-radius:11px}}
@media(prefers-reduced-motion:reduce){.mwhib-theme-toggle{transition:none}}

/* Dark-mode consistency fixes v2 — color-only corrections for remaining light UI. */
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-yellow-50.border-yellow-200.rounded-lg.p-3.w-full{background:linear-gradient(135deg,#211d16 0%,#171b21 100%)!important;border-color:#5b4726!important;color:var(--md-text2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .bg-yellow-50.border-yellow-200.rounded-lg.p-3.w-full [class*="text-yellow-"]{color:#f4c86a!important}

html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-head{background:#111821!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-list{background:#101720!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-comment,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-comment-row{background:var(--md-card)!important;border-color:var(--md-border2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-article,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-all{background:rgba(249,115,22,.10)!important;border-color:#5a3921!important;color:#fb923c!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-overview-content{background:#101720!important;color:var(--md-muted)!important}

html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .min-w-0.rounded-lg.border.border-gray-100[class*="bg-gray-50/70"]{background:var(--md-card)!important;border-color:var(--md-border)!important;color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck{--ck-color-base-background:#151b23;--ck-color-base-foreground:#101720;--ck-color-base-border:#2b3644;--ck-color-base-text:#f4f7fa;--ck-color-toolbar-background:#111821;--ck-color-toolbar-border:#2b3644;--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#1b2430;--ck-color-button-default-active-background:#202a36;--ck-color-button-on-background:#26303b;--ck-color-button-on-color:#fb923c;--ck-color-dropdown-panel-background:#151b23;--ck-color-list-background:#151b23;--ck-color-list-button-hover-background:#1b2430;--ck-color-input-background:#101720;--ck-color-input-text:#f4f7fa;--ck-color-focus-border:#f97316}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-toolbar,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-toolbar.mwhib-article-extra-toolbar{background:#111821!important;border-color:#2b3644!important;color:var(--md-text2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-editor__main>.ck-editor__editable{background:#101720!important;color:var(--md-text)!important;border-color:#2b3644!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-button,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-dropdown__button,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-button .ck-icon{color:var(--md-text2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-button:hover:not(.ck-disabled),html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-button.ck-on{background:#1b2430!important;color:#fb923c!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-dropdown__panel,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-list{background:#151b23!important;border-color:#2b3644!important;color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .ck.ck-editor__editable.ck-focused{border-color:#f97316!important;box-shadow:0 0 0 1px #f97316!important}

html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-refresh{background:#18212c!important;color:var(--md-text)!important;border-color:var(--md-border)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-refresh:hover{background:#212c39!important;color:#fff!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-panel-head{background:#111821!important;background-image:linear-gradient(180deg,#151b23 0%,#111821 100%)!important;border-color:var(--md-border)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-panel-head h3{color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-panel-head p{color:var(--md-muted)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-table th{background:#111821!important;color:var(--md-muted)!important;border-color:var(--md-border2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-table-footer{background:#111821!important;border-color:var(--md-border)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-more{background:transparent!important;color:#fb923c!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-more:hover{background:rgba(249,115,22,.10)!important;color:#fdba74!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-colwrap{background:#202a36!important;box-shadow:inset 0 0 0 1px #26303b!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-dayval{color:var(--md-text2)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-date{color:var(--md-muted)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-mobile-card,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-mobile-stat{background:#111821!important;border-color:var(--md-border)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-mobile-name,html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-mobile-stat b{color:var(--md-text)!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-mobile-stat span{color:var(--md-muted)!important}

/* Dark-mode refinement: publisher sidebar custom links + comments manager */
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar .mwhib-channel-dashboard-link,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar .cmv2-sidebar-link{
  color:var(--md-text2)!important;
  background:transparent!important;
  opacity:1!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar .mwhib-channel-dashboard-link svg,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar .cmv2-sidebar-link svg{
  color:var(--md-text2)!important;
  stroke:currentColor!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar .mwhib-channel-dashboard-link:hover,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar .cmv2-sidebar-link:hover,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar.cmv2-comments-mode a[href="/dashboard"]:hover{
  background:var(--md-hover)!important;
  color:var(--md-text)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar .cmv2-sidebar-link.active{
  background:var(--md-accent)!important;
  color:#fff!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar .cmv2-sidebar-link.active svg{
  color:#fff!important;
  stroke:#fff!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] #publisher-dashboard-sidebar.cmv2-comments-mode a[href="/dashboard"]{
  background:transparent!important;
  color:var(--md-text2)!important;
  box-shadow:none!important;
}

html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-wrap{
  color:var(--md-text)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-head h1,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-user,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-content,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-article-title{
  color:var(--md-text)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-head p,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-time,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-email,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-article-meta,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-empty,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-loading{
  color:var(--md-muted)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-panel{
  background:var(--md-card)!important;
  color:var(--md-text)!important;
  border-color:var(--md-border)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.16)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-tools{
  background:#111821!important;
  color:var(--md-text)!important;
  border-color:var(--md-border)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-input,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-select{
  background:#0f1722!important;
  color:var(--md-text)!important;
  border-color:#2a3645!important;
  color-scheme:dark;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-input::placeholder{
  color:var(--md-muted2)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-input:focus,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-select:focus{
  border-color:var(--md-accent)!important;
  box-shadow:0 0 0 3px rgba(249,115,22,.14)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-list{
  background:var(--md-card)!important;
  color:var(--md-text)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-item{
  color:var(--md-text)!important;
  border-color:var(--md-border2)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-article-card{
  background:#101720!important;
  color:var(--md-text)!important;
  border-color:var(--md-border)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-article-card:hover{
  background:var(--md-hover)!important;
  border-color:#344253!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-thumb-fallback{
  background:linear-gradient(135deg,#17202b,#202b38)!important;
  color:var(--md-muted)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-btn{
  background:#18212c!important;
  color:var(--md-text2)!important;
  border-color:var(--md-border)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-btn:hover{
  background:#212c39!important;
  color:#fff!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-btn.orange{
  background:var(--md-accent)!important;
  color:#fff!important;
  border-color:var(--md-accent)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-btn.danger{color:#ff8b82!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-btn.warn{color:#f6b563!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-btn.ok{color:#57d3a0!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-count{
  background:rgba(249,115,22,.12)!important;
  color:#fb923c!important;
  border-color:#5a3921!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-pager{
  background:#111821!important;
  color:var(--md-text2)!important;
  border-color:var(--md-border)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-note{color:#fb923c!important}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .cmv2-badge.muted{background:#202a36!important;color:#c8d0da!important}
/* Analytics initial loading/error states — dark mode */
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-loading{
  background:var(--md-card)!important;
  color:var(--md-muted)!important;
  border-color:var(--md-border)!important;
  box-shadow:none!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-error{
  background:var(--md-card)!important;
  color:#ff8b82!important;
  border-color:var(--md-border)!important;
  box-shadow:none!important;
}
/* Analytics best-articles dark readability fix v1 */
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-titletext{
  color:var(--md-text)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-table tbody tr:hover{
  background:#18212c!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-head,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-item{
  background:var(--md-card)!important;
  border-color:var(--md-border)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-body{
  background:var(--md-bg)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-head h3,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-title,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-stat b{
  color:var(--md-text)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-head p,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-stat span{
  color:var(--md-muted)!important;
}
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-stat,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-rank,
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] .pa2-modal-close{
  background:#111821!important;
  border-color:var(--md-border)!important;
  color:var(--md-text2)!important;
}

/* Earnings dark-mode background continuity — visual only. */
html.mwhib-publisher-route[data-mwhib-publisher-theme="dark"] main section.min-w-0.max-w-full.space-y-6[class~="bg-slate-50/40"]{
  background:var(--md-bg)!important;
}
/* Dashboard internal loader standardization v1. Visual-only. */
/* Native React route loaders (articles/new/articles/earnings): keep icon semantics, unify size + orange accent. */
html.mwhib-publisher-route main .flex.justify-center.items-center.h-64 > svg.animate-spin,
html.mwhib-publisher-route main .p-8.flex.justify-center.items-center > svg.animate-spin,
html.mwhib-publisher-route main section[class*="min-h-[520px]"] > svg.animate-spin{
  width:32px!important;height:32px!important;color:#f97316!important;stroke:#f97316!important;
}
/* Analytics internal loading state: use the same small orange spokes instead of a plain loading block. */
html.mwhib-publisher-route .pa2-loading{
  min-height:132px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;
}
html.mwhib-publisher-route .pa2-loading::before{
  content:"";display:block;width:32px;height:32px;flex:0 0 32px;border-radius:50%;
  background:repeating-conic-gradient(from 0deg,#f97316 0deg 9deg,transparent 9deg 30deg);
  -webkit-mask:radial-gradient(circle,transparent 0 35%,#000 38% 100%);mask:radial-gradient(circle,transparent 0 35%,#000 38% 100%);
  animation:mwhib-internal-loader-spin .72s linear infinite;
}
@keyframes mwhib-internal-loader-spin{to{transform:rotate(360deg)}}
@media(max-width:640px){html.mwhib-publisher-route .pa2-loading::before{width:30px;height:30px;flex-basis:30px}}
@media(prefers-reduced-motion:reduce){html.mwhib-publisher-route .pa2-loading::before{animation-duration:1.15s}}

/* Dashboard internal loader refinement v2: spinner-only route loading, matching article editor loader. */
html.mwhib-publisher-route main section[class*="min-h-[520px]"][class*="rounded-2xl"]{
  min-height:320px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  padding:0!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important;
}
html.mwhib-publisher-route main section[class*="min-h-[520px]"][class*="rounded-2xl"] > h2,
html.mwhib-publisher-route main section[class*="min-h-[520px]"][class*="rounded-2xl"] > p{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
html.mwhib-publisher-route main section[class*="min-h-[520px]"][class*="rounded-2xl"] > svg.animate-spin{margin:0!important;}
html.mwhib-publisher-route .pa2-loading{
  min-height:260px!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important;
  font-size:0!important;line-height:0!important;color:transparent!important;gap:0!important;
}
