/* One screen palette for React pages, portals, and Worker-served marketing pages. */
@media screen {
html.site-reference:root:root:root:root:root body * { background-color:transparent!important;background-image:none!important;color:inherit!important; }
html.site-reference:root:root:root:root:root body { color-scheme:light; background:#fafcfd!important;color:#081535!important;--background:#fafcfd;--foreground:#081535;--card:#ffffff;--card-foreground:#081535;--muted:#e3f6eb;--muted-foreground:#354b55;--border:#cbdcda; }
html.site-reference:root:root:root:root:root body :is(.fmm-public,.public-signup,.public-signup>aside,.fmm-packages,.fmm-package-card,.fmm-package-featured,.site-header,.site-footer,.surface,.panel,.app-sidebar,.app-top,.app-main,.draft-panel,.focus-panel,.metric,.phone-screen,.laptop-lid,.card,[class~="bg-background"],[class~="bg-card"],[class~="bg-white"],[class~="bg-slate-50"],[class~="bg-slate-100"],[class~="bg-gray-50"],[class~="bg-gray-100"]) { background:#ffffff!important;color:#081535!important;border-color:#cbdcda!important; }
html.site-reference:root:root:root:root:root body :is(h1,h2,h3,h4,h5,h6,p,span,strong,b,small,label,li,td,th,summary,a) { color:inherit!important; }
html.site-reference:root:root:root:root:root body :is(.fmm-package-note,.fmm-package-availability,.public-eyebrow,.eyebrow,.hero-description,.reassurance,[class*="text-slate-"],[class*="text-gray-"],[class*="text-blue-"],[class*="text-[#"]) { color:#354b55!important; }
html.site-reference:root:root:root:root:root body :is(a,button):is(.evidence-button,.public-nav-cta,.btn-primary,.sw-button,.button:not(.secondary),.fmm-package-choose,[class~="bg-primary"],[class~="bg-emerald-900"],[class~="bg-emerald-700"],[class~="bg-blue-600"]) { background:#008736!important;color:#ffffff!important;border-color:#008736!important; }
html.site-reference:root:root:root:root:root body :is(a,button):is(.btn-secondary,.button.secondary,.sw-outline) { background:#ffffff!important;color:#095c3d!important;border-color:#839b99!important; }
html.site-reference:root:root:root:root:root body :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { background:#ffffff!important;color:#081535!important;border-color:#cbdcda!important;max-width:100%; }
html.site-reference:root:root:root:root:root body :is([class~="bg-amber-50"],[class~="bg-yellow-50"],[class~="bg-amber-100"]) { background:#fff3d9!important;color:#703e05!important; }
html.site-reference:root:root:root:root:root body :is([class~="bg-red-50"],[class~="bg-rose-50"]) { background:#fff0f2!important;color:#8a263d!important; }
html.site-reference:root:root:root:root:root body :is([class~="bg-emerald-50"],[class~="bg-green-50"],[class~="bg-blue-50"],[class~="bg-primary"]) { background:#e3f6eb!important;color:#095c3d!important; }
html.site-reference:root:root:root:root:root body :is(.brand,.mini-brand) img { width:210px!important;height:auto!important;max-width:100%; }
html.site-reference:root:root:root:root:root body :is(a,button,input,select,textarea,summary):focus-visible { outline:2px solid #007947!important;outline-offset:3px; }
html.site-reference:root:root:root:root:root body .sw-final { background:#008736!important;color:#ffffff!important; }
html.site-reference:root:root:root:root:root body .sw-final :is(h2,p) { color:#ffffff!important; }
html.site-reference:root:root:root:root:root body .sw-final a { background:#ffffff!important;color:#081535!important; }
html.site-reference:root:root:root:root:root body .fmm-package-toggle button { background:#ffffff!important;color:#354b55!important; }
html.site-reference:root:root:root:root:root body .fmm-package-toggle button[aria-pressed="true"] { background:#008736!important;color:#ffffff!important; }
html.site-reference:root:root:root:root:root body :is(.surface,.panel,.card,.fmm-package-card) { min-width:0; }
@media(max-width:767px) {
html.site-reference:root:root:root:root:root body .site-header .brand { max-width:150px;min-width:100px; }
html.site-reference:root:root:root:root:root body .site-header { gap:10px; }
html.site-reference:root:root:root:root:root body :is(.table-shell,.overflow-x-auto) { max-width:100%;overflow-x:auto; }
html.site-reference:root:root:root:root:root body :is(.wrap,.public-container,.app-content) { min-width:0; }
}
}
@media screen {
html.site-reference:root:root:root:root:root body :is(main,article,header,aside,.prose,.prose>div,.a11y-dark,.a11y-light,.brand-grid,[class*="bg-[#"],.fmm-package-grid article,.fmm-package-card,.fmm-package-note,.public-signup>aside) { background-color:#ffffff!important;color:#081535!important; }
html.site-reference:root:root:root:root:root body .fmm-public :is(.fmm-package-card,.fmm-package-featured,.public-signup>aside,.a11y-dark,article,[class*="bg-[#"]) { background:#ffffff!important;color:#081535!important; }
html.site-reference:root:root:root:root:root body :is(.prose,.public-article-shell) :is(div,ul,ol,blockquote,table,thead,tbody,tr) { color:#354b55!important;border-color:#cbdcda!important; }
html.site-reference:root:root:root:root:root body .fmm-public :is(.evidence-button.public-nav-cta,.sw-button,.fmm-package-choose) { background:#008736!important;color:#ffffff!important; }
html.site-reference:root:root:root:root:root body .fmm-public .sw-final .sw-button { background:#ffffff!important;color:#081535!important; }
}

@media screen {
html.site-reference:root:root:root:root:root body :is(div,section,main,article,header,aside,nav,footer,form,table,thead,tbody,tr,td,th) { color:inherit!important; }
html.site-reference:root:root:root:root:root body :is(.fmm-package-status,.fmm-package-check,.clarity-sample,.clarity-status,.clarity-assignee,.tour-availability,.tour-intro,.tour-step,.sw-step h3>span,.sw-pricing-toggle span) { background:#e3f6eb!important;color:#081535!important; }
html.site-reference:root:root:root:root:root body :is([class*="clarity-"],.fmm-packages table,.fmm-packages th,.fmm-packages td,.public-related-resources,[class*="bg-"][class*="-50"],[class*="bg-"][class*="-100"]) { background:#ffffff!important;color:#081535!important; }
html.site-reference:root:root:root:root:root body :is(.skip-link,.sr-only):focus { background:#ffffff!important;color:#081535!important; }
html.site-reference:root:root:root:root:root body :is(.fmm-package-card,.sw-price-card) :is(span,strong,li,p) { color:#081535!important; }
html.site-reference:root:root:root:root:root body :is(.btn-primary,.sw-button,.public-nav-cta,.evidence-button) :is(span,strong) { color:inherit!important; }
}
@media screen {
html.site-reference:root:root:root:root:root body .conversion-site :is(h1,h2,h3,h4,h5,h6,.fmm-package-ai) { color:#081535!important; }
}
@media screen {
html.site-reference:root:root:root:root:root body #main-content :is(h1,h2,h3,h4,h5,h6,.fmm-package-ai,.fmm-package-ai sup) { color:#081535!important; }
html.site-reference:root:root:root:root:root body #main-content .sw-final :is(h2,p) { color:#ffffff!important; }
}

@media screen { html.site-reference:root:root:root:root:root body .app-shell :is(.label-text,.page-title,.page-description,.section-header) { background:none!important;color:#081535!important; } }

/* Application dialogs opt out of the audit palette reset: their backdrop and panel must remain distinct and opaque. */
@media screen {
html.site-reference:root:root:root:root:root body .fmm-modal-root .fmm-modal-backdrop { background-color:rgb(2 8 23 / .7)!important;background-image:none!important; }
html.site-reference:root:root:root:root:root body .fmm-modal-root .modal-panel { background-color:#ffffff!important;background-image:none!important;color:#081535!important;opacity:1!important;isolation:isolate; }
html.site-reference:root:root:root:root:root body #fmm-analytics-control { position:relative!important;display:flex!important;justify-content:flex-end!important;margin:12px 16px 18px!important;z-index:1!important;pointer-events:auto!important; }
html.site-reference:root:root:root:root:root body #fmm-analytics-settings { position:static!important;display:block!important;margin:0!important;z-index:auto!important;background:#fff!important;color:#173047!important;max-width:calc(100% - 20px); }
html.site-reference:root:root:root:root:root body #fmm-analytics-panel { z-index:31!important;background:#fff!important;opacity:1!important;color:#173047!important; }
}
/* Printable documents are paper, independent of the application palette. */
@media screen {
html.site-reference:root:root:root:root:root body article.fmm-letter { background:#fff!important;color:#101820!important;color-scheme:light; }
html.site-reference:root:root:root:root:root body article.fmm-letter .letter-block { background:transparent!important;color:#101820!important; }
}

/* Shared public social links: compact, keyboard-accessible navy and mint icons. */
html:root:root:root:root:root:root body nav.fmm-social-links{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin:12px 0!important;padding:0!important;border:0!important;width:auto!important}
html:root:root:root:root:root:root body nav.fmm-social-links a.fmm-social-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;box-sizing:border-box!important;border:1px solid #579b8a!important;border-radius:12px!important;background:#102d42!important;color:#8ce6c5!important;text-decoration:none!important;flex:0 0 44px!important}
html:root:root:root:root:root:root body nav.fmm-social-links a.fmm-social-link:hover{background:#1b4657!important;color:#c2ffe8!important;border-color:#8ce6c5!important}
html:root:root:root:root:root:root body nav.fmm-social-links a.fmm-social-link:focus-visible{outline:3px solid #ffd36b!important;outline-offset:3px!important}
html:root:root:root:root:root:root body nav.fmm-social-links a.fmm-social-link svg{display:block!important;width:21px!important;height:21px!important;color:inherit!important}
html:root:root:root:root:root:root body .review-home-strip nav.fmm-social-links{margin:0!important}

@media screen {
  html.site-reference:root:root:root:root:root body .fmm-public:not(.ref-page) { background:linear-gradient(150deg,#fafcfd 55%,#e7f7ef)!important; }
  html.site-reference:root:root:root:root:root body :is(.public-header,.public-footer,.public-mobile-links,.workspace-sidebar,.app-top,.resources-hero,.evidence-dark,.app-content,.app-page) { background:#fafcfd!important;color:#081535!important;color-scheme:light!important; }
  html.site-reference:root:root:root:root:root body .public-nav { border-color:#d8e4e8!important; }
  html.site-reference:root:root:root:root:root body img.actual-brand-logo { display:block!important;width:clamp(120px,16vw,210px)!important;max-width:100%!important;height:auto!important;filter:none!important; }
  html.site-reference:root:root:root:root:root body .public-header .unified-brand::before,html.site-reference:root:root:root:root:root body .public-header .unified-brand::after { content:none!important; }
}
@media screen and (min-width:960px) {
  .public-header .public-nav { display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important; }
  .public-header .public-desktop-links { display:flex!important;align-items:center!important;gap:clamp(12px,1.6vw,28px)!important;white-space:nowrap; }
  .public-header .public-menu-toggle { display:none!important; }
}
@media screen and (max-width:959px) {
  .public-header .public-desktop-links { display:none!important; }
  .public-header .public-menu-toggle { display:inline-flex!important; }
}

/* Shared public navigation, including pages served directly by the Worker. */
header.fm-header {position:relative;z-index:20;background:#fff;color:#0a1831;border-bottom:1px solid #d9e5e7;font:600 16px/1.3 Inter,Arial,sans-serif}
.fm-header .fm-bar {max-width:1400px;width:92%;margin:auto;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.fm-header .fm-brand img {display:block;width:clamp(150px,17vw,220px);height:auto}
.fm-header nav,.fm-header .fm-actions {display:flex;align-items:center;gap:clamp(16px,2vw,32px)}
.fm-header a,.fm-header summary {color:#0a1831;text-decoration:none;cursor:pointer}
.fm-header a:hover,.fm-header summary:hover {text-decoration:underline;text-underline-offset:4px}
.fm-header .fm-trial {display:inline-block;background:#00843e;color:#fff;border-radius:9px;padding:12px 18px}
.fm-header .fm-menu {display:none}
@media(max-width:900px){
 .fm-header .fm-wide,.fm-header .fm-actions>a:first-child {display:none}
 .fm-header .fm-menu {display:block}
 .fm-header .fm-actions {margin-left:auto}
 .fm-header .fm-bar {min-height:64px;gap:12px}
 .fm-header summary {padding:10px 2px}
 .fm-header details nav {position:absolute;top:100%;inset-inline:0;display:grid;gap:0;background:white;padding:8px 4% 16px;border-bottom:1px solid #cad9db;box-shadow:0 8px 18px #10263914}
 .fm-header details:not([open]) nav {display:none}
 .fm-header details a {padding:11px}
}

/* Navy footer and green account actions across all public pages. */
html.site-reference:root:root:root:root:root body :is(.public-footer,.site-footer.audit-footer) {
  background:#0b2035!important;color:#e2e8f0!important;border-color:#294b65!important;
}
html.site-reference:root:root:root:root:root body :is(.public-footer,.site-footer.audit-footer) :is(p,a,h2,h3,strong,small,span,nav,section,div) {
  color:#e2e8f0!important;border-color:#294b65!important;
}
html.site-reference:root:root:root:root:root body :is(.public-footer,.site-footer.audit-footer) :is(.unified-brand,.brand) {
  display:inline-flex!important;background:#ffffff!important;border-radius:8px;padding:8px 12px;
}
html.site-reference:root:root:root:root:root body .fm-header a:is(.fm-login,.fm-trial) {
  display:inline-block;background:#008736!important;color:#ffffff!important;border:1px solid #008736!important;border-radius:9px;padding:12px 18px;
}
@media(max-width:900px){
  html.site-reference:root:root:root:root:root body .fm-header .fm-actions>.fm-login {display:none!important}
  html.site-reference:root:root:root:root:root body .fm-header .fm-menu .fm-login {justify-self:start}
}
@media(min-width:760px){
  .fmm-packages .fmm-package-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Journal visual identity, including the legacy article templates. */
html.site-reference:root:root:root:root:root body .journal-page .journal-cover {background:var(--cover)!important;color:var(--ink)!important}
html.site-reference:root:root:root:root:root body .journal-page .journal-cover-icon {color:var(--accent)!important}
html.site-reference:root:root:root:root:root body .journal-page .journal-cover-orbit {border-color:var(--accent)!important}
html.site-reference:root:root:root:root:root body .journal-page :is(.journal-kicker,.journal-section-label,.journal-intro h1 em,.journal-meta,.journal-card-bottom>span) {color:#008736!important}
html.site-reference:root:root:root:root:root body .journal-page .journal-card {background:#fff!important}
html.site-reference:root:root:root:root:root body .journal-page :is(.journal-excerpt,.journal-intro p:not(.journal-kicker),.journal-section-heading p,.journal-card-bottom time) {color:#425968!important}
html.site-reference:root:root:root:root:root body :is(.journal-article-banner,.journal-article-static .page-banner) {background:linear-gradient(135deg,#e5f6ed,#f7fafc)!important;border-bottom:1px solid #c7dfd5!important}
html.site-reference:root:root:root:root:root body :is(.journal-article-banner,.journal-article-static .page-banner) h1 {font-size:clamp(34px,5vw,60px)!important;line-height:1.09!important;letter-spacing:-.045em!important}
html.site-reference:root:root:root:root:root body .journal-article-static .article-body {max-width:850px;margin:0 auto;padding:45px 5%}
html.site-reference:root:root:root:root:root body .journal-article-static .article-body p {font-size:17px;line-height:1.8}

/* Customer-facing Workflow Desk. */
html.site-reference:root:root:root:root:root body .workflow-guide :is(.workflow-kicker,.workflow-intro h1 em,.workflow-detail dt) {color:#008736!important}
html.site-reference:root:root:root:root:root body .workflow-guide .workflow-sidebar {background:#0b2035!important;color:#e2e8f0!important}
html.site-reference:root:root:root:root:root body .workflow-guide .workflow-sidebar button {color:#e2e8f0!important}
html.site-reference:root:root:root:root:root body .workflow-guide .workflow-sidebar button[aria-current="step"] {background:#d7f6e4!important;color:#07482d!important}
html.site-reference:root:root:root:root:root body .workflow-guide .workflow-detail {background:white!important}
html.site-reference:root:root:root:root:root body .workflow-guide .workflow-next {background:#e2f6e9!important;color:#075931!important}
html.site-reference:root:root:root:root:root body .workflow-guide .workflow-primary {background:#008736!important;color:white!important;border-color:#008736!important}
