/* Fincate Pro — the glass look (v3.4.0).
   Loaded after every platform page's own styles and spro-ui.css, only when the page's <html> carries class
   "fp-glass" (the server adds it unless the person, or the platform, chose Classic). data-fp-theme is "light",
   "dark" or "auto" (follow the device). Colours inside the pages come from spro-glass-map.css (generated by
   scripts/theme-tokens.js); this file is the glass itself: the soft colour backdrop (tinted by the firm's own
   colour), frosted panels, the buttons, fields, tabs and dialogs, and the light/dark switch.
   Screen only — printed pages keep the Classic look. The wizards and their reports are never given it. */
@media screen{

/* ===================== tokens ===================== */
html.fp-glass{
  --g-tint:var(--spro-accent,#195EC8);
  --g-bg:#EAF0FA;
  --g-surface:rgba(255,255,255,.58); --g-surface-2:rgba(255,255,255,.38); --g-surface-solid:#fff;
  --g-input:rgba(255,255,255,.78);
  --g-edge:rgba(255,255,255,.78); --g-line:rgba(14,27,51,.09); --g-line-strong:rgba(14,27,51,.17);
  --g-shadow:0 10px 36px -14px rgba(25,58,120,.30),0 2px 6px rgba(25,58,120,.06);
  --g-shadow-hi:0 20px 50px -18px rgba(25,58,120,.42);
  --g-blur:blur(20px) saturate(160%);
  --g-b1:color-mix(in srgb,var(--g-tint) 45%,#8DB4F5); --g-b2:#4ED7A8; --g-b3:#B9A7FF; --g-b4:#FFD3A1;
  --g-blob-o:.7;
}
html.fp-glass[data-fp-theme="dark"]{
  --g-bg:#070D1C;
  --g-surface:rgba(22,32,58,.56); --g-surface-2:rgba(160,190,255,.06); --g-surface-solid:#16203a;
  --g-input:rgba(8,15,32,.55);
  --g-edge:rgba(160,190,255,.15); --g-line:rgba(160,190,255,.13); --g-line-strong:rgba(160,190,255,.24);
  --g-shadow:0 14px 44px -14px rgba(0,0,0,.7),0 2px 8px rgba(0,0,0,.25);
  --g-shadow-hi:0 24px 60px -18px rgba(0,0,0,.85);
  --g-b1:color-mix(in srgb,var(--g-tint) 60%,#1D4FA8); --g-b2:#0E8F6E; --g-b3:#5A3FB8; --g-b4:#7A3F18;
  --g-blob-o:.62;
  --fp-focus:#8DB4F5; color-scheme:dark;
}
@media (prefers-color-scheme:dark){html.fp-glass[data-fp-theme="auto"]{
  --g-bg:#070D1C;
  --g-surface:rgba(22,32,58,.56); --g-surface-2:rgba(160,190,255,.06); --g-surface-solid:#16203a;
  --g-input:rgba(8,15,32,.55);
  --g-edge:rgba(160,190,255,.15); --g-line:rgba(160,190,255,.13); --g-line-strong:rgba(160,190,255,.24);
  --g-shadow:0 14px 44px -14px rgba(0,0,0,.7),0 2px 8px rgba(0,0,0,.25);
  --g-shadow-hi:0 24px 60px -18px rgba(0,0,0,.85);
  --g-b1:color-mix(in srgb,var(--g-tint) 60%,#1D4FA8); --g-b2:#0E8F6E; --g-b3:#5A3FB8; --g-b4:#7A3F18;
  --g-blob-o:.62;
  --fp-focus:#8DB4F5; color-scheme:dark;
}}

/* ===================== backdrop ===================== */
html.fp-glass{background:var(--g-bg)!important;transition:background-color .4s ease}
/* the page itself is see-through, so the colour backdrop shows behind the frosted panels */
html.fp-glass body,html.fp-glass body.fp-entry{background:transparent!important}
.fp-aurora{display:none}
html.fp-glass .fp-aurora{display:block;position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
html.fp-glass .fp-aurora i{position:absolute;border-radius:50%;filter:blur(70px);opacity:var(--g-blob-o);animation:fpDrift 28s ease-in-out infinite alternate}
html.fp-glass .fp-aurora i:nth-child(1){width:46vw;height:46vw;left:-10vw;top:-14vw;background:var(--g-b1)}
html.fp-glass .fp-aurora i:nth-child(2){width:36vw;height:36vw;right:-8vw;top:8vh;background:var(--g-b2);animation-duration:34s}
html.fp-glass .fp-aurora i:nth-child(3){width:32vw;height:32vw;left:32vw;bottom:-14vw;background:var(--g-b3);animation-duration:40s}
html.fp-glass .fp-aurora i:nth-child(4){width:20vw;height:20vw;right:18vw;bottom:6vh;background:var(--g-b4);opacity:calc(var(--g-blob-o) * .6);animation-duration:31s}
@keyframes fpDrift{0%{transform:translate(0,0) scale(1)}50%{transform:translate(4vw,3vh) scale(1.08)}100%{transform:translate(-3vw,5vh) scale(.95)}}
html.fp-glass .fp-hair{opacity:.85}

/* ===================== frosted surfaces ===================== */
html.fp-glass :is(.bar,.card,.tile,.hcard,.q,.pane > .card,dialog,.fp-toast,.sheet,.panel,.box,#journey,.notice,.wn-row,.qcard,.side){
  -webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur)}
html.fp-glass :is(.card,.tile,.hcard,.q,dialog,.sheet,.panel,#journey){border:1px solid var(--g-edge)!important;box-shadow:var(--g-shadow)!important;border-radius:18px}
html.fp-glass .card .card,html.fp-glass .card .tile{box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none}
html.fp-glass :is(.tile,.hcard,.tool){transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s}
html.fp-glass a.tile:hover,html.fp-glass .tile:has(a):hover{transform:translateY(-3px);box-shadow:var(--g-shadow-hi)!important}

/* the app header floats as a glass bar */
html.fp-glass .bar{background:var(--g-surface)!important;border-bottom:1px solid var(--g-edge)!important;box-shadow:0 6px 24px -14px rgba(25,58,120,.35)}
html.fp-glass .bar-nav a:hover,html.fp-glass .bar-nav button:hover{background:var(--g-surface-2)}
html.fp-glass .bar-nav a[aria-current=page]{background:var(--g-surface)!important;box-shadow:inset 0 0 0 1px var(--g-edge),inset 0 -2px 0 var(--spro-accent,#195EC8)!important;border-radius:10px}
html.fp-glass body .bar.fp-compact .bar-nav{background:var(--g-surface-solid)}
html.fp-glass .bar .role{background:var(--g-surface-2);border-color:var(--g-line)}

/* ===================== buttons ===================== */
html.fp-glass :is(.fp-btn,button.primary,.btn.primary,a.btn.primary,button.ghost,.btn:not(.link)){border-radius:12px}
html.fp-glass :is(.fp-btn:not(.primary):not(.link):not(.danger),button.ghost,.btn:not(.primary):not(.link):not(.danger)){
  background:var(--g-surface)!important;border-color:var(--g-edge)!important;color:var(--fp-ink);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 4px 14px -8px rgba(25,58,120,.35)}
html.fp-glass :is(.fp-btn.primary,button.primary,.btn.primary,a.btn.primary){
  background:linear-gradient(135deg,var(--spro-btn,var(--g-tint)) 0%,color-mix(in srgb,var(--spro-btn,var(--g-tint)) 72%,#46A6E8) 100%)!important;
  border-color:rgba(255,255,255,.25)!important;color:#fff!important;box-shadow:0 10px 24px -12px color-mix(in srgb,var(--spro-btn,var(--g-tint)) 80%,transparent)}
html.fp-glass :is(.fp-btn,button,.btn):not(:disabled):hover{box-shadow:var(--g-shadow-hi)}
html.fp-glass :is(.fp-btn.danger,button.danger){background:transparent!important}
/* magnetic: spro-glass.js sets --fp-mx/--fp-my and the glow position on the buttons it chooses */
html.fp-glass .fp-mag{transform:translate(var(--fp-mx,0px),var(--fp-my,0px));transition:transform .35s cubic-bezier(.2,.9,.25,1.2),box-shadow .3s,background-color .2s!important;position:relative;isolation:isolate;overflow:hidden}
html.fp-glass .fp-mag::after{content:"";position:absolute;inset:-1px;z-index:-1;border-radius:inherit;opacity:0;transition:opacity .3s;pointer-events:none;
  background:radial-gradient(120px circle at var(--fp-gx,50%) var(--fp-gy,50%),rgba(255,255,255,.55),transparent 60%)}
html.fp-glass .fp-mag:hover::after{opacity:1}
html.fp-glass .fp-mag:not(:disabled):active{transform:translate(var(--fp-mx,0px),var(--fp-my,0px)) scale(.97)}

/* ===================== fields ===================== */
html.fp-glass :is(input[type=text],input[type=email],input[type=password],input[type=number],input[type=search],input[type=tel],input[type=url],input[type=date],input:not([type]),select,textarea){
  background-color:var(--g-input)!important;border-color:var(--g-line-strong)!important;color:var(--fp-ink);border-radius:10px}
html.fp-glass :is(input,select,textarea):focus{border-color:var(--spro-accent,#3A7BEA)!important}
html.fp-glass select option,html.fp-glass select optgroup{background:var(--g-surface-solid);color:var(--fp-ink)}
html.fp-glass input[type=file]::file-selector-button{background:var(--g-surface);border-color:var(--g-line-strong);color:var(--fp-ink)}

/* ===================== tabs, tables, dialogs ===================== */
html.fp-glass :is([role=tablist].tabs,.tabs[role=tablist],.fp-tabs){background:var(--g-surface-2);border-radius:14px;padding:4px;border:1px solid var(--g-edge)}
html.fp-glass [role=tab][aria-selected=true]{background:var(--g-surface);border-radius:10px;box-shadow:0 4px 14px -8px rgba(25,58,120,.4)}
html.fp-glass tbody tr:hover{background:var(--g-surface-2)}
html.fp-glass :is(th,td){border-color:var(--g-line)}
html.fp-glass dialog{background:var(--g-surface-solid)!important;color:var(--fp-ink)}
html.fp-glass dialog::backdrop{background:rgba(8,18,40,.35);-webkit-backdrop-filter:blur(10px) saturate(115%);backdrop-filter:blur(10px) saturate(115%)}
html.fp-glass dialog.fdrawer::backdrop{background:rgba(8,18,40,.30);-webkit-backdrop-filter:blur(10px) saturate(115%);backdrop-filter:blur(10px) saturate(115%)}   /* v3.9.3: the console's firm panel too */
html.fp-glass .fp-toast{background:var(--g-surface-solid);color:var(--fp-ink);border:1px solid var(--g-edge)}

/* ===================== sign-in, sign-up and message pages ===================== */
html.fp-glass body.fp-entry .card,html.fp-glass body:not(.fp-entry) > main.wrap > .card{background:var(--g-surface)!important}
html.fp-glass:not([data-fp-theme="dark"]) body.fp-entry :is(.brand,.brand .wm){color:#0E1B33!important}
html.fp-glass:not([data-fp-theme="dark"]) body.fp-entry :is(.tag,.foot,.foot b){color:#3B4A66!important}
html.fp-glass:not([data-fp-theme="dark"]) body.fp-entry .foot a{color:#0E1B33!important;text-decoration-color:rgba(14,27,51,.35)!important}
/* the sign-up page's "who is signing up" switch was drawn for a navy page: on light glass its unselected half needs dark ink */
html.fp-glass:not([data-fp-theme="dark"]) body.fp-entry #whoPick{background:var(--g-surface-2);border-color:var(--g-edge)}
html.fp-glass:not([data-fp-theme="dark"]) body.fp-entry #whoPick .plan:not(:has(.rad:checked)) .ph{color:#0E1B33!important}
html.fp-glass:not([data-fp-theme="dark"]) body.fp-entry #whoPick .plan:not(:has(.rad:checked)) .who{color:#3B4A66!important}
html.fp-glass:not([data-fp-theme="dark"]) body.fp-entry #whoPick .plan:not(:has(.rad:checked)):hover{background:var(--g-surface)}
@media (prefers-color-scheme:dark){html.fp-glass[data-fp-theme="auto"] body.fp-entry #whoPick .plan:not(:has(.rad:checked)) .ph{color:#EEF3FF!important}
  html.fp-glass[data-fp-theme="auto"] body.fp-entry #whoPick .plan:not(:has(.rad:checked)) .who{color:#B9C5DE!important}}
@media (prefers-color-scheme:dark){html.fp-glass[data-fp-theme="auto"] body.fp-entry :is(.brand,.brand .wm){color:#EEF3FF!important}
  html.fp-glass[data-fp-theme="auto"] body.fp-entry :is(.tag,.foot,.foot b){color:#B9C5DE!important}
  html.fp-glass[data-fp-theme="auto"] body.fp-entry .foot a{color:#EEF3FF!important}}
html.fp-glass[data-fp-theme="dark"] body.fp-entry :is(.brand,.brand .wm){color:#EEF3FF!important}
html.fp-glass[data-fp-theme="dark"] body.fp-entry :is(.tag,.foot,.foot b){color:#B9C5DE!important}
html.fp-glass[data-fp-theme="dark"] body.fp-entry .foot a{color:#EEF3FF!important}

/* ===================== the paraplanner's firm switcher (drawn by spro-nav.js) ===================== */
html.fp-glass #sproCtxBtn{background:var(--g-surface)!important;color:var(--fp-ink)!important;border-color:var(--g-line-strong)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
html.fp-glass #sproCtxBtn:hover,html.fp-glass #sproCtxBtn[aria-expanded=true]{border-color:var(--spro-ctx,#195EC8)!important}
html.fp-glass #sproCtxBtn .n,html.fp-glass #sproCtxMenu .nm,html.fp-glass #sproCtxMenu button{color:var(--fp-ink)!important}
html.fp-glass #sproCtxBtn svg{color:var(--fp-soft,#5c6779)}
html.fp-glass #sproCtxMenu{background:var(--g-surface-solid)!important;border-color:var(--g-edge)!important;box-shadow:var(--g-shadow)!important}
html.fp-glass #sproCtxMenu button:hover,html.fp-glass #sproCtxMenu button:focus-visible{background:var(--g-surface-2)!important}
html.fp-glass #sproCtxMenu .nm.spro-sub,html.fp-glass #sproCtxMenu .h{color:var(--fp-soft)!important}
html.fp-glass #sproCtxMenu .h ~ .h{border-top-color:var(--g-line)!important}
html.fp-glass #sproCtxMenu button[aria-current=true]{background:color-mix(in srgb,var(--g-tint) 16%,transparent)!important}

/* ===================== links in dark mode ===================== */
/* the brand blue is too dark to read as text on dark glass: links and link-style buttons take a light blue */
html.fp-glass[data-fp-theme="dark"] :is(a,button.link,.btnlink,.fp-btn.link,.linkish):not(.fp-btn:not(.link)):not(.btn):not(.primary):not(.tile):not(.hcard):not(.fp-skip):not(.bar-nav a):not(.brand):not(.fp-menu-btn){color:#9CC0FF}
@media (prefers-color-scheme:dark){html.fp-glass[data-fp-theme="auto"] :is(a,button.link,.btnlink,.fp-btn.link,.linkish):not(.fp-btn:not(.link)):not(.btn):not(.primary):not(.tile):not(.hcard):not(.fp-skip):not(.bar-nav a):not(.brand):not(.fp-menu-btn){color:#9CC0FF}}

/* v3.6.0: the selected tab and the current menu link carry the firm's colour — on the dark page, a light tint of it */
html.fp-glass[data-fp-theme="dark"] :is(.bar-nav a[aria-current=page],[role=tab][aria-selected=true]){color:color-mix(in srgb,var(--spro-accent,#195EC8) 42%,#fff)!important}
@media (prefers-color-scheme:dark){html.fp-glass[data-fp-theme="auto"] :is(.bar-nav a[aria-current=page],[role=tab][aria-selected=true]){color:color-mix(in srgb,var(--spro-accent,#195EC8) 42%,#fff)!important}}

/* a done set-up step keeps its mint circle and dark tick (mapped separately, they lost their contrast) */
html.fp-glass[data-fp-theme="dark"] .jstep.done .tick{background:#4ED7A8!important;color:#00341f!important}
@media (prefers-color-scheme:dark){html.fp-glass[data-fp-theme="auto"] .jstep.done .tick{background:#4ED7A8!important;color:#00341f!important}}

/* the "still there?" sign-out warning in dark */
html.fp-glass[data-fp-theme="dark"] #sproIdle{background:#16203a!important;color:#E6ECF8!important;border-color:rgba(160,190,255,.24)!important}html.fp-glass[data-fp-theme="dark"] #sproIdle h2{color:#DCE6FA!important}html.fp-glass[data-fp-theme="dark"] #sproIdle p{color:#AEB9CE!important}html.fp-glass[data-fp-theme="dark"] #sproIdle .t{color:#fff!important}html.fp-glass[data-fp-theme="dark"] #sproIdle :is(button,a.b):not(.p){background:rgba(160,190,255,.08)!important;color:#E6ECF8!important;border-color:rgba(160,190,255,.24)!important}
@media (prefers-color-scheme:dark){html.fp-glass[data-fp-theme="auto"] #sproIdle{background:#16203a!important;color:#E6ECF8!important;border-color:rgba(160,190,255,.24)!important}html.fp-glass[data-fp-theme="auto"] #sproIdle h2{color:#DCE6FA!important}html.fp-glass[data-fp-theme="auto"] #sproIdle p{color:#AEB9CE!important}html.fp-glass[data-fp-theme="auto"] #sproIdle .t{color:#fff!important}html.fp-glass[data-fp-theme="auto"] #sproIdle :is(button,a.b):not(.p){background:rgba(160,190,255,.08)!important;color:#E6ECF8!important;border-color:rgba(160,190,255,.24)!important}}

/* ===================== the light / dark switch ===================== */
.fp-theme-btn{display:none}
html.fp-glass .fp-theme-btn{display:inline-grid;place-items:center;flex:none;width:58px;height:32px;padding:0;border-radius:999px;border:1px solid var(--g-edge);
  background:var(--g-surface-2);cursor:pointer;position:relative;margin:0 4px}
html.fp-glass .fp-theme-btn .k{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:var(--g-surface-solid);box-shadow:0 2px 8px rgba(0,0,0,.18);
  display:grid;place-items:center;transition:transform .45s cubic-bezier(.65,-0.3,.35,1.4)}
html.fp-glass .fp-theme-btn svg{width:14px;height:14px;color:#E9A13B}
html.fp-glass .fp-theme-btn.is-dark .k{transform:translateX(26px)}
html.fp-glass .fp-theme-btn.is-dark svg{color:#B9C9FF}
/* on a phone the switch is smaller, so the header (logo, badge, switch, Menu) stays on one row */
@media (max-width:480px){html.fp-glass .bar .fp-theme-btn{width:46px;height:28px;margin:0 2px}
  html.fp-glass .bar .fp-theme-btn .k{width:20px;height:20px}html.fp-glass .bar .fp-theme-btn.is-dark .k{transform:translateX(18px)}}
html.fp-glass .fp-theme-btn.fp-float{position:fixed;top:14px;right:14px;z-index:50;-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur)}

/* the skip link keeps a solid blue chip (its navy token turns light in dark mode) */
html.fp-glass .fp-skip{background:#195EC8!important;color:#fff!important}

/* ===================== motion ===================== */
@media (prefers-reduced-motion:reduce){html.fp-glass .fp-aurora i{animation:none}html.fp-glass .fp-mag{transform:none!important}}
}
