/* Portable visual tokens and Beta shell adapter. Screen only, clinical print untouched. */
@media screen {
:root {--fm-ui-navy:#172b45;--fm-ui-teal:#0b716c;--fm-ui-paper:#f4f7f8;--fm-ui-line:#dce5e8;--fm-ui-radius:14px}
:root[data-theme="light"],:root:not([data-theme="dark"]){--fm-premium-paper:var(--fm-ui-paper);--fm-premium-line:var(--fm-ui-line);--fm-premium-gold:#0b716c;--fm-premium-gold-soft:#e5f3f1}
body.fm-authenticated>main>h1:before{background:var(--fm-ui-navy)!important;color:white!important;box-shadow:none!important}
body.fm-authenticated>main>h1:after{content:none!important}
body.fm-authenticated>main>h1{font-size:18px!important;flex-wrap:wrap!important;justify-content:flex-start!important;min-height:56px!important;color:var(--tx)!important;padding-right:64px!important}
body.fm-authenticated #fm-build-version{display:inline!important;font-size:11px!important;font-weight:500;color:var(--mu)!important}
body.fm-authenticated #hd{background:var(--card)!important;border-color:var(--bd)!important;box-shadow:none!important;backdrop-filter:none!important}
body.fm-authenticated #v .card:not(.rel){border-color:var(--bd)!important;border-radius:var(--fm-ui-radius)!important;box-shadow:0 2px 8px rgba(23,43,69,.04)!important}
body.fm-authenticated #v .card:not(.rel)>h2{color:var(--tx)!important}
body.fm-authenticated #fm95828Hero{background:var(--card)!important;border-color:var(--bd)!important;box-shadow:none!important}
body.fm-authenticated #fm95828Hero:after{display:none!important}
body.fm-authenticated #fm95828Hero h2,body.fm-authenticated #fm95828Hero p{color:var(--tx)!important}
body.fm-authenticated #fm95828Hero .fm95828Metric{background:var(--bg)!important;border-color:var(--bd)!important}
body.fm-authenticated #fm95828Hero .fm95828Metric b,body.fm-authenticated #fm95828Hero .fm95828Metric span{color:var(--tx)!important}
body.fm-authenticated #nav.fm999-nav button{color:var(--tx)!important}
body.fm-authenticated #nav.fm999-nav button.on{background:#e1f2ef!important;border-color:#a7d6ce!important;color:#075953!important}
body.fm-authenticated :is(button,input,select,textarea,a):focus-visible{outline:3px solid #0a837b!important;outline-offset:2px!important}
#fmLayoutToggle{display:none}
#fmLayoutGate{margin:8px 0;padding:8px 10px;border:1px solid var(--bd);border-radius:10px;background:var(--card);color:var(--tx);font-size:12px}
@media(min-width:1024px){
 body.fm-authenticated>main{margin:0 24px 0 248px!important;max-width:none!important;width:auto!important;padding:16px 0 32px!important}
 body.fm-authenticated #nav.fm999-nav{position:fixed!important;inset:76px auto 16px 16px!important;width:216px!important;height:auto!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;overflow-y:auto!important;overflow-x:hidden!important;gap:6px!important;padding:10px!important;border:1px solid var(--bd)!important;border-radius:14px!important;box-shadow:none!important;background:var(--card)!important}
 body.fm-authenticated #nav.fm999-nav button{flex:0 0 auto!important;min-height:48px!important;flex-direction:row!important;justify-content:flex-start!important;padding:8px 12px!important;gap:10px!important;text-align:left!important}
 body.fm-authenticated #nav.fm999-nav .fm945-nav-label{font-size:13px!important;text-align:left!important}
 body.fm-authenticated #fmLayoutToggle{display:block;position:fixed;top:16px;left:16px;width:216px;min-height:44px;border:1px solid var(--bd);background:var(--card);color:var(--tx);z-index:21;text-align:left;padding:8px 12px;font-weight:650}
 body.fm-authenticated.fm-layout-compact>main{margin-left:104px!important}
 body.fm-authenticated.fm-layout-compact #nav.fm999-nav,body.fm-authenticated.fm-layout-compact #fmLayoutToggle{width:72px!important}
 body.fm-authenticated.fm-layout-compact #nav.fm999-nav button{justify-content:center!important;padding:8px 4px!important}
 body.fm-authenticated.fm-layout-compact #nav.fm999-nav .fm945-nav-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
 body.fm-authenticated.fm-layout-compact #fmLayoutToggle{text-align:center}
}
@media(max-width:1023px){body.fm-authenticated>main{max-width:100%!important;min-width:0!important}body.fm-authenticated #nav.fm999-nav button{min-height:54px!important}}
@media(prefers-reduced-motion:reduce){body.fm-authenticated #v .fd,body.fm-authenticated #fm95828Hero{animation:none!important}}
}
@media print{#fmLayoutToggle,#fmLayoutGate{display:none!important}}

/* Beta.9.11 — shared screen tokens and route presentation; print and scoring remain unchanged. */
@media screen {
 body.fm-authenticated {background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
 body.fm-authenticated>main>h1 {font-size:clamp(17px,2.2vw,22px)!important;gap:10px!important;letter-spacing:-.025em;line-height:1.35!important;overflow-wrap:anywhere;}
 body.fm-authenticated #fm-build-version {font-variant-numeric:tabular-nums;white-space:normal;}
 body.fm-authenticated #v {min-width:0;max-width:100%;}
 body.fm-authenticated #fm-auth-toolbar {box-shadow:none!important;border-color:var(--bd)!important;}
 body.fm-authenticated #fm-auth-identity {min-width:0;overflow-wrap:anywhere;}
 body.fm-authenticated #hd {min-width:0;overflow-wrap:anywhere;}
 body.fm-authenticated #v :is(.fm95829Intro,.fm95830Intro,.fm95830Group,.fm95829IdentityCard,.fm95829ProfilesCard) {background:var(--card)!important;border-color:var(--bd)!important;box-shadow:none!important;}
 body.fm-authenticated #v :is(.fm95829Intro,.fm95830Intro):after {display:none!important;}
 body.fm-authenticated #v :is(.fm95829Intro,.fm95830Intro) :is(h2,p),body.fm-authenticated #v .fm95830GroupTitle {color:var(--tx)!important;}
 body.fm-authenticated #v :is(.fm95829Eyebrow,.fm95830Eyebrow,.fm95830GroupHint) {color:var(--mu)!important;}
 body.fm-authenticated #v .fm95830GroupHead {border-color:var(--bd)!important;}
 body.fm-authenticated #v .fm95830Field textarea {background:var(--card)!important;color:var(--tx)!important;border-color:var(--bd)!important;}
 body.fm-authenticated #v .fm95830Field>label {color:var(--tx)!important;}
 body.fm-authenticated #v .fm95830GroupNum {background:var(--bg)!important;color:var(--tx)!important;}
 body.fm-authenticated #v .fm95828HeroMark {background:var(--bg)!important;color:var(--ac)!important;border-color:var(--bd)!important;}
 body.fm-authenticated #v .fm95828Metrics {max-width:none!important;}
 body.fm-authenticated #v .fm95828Metric {min-width:0;overflow-wrap:anywhere;}
 body.fm-authenticated #v .fm95828Metric span {font-size:12px!important;}
 body.fm-authenticated #v .fm95828Actions button {min-height:44px!important;}
 body.fm-authenticated .fm999-menu-head h2 {color:var(--tx)!important;}
 body.fm-authenticated .fm999-menu-item[aria-current="page"] {background:color-mix(in srgb,var(--ac) 12%,var(--card))!important;border-color:var(--ac)!important;}
 body.fm-authenticated .fm999-optional {color:var(--tx)!important;border-color:var(--bd)!important;}
 body.fm-authenticated #nav.fm999-nav .fm-layout-shortcut {display:none!important;}
 @media(min-width:1024px){
  body.fm-authenticated #nav.fm999-nav .fm-layout-shortcut {display:flex!important;}
  body.fm-authenticated #nav.fm999-nav {padding-bottom:14px!important;}
  body.fm-authenticated #nav.fm999-nav button {flex-shrink:0!important;}
  body.fm-authenticated #nav.fm999-nav:has(.fm-layout-shortcut[aria-current="page"]) #fm999MenuButton.on {background:transparent!important;border-color:transparent!important;color:var(--tx)!important;}
  body.fm-authenticated>main {padding-bottom:40px!important;}
 }
 @media(max-width:1023px){
  body.fm-authenticated>main {box-sizing:border-box!important;padding-inline:clamp(10px,2vw,18px)!important;padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important;}
  body.fm-authenticated #nav.fm999-nav {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  body.fm-authenticated #nav.fm999-nav .fm945-nav-label {font-size:11px!important;}
 }
 @media(max-width:380px){
  body.fm-authenticated #v .fm95828Metrics {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.fm-authenticated #v .fm95828HeroMark {display:none!important;}
  body.fm-authenticated #v .fm95828Metric span {font-size:11px!important;}
 }
}
@media print{#nav .fm-layout-shortcut{display:none!important}}
