/* Standalone information and Weekly pages share the saved admin appearance. */
#msfDocumentThemeMenu{position:relative;z-index:1000;display:block;width:max-content;margin:0 0 18px auto;font:600 14px/1.5 system-ui;color:var(--msf-text,#e9eff8)}
#msfDocumentThemeMenu[hidden]{display:none!important}
#msfDocumentThemeMenu>summary{cursor:pointer;padding:9px 15px;border:1px solid var(--msf-line,#52637b);border-radius:6px;background:var(--msf-surface,#142032)}
#msfDocumentSettings{position:absolute;right:0;top:48px;width:min(340px,calc(100vw - 48px));box-sizing:border-box;padding:16px 20px;background:var(--msf-surface,#142032);color:var(--msf-text,#e9eff8);border:1px solid var(--msf-line,#52637b);border-radius:var(--theme-radius,10px);box-shadow:0 6px 30px #0003}
#msfDocumentSettings #msfAppearanceSettings{padding:0;border:0;margin:0}
body[data-msf-design=document]{box-sizing:border-box}
@layer msf-themes {
/* Low-specificity defaults for legacy components. State/semantic treatments
   below and the designed homepage rules continue to take precedence. */
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where([id$=Page]:not(#searchPage)){
 background:var(--msf-surface)!important;color:var(--msf-text)!important;border-color:var(--msf-line)!important;border-radius:var(--theme-radius)!important;
}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where([id$=Page]:not(#searchPage),[role=dialog],dialog,#noteCard,.cn-card,.mod-card,.sub-modal,.ar-modal,.msg-modal,.cev-panel) :where(*):not(:where(.ar-acard,.ar-acard *,#axCardsGrid,#axCardsGrid *)){
 color:inherit!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important;
}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(button,summary,input,textarea,select):not(:where(.ar-acard *,#axCardsGrid *)){
 color:var(--msf-text)!important;background-color:var(--msf-raised)!important;border-color:var(--msf-line)!important;border-radius:var(--theme-radius)!important;font-family:var(--theme-font)!important;
}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(input,textarea,select){color-scheme:inherit!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(input,textarea)::placeholder{color:var(--msf-muted)!important;opacity:1!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(a):not(:where(.ar-acard *,#axCardsGrid *)){color:var(--msf-accent)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(
 #introCard,#noteCard,#announcementPopup,#annGaleaFlashRow,#cpTutCard,#cpPickPopup,#axOverlayBox,#cevPicker,
 #loadingOverlay,.msf-load-error,.mod-card,.cn-card,.sub-modal,.cp-modal,.cev-modal,.cev-panel,.cev-box,.ac-card,.ac-h,.bm-job,
 .modsub-card,.modsub-appr,.sub-def-dd,.vsub-def-dd,.vsub-teams,.ac-prev-wrap,.ac-prev-card,.ac-sugg,
 .counter-note-dialog,.msf-topic-dialog,.msf-photo-preview,.msf-photo-actions,.ar-modal,.ar-findid-card,
 .msg-modal,.msg-thread-item,.msg-bubble,.msg-report,.msg-report-log,.cve-card,.fear-submit-card,
 .blade-plan-card,.blade-plan-row,.blade-cust-slot,.blade-cust-team,.blade-excl,.tr-card,.tr-slot,
 .rrx-card,.clx-card,.ccx-card,.ccx-row,.ccx-results,.stx-cgrid,.stx-cpanel,.stx-tlist,
 .msf-editor-preview,.msf-preview-status,#cevEdFoot,.msf-project-card,.msf-project-link,
 .wdb-sec,.wdb-card,.wdb-key,.msf-popular-empty,.tv-cav,.msf-hero-edit,.msf-event-resources,.brk-info-box,.brk-info-block,.brk-node-restriction-inner,.brk-warning,
 .breaker-walkthrough-box,.echoes-guide-text,.echoes-info-box,.knull-team-member,
 .dys-hero,.dys-guide-warn,.dys-best-video,.wt-hero,.fear-wave-card,.floor-video-slot,.floor-video-wrap,
 .floor-single-img,.wtf-req-banner,.wtf-gt21-warn,.fear-minpwr-note,.blade-tips-box,.cev-reqbit,
 .cal-cell,.cal-event-card,.code-card,.diner-upload-area,.roster-wip-banner,.roster-slot,
 .roster-result-banner,.rv2-slot-bar,.rv2-slot,.rv2-search-row,.rv2-suggestions,.rv2-filter-panel,
 .rv2-fdrop,.rv2-card,.rv2-result-banner,.def-sync-box,.def-sync-opt,.def-char-chip,.def-filter-banner,
 .cp-room,.cp-def-box,.cp-off-box,.cp-counter-box,.cp-extra-chip,.cp-chip,.cp-suggestions,.cp-counter-sugg,
 .arhub-card,.ar-signin-banner,.ar-signedin-row,.ar-lfa-postbar,.ar-abcard,.ar-team-row,
 .ax-choice-card,.ax-form,.ax-mname,.ax-rrow,.ax-pick-team,.axc-warn,
 .oiso-find-card,.oiso-ov-card,.oiso-tier-head,.oiso-tier-body,.oiso-panel-head,.oiso-panel-body,
 .oiso-chip,.oiso-sugg,.tube-modal-inner,.tube-modal-player,.tv-up-item,.tvm-crow,
 .mg-overlay-box,.mg-rank-card,.wtf-char-placeholder,.offense-result-card,.offense-accordion,.offense-accordion-meta,
 .letter-teams,.letter-header,.results-header,[class$=-header-bar],.brk-node-header,
 .blog-comment:target,.post-card,.contents,.community,.crawler-files li,.about-tabs,
 .scheduled-card,.blog-editor,.editor-panel
 ){
 background:var(--msf-surface)!important;color:var(--msf-text)!important;border-color:var(--msf-line)!important;border-radius:var(--theme-radius)!important;box-shadow:var(--theme-shadow)!important;
}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(
 .wt-floor-btn,.floor-btn,.cev-unit-btn,.brk-node-btn,.dys-mission-btn,.oiso-tab,.oiso-lvl-tab,
 .oiso-compare-btn,.fear-range-opt,.cev-seg,.cal-toggle-btn,.rv2-fchip,.rv2-fdrop-head,.ar-tab,.ar-seri-chip,
 .ar-toggle-opt,.msf-event-status,.msf-event-cta,.msf-floor-number,.wt-floor-btn-label,.wt-floor-btn-sub,
 .wt-cd-num,.echoes-cd-num,.cev-pub-tag,.cev-pub-cta,.cev-mini-btn,.cev-chip,.cev-diffchip,.cev-rq-gear,
 .cev-rq-iso,.cev-req-hd,.cev-simtog,.cev-link-btn,.modctl-btn,.tube-topic-select,.tv-sortbtn,.tv-creator
 ){
 background:var(--msf-raised)!important;color:var(--msf-text)!important;border-color:var(--msf-line)!important;border-radius:var(--theme-radius)!important;
}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(
 [aria-selected=true],button[aria-pressed=true],button.on,.cal-cell.selected,.rv2-mode-opt.sel,.rv2-fchip.sel,
 .cp-off-row.selected,.cp-pick-row.selected,.ar-tab.active,.cal-toggle-btn.active,.oiso-tab.active,
 .oiso-lvl-tab.active,.tv-sortbtn.active,.tv-creator.active,.tvm-chip.active,.rv2-card.def-selected,
 .face-card.selected,.ax-chip.on,.ax-pick.on,.cev-seg.on,.fear-range-opt.on
 ){
 background:var(--msf-accent-soft)!important;color:var(--msf-text)!important;border-color:var(--msf-accent)!important;box-shadow:inset 0 0 0 1px var(--msf-accent)!important;
}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(.msf-event-title,.msf-event-tile-title,.goo-event-name,.wt-title,.cev-hero-title,.cev-hero-title-t,.dys-title,.floor-title,.tv-title){color:var(--msf-text)!important;background:transparent!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(#loadingFlavor,#loadingStatus,.msf-event-countdown,.msf-event-intro,.comments-guidance,.comments-load-status,#comment-count,.comment-meta time,.counter-note-help){color:var(--msf-muted)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(.cru-set-pill.on,.def-banner-pill.on,.def-toggle-pill.on,.rv2-switch.on){background:var(--msf-accent)!important;border-color:var(--msf-accent)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(.cru-set-pill.on,.def-banner-pill.on,.def-toggle-pill.on)::after{background:var(--msf-surface)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(.ham-divider,.cru-setting-divider){background:var(--msf-line)!important}
/* Keep outcome colors meaningful and readable on every palette. */
html:is([data-msf-theme=google],[data-msf-theme=retro],[data-msf-theme=travel]) body[data-msf-design] :is(.counter-punch-corner.up,.offense-punch-badge,.punch-badge,.cru-verdict-mini.go,.cp-verdict.go,.fear-ctr-badge.ok,.cev-sim){color:#185d30!important;background:#e2f3e6!important}
html:is([data-msf-theme=google],[data-msf-theme=retro],[data-msf-theme=travel]) body[data-msf-design] :is(.counter-punch-corner.down,.offense-punch-badge.down,.cru-verdict-mini.risky,.cp-verdict.risky,.fear-ctr-badge.no){color:#912330!important;background:#fbe3e5!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .counter-note-text{color:#191a0a!important;background:#ffeb3b!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .counter-note-text *{color:inherit!important}
/* Document pages use their existing reading layout, with matching surfaces. */
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] :where(h1,h2,h3,h4,p,li,small,label,.brand,.lead,.intro,.eyebrow,.card-meta,.article-meta,.back-link,.about-tab){color:var(--msf-text)!important;font-family:var(--theme-font)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] :where(.site-header,.site-footer,footer,.prose blockquote,.contents,.community,.post-card,.about-tabs,.crawler-files li){border-color:var(--msf-line)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] :where(.wrap,main,.site-header,.site-footer){background:var(--msf-surface)!important;border-radius:var(--theme-radius)!important}
html[data-msf-theme=retro] body[data-msf-design=document] .wrap,html[data-msf-theme=retro] body[data-msf-design=document] main{padding:24px!important;border:2px outset #eee9d9!important}
html[data-msf-theme=retro] body[data-msf-design=document] :where(.site-header,.site-footer){padding:18px!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] :where(.comment-status,.counter-note-status){color:var(--msf-text)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] .about-tab[aria-selected=true]{color:var(--msf-text)!important;background:var(--msf-accent-soft)!important;border-color:var(--msf-accent)!important}
/* A theme must never reveal a hidden panel or stretch a mobile dialog. */
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(dialog,.cn-card,.mod-card,.sub-modal,.ar-modal,.msg-modal,.cev-panel,.blade-plan-card){max-width:calc(100vw - 24px)!important;box-sizing:border-box!important;overflow-wrap:anywhere!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where(input,textarea,select){max-width:100%!important;box-sizing:border-box!important}
}
@layer msf-themes {
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] :where(main,.wrap,.site-header,.site-footer) :where(*){color:inherit!important;-webkit-text-fill-color:currentColor!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] :is(a,.read-link){color:var(--msf-accent)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] :is(.site-label,.updated,.footer,.card-meta){color:var(--msf-muted)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] :is(.about-tabs [role=tab],.cta){background:var(--msf-raised)!important;color:var(--msf-text)!important;border-color:var(--msf-line)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] .about-tabs [aria-selected=true]{background:var(--msf-accent-soft)!important;box-shadow:inset 0 -3px var(--msf-accent)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design=document] #msfDocumentThemeMenu{margin:12px 16px 18px auto!important}
}
@layer msf-themes {
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .msf-house-promo{background:var(--msf-surface)!important;color:var(--msf-text)!important;border-color:var(--msf-line)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .msf-house-promo :is(p,strong,span,a){color:var(--msf-text)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .msf-house-promo .promo-cta{color:var(--msf-text)!important;background:var(--msf-accent-soft)!important;border-color:var(--msf-accent)!important}
}
@layer msf-themes {
html[data-msf-theme=vaporwave] body[data-msf-design] :is(.counter-punch-corner.up,.offense-punch-badge,.punch-badge,.cev-sim,.fear-ctr-badge.ok,.cru-verdict-mini.go,.cp-verdict.go){background:#1c443c!important;color:#b0ffce!important}
html[data-msf-theme=vaporwave] body[data-msf-design] :is(.counter-punch-corner.down,.offense-punch-badge.down,.fear-ctr-badge.no,.cru-verdict-mini.risky,.cp-verdict.risky){background:#512541!important;color:#ffd2e7!important}
}
@layer msf-themes {
/* Keep the homepage primary actions distinct from generic legacy buttons. */
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .msf-mode-tabs button[aria-pressed=true]{background:var(--msf-accent)!important;color:#fff!important}
html[data-msf-theme=vaporwave] body[data-msf-design] #searchBtn,html[data-msf-theme=vaporwave] body[data-msf-design] .msf-mode-tabs button[aria-pressed=true]{background:#4af9e5!important;color:#170d30!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .nav-inline-sep{color:var(--msf-muted)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .home-support-btn{background:var(--msf-raised)!important;color:var(--msf-text)!important;border-color:var(--msf-line)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .home-support-btn :is(.hsb-title,.hsb-sub){color:var(--msf-text)!important}
}
@layer msf-themes {
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .wdb-badge{background:var(--msf-accent-soft)!important;color:var(--msf-text)!important}
html[data-msf-theme=vaporwave] body[data-msf-design] .counter-punch-corner.even{background:#493e29!important;color:#fff1ac!important}
html:is([data-msf-theme=google],[data-msf-theme=retro],[data-msf-theme=travel]) body[data-msf-design] .counter-punch-corner.even{background:#fff2ba!important;color:#604800!important}
}
@layer msf-themes {
@media(max-width:600px){
 html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] #resultsPage .results-header{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:14px!important;box-sizing:border-box!important}
 html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] #resultsPage .results-title-wrap{width:100%!important;max-width:100%!important;grid-column:1!important}
 html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] #resultsPage #backBtn{position:static!important;grid-column:1!important;justify-self:start!important}
}
}
@layer msf-themes {
/* Older admin editors use an anonymous inline-styled card inside a dialog. */
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :is([role=dialog]>div[style*="background"],.msf-undo,#evxOverlay>div){background:var(--msf-surface)!important;color:var(--msf-text)!important;border-color:var(--msf-line)!important;border-radius:var(--theme-radius)!important;box-shadow:var(--theme-shadow)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .msf-undo *{color:var(--msf-text)!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] #stxOverlay .ct.custom{background:#ffe47a!important;color:#352700!important}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :is(.mg-card-front,.mg-card-back){background:var(--msf-accent-soft)!important;color:var(--msf-text)!important;border-color:var(--msf-accent)!important;box-shadow:var(--theme-shadow)!important}
}

@layer msf-themes {
/* These legacy pages were transparent in Standard. Their themed surfaces need
   an inset of their own, including controls outside the header. */
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where([id$=Page]:not(#searchPage)) {
 box-sizing:border-box!important;padding:20px 20px 36px!important;
}
/* Header cards used to inherit zero horizontal padding from Standard. */
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :is(.results-header,[class$=-header-bar],.brk-node-header) {
 box-sizing:border-box!important;padding:16px!important;gap:12px!important;
}
@media(max-width:600px) {
 html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :where([id$=Page]:not(#searchPage)) {padding:12px 12px 28px!important;}
 html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] :is(.results-header,[class$=-header-bar],.brk-node-header) {padding:12px!important;}
}
}
@layer msf-themes {
/* Secondary surfaces and absolutely positioned image controls need the same
   clearance as the page headers. Keep intentional segmented controls intact. */
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .msf-defense-storage {padding:16px!important;box-sizing:border-box!important;}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] #cevEdFoot {padding:14px!important;gap:12px!important;}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .floor-img-prev {left:-12px!important;}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .floor-img-next {right:-12px!important;}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] #msfTopNav {padding:8px 12px!important;box-sizing:border-box!important;}
html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] .ar-back-btn {display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;flex-shrink:0!important;}
html[data-msf-theme=google][data-msf-theme] body[data-msf-design] .search-main-row {padding:8px 10px 8px 14px!important;}
@media(max-width:600px) {
 html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] #allianceResPage .ar-builder {max-width:100%!important;min-width:0!important;}
 html[data-msf-theme]:not([data-msf-theme=standard]) body[data-msf-design] #allianceResPage .ar-builder>div {min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
}
}
