/* Shared public/app header. Black in either theme, edged with the logo cyan-to-violet gradient. */
:root{--bs-primary:#3B2BD6;--bs-primary-rgb:59,43,214;--bs-link-color:#3B2BD6;--bs-link-hover-color:#2A1E9E}
body .mk-navbar,.mm-landing .mm-nav{position:relative;background:#05060a;border-bottom:0;min-height:76px}
body .mk-navbar::after,.mm-landing .mm-nav::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#00C4FC,#2A62FB 46%,#7B15F4);pointer-events:none}
body .mk-navbar .mk-brand,.mm-landing .mm-brand{display:inline-flex;align-items:center;color:#fff!important;text-decoration:none}
body .mk-navbar .mk-brand:not(:has(img)){color:transparent!important;width:190px;height:46px;overflow:hidden;background:url("/images/mokumax-logo.png") left center / auto 46px no-repeat}
body .mk-navbar .mk-brand img,.mm-landing .mm-brand img,.mm-landing .mm-preview-brand img{display:block;height:46px;width:auto}
.mm-landing .mm-preview-brand img{height:30px}
body .mk-navbar .mk-nav-link,body .mk-navbar .mk-account-label,body .mk-navbar .mk-logout-button,.mm-landing .mm-links a:not(.mm-button){color:#e4e0f2!important}
body .mk-navbar .mk-login-link{color:#fff!important;background:linear-gradient(105deg,#0877c8,#2346e6 48%,#6414dc);border-radius:9px;padding:8px 14px;font-weight:700}
body .mk-navbar .mk-login-link:hover{color:#fff!important;filter:brightness(1.08)}
body .mk-navbar .mk-nav-link:hover,body .mk-navbar .mk-nav-link.active,.mm-landing .mm-links a:not(.mm-button):hover{color:white!important}
body .mk-navbar .mk-nav-link.active::after{background:linear-gradient(90deg,#00C4FC,#7B15F4);height:3px}
body .mk-navbar .mk-account-link:hover,body .mk-navbar .mk-account-link:focus,body .mk-navbar .mk-account-link.show{background:#1c1830}
body .mk-navbar .mk-account-icon{color:#fff;background:linear-gradient(160deg,#00C4FC,#2A62FB 50%,#7B15F4)}
body .mk-navbar .mk-account-link::after{color:#d4ccf0}
body .mk-navbar .navbar-toggler{border-color:#6d6790;filter:brightness(0) invert(1)}
.mk-theme-toggle{display:inline-flex;align-items:center;justify-content:center;border:1px solid #4a4570;border-radius:9px;width:36px;height:36px;background:#161422;color:#e6e0ff;flex-shrink:0}
.mk-theme-toggle:hover{background:#262338;color:#fff}.mk-theme-toggle:focus-visible{outline:3px solid #00C4FC;outline-offset:3px}.mk-theme-toggle svg[hidden]{display:none}
.mk-main .btn-primary{background:linear-gradient(105deg,#0877c8,#2346e6 48%,#6414dc);border-color:#4a22c0;color:#fff}
.mk-main .btn-primary:hover,.mk-main .btn-primary:focus{background:linear-gradient(105deg,#0669b0,#1b38cc 48%,#5412b8);border-color:#c4b5fd;color:#fff}
body .mk-footer{position:relative;background:#05060a;color:#c9c6d8;border-top:0}
body .mk-footer::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,#00C4FC,#2A62FB 46%,#7B15F4)}
body .mk-footer a{color:#efeaff}
@media(max-width:767px){body .mk-navbar .mk-brand img,.mm-landing .mm-brand img{height:36px}}
html[data-theme=dark]{--mk-surface:#192a40;--mk-surface-alt:#21364e;--mk-line:#38506b;--mk-text:#e5edf8;--mk-muted:#aec0d7;color-scheme:dark}
html[data-theme=dark] body{background:#101c2e;color:var(--mk-text)}
html[data-theme=dark] :is(.mk-card,.mk-action-card,.mk-admin-edit-panel,.mk-admin-form,.mk-admin-table,.mk-goal-page,.mk-goal-dialog,.mk-account-dropdown-menu,.mk-report-toolbar,.mk-campaign-summary){background:var(--mk-surface);border-color:var(--mk-line);color:var(--mk-text)}
html[data-theme=dark] :is(h1,h2,h3,h4,.mk-section-title,.mk-config-value,.mk-account-dropdown-title,.mk-account-dropdown-item,.mk-admin,.mk-admin-edit-panel legend,.mk-visual-funnel-stage-name){color:var(--mk-text)}
html[data-theme=dark] :is(.mk-page-header p,.mk-admin>p,.mk-admin-form small,.mk-admin-table td small,.mk-account-dropdown-subtitle,.mk-section-context,.mk-config-label,.mk-activity-time,.mk-activity-context,.mk-report-toolbar-subtitle,.mk-report-toolbar-range,.mk-meta-refresh-status){color:var(--mk-muted)}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:#142338!important;color:var(--mk-text)!important;border-color:#49607d!important}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a4b6cf}
html[data-theme=dark] .mk-main a:not(.btn):not(.mk-campaign-tabs a):not(.mk-admin-tile):not(.mk-results-link){color:#c4b5fd}
html[data-theme=dark] :is(.mk-admin-readonly,.mk-admin-dates>div,.mk-admin-table th,.mk-campaign-tabs,.mk-admin-edit .mk-admin-form-actions,.mk-config-item,.mk-tell-card){background:var(--mk-surface-alt);color:var(--mk-text);border-color:var(--mk-line)}
html[data-theme=dark] .mk-admin-edit .mk-admin-form{background:transparent}
html[data-theme=dark] .mk-admin-dates span{color:var(--mk-muted)}
html[data-theme=dark] .mk-admin-table td{border-color:var(--mk-line)}
html[data-theme=dark] .mk-account-dropdown-item:hover{background:var(--mk-surface-alt);color:white}
html[data-theme=dark] .mk-campaign-assessment .mk-gauge-card{background:linear-gradient(120deg,#1c304b,#192a40);border-color:var(--mk-line);border-top-color:var(--status)}
html[data-theme=dark] .mk-campaign-assessment :is(.mk-campaign-indicator,.mk-check-guidance){background:#233b58;border-color:#466382}
html[data-theme=dark] .mk-campaign-assessment :is(.mk-indicator-basis,.mk-check-next){color:#e1ecff}
html[data-theme=dark] .mk-campaign-assessment :is(.mk-check-period,.mk-gauge-explanation,.mk-saved-answers){color:#bdcde2}
html[data-theme=dark] .mk-campaign-assessment .mk-check-numbers>div{background:#223b5c;border-color:#385a85}
html[data-theme=dark] .mk-campaign-assessment .mk-check-numbers>div:nth-child(2){background:#332c4e;border-color:#514273}
html[data-theme=dark] .mk-campaign-assessment .mk-check-numbers>div:nth-child(3){background:#443827;border-color:#6d5630}
html[data-theme=dark] .mk-campaign-assessment .mk-check-numbers>div:nth-child(4){background:#203e38;border-color:#365e50}
html[data-theme=dark] .mk-campaign-assessment .mk-check-numbers span{color:#bdcde2}
html[data-theme=dark] .mk-campaign-assessment .mk-check-numbers strong{color:#e3edff}
html[data-theme=dark] .mk-gauge-bad{--status:#ff959c}html[data-theme=dark] .mk-gauge-good{--status:#78d9ad}html[data-theme=dark] .mk-gauge-watch{--status:#f5cc73}
html[data-theme=dark] .mk-campaign-assessment .mk-check-numbers>div:nth-child(3) strong{color:var(--status)}
html[data-theme=dark] .mk-campaign-assessment .mk-goal-open{background:#243c5a;border-color:#44607f}
html[data-theme=dark] :is(.mk-plan,.mk-plan-timing>div,.mk-plan-followup,.mk-action-observation,.mk-action-quick,.mk-results-link){background:#203750!important;border-color:#496381!important;color:var(--mk-text)!important}
html[data-theme=dark] [data-todo-card] :is(.mk-plan-steps>li,.mk-todo-done){background:#203e35;border-color:#487a60;color:#d3f2e0}
html[data-theme=dark] [data-todo-card] :is(.mk-plan strong,.mk-plan span,.mk-plan p,.mk-plan small,.mk-plan-timing strong,.mk-todo-done p){color:inherit}
html[data-theme=dark] .mk-visual-funnel .mk-visual-funnel-stage{background:var(--mk-surface);border-color:var(--mk-line);border-top-color:var(--step-color)}
html[data-theme=dark] .mk-visual-funnel .mk-visual-funnel-icon{background:var(--mk-surface-alt)}
html[data-theme=dark] .mk-visual-funnel .mk-visual-funnel-metric-label{color:var(--mk-muted)}
html[data-theme=dark] .mk-visual-funnel .mk-visual-funnel-metric-value{color:var(--mk-text)}
html[data-theme=dark] .mk-footer{background:#05060a;border-color:transparent;color:#c9c6d8}
@media(max-width:767px){body .mk-navbar .mk-account-menu{gap:10px}.mk-admin-edit-grid{gap:14px}}
/* Complete dashboard/action contrast across dark surfaces. */
html[data-theme=dark] :is(.mk-overview-card,.mk-overview-funnel,.mk-overview-empty){background:var(--mk-surface);border-color:var(--mk-line);color:var(--mk-text)}
html[data-theme=dark] :is(.mk-overview-card h3,.mk-overview-number,.mk-overview-funnel h3,.mk-overview-funnel strong,.mk-overview-account strong,.mk-plan-title,.mk-plan-steps-heading,.mk-plan-heading){color:#e5edf8!important}
html[data-theme=dark] :is(.mk-overview-unit,.mk-overview-chart-labels,.mk-overview-account span,.mk-overview-funnel-heading span,.mk-overview-funnel p,.mk-overview-eyebrow,.mk-gauges-header span,.mk-gauges-header p,.mk-action-eyebrow,.mk-todo-help-hint,.mk-action-quick-label,.mk-action-next-label,.mk-action-comparison-label){color:#b9cbe2!important}
html[data-theme=dark] .mk-overview-bar-slot{background:#2b405c}
html[data-theme=dark] .mk-overview-bar.missing{background:repeating-linear-gradient(45deg,#334b68,#334b68 3px,#253b55 3px,#253b55 6px)}
html[data-theme=dark] .mk-campaign-tabs a:not(.is-active){color:#bed4f0}
html[data-theme=dark] .mk-campaign-assessment .mk-check-title{color:var(--status)}
html[data-theme=dark] [data-todo-card] :is(.mk-plan h3,.mk-plan h4,.mk-plan-steps-heading){color:#e5edf8!important}
html[data-theme=dark] [data-todo-card] .mk-todo-step-link{background:#263f5f;color:#bed8ff!important;border-color:#58779d}
html[data-theme=dark] [data-todo-card] .btn-outline-primary{color:#bed8ff;border-color:#799dc9}
html[data-theme=dark] .mk-admin-refresh-link{color:#abcaff}
.mk-impersonation-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 24px;background:#fff0c2;color:#594014;border-bottom:1px solid #d8b75c;position:sticky;top:0;z-index:1030;font-size:.92rem}
.mk-impersonation-bar form{margin:0;flex-shrink:0}.mk-impersonation-bar button{border:1px solid #b99943;border-radius:7px;background:#fff8e6;color:#594014;padding:6px 12px;font-weight:650}.mk-impersonation-bar button:focus-visible{outline:3px solid #7752bc;outline-offset:3px}
html[data-theme=dark] .mk-impersonation-bar{background:#45371d;color:#ffedb5;border-color:#8e7138}html[data-theme=dark] .mk-impersonation-bar button{background:#5a4725;color:#ffedb5;border-color:#b08b42}

/* App footer fills the viewport without the old bottom body margin. */
body.mk-app-shell{display:flex;flex-direction:column;min-height:100vh;margin:0}
body.mk-app-shell>.mk-main{flex:1;min-height:0}
body.mk-app-shell>header,body.mk-app-shell>.mk-footer{flex-shrink:0}
body.mk-app-shell>.mk-footer{position:static;margin:0}
body.mk-app-shell>.mk-impersonation-bar{position:sticky;top:0;order:0;flex-shrink:0}
/* Remaining campaign and Results & history surfaces. */
html[data-theme=dark] :is(.mk-perf-card,.mk-evidence-item,.mk-kpi,.mk-diagnostic-intel,.mk-plan-caution,.mk-action-evidence,.mk-details-block,.mk-funnel-card){background:var(--mk-surface-alt)!important;border-color:var(--mk-line)!important;color:var(--mk-text)!important}
html[data-theme=dark] :is(.mk-action-summary,.mk-action-status,.mk-action-eyebrow,.mk-action-quick-label,.mk-todo-help-hint,.mk-gauge-info,.mk-estimate-help,.mk-reporting-label,.mk-perf-title,.mk-perf-status,.mk-object-label,.mk-object-name,.mk-object-help,.mk-kpi-label,.mk-evidence-label,.mk-secondary-stat,.mk-activity-title,.mk-change-title,.mk-change-text,.mk-tell-text,.mk-tell-title,.mk-funnel-label,.mk-funnel-title){color:#c5d6ed!important}
html[data-theme=dark] :is(.mk-kpi-value,.mk-evidence-value,.mk-perf-metric strong,.mk-perf-metric b,.mk-funnel-number){color:#f0f5ff!important}
html[data-theme=dark] .mk-main :is(details summary,.mk-details-block summary){color:#c5d6ed}
html[data-theme=dark] [data-todo-card] :is(.mk-diagnostic-intel p,.mk-diagnostic-intel strong,.mk-plan-caution strong,.mk-action-evidence summary){color:#e5edf8!important}
html[data-theme=dark] .mk-perf-metric{background:#263d58;border-color:#49617d;color:#c5d6ed}
html[data-theme=dark] .mk-meta-pill{background:#263d58;border-color:#49617d;color:#d9e6f8}
html[data-theme=dark] .mk-report-toolbar-form button,html[data-theme=dark] .mk-report-toolbar-preset{background:#294569;color:#d9e6f8;border-color:#52729b}
/* Consistent dark surfaces and interactive states for campaign results. */
html[data-theme=dark] :is(.mk-ad-item,.mk-change-analysis){background:#21364e!important;border-color:#49617d!important;color:#e5edf8!important}
html[data-theme=dark] :is(.mk-report-toolbar-header strong,.mk-report-toolbar-form label,.mk-change-analysis p,.mk-change-analysis strong,.mk-perf-card .mk-perf-title,.mk-ad-item .mk-object-name){color:#e5edf8!important}
html[data-theme=dark] .mk-visual-funnel .mk-visual-funnel-stage{--step-color:#88b5ff}
html[data-theme=dark] .mk-visual-funnel .mk-visual-funnel-stage:nth-child(2){--step-color:#bda2ff}
html[data-theme=dark] .mk-visual-funnel .mk-visual-funnel-stage:nth-child(3){--step-color:#7fd6df}
html[data-theme=dark] .mk-visual-funnel .mk-visual-funnel-stage:nth-child(4){--step-color:#f3cc7a}
html[data-theme=dark] .mk-visual-funnel .mk-visual-funnel-stage:nth-child(5){--step-color:#83ddb0}
html[data-theme=dark] .mk-main :is(.btn,.mk-goal-open,.mk-todo-step-link,.mk-tell-button,.mk-report-toolbar-preset):hover{background:#345781!important;color:#fff!important;border-color:#93b5df!important}
html[data-theme=dark] .mk-main .btn-primary:hover,html[data-theme=dark] .mk-main .btn-primary:focus{background:linear-gradient(105deg,#0669b0,#1b38cc 48%,#5412b8)!important;border-color:#c4b5fd!important;color:#fff!important}
html[data-theme=dark] .mk-main button:hover{color:#fff;background:#345781;border-color:#93b5df}
html[data-theme=dark] .mk-main .mk-gauge-info:hover{color:#e5edf8;background:#2a4668}
html[data-theme=dark] .mk-campaign-tabs a:hover{background:#365678;color:#fff}

html[data-theme-lock=light] .mk-theme-toggle{display:none}
/* Campaign list uses matching dark table and account surfaces. */
html[data-theme=dark] .mk-campaigns-page .mk-account-card{background:#192a40;border-color:#38506b}
html[data-theme=dark] .mk-campaigns-page .mk-account-header{background:#21364e;border-color:#38506b}
html[data-theme=dark] .mk-campaigns-page :is(.mk-account-title,.mk-campaigns-title){color:#e5edf8}
html[data-theme=dark] .mk-campaigns-page .mk-campaigns-subtitle{color:#b9cbe2}
html[data-theme=dark] .mk-campaigns-page .mk-campaign-table{--bs-table-bg:#192a40;--bs-table-color:#d9e6f8;--bs-table-border-color:#38506b;background:#192a40;color:#d9e6f8}
html[data-theme=dark] .mk-campaigns-page .mk-campaign-table thead th{background:#21364e;color:#c5d6ed;border-color:#49617d}
html[data-theme=dark] .mk-campaigns-page .mk-campaign-table tbody td{background:#192a40;color:#d9e6f8;border-color:#38506b}
html[data-theme=dark] .mk-campaigns-page .mk-campaign-table tbody tr:hover td{background:#263e59;color:#fff}
html[data-theme=dark] .mk-campaigns-page .mk-campaign-link{color:#abcaff!important}
html[data-theme=dark] .mk-campaigns-page .mk-campaign-link:hover{color:#e5efff!important}
html[data-theme=dark] .mk-campaigns-page :is(.mk-open-meta-btn,.mk-external-link){background:#294569;color:#c5dcff!important;border-color:#52729b}
html[data-theme=dark] .mk-campaigns-page :is(.mk-open-meta-btn,.mk-external-link):hover{background:#3b5e89;color:#fff!important;border-color:#93b5df}

html[data-theme=dark] .mk-briefing :is(.mk-ads-label,.mk-ad-label,.mk-object-icon,.mk-perf-subtitle,.mk-ad-section-title,.mk-ad-section-label,.mk-perf-label){color:#b9cbe2!important}
html[data-theme=dark] .mk-briefing :is(.mk-ad-item p,.mk-perf-card p,.mk-report-toolbar strong){color:#d9e6f8}
html[data-theme=dark] .mk-briefing .mk-object-label{background:#304a70;color:#dceaff!important;border-color:#617fa5}

html[data-theme=dark] .mk-briefing .mk-ads-title{color:#b9cbe2}
/* Status pills retain readable contrast instead of inheriting pale heading text. */
html[data-theme=dark] [data-todo-card] .mk-action-status{background:#243d5c!important;color:#d9e8ff!important;border:1px solid #6583a8}
html[data-theme=dark] [data-todo-card] .mk-action-status-healthy{background:#204b3a!important;color:#b8f1d1!important;border-color:#5b9d7b}
html[data-theme=dark] [data-todo-card] .mk-action-status-attention{background:#56313a!important;color:#ffd3d8!important;border-color:#b56e7c}
html[data-theme=dark] [data-todo-card] .mk-action-status-watch{background:#4c3e26!important;color:#ffe1a1!important;border-color:#9c8049}
html[data-theme=dark] [data-todo-card] .mk-action-status :is(span,svg){color:inherit!important}
html[data-theme=dark] [data-todo-card] :is(.mk-action-priority,.mk-action-priority-note){color:#bdcfe7!important}
/* Notifications use dark surfaces with high-contrast text. */
html[data-theme=dark] .alert-info{--bs-alert-color:#d0f1ff;--bs-alert-bg:#183e50;--bs-alert-border-color:#4c879d;color:#d0f1ff;background:#183e50;border-color:#4c879d}
html[data-theme=dark] .alert-success{--bs-alert-color:#caf2db;--bs-alert-bg:#204735;--bs-alert-border-color:#5b9877;color:#caf2db;background:#204735;border-color:#5b9877}
html[data-theme=dark] .alert-warning{--bs-alert-color:#ffe6ae;--bs-alert-bg:#483a20;--bs-alert-border-color:#9f8148;color:#ffe6ae;background:#483a20;border-color:#9f8148}
html[data-theme=dark] .alert-danger{--bs-alert-color:#ffd5dc;--bs-alert-bg:#4d2933;--bs-alert-border-color:#a56675;color:#ffd5dc;background:#4d2933;border-color:#a56675}
html[data-theme=dark] .alert :is(p,span,strong){color:inherit}
html[data-theme=dark] .mk-main .alert a{color:inherit!important;text-decoration:underline}

/* Compact campaign heading; keep the approved summary and action cards intact. */
.mk-main .mk-briefing { padding-top: 18px; }
.mk-briefing .mk-page-header { margin: 6px 0 10px; }
.mk-briefing .mk-title-row { margin-bottom: 6px; gap: 8px; }
.mk-briefing .mk-page-header h1 { font-size: 1.65rem; }
.mk-briefing .mk-meta-row { gap: 6px; }
.mk-briefing .mk-meta-pill { padding: 3px 9px; }
.mk-briefing .mk-meta-refresh-status { margin-bottom: 10px; gap: 10px; }
.mk-briefing .mk-campaign-tabs { padding: 4px; margin-bottom: 14px; max-width: 380px; }
.mk-briefing .mk-campaign-tabs a { padding: 8px 12px; }
html[data-theme=dark] .mk-briefing a.mk-title-link-badge {
    background: #294569; border-color: #587daa; color: #e4efff !important;
}
html[data-theme=dark] .mk-briefing a.mk-title-link-badge:hover,
html[data-theme=dark] .mk-briefing a.mk-title-link-badge:focus-visible {
    background: #365b86; border-color: #8eb4e4; color: #ffffff !important;
}
.mk-briefing a.mk-title-link-badge:focus-visible { outline: 3px solid #6099e8; outline-offset: 3px; }
@media (max-width: 480px) {
    .mk-briefing .mk-page-header h1 { font-size: 1.4rem; }
    .mk-briefing .mk-campaign-tabs { max-width: none; }
}

/* Evidence disclosure must use the campaign's dark surfaces and readable text. */
html[data-theme=dark] [data-todo-card] .mk-action-details {
    background: #20364d !important; border-color: #49617d !important; color: #dce8f8 !important;
}
html[data-theme=dark] [data-todo-card] .mk-action-details > summary {
    background: #263f5b !important; color: #f0f5ff !important; border-color: #49617d !important;
}
html[data-theme=dark] [data-todo-card] .mk-action-details > summary:hover {
    background: #315172 !important; color: #ffffff !important;
}
html[data-theme=dark] [data-todo-card] .mk-action-details > summary:focus-visible {
    outline: 3px solid #94bcff; outline-offset: 3px;
}
html[data-theme=dark] [data-todo-card] .mk-action-details-body,
html[data-theme=dark] [data-todo-card] .mk-action-details-body :is(p,li,strong,span),
html[data-theme=dark] [data-todo-card] :is(.mk-action-quiet-note,.mk-diagnostic-heading) {
    color: #dce8f8 !important;
}

/* Onboarding text must stay readable on dark cards. */
html[data-theme=dark] .mk-onboarding :is(.mk-step-title,.mk-next-title) { color: #f0f5ff !important; }
html[data-theme=dark] .mk-onboarding :is(.mk-subtitle,.mk-step-description,.mk-next-text) { color: #c5d6ed !important; }
html[data-theme=dark] .mk-onboarding .mk-step { border-color: #49617d !important; }
html[data-theme=dark] .mk-onboarding .mk-pill-current { background: #294d7c; color: #e3efff !important; }
html[data-theme=dark] .mk-onboarding .mk-pill-upcoming { background: #33465d; color: #d6e2f2 !important; }
html[data-theme=dark] .mk-onboarding .mk-pill-complete { background: #204b3a; color: #caf2db !important; }

/* Keep the account menu readable against the navy header in either skin. */
body .mk-navbar .mk-account-link { background: #161422 !important; border: 1px solid #3d3860 !important; color: #f4f0ff !important; }
body .mk-navbar .mk-account-link .mk-account-label { color: #f4f0ff !important; }
body .mk-navbar .mk-account-link:hover,body .mk-navbar .mk-account-link:focus-visible { background: #262338 !important; color: #fff !important; }
html[data-theme-lock=light] .mk-main input.form-control { background: #fff !important; color: #172033 !important; border-color: #aab9cd !important; }

/* Bootstrap account and billing cards must match the dark application theme. */
html[data-theme=dark] .mk-main .card {
    background-color: #1b2d43 !important; color: #e5edf8 !important; border-color: #49617d !important;
}
html[data-theme=dark] .mk-main .card :is(.card-body,.card-header,.card-footer) {
    background-color: transparent !important; color: #e5edf8; border-color: #49617d !important;
}
html[data-theme=dark] .mk-main .card :is(.form-label,label,.card-title,h1,h2,h3,h4) { color: #f0f5ff !important; }
html[data-theme=dark] .mk-main .card :is(.form-text,.text-muted,.lead) { color: #c5d6ed !important; }
html[data-theme=dark] .mk-main .card .btn-outline-secondary { color: #e5edf8 !important; border-color: #8197b2; background: transparent; }
html[data-theme=dark] .mk-main .card .btn-outline-secondary:hover,
html[data-theme=dark] .mk-main .card .btn-outline-secondary:focus-visible { background: #355272 !important; color: #fff !important; border-color: #b1c8e6; }

/* Account overview uses custom sections rather than Bootstrap cards. */
html[data-theme=dark] .mk-account-shell .mk-section { background: #1b2d43 !important; border-color: #49617d !important; }
html[data-theme=dark] .mk-account-shell :is(.mk-section-title,.mk-value,.mk-plan-name,.mk-meta-name) { color: #f0f5ff !important; }
html[data-theme=dark] .mk-account-shell :is(.mk-label,.mk-note,.mk-meta-state) { color: #c5d6ed !important; }
html[data-theme=dark] .mk-account-shell .mk-plan-price { color: #c4b5fd !important; }
html[data-theme=dark] .mk-account-shell .mk-meta-item { background: #20364d !important; border-color: #49617d !important; }
