
/* Shared theme tokens. Light mode keeps each page's original palette. */

.app-theme-picker{position:relative;display:inline-flex;align-items:center}
body #navbar .app-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;padding:6px;border:1px solid #789086;border-radius:50%;background:#ffffff0c;color:#fff;cursor:pointer;line-height:1}
body #navbar .app-theme-toggle:hover{background:#ffffff20}
body #navbar .app-theme-toggle:focus-visible{outline:2px solid #90dfbb;outline-offset:3px}
body #navbar .app-theme-toggle:disabled{cursor:wait;opacity:.65}
.app-theme-sun{display:none}.app-theme-moon{display:block}
html[data-theme=dark] .app-theme-sun{display:block}html[data-theme=dark] .app-theme-moon{display:none}
.app-theme-picker [data-app-theme-error]{position:absolute;z-index:10005;right:0;top:calc(100% + 8px);width:230px;padding:9px 12px;border:1px solid #c64545;border-radius:7px;background:#fff3f3;color:#912727;font-size:12px;line-height:1.45;white-space:normal}
.app-theme-mobile-top{display:none}
@media(max-width:767px){.app-theme-mobile-top{display:block;position:absolute;right:52px;top:5px;z-index:10000}}
body .adv-notice.app-terms-notice.app-terms-notice{box-sizing:border-box;width:calc(100% - 24px);max-width:1156px;margin:12px auto 0}
.app-terms-notice{background:#fff7df;border-color:#eddaa4;color:#72530a}
.app-terms-symbol{font-weight:700;flex:none;border:1px solid currentColor;border-radius:50%;width:17px;height:17px;display:grid;place-items:center;font-size:12px}
.app-terms-notice .app-notice-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.app-terms-notice small{display:block}
@media(max-width:767px){.app-terms-notice .app-notice-actions{width:100%}}


html[data-theme=dark] body{background:var(--app-bg)!important;color:var(--app-text)!important}
/* Page palettes are scoped: the legacy white/nav variables keep their meaning. */
html[data-theme=dark] body :is(.xp,.tutorial-page,.account-settings,.payments-page,.adv-dashboard){color:var(--app-text);--xp-ink:var(--app-text);--xp-muted:var(--app-muted);--xp-line:var(--app-border);--tutorial-text:var(--app-text);--tutorial-muted:var(--app-muted);--tutorial-border:var(--app-border);--si:var(--app-text);--sm:var(--app-muted);--pay-ink:var(--app-text);--pay-muted:var(--app-muted);--pay-line:var(--app-border);--dash-ink:var(--app-text);--dash-muted:var(--app-muted);--dash-line:var(--app-border);--dash-card:var(--app-surface);--dash-soft:var(--app-surface-soft);--dash-good:var(--app-good);--dash-bad:var(--app-bad)}
html[data-theme=dark] body :is(h1,h2,h3,h4,h5,h6,label,summary){color:var(--app-text)!important}
html[data-theme=dark] body :is(p,small,.text-muted){color:var(--app-muted)!important}
html[data-theme=dark] body :is(main,.app-page,.dre-page-shell,.home-start){color:var(--app-text)}
html[data-theme=dark] body :is(hr,.app-standard-heading,.dre-card-heading,.xp-heading,.sa-heading,.pay-card-head,.adv-dashboard__card-heading){border-color:var(--app-border)!important}
html[data-theme=dark] body :is(.app-standard-heading,.app-filter-toggle,.dre-filter-heading,.dre-toolbar-title,.dre-card-copy strong,.dre-editor-title,.dre-card-footnote){color:var(--app-text)!important}
html[data-theme=dark] body .app-filter-toggle{background:transparent!important}
/* Surfaces shared by every authenticated page, including inline account styles. */
html[data-theme=dark] body :is(.xp-card,.sa-card,.pay-card,.card,.dre-planning-card,.app-filter-card,.adv-dashboard__card,.adv-dashboard__filters,.advisor-filters-card,.advisor-card,.advisory-card,.timeline-card,.insights-history-card,.training-card,.training-module,.training-course-card,.tutorial-card,.tutorial-sidebar,.onboarding-step,.tutorial-topic-list,.tutorial-topic,.learning-feedback-card,.learning-rating,.home-card,.home-feature-card,.home-secondary-link,.home-support-card,.mgm-intro,.mgm-simulations article,.mgm-terms,.accordion-item,.accordion-button,.accordion-body){background:var(--app-surface)!important;color:var(--app-text)!important;border-color:var(--app-border)!important;box-shadow:none}
html[data-theme=dark] body :is(.home-card,.home-feature-card,.home-support-card) :is(h2,h3,strong){color:var(--app-text)!important}
html[data-theme=dark] body :is(.home-card,.home-feature-card,.home-support-card) p{color:var(--app-muted)!important}
html[data-theme=dark] body :is(.home-secondary-link,.tutorial-filter,.training-item,.xp-tag,.xp-pill,.pay-next-charge,.pay-card-method,.pay-billing-box,.pay-payment-method,.units-fixed-badge,.sa-input,.mgm-code,.dre-action-card,.dre-editor-fields,.dre-period-panel,.dre-repeat-tools){background:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body :is(.home-card,.home-secondary-link,.dre-action-card,.tutorial-filter,.training-item):hover{background:var(--app-hover)!important}
html[data-theme=dark] body :is(.home-card-icon,.home-secondary-icon,.dre-card-icon){background:var(--app-surface-soft)!important;color:var(--app-link)!important}
html[data-theme=dark] body :is(.home-card-icon,.home-secondary-icon,.mgm-gift) svg{color:var(--app-link)}
/* Menus, search and editable controls. Preserve native checkbox/radio sizing. */
html[data-theme=dark] body .app-account-dropdown{background:var(--app-surface)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .app-account-dropdown .app-account-dropdown-link{color:var(--app-text)!important;background:transparent!important}
html[data-theme=dark] body .app-account-dropdown .app-account-dropdown-link:is(:hover,:focus-visible){background:var(--app-hover)!important}
html[data-theme=dark] body .app-account-dropdown-divider{background:var(--app-border)!important}
html[data-theme=dark] body .tutorial-search{background:var(--app-surface)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){background-color:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important;-webkit-text-fill-color:var(--app-text);caret-color:var(--app-text)}
html[data-theme=dark] body :is(input,textarea)::placeholder{color:var(--app-muted)!important;-webkit-text-fill-color:var(--app-muted);opacity:1}
html[data-theme=dark] body :is(input,textarea,select):focus-visible{outline-color:var(--app-link)}
html[data-theme=dark] body :is(input,textarea,select):disabled{opacity:1;color:var(--app-muted)!important;-webkit-text-fill-color:var(--app-muted)}
html[data-theme=dark] body .tutorial-search input{background:transparent!important}
html[data-theme=dark] body :is(.tutorial-mark,mark){background:#6a5720;color:#fff1bd}
html[data-theme=dark] body :is(a,.dre-link,.dre-card-arrow,.mgm-text-link):where(:not(#navbar *,.ui-alert-action)){color:var(--app-link)!important}
/* Filled buttons retain their own contrasting text. */
html[data-theme=dark] body :is(.xp-btn:not(.secondary),.btn-success,.sa-button:not(.sa-secondary),.dre-save-btn,.dre-editor-save,.dre-planning-complete-cta,.tutorial-demo-cta a,.training-advisor-cta a){color:#fff!important}
html[data-theme=dark] body :is(.xp-btn.secondary,.sa-button.sa-secondary,.dre-ui-btn:not(.dre-planning-complete-cta),.dre-table-font-btn,.dre-table-edit-btn,.dre-table-cancel-btn,.dre-editor-edit,.dre-editor-cancel,.dre-repeat-button,.mgm-close){background:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body :is(.app-pagination a,.app-pagination button,.app-pagination-controls>span,.xp-pagination a,.xp-pagination button,.xp-page-btn){background:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body :is(.app-pagination,.xp-pagination) [aria-current=page]{background:var(--app-total)!important;color:#fff!important;border-color:#79b99a!important}
/* Global alerts: preserve semantic green/yellow and readable icons and links. */
html[data-theme=dark] body :is(.adv-notice,.sa-demo,.home-demo-notice,.tutorial-demo-notice){background:#38331d!important;color:var(--app-warning)!important;border-color:#877341!important}
html[data-theme=dark] body :is(.tutorial-reminder,.tutorial-progress-notice){background:#183f2d!important;color:#c1efd4!important;border-color:#447c5b!important}
html[data-theme=dark] body :is(.upcoming-session-notice,.insights-ready-notice){background:#11583c!important;color:#fff!important;border-color:#4e9e75!important}
html[data-theme=dark] body .adv-notice :is(strong,small,p){color:inherit!important}
html[data-theme=dark] body .adv-notice a:not(.adv-notice-action){color:#ffe4a0!important}
html[data-theme=dark] body .adv-notice .adv-notice-action{background:#e6f3eb!important;color:#07513e!important;border-color:#9dc8b2!important}
/* Account detail rows and ledger/payment histories. */
html[data-theme=dark] body .account-settings :is(.sa-label,.sa-note,.sa-description,.sa-help,.units-help,.unit-status-label,.units-summary){color:var(--app-muted)!important}
html[data-theme=dark] body .account-settings :is(.unit-row,.units-consolidated,.units-consolidated>span:first-child,.unit-name,.sa-lock-label,.sa-lock-month,.credits-expiration-list){color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .account-settings :is(.units-divider,.sa-divider){background:var(--app-border)!important}
html[data-theme=dark] body :is(.sa-table,.credits-table,.pay-history-table,.mgm-table,.adv-dashboard__table){background:var(--app-surface)!important;color:var(--app-text)!important}
html[data-theme=dark] body :is(.sa-table,.credits-table,.pay-history-table,.mgm-table,.adv-dashboard__table) :is(th,td){background:var(--app-surface)!important;color:var(--app-text);border-color:var(--app-border)!important}
html[data-theme=dark] body :is(.sa-table,.credits-table,.pay-history-table,.mgm-table,.adv-dashboard__table) th{background:var(--app-surface-soft)!important;color:var(--app-muted)!important}
html[data-theme=dark] body :is(.pay-history-table,.sa-table,.credits-table) strong{color:var(--app-text)!important}
html[data-theme=dark] body :is(.pay-next,.pay-next-charge,.pay-method,.pay-method-card,.pay-progress-track){background:var(--app-surface-soft)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body :is(.pay-plan-price,.pay-plan-price strong,.sa-balance,.credits-balance,.mgm-balances strong,.mgm-code code,.mgm-simulations article strong,.mgm-conversion-preview){color:var(--app-link)!important}
html[data-theme=dark] body :is(.mgm-balances article>span,.mgm-muted,.pay-subtitle){color:var(--app-muted)!important}
html[data-theme=dark] body :is(.sa-status.is-ok,.pay-status.active,.pay-status.paid,.xp-badge.ok){background:#214e38;color:#b4f1ce}
html[data-theme=dark] body :is(.sa-status.is-error,.pay-status.failed,.xp-badge.bad){background:#5a2c2b;color:var(--app-bad)}
/* Category editor and drawers: no white panels or illegible row headings. */
html[data-theme=dark] body :is(.dre-editor,.dre-editor-modal,.dre-editor-dialog,.dre-repeat-dialog,.xp-drawer,.xp-modal,.xp-panel,.drw,.mod,#drw,#mod,[data-insights-drawer],.modal-content){background:var(--app-surface)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body :is(.dre-editor-backdrop,.xp-backdrop){background:#000a!important}
html[data-theme=dark] body :is(.dre-editor-group-title,.dre-editor-subtitle,.dre-editor-field-label,.dre-editor-fields legend,#dn,#pn,.drw strong,.mod strong){color:var(--app-text)!important}
html[data-theme=dark] body :is(.dre-editor-row,.dre-editor-group,.xp-drawer-footer,.drw-footer,.mod-footer){border-color:var(--app-border)!important}
html[data-theme=dark] body :is(.dre-editor-group-heading,.dre-editor-group-title,.dre-editor-note){background:var(--app-surface-soft)!important}
/* Mini summaries: same hierarchy and contrast as the complete table. */
html[data-theme=dark] body .dre-mini-dre-table :is(th,td){background:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .dre-mini-dre-table tr.dre-mini-total :is(th,td){background:var(--app-total)!important;color:#effff5!important}
html[data-theme=dark] body .dre-summary-indicator{background:var(--app-total)!important;border-color:var(--app-border)!important;color:var(--app-text)!important}
html[data-theme=dark] body .dre-summary-indicator :is(strong,span){color:var(--app-text)!important}
/* Full DRE: higher specificity than legacy inline page styles and input resets. */
html[data-theme=dark] body :is(#tde-wrap,#tde-scroll){background:var(--app-surface)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .dre-screen #tde{background:var(--app-surface)!important;color:var(--app-text)!important}
html[data-theme=dark] body .dre-screen #tde tr>:is(td,th){background:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .dre-screen #tde tr.text-start>th{background:#143427!important;color:#effff5!important}
html[data-theme=dark] body .dre-screen #tde tr.thsb>td{background:var(--app-total)!important;color:#effff5!important}
html[data-theme=dark] body .dre-screen #tde tr.ths>td{background:#233e32!important;color:var(--app-text)!important}
html[data-theme=dark] body .dre-screen #tde tr.tht>td{background:var(--app-surface)!important;color:var(--app-muted)!important;opacity:1}
html[data-theme=dark] body .dre-screen #tde tr:hover>td{background:var(--app-hover)!important}
html[data-theme=dark] body .dre-screen #tde input,html[data-theme=dark] body .dre-screen #tde input:disabled{background:transparent!important;color:var(--app-text)!important;-webkit-text-fill-color:var(--app-text)!important;opacity:1!important}
html[data-theme=dark] body .dre-screen #tde input:not(:disabled){background:#163e2b!important;color:#c8f8de!important;-webkit-text-fill-color:#c8f8de!important;border-color:#6d9d82!important}
html[data-theme=dark] body .dre-screen #tde input:not(:disabled):focus{background:#284f3a!important;border-color:var(--app-link)!important}
html[data-theme=dark] body .dre-screen #tde .tht input:disabled{color:var(--app-muted)!important;-webkit-text-fill-color:var(--app-muted)!important}
/* Dashboard tables, filters and targets. Canvas charts use the same palette in JS. */
html[data-theme=dark] body main.adv-dashboard :is(.app-filter-panel select,.adv-dashboard__card select){background-color:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .adv-dashboard__table :is(tr.is-total,tr.is-highlight,tr.total,tr.subtotal)>:is(th,td){background:var(--app-total)!important;color:#effff5!important}
html[data-theme=dark] body :is(.adv-dashboard__gauge-track,.pay-progress){background:#385448!important}
html[data-theme=dark] body :is(.adv-dashboard__empty,.adv-dashboard__kpi-note,.adv-dashboard__gauge-note){color:var(--app-muted)!important}
html[data-theme=dark] body :is(.onboarding-step[open]>summary,.tutorial-subitem,.tutorial-item,.training-item,.tutorial-topic-list>*,.tutorial-topic-header,.tutorial-topic-body){border-color:var(--app-border)!important}
html[data-theme=dark] body .tutorial-topic-toggle{background:var(--app-surface)!important;color:var(--app-text)!important}
html[data-theme=dark] body :is(.onboarding-number,.xp-stars,.advisor-rating){color:var(--app-link)}
html[data-theme=dark] body .learning-stars :is(button,label){color:#f4bd4b!important}
html[data-theme=dark] body .learning-stars .is-selected{color:#f4bd4b!important}
/* Keep brand banners green and their copy white in both modes. */
html[data-theme=dark] body :is(.training-hero,.lesson-hero,.insights-hero,.xp-next,.training-advisor-cta){background:#10593b!important;color:#fff!important}
html[data-theme=dark] body :is(.training-hero,.lesson-hero,.insights-hero,.xp-next,.training-advisor-cta) :is(h1,h2,h3,p,strong,small){color:#fff!important}

/* Match the shared heading/filter contracts, which deliberately have high specificity. */
html[data-theme=dark] body main.app-page h1,html[data-theme=dark] body main.xp h1,html[data-theme=dark] body main.tutorial-page h1,html[data-theme=dark] body .home-start .home-intro-title{color:var(--app-text)!important}
html[data-theme=dark] body main.app-page>header>p,html[data-theme=dark] body main.xp>.xp-head>p,html[data-theme=dark] body main.tutorial-page>.tutorial-header>p,html[data-theme=dark] body main.training-article article>.xp-head>p{color:var(--app-muted)!important}
html[data-theme=dark] body main.app-page .app-filter-panel .dre-filter-heading,html[data-theme=dark] body main.advisory-page .app-filter-panel .dre-filter-heading{color:var(--app-text)!important}
html[data-theme=dark] body main.app-page :is(#dre-edit-card-title,#dre-year-card-title,#dre-editor-title),html[data-theme=dark] body .dre-card-footnote :is(span,p){color:var(--app-text)!important}
html[data-theme=dark] body .account-settings :is(.sa-switch,.sa-switch-label,.toggle-label),html[data-theme=dark] body .account-settings .sa-lock-state{background:transparent!important;color:var(--app-muted)!important}
html[data-theme=dark] body .account-settings :is(.ac-table,.ac-table tr,.ac-table td){background:var(--app-surface)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .account-settings .ac-table thead th{background:var(--app-surface-soft)!important;color:var(--app-muted)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .account-settings :is(.ac-muted,.ac-table td::before){color:var(--app-muted)!important}
html[data-theme=dark] body .account-settings .ac-positive{color:var(--app-good)!important}html[data-theme=dark] body .account-settings .ac-negative{color:var(--app-bad)!important}
html[data-theme=dark] body .payments-page :is(.pay-next-billing,.pay-management,.pay-method,.pay-payment-card,.pay-card-summary){background:var(--app-surface-soft)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .payments-page .pay-text-button{color:var(--app-link)!important}
html[data-theme=dark] body .payments-page .pay-table :is(th,td){background:var(--app-surface)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .payments-page .pay-history .pay-table thead th{background:var(--app-surface-soft)!important;color:var(--app-muted)!important}
html[data-theme=dark] body .tutorial-page :is(.tutorial-list .fq-tutorial,.tutorial-list .fq-answer,.fq-tutorial,.fq-answer,.tutorial-list details,.tutorial-list details>summary){background:var(--app-surface)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .adv-dashboard .adv-dashboard__table :is(td,tr.is-group td,tr.is-subrow td:first-child,tr.is-percentage td){color:var(--app-text)!important}
html[data-theme=dark] body .adv-dashboard .adv-dashboard__table :is(tr.is-total,tr.is-group)>td{background:var(--app-total)!important;color:#effff5!important}
html[data-theme=dark] body .adv-dashboard .adv-dashboard__table td.is-favorable{color:var(--app-good)!important}html[data-theme=dark] body .adv-dashboard .adv-dashboard__table td.is-unfavorable{color:var(--app-bad)!important}
html[data-theme=dark] body .adv-dashboard__pill--neutral{background:var(--app-surface-soft)!important;color:var(--app-muted)!important}
html[data-theme=dark] body :is(.training-rating-card,.lesson-practice,.lesson-neighbor,.lesson-neighbor.next,.lesson-finish,.lesson-module-widget,.lesson-module-outline,.training-lesson-preview){background:var(--app-surface)!important;border-color:var(--app-border)!important;color:var(--app-text)!important}
html[data-theme=dark] body :is(.training-lesson-meta,.training-lesson-preview-footer,.lesson-neighbor,.module-lesson-footer,.lesson-module-outline) span{color:var(--app-muted)!important}
html[data-theme=dark] body .training-lesson-meta{color:var(--app-muted)!important}
html[data-theme=dark] body .insights-price{color:var(--app-link)!important}
html[data-theme=dark] body .insights-empty{background:#38331d!important;color:var(--app-warning)!important;border-color:#877341!important}
html[data-theme=dark] body :is(.xp-btn:not(.secondary),.sa-button:not(.sa-secondary),.tutorial-guide-action.primary,.advisory-workspace .btn:not(.secondary)){background-color:#087641!important;color:#fff!important}

html[data-theme=dark] body .account-settings .unit-active-control{background:transparent!important;color:var(--app-muted)!important}
html[data-theme=dark] body .account-settings .unit-active-control>span{color:inherit!important}
html[data-theme=dark] body .account-settings .ac-movement-badge.is-credit{color:var(--app-good)!important}html[data-theme=dark] body .account-settings .ac-movement-badge.is-debit{color:var(--app-bad)!important}
html[data-theme=dark] body .dre-results-note span{color:var(--app-muted)!important}
html[data-theme=dark] body .training-preview-actions>span,html[data-theme=dark] body .xp figcaption{color:var(--app-muted)!important}
html[data-theme=dark] body .xp :is(.xp-note,.xp-review,dialog){background:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .training-advisory-card :is(h2,p){color:#e8fff1!important}
html[data-theme=dark] body .home-start :is(.home-card-icon,.home-secondary-icon) :is(img,svg),html[data-theme=dark] body .navigation-areas :is(img,svg){filter:brightness(0) saturate(100%) invert(86%) sepia(29%) saturate(437%) hue-rotate(92deg) brightness(94%)}
html[data-theme=dark] body .mgm-page :is(.mgm-gift,.mgm-text-link){color:var(--app-link)!important;stroke:currentColor}

html[data-theme=dark] body #dre-editor-fields input,html[data-theme=dark] body #dre-editor-fields input:disabled,html[data-theme=dark] body #dre-editor-fields input[disabled]{background:var(--app-surface-soft)!important;color:var(--app-text)!important;-webkit-text-fill-color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body #dre-editor-fields input:not(:disabled){background:#163e2b!important;color:#c8f8de!important;-webkit-text-fill-color:#c8f8de!important;border-color:#6d9d82!important}
html[data-theme=dark] body #dre-editor-fields :is(.dre-editor-item-title,.dre-editor-mini-label,.dre-editor-group-title){color:var(--app-text)!important}
html[data-theme=dark] body :is(.dre-editor-close,.dre-editor-edit-btn,.dre-editor-cancel-btn){background:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .dre-editor-footer span{color:var(--app-muted)!important}

html[data-theme=dark] body .account-settings .unit-row{background:var(--app-surface)!important;color:var(--app-text)!important}
html[data-theme=dark] body .account-settings .unit-row :is(.unit-name-view,.unit-year-label,.unit-month-label){color:var(--app-text)!important}
html[data-theme=dark] body .dre-info-dot{background:var(--app-surface-soft)!important;color:var(--app-link)!important}
html[data-theme=dark] body .dre-screen #tde .dre-row-toggle{background:transparent!important;color:var(--app-link)!important}
html[data-theme=dark] body .app-section-shortcuts>a{background:var(--app-surface)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .app-section-shortcuts>a svg{stroke:var(--app-link)!important}

html[data-theme=dark] body main.app-page .app-filter-panel.app-filter-panel :is(input,select),html[data-theme=dark] body main.advisory-page .app-filter-panel.app-filter-panel :is(input,select),html[data-theme=dark] body .tutorial-sidebar .app-explore-select,html[data-theme=dark] body :is(#dre-branch,#dre-year,#dre-month,#dashboard-company,#dashboard-year,#dashboard-period){background-color:var(--app-surface-soft)!important;color:var(--app-text)!important;-webkit-text-fill-color:var(--app-text)!important;border-color:var(--app-border)!important}

/* Legacy selectors include IDs; keep their theme colors at the same scope. */
html[data-theme=dark] body main.app-page select:is(#dre-branch,#dre-year,#dre-month,#dashboard-company,#dashboard-year,#dashboard-period),html[data-theme=dark] body main.app-page.adv-dashboard .adv-dashboard__card select{background-color:var(--app-surface-soft)!important;color:var(--app-text)!important;-webkit-text-fill-color:var(--app-text)!important;border-color:var(--app-border)!important}

/* Advisory and individual analyses share the same workspace palette, including drawers. */
html[data-theme=dark] body .advisory-workspace{--surf:var(--app-surface);--ink:var(--app-text);--mut:var(--app-muted);--line:var(--app-border);--gl:var(--app-surface-soft);--warn:#38331d;--warnt:var(--app-warning);--sh:none;color:var(--app-text)}
html[data-theme=dark] body main.advisory-page .advisory-workspace .advisor-filters-card,html[data-theme=dark] body .insights-page .insights-history .insights-filters,html[data-theme=dark] body .insights-page .insights-filters{background:var(--app-surface)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body main.advisory-page .advisory-workspace .app-filter-panel .app-filter-toggle,html[data-theme=dark] body .insights-page .app-filter-panel .app-filter-toggle{background:transparent!important;color:var(--app-text)!important}
html[data-theme=dark] body .advisory-workspace :is(.lab,.sub,.mut,.meta,.advisor-registration,.advisor-example,.cc,.days small,.sum>div,.task,.pt,.pd,.advisor-directory-filters label>span){color:var(--app-text)!important}
html[data-theme=dark] body .advisory-workspace .task small,html[data-theme=dark] body .advisory-workspace .meta>div>span:first-child{color:var(--app-muted)!important}
html[data-theme=dark] body .advisory-workspace :is(.meta b,.sum b,.sum strong){color:var(--app-text)!important}
html[data-theme=dark] body .advisory-workspace :is(.btn.ghost,.days button,.slots button,.arr,.nps button,.profile-tabs button){background:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .advisory-workspace :is(.days button,.slots button)[aria-pressed=true],html[data-theme=dark] body .advisory-workspace .nps button.on{background:#087641!important;color:#fff!important;border-color:#79c799!important}
html[data-theme=dark] body .advisory-workspace :is(.days button,.slots button)[aria-pressed=true] small{color:inherit!important}
html[data-theme=dark] body .advisory-workspace :is(.days button,.slots button,.btn):disabled{opacity:.6!important}
html[data-theme=dark] body .advisory-workspace :is(.foot,.sum,.share .shn,.drw,.mod){background:var(--app-surface)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .advisory-workspace :is(.sum,.share .shn){background:var(--app-surface-soft)!important}
html[data-theme=dark] body .advisory-workspace .share .shn,html[data-theme=dark] body .advisory-workspace .foot>small{color:var(--app-muted)!important}
html[data-theme=dark] body .advisory-workspace .hero:not(.hero--empty){background:#105b3b!important;color:#fff!important}
html[data-theme=dark] body .advisory-workspace .hero:not(.hero--empty) :is(h2,strong,.mut,.nm){color:#fff!important}
html[data-theme=dark] body .advisory-workspace .hero:not(.hero--empty) .btn.ghost{background:transparent!important;color:#fff!important}
html[data-theme=dark] body .advisory-workspace .hero:not(.hero--empty) .btn:not(.ghost){background:#e6f3eb!important;color:#07513e!important}
html[data-theme=dark] body .advisory-workspace :is(.empty,.review-moderation){background:#38331d!important;color:var(--app-warning)!important;border-color:#877341!important}
html[data-theme=dark] body .advisory-workspace .mt summary:hover{background:var(--app-surface-soft)!important}
html[data-theme=dark] body .advisory-workspace :is(.tags .tag,.av){background:var(--app-surface-soft)!important;color:var(--app-link)!important}
html[data-theme=dark] body .advisory-workspace .tag.up{color:var(--app-link)!important;border-color:var(--app-link)!important}
html[data-theme=dark] body .advisory-workspace .tag.can{background:#344b40!important;color:#d6e5dc!important}
html[data-theme=dark] body .advisory-workspace .tag.pend{background:#51451f!important;color:#ffe6a3!important}
html[data-theme=dark] body .advisory-workspace .profile-tabs button[aria-selected=true]{background:var(--app-total)!important;color:var(--app-link)!important}
html[data-theme=dark] body .advisory-workspace .pi.is-overdue :is(.pt,.pd),html[data-theme=dark] body .advisory-workspace .task.is-overdue :is(span,small){color:var(--app-bad)!important}
html[data-theme=dark] body .advisory-workspace .stars :is(span.on,button.on){color:#ffc943!important}
html[data-theme=dark] body .insights-page :is(.insights-price,.insights-headline-topic,.insights-meta,.insights-muted),html[data-theme=dark] body .insights-article .insights-publication,html[data-theme=dark] body .insights-character-count{color:var(--app-muted)!important}
html[data-theme=dark] body .insights-page .insights-price{color:var(--app-link)!important}
html[data-theme=dark] body .insights-history.advisory-workspace .insights-history-item,html[data-theme=dark] body .insights-request-overlay.advisory-workspace .insights-request-drawer{background:var(--app-surface)!important;color:var(--app-text)!important}
html[data-theme=dark] body .insights-history-item .insights-history-summary{color:var(--app-text)!important;background:transparent!important}
html[data-theme=dark] body .insights-history-item[open]>.insights-history-summary:hover{background:var(--app-surface-soft)!important}
html[data-theme=dark] body .insights-history-state .insights-status.requested{background:transparent!important;color:var(--app-link)!important;border-color:var(--app-link)!important}
html[data-theme=dark] body .insights-history-state .insights-status.delivered{background:#214e38!important;color:#b4f1ce!important}
html[data-theme=dark] body .insights-history-state .insights-status.processing{background:#51451f!important;color:#ffe6a3!important}
html[data-theme=dark] body .insights-history-stars .is-filled{color:#ffc943!important}
html[data-theme=dark] body .insights-request-overlay.advisory-workspace .foot{background:var(--app-surface)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .insights-request-overlay .sum{background:var(--app-surface-soft)!important}
/* Article reading blocks, rating panels, duration labels and lesson navigation. */
html[data-theme=dark] body .training-article .training-content-placeholder,html[data-theme=dark] body :is(.training-duration,.training-rating-card,.lesson-neighbor,.lesson-neighbor.next){background:var(--app-surface)!important;border-color:var(--app-border)!important;color:var(--app-text)!important}
html[data-theme=dark] body .training-duration{background:var(--app-surface-soft)!important;color:var(--app-link)!important}
html[data-theme=dark] body .training-article .lesson-neighbor :is(strong,span,small){color:var(--app-text)!important}
html[data-theme=dark] body .training-rating-stars svg{stroke:#b1c5bb}
html[data-theme=dark] body .training-rating-stars label.is-filled svg{fill:#ffc943;stroke:#ffc943}
html[data-theme=dark] body .learning-tick>span{background:var(--app-surface-soft)!important;border-color:#8aab98!important}
html[data-theme=dark] body .learning-tick input:checked+span{background:#16854c!important;color:#fff!important}
/* Global information icons share an SVG; warnings use the semantic palette. */

html[data-theme=dark] body .advisory-workspace .tag{background:var(--app-surface-soft)!important;color:var(--app-link)!important}
html[data-theme=dark] body .advisory-workspace .tag.pend{background:#51451f!important;color:#ffe6a3!important}
html[data-theme=dark] body .advisory-workspace .tag.can{background:#344b40!important;color:#d6e5dc!important}
html[data-theme=dark] body .advisory-workspace .stars :is(button,span){color:var(--app-muted)!important}
html[data-theme=dark] body .advisory-workspace .stars :is(button.on,span.on){color:#ffc943!important}
html[data-theme=dark] body .advisory-workspace .task.is-overdue :is(b,.pd,.nm){color:var(--app-bad)!important}
html[data-theme=dark] body .insights-page .insights-column{--insights-accent:#7edacb}
html[data-theme=dark] body .insights-page .insights-column--analysis{--insights-accent:#99e1b2}
html[data-theme=dark] body .insights-page .insights-column--study{--insights-accent:#89d5e9}
html[data-theme=dark] body .insights-page .insights-column .insights-content-card h3 a{color:var(--insights-accent)!important}
html[data-theme=dark] body .insights-page .insights-column .is-headline h3 a{color:var(--app-text)!important}
html[data-theme=dark] body :is(.training-index,.training-article) .training-duration{background:var(--app-surface-soft)!important;color:var(--app-link)!important}

html[data-theme=dark] body .advisory-workspace .mt--overdue :is(.meeting-summary,.meeting-summary .nm){color:var(--app-bad)!important}
html[data-theme=dark] body .advisory-workspace .tag.late{background:#542d29!important;color:var(--app-bad)!important;border-color:#b1766f!important}
@media print{html[data-theme=dark]{color-scheme:light;--app-text:#111;--app-muted:#444;--app-bg:#fff;--app-surface:#fff;--app-surface-soft:#f3f7f4;--app-border:#888;--app-total:#d6e9dd;--app-link:#135637}}

/* Remaining account and learning surfaces share the night palette. */
html[data-theme=dark] body .adv-notice.tutorial-reminder{color:#fff!important}
html[data-theme=dark] body .navigation-areas .home-secondary-link,
html[data-theme=dark] body .navigation-areas .home-secondary-link:visited{color:var(--app-text)!important;-webkit-text-fill-color:var(--app-text)!important}
html[data-theme=dark] body .navigation-areas .home-secondary-icon{background:transparent!important;color:var(--app-link)!important;-webkit-text-fill-color:var(--app-link)!important}
html[data-theme=dark] body :is(.app-pagination-count,.xp-pagination-count){background:transparent!important;color:var(--app-muted)!important}
html[data-theme=dark] body .app-pagination-count span{background:transparent!important;color:inherit!important}
html[data-theme=dark] body .app-pagination-controls>.app-pagination-ellipsis{background:transparent!important}
html[data-theme=dark] body .tutorial-page .tutorial-search{background:var(--app-surface)!important}
html[data-theme=dark] body .tutorial-page .tutorial-search input[type=search]{background:transparent!important;box-shadow:none!important}
html[data-theme=dark] body .tutorial-page .tutorial-list :is(.faq_in,.fq-tutorial,.content){background:var(--app-surface)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .tutorial-page .tutorial-list .fq-tutorial:hover{background:var(--app-hover)!important}
html[data-theme=dark] body .tutorial-page .tutorial-list .content{background:var(--app-bg)!important}
html[data-theme=dark] body .payments-page :is(.pay-saved-card,.pay-cancel-confirm){background:var(--app-surface)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .payments-page .pay-saved-card :is(strong,summary){color:var(--app-text)!important}
html[data-theme=dark] body .adv-dashboard__empty{background:#38331d!important;border-color:#877341!important;color:var(--app-warning)!important}
html[data-theme=dark] body .adv-dashboard__pill--good{background:#1e4634!important;color:var(--app-good)!important}
html[data-theme=dark] body .adv-dashboard__pill--bad{background:#50302d!important;color:var(--app-bad)!important}
html[data-theme=dark] body .dre-screen #tde tr.dre-indicators-heading>th{background:#143427!important;color:#effff5!important}
html[data-theme=dark] body #dre-editor-fields{background:transparent!important}
html[data-theme=dark] body #dre-editor-fields input:disabled{background:var(--app-surface-soft)!important}
html[data-theme=dark] body #dre-editor-fields input:not(:disabled){background:var(--app-bg)!important;color:var(--app-text)!important;-webkit-text-fill-color:var(--app-text)!important;border-color:#6d9d82!important}
html[data-theme=dark] body #dre-editor-fields input:focus{outline:2px solid var(--app-link);outline-offset:2px}
html[data-theme=dark] body #dre-editor-fields .dre-payment-grid{padding-bottom:16px;border-bottom:1px solid var(--app-border)}
html[data-theme=dark] body #dre-editor-fields .dre-payment-grid:last-child{padding-bottom:0;border-bottom:0}
html[data-theme=dark] body .training-article .training-advisory-card .xp-btn{background:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #8fc5a6!important}
html[data-theme=dark] body .training-article .training-advisory-card .xp-btn:hover{background:rgba(255,255,255,.1)!important}

/* Secure card hosts and account confirmations follow the native form palette. */
html[data-theme=dark] body .payments-page .pay-card-form .pay-mp-host{background:var(--app-surface-soft)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .payments-page .pay-card-form .pay-mp-host:focus-within{outline:2px solid var(--app-link);outline-offset:2px}
html[data-theme=dark] body .payments-page .pay-button.secondary,
html[data-theme=dark] body .payments-page .pay-edit-card{background:var(--app-surface-soft)!important;color:var(--app-text)!important;-webkit-text-fill-color:var(--app-text)!important;border-color:var(--app-border)!important}
html[data-theme=dark] body .payments-page .pay-button.secondary:hover,
html[data-theme=dark] body .payments-page .pay-edit-card:hover{background:var(--app-hover)!important}
html[data-theme=dark] body .payments-page .pay-button.danger{background:#50302d!important;color:var(--app-bad)!important;-webkit-text-fill-color:var(--app-bad)!important;border-color:#a66b64!important}
html[data-theme=dark] body .payments-page .pay-button.danger:hover{background:#683d38!important}
html[data-theme=dark] body .payments-page .pay-button:not(.secondary):not(.danger){background:#17643d!important;color:#fff!important;border-color:#5eaa7e!important}
/* CardForm styles are set at mount. Invert only iframe ink after a theme switch,
   preserving the mounted secure fields and their entered values. */
html[data-theme=dark] .pay-card-form[data-secure-field-theme=light] .pay-mp-host iframe,
html:not([data-theme=dark]) .pay-card-form[data-secure-field-theme=dark] .pay-mp-host iframe{filter:invert(1) hue-rotate(180deg)}

html[data-theme=dark] body .payments-page .pay-button:not(.secondary):not(.danger):hover{background:#207548!important}

/* Secure iframe documents use a light canvas; match its scheme so their
   transparent background shows the host surface in either page theme. */
.payments-page .pay-mp-host iframe{color-scheme:light}
.payments-page .pay-card-form input:not([type=hidden]){text-align:left!important}

/* Match the hamburger breakpoint and dimensions. */
@media(max-width:1024px){
 .app-theme-mobile-top{display:block;position:absolute;right:56px;top:10px;z-index:10000}
 body #navbar .app-theme-mobile-top .app-theme-toggle{width:30px;height:30px;min-width:30px;padding:5px}
 body #navbar .app-theme-mobile-top .app-theme-toggle svg{width:18px;height:18px}
 body #navbar .app-theme-desktop{display:none!important}
}
html[data-theme=dark] body .adv-dashboard__table thead th{background:#0b2118!important;color:#effff5!important}
html[data-theme=dark] body .dre-screen #tde tr:is(.text-start,.dre-indicators-heading)>th,
html[data-theme=dark] body .dre-screen #tde tr:is(.text-start,.dre-indicators-heading)>th:nth-child(2){background:#0b2118!important;color:#effff5!important}
body .adv-dashboard__table tr.is-cash-separator,
body .adv-dashboard__table tr.is-cash-separator>td{border-left:0!important;border-right:0!important}
html[data-theme=dark] body .adv-dashboard__table tr.is-cash-separator>td{background:var(--app-surface)!important;border:0!important}
body .dre-screen #tde tr.dre-spacer,
body .dre-screen #tde tr.dre-spacer>td{border:0!important}
html[data-theme=dark] body .dre-screen #tde tr.dre-spacer>td{background:var(--app-surface)!important}
html[data-theme=dark] body .dre-screen #tde tr.dre-indicator-row input:disabled{background:transparent!important}
html[data-theme=dark] body .insights-page .insights-column>.app-standard-heading{border-bottom-color:var(--app-border)!important}
html[data-theme=dark] body .insights-page .insights-column .insights-content-card{border-bottom-color:var(--app-border)!important}
@media(min-width:561px){html[data-theme=dark] body .payments-page .pay-table tr:last-child td{border-bottom:1px solid var(--app-border)!important}}

/* Cell borders outline each block without crossing spacer rows. */
body .adv-dashboard__table,
body .dre-screen #tde{border-left:0!important;border-right:0!important}
body .adv-dashboard__table tr:not(.is-cash-separator)>:first-child{border-left:1px solid var(--dash-line)!important}
body .dre-screen #tde tr:not(.dre-spacer):not(.dre-borderless-final-row)>:nth-child(2){border-left:1px solid var(--app-border)!important}

html[data-theme=dark] body .dre-screen{--dre-detail-hover:var(--app-hover)}

/* Night-mode dividers share the green card border throughout the platform. */
html[data-theme=dark] body :is(hr,.app-standard-heading,.sa-heading,.xp-heading,.pay-card-head,.dre-card-heading,.adv-dashboard__card-heading,.onboarding-section-head,.tutorial-subitem,.portal-home-block>h2,.portal-other-areas>h2){border-color:var(--app-border)!important}html[data-theme=dark] body .insights-page .insights-column>.app-standard-heading,html[data-theme=dark] body .insights-page .insights-column .insights-content-card{border-bottom-color:var(--app-border)!important}

html[data-theme=dark] body :is(h1,h2,h3,h4,h5,h6,td,th,tr,thead,tbody,tfoot,[role=separator],.dropdown-divider,.border-top,.border-bottom){border-color:var(--app-border)!important}
/* Unified date controls and filter layout, including WebKit intrinsic widths. */
body :is(.advisor-directory-filters,.insights-filter-fields) label{min-width:0;display:flex;flex-direction:column;gap:6px}body :is(.advisor-directory-filters,.insights-filter-fields) :is(input,select){width:100%;min-width:0;max-width:100%;box-sizing:border-box}body input[type=date]{appearance:none;-webkit-appearance:none;display:block;min-width:0;min-height:40px;padding:8px 10px;box-sizing:border-box;font:inherit}body input[type=date]::-webkit-date-and-time-value{text-align:left;min-height:1.4em}body :is(.insights-filter-actions,[data-clear-advisor-filters],[data-clear-history-filters]){margin-left:auto;justify-self:end;text-align:right}body .insights-filter-actions{display:flex;justify-content:flex-end;align-self:end}body .insights-filter-fields:has(input[type=search])>label:has(input[type=search]){grid-column:1/-1}body .insights-filter-fields input[type=search]{padding-left:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009b69' stroke-width='1.8'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center;background-size:19px}body .insights-topic-label{width:max-content;max-width:calc(100% - 16px);overflow-wrap:anywhere;white-space:normal}
@media(min-width:768px) and (max-width:1024px){body .advisor-directory-filters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.advisor-directory-filters>button,.insights-filter-actions{grid-column:3}.advisor-directory-filters>label:has(#advisor-language){grid-column:1/3}}
@media(max-width:767px){body .advisor-directory-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.advisor-directory-filters>label:has(#advisor-area),.advisor-directory-filters>label:has(#advisor-sort),.history-filter-fields>label:has(#history-advisor),.insights-filter-fields>label:has(select[name=topic]){grid-column:1/-1}.advisor-directory-filters>button,.insights-filter-actions{grid-column:2;width:100%}body .app-pagination{display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;gap:8px}body .app-pagination-count{white-space:nowrap;font-size:11px}body .app-pagination-controls{margin-left:auto;flex-wrap:nowrap;gap:4px}body .insights-column .app-pagination-count{display:none}body .insights-column .app-pagination{justify-content:flex-end}.insights-columns{align-items:stretch}.insights-column{display:flex;flex-direction:column}.insights-column>.app-pagination{margin-top:auto}}
body .pay-overview{align-items:stretch}html[data-theme=dark] body .pay-overview>.pay-card{background:var(--app-surface)!important}html[data-theme=dark] body .pay-history-table :is(tbody,tr,td){background:var(--app-surface)!important;border-color:var(--app-border)!important}
@media(min-width:768px){body .mgm-enrollment-grid,body .mgm-member-workspace{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch}.mgm-enrollment-grid>.xp-card{height:100%}}
@media(max-width:767px){body .mgm-discount-editor{flex-wrap:nowrap!important;gap:7px}body .mgm-discount-editor>.mgm-segmented{min-width:0;flex:1;width:auto!important}body .mgm-discount-editor>.mgm-actions{width:auto!important;flex:none}body .mgm-discount-editor>.mgm-actions button{padding:8px}body .mgm-dashboard .mgm-member-coupon{grid-template-columns:minmax(0,1fr) auto;gap:8px}body .mgm-dashboard .mgm-member-coupon .mgm-code{min-width:0}body .mgm-dashboard .mgm-code code{font-size:13px;overflow-wrap:anywhere}}
body .insights-request-cta .xp-btn{display:table;margin-left:auto}
html[data-theme=dark] body .pay-table :is(tbody,tr,td){background:var(--app-surface)!important;border-color:var(--app-border)!important}body .insights-feature{display:flex;align-items:center;gap:18px}body .insights-feature>.xp-btn{margin-left:auto;flex:none}@media(max-width:767px){body .insights-feature{flex-wrap:wrap}.insights-feature>.xp-btn{margin-left:auto}body .pay-table-wrap{background:var(--app-surface)!important}}
.account-settings .sa-layout:has(>.regional-preferences){align-items:stretch}.ui-scope .portal-panel-footer{padding:40px 16px 20px}.portal-panel-footer img{height:30px}
@media(max-width:767px){body .app-pagination-count[data-short-count]{font-size:0}body .app-pagination-count[data-short-count]:before{content:attr(data-short-count);font-size:11px}.history-filter-fields>label:has(#history-status){grid-column:1;grid-row:4}.history-filter-fields>label:has(#history-sort){grid-column:2;grid-row:4}.insights-filter-fields>label:has(select[name=history_status]){grid-column:1}.insights-filter-fields>label:has(select[name=history_sort]){grid-column:2}}
/* Module styles load later: retain the shared responsive layout explicitly. */
body .insights-page .insights-column>.app-pagination{display:flex!important;flex-direction:row!important;justify-content:flex-end!important;align-items:center!important;margin-top:auto!important}body .insights-page .insights-column .app-pagination-count{display:none!important}body .insights-page .is-secondary .insights-topic-label{left:4px;bottom:4px;max-width:calc(100% - 8px);padding:2px 4px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body .insights-page .app-filter-heading{background:transparent!important;border-color:var(--app-border)!important}
@media(min-width:768px) and (max-width:1024px){body .insights-page .insights-filter-fields>label:has(select[name=topic]),body .insights-page .insights-filter-fields>label:has(select[name=history_status]){grid-column:1/-1!important}body .insights-page .insights-filter-fields>label:has(select[name$=sort]){grid-column:3!important}body .insights-page .insights-filter-actions{grid-column:3!important;justify-self:end!important}body .history-filter-fields>label:has(#history-advisor){grid-column:1/3!important}body .history-filter-fields>label:has(#history-status){grid-column:3!important}body .history-filter-fields>label:has(#history-sort){grid-column:3!important}body .insights-page .insights-column .is-secondary{grid-template-columns:1fr!important}body .insights-page .is-secondary .insights-editorial-image{aspect-ratio:16/9!important}body .insights-page .is-secondary .insights-topic-label{font-size:11px}}
@media(max-width:767px){body .insights-page .insights-filter-fields>label:has(select[name=sort]){grid-column:1/-1!important}body .insights-page .insights-filter-actions{grid-column:2!important;justify-self:end!important;width:100%}body .history-filter-fields>label:has(#history-status),body .history-filter-fields>label:has(#history-sort){grid-row:3!important}body .insights-page .insights-filter-fields>label:has(select[name=history_status]){grid-column:1!important;grid-row:1!important}body .insights-page .insights-filter-fields>label:has(select[name=history_sort]){grid-column:2!important;grid-row:1!important}body .insights-page .insights-column>.app-pagination{justify-content:flex-end!important}}
@media(min-width:1025px){body .insights-page .insights-filter-fields>label:has(input[type=search]){grid-column:auto}}
@media(max-width:767px){body .mgm-discount-editor:has([data-discount-edit][hidden]){display:flex!important;flex-wrap:wrap!important}body .mgm-discount-editor:has([data-discount-edit][hidden])>.mgm-segmented{width:100%!important;flex-basis:100%!important}body .mgm-discount-editor:has([data-discount-edit][hidden])>.mgm-actions{width:100%!important;justify-content:flex-end}}
html[data-theme=dark] body .payments-page .pay-management{background:transparent!important}html[data-theme=dark] body .tutorial-page .tutorial-list :is(.faq_in,.fq-tutorial,.content),html[data-theme=dark] body .tutorial-page .tutorial-list .content p{background:transparent!important}
.app-date-control{display:flex!important;position:relative;align-items:center;width:100%;min-width:0;box-sizing:border-box;height:40px;padding:9px 34px 9px 11px;border:1px solid var(--app-border,#acccbf);border-radius:7px;background:var(--app-surface,#fff);font-family:inherit;font-size:13px;font-weight:400;line-height:1.4;color:var(--app-muted,#65766d);gap:8px}.app-date-control:after{content:'';position:absolute;right:12px;width:7px;height:7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);pointer-events:none}.app-date-control:focus-within{outline:2px solid #159c58;outline-offset:2px}.app-date-control>input[type=date]{position:absolute!important;inset:0!important;opacity:0!important;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;cursor:pointer}.app-date-value{font:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.app-date-control:has(input:disabled){opacity:.5;cursor:default}html[data-theme=dark] .app-date-control{background:var(--app-surface-soft);border-color:var(--app-border)}
html[data-theme=dark] body main.tutorial-page #content-container .faq_in,html[data-theme=dark] body main.tutorial-page #content-container .faq_in .content{background:var(--app-surface)!important}html[data-theme=dark] body main.tutorial-page #content-container .faq_in .content :is(p,ul,ol,li){background:transparent!important}html[data-theme=dark] body .payments-page .pay-payment-card .pay-management,html[data-theme=dark] body .payments-page .pay-payment-card .pay-management :is(p,.pay-management-link,a){background:transparent!important}

html body main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){color:var(--app-text)!important;font-family:var(--ui-font)!important;font-weight:400!important}html body main :is(input,select,textarea):is(:disabled,[readonly]){color:var(--app-muted)!important;-webkit-text-fill-color:var(--app-muted);background-color:var(--app-surface-soft)!important}html body main :is(input,textarea)::placeholder{color:var(--app-muted)!important;opacity:.85}.app-date-control{color:var(--app-text)}html[data-theme=dark] body select:not([multiple]){appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:16px!important}html[data-theme=dark] .app-date-control:after{border-color:#fff}html[data-theme=dark] .locale-picker-trigger>svg{stroke:#fff!important}.app-date-control:has(input:disabled){color:var(--app-muted)}body .tutorial-search,body .tutorial-search input{transform:none!important}body :is(.app-terms-notice,.portal-paused-notice,.mgm-rules-notice) .adv-notice-action{color:var(--ui-warning-ink)!important;border-color:var(--ui-warning-ink)!important;background:transparent!important}.navigation-areas .home-secondary-icon svg{flex:none;aspect-ratio:1;overflow:visible}.navigation-areas svg[fill="#000000"]{stroke:none!important}

html body input[type=search],html body .tutorial-search:focus-within{transform:none!important}html:not([data-theme=dark]) body main select:not([multiple]){appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23748f82' stroke-width='1.8'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:16px!important}html:not([data-theme=dark]) .app-date-control:after{border-color:#748f82}
