/* MFNavi Unified UI, v817. Presentation only; no market signals or forms behavior. */
:root{
  --mfn-bg:#07111f;--mfn-panel:#0d1a2b;--mfn-line:#26384d;
  --mfn-text:#eef4fb;--mfn-muted:#95a7bd;--mfn-radius:14px;
  --bg:#07111f;--panel:#0d1a2b;--border:#26384d;
  --text:#eef4fb;--muted:#95a7bd;
}
body.theme-ui{
  --theme-bg:#07111f;--theme-line:#26384d;
  --theme-text:#eef4fb;--theme-muted:#95a7bd;
}
html{color-scheme:dark}
body{background-color:var(--mfn-bg)!important;color:var(--mfn-text)}
/* Keep chart palettes and positive/negative/alert semantics untouched. */
a[href]:not(.btn):not(.button):not(.active):not(.selected):not(.up):not(.down):not(.pos):not(.neg):not(.warning):not(.danger),
a[href]:not(.btn):not(.button):not(.active):not(.selected):not(.up):not(.down):not(.pos):not(.neg):not(.warning):not(.danger):visited{color:var(--mfn-text);text-decoration:none!important}
a[href]:focus-visible,button:focus-visible,[role="button"]:focus-visible{outline:2px solid #8fc8ff;outline-offset:2px}
a[href]:hover{opacity:.9}
.back,.guide-back,.back-top,.back-link,.page-back,a.back{
 color:var(--mfn-text)!important;text-decoration:none!important;font-weight:750;
}
button:not(.plain),input[type="submit"],input[type="button"],a.btn,a.button,.btn,.button,
[role="button"]:not(.chart-point){border-radius:10px!important}
/* Headings: use the existing content, normalize heading hierarchy without modifying hero art. */
body.theme-ui h1,main.wrap>h1,.wrap>h1,.page>h1{font-size:clamp(24px,4.4vw,30px)!important;font-weight:850;line-height:1.32;letter-spacing:-.018em}
body.theme-ui h2,.panel>h2,.card>h2,.section-title h2,.section-title-row h2,.title-with-guide h2{font-size:clamp(17px,3.2vw,21px)!important;font-weight:800;line-height:1.4}
body.theme-ui h3,.panel>h3,.metric h3{font-size:clamp(15px,2.8vw,17px)!important;font-weight:750;line-height:1.42}
/* Panels and cards: don't override background semantics for alert/status elements. */
.panel:not(.alert):not(.warning):not(.danger),.card:not(.alert):not(.warning):not(.danger),.nav-card,.metric-card,.theme-card,
body.theme-ui .ai-link{border-color:var(--mfn-line);border-radius:var(--mfn-radius)}
.panel:not(.alert):not(.warning):not(.danger),.card:not(.alert):not(.warning):not(.danger),.nav-card,.metric-card,.theme-card{background-color:var(--mfn-panel)}
/* Controls preserve selected and disabled colors from their original styles. */
input:not([type="checkbox"]):not([type="radio"]),select,textarea{border-radius:10px}
@media(max-width:560px){
  .back,.guide-back,.back-top,.back-link,.page-back,a.back{font-size:14px}
}

/* TOP second-row primary navigation only: intentionally matches the pale yellow first row. */
.security-search-title-links a.security-flow-link,
.security-search-title-links a.security-theme-link,
.security-search-title-links a.security-flow-link:visited,
.security-search-title-links a.security-theme-link:visited {
  color:#f3dfa0!important;
  text-decoration:none!important;
}
