/* ==========================================================================
   Bravance theme (fx57, fx58 "signature" pass). One palette and one polish layer
   for every page: portal (momentum/foundation), sign-in, welcome, admin and the
   Client Hub. Loaded LAST so it wins over the older page styles.
   fx58: one signature Bravance look for every client. Client brand colours are
   no longer applied (saved values stay in the settings doc, ignored); a client's
   own logo still shows in the sidebar tile and on PDF exports.
   Palette: midnight navy #101F2F, copper #C8742A (accents only; #9A5418 for
   copper text), cream canvas #F7F5F1. Brand assets live in two places so a logo
   refresh is a file swap: /logo.png + /logo-reversed.png, and the BBS watermark
   /img/vitalyx/symbol.svg (Vitalyx Rising V watermark; used as a CSS mask). html.fx-no-wm removes it.
   ========================================================================== */
:root{
  /* Brand */
  --navy:#101F2F;          /* Midnight navy: sidebar, headings, primary buttons, main chart series */
  --navy-light:#1B3044;    /* Harbor navy: hover / pressed */
  --orange:#C8742A;        /* Bravance copper: the one accent. Fills, markers, focus, never small text */
  --orange-light:#D68840;
  --orange-dark:#B0621F;
  --accent-ink:#9A5418;    /* Copper: orange for TEXT on white (5.5:1) */
  --on-accent:#101F2F;     /* text on an orange fill (6.7:1) */

  /* Neutrals */
  --ink:#182431;           /* headings, key numbers  (15.7:1) */
  --text:#3A4754;          /* body text              (9.5:1)  */
  --muted:#545E69;         /* secondary text         (5.8:1)  */
  --faint:#646B73;         /* captions, labels       (4.5:1)  */
  --line:#E7E2D9;          /* hairlines, card borders */
  --line-strong:#D5CEC2;   /* inputs, dividers */
  --bg:#F7F5F1;            /* app canvas */
  --sunken:#F0ECE5;        /* table heads, hover, segmented controls */
  --white:#fff;
  --gray-50:#F7F5F1;--gray-100:#F0ECE5;--gray-200:#E7E2D9;--gray-300:#D5CEC2;
  --gray-400:#646B73;--gray-600:#545E69;--gray-800:#3A4754;

  /* Status (text on its own tint passes AA) */
  --green:#13744A;--green-bg:#E9F5EE;--green-line:#BFE3CD;
  --amber:#9A5B0B;--amber-bg:#FDF3E3;--amber-line:#F2D6A8;--amber-fill:#E3A33B;
  --red:#B42318;--red-bg:#FDECEA;--red-line:#F4C7C1;
  --blue:#2F5E8C;--blue-bg:#EAF1F8;--blue-line:#C9D9EA;

  /* Shape, depth, type */
  --radius:14px;--radius-sm:10px;--radius-xs:8px;
  --shadow-xs:0 1px 2px rgba(16,31,47,.05);
  --shadow-sm:0 1px 2px rgba(16,31,47,.04),0 4px 14px -6px rgba(16,31,47,.08);
  --shadow-md:0 2px 4px rgba(16,31,47,.04),0 12px 32px -12px rgba(16,31,47,.16);
  --ring:0 0 0 3px rgba(200,116,42,.28);
  --font-display:'Newsreader','Iowan Old Style','Palatino Linotype',Georgia,serif; /* big headings + hero numbers */
  --copper-soft:#E0A468;   /* copper on navy (text/eyebrows on dark) */
  --wm:url(../img/vitalyx/symbol.svg); /* Vitalyx Rising V watermark (variant A default; html.fx-no-wm = variant B) */
  --font:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
}

/* ---------- Type ---------- */
*{font-family:var(--font);}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;}
body{color:var(--text);font-feature-settings:"cv11" 1,"ss01" 1;letter-spacing:-.003em;}
code,pre,kbd,.secret,.color-hex,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;}
table,td,th,input,.kpi-value,.ratio-value,.bucket-val,.inv-stat-val,.fxpu-kpi-v,.fxpu-kpi-yv,.fxpu-sm-v{font-variant-numeric:tabular-nums;}
::selection{background:rgba(200,116,42,.22);}

/* ---------- Focus ---------- */
:focus-visible{outline:2px solid var(--orange);outline-offset:2px;}
input:focus,select:focus,textarea:focus,.form-input:focus,.date-input:focus,.thresh-input:focus,.color-hex:focus,.msg-input:focus,.fx-in:focus,.fx-pr-in:focus{border-color:var(--navy)!important;box-shadow:0 0 0 3px rgba(16,31,47,.08);outline:none;}

/* ---------- App shell: sidebar ---------- */
body{background:var(--bg);}
.sidebar{background:var(--navy);box-shadow:inset -1px 0 0 rgba(255,255,255,.04);}
.sidebar-logo{padding:12px 6px 10px;margin:10px 4px 6px;background:#F7F5F1;border-radius:12px;border-bottom:2px solid rgba(184,115,51,0.35);}
.sidebar-logo img{max-height:96px;width:auto;max-width:100%;}
.nav-label{font-size:10.5px;font-weight:600;letter-spacing:.09em;color:rgba(255,255,255,.42);padding:14px 22px 6px;}
.nav-item{margin:1px 10px;padding:8px 12px;border-radius:8px;font-size:13.5px;font-weight:500;color:rgba(255,255,255,.72);transition:background .15s,color .15s;}
.nav-item svg{opacity:.85;}
.nav-item:hover{background:rgba(255,255,255,.06);color:#fff;}
.nav-item.active{background:rgba(255,255,255,.10);color:#fff;}
.nav-item.active::before{left:-10px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--orange);}
.sub-item{margin:1px 10px;padding:7px 12px 7px 38px;border-radius:8px;border-left:0;color:rgba(255,255,255,.62);font-size:13px;}
.sub-item:hover{background:rgba(255,255,255,.05);color:#fff;}
.sub-item.active{color:#fff;background:rgba(255,255,255,.07);border-left:0;}
.sub-item.active::before{background:var(--orange);opacity:1;}
.nav-badge{background:var(--orange);color:var(--on-accent);font-weight:700;border-radius:999px;padding:1px 7px;font-size:10.5px;}
.tier-pill{background:rgba(255,255,255,.08);color:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.14);border-radius:999px;font-weight:600;letter-spacing:.02em;}
.sidebar-footer{border-top:1px solid rgba(255,255,255,.08);padding:16px 20px;}
.footer-avatar{background:rgba(255,255,255,.12);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);}
.footer-email{color:rgba(255,255,255,.55);}
.footer-plan{background:rgba(200,116,42,.14);color:#E0A468;border:1px solid rgba(200,116,42,.32);border-radius:999px;font-weight:600;}

/* ---------- App shell: top bar + content ---------- */
.topbar{height:var(--fx-head-h,64px);padding:0 32px;background:rgba(255,255,255,.88);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line);}
.topbar-title{font-size:17px;font-weight:650;color:var(--ink);letter-spacing:-.015em;}
.topbar-sub{font-size:12px;color:var(--faint);margin-top:2px;}
.avatar{background:var(--sunken);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line);font-weight:600;}
.date-badge{background:#fff;border-color:var(--line);border-radius:999px;color:var(--muted);}
.content{padding:28px 32px 40px;}

/* ---------- Buttons ---------- */
.sync-btn,.apply-btn,.upgrade-btn,.pay-btn,.save-btn,.send-btn,.export-btn,.btn-primary{background:var(--navy);color:#fff;border:1px solid var(--navy);border-radius:var(--radius-xs);font-weight:600;box-shadow:var(--shadow-xs);transition:background .15s,box-shadow .15s,transform .05s;}
.sync-btn:hover,.apply-btn:hover,.upgrade-btn:hover,.pay-btn:hover,.save-btn:hover,.send-btn:hover,.export-btn:hover,.btn-primary:hover{background:var(--navy-light);opacity:1;}
.sync-btn:active,.save-btn:active,.export-btn:active{transform:translateY(1px);}
.reset-btn,.doc-btn,.alert-btn,.disconnect-btn,.preset-btn,.fx-pill,.fx-tb .fx-cmp-btn{background:#fff;border:1px solid var(--line-strong);color:var(--ink);border-radius:var(--radius-xs);font-weight:600;box-shadow:var(--shadow-xs);transition:background .15s,border-color .15s;}
.reset-btn:hover,.doc-btn:hover,.alert-btn:hover,.preset-btn:hover,.fx-pill:hover{background:var(--sunken);border-color:var(--line-strong);color:var(--ink);}
.preset-btn{border-radius:999px;}
.preset-btn.active{background:var(--navy);border-color:var(--navy);color:#fff;}
.fx-link,.fx-link-btn{color:var(--accent-ink);font-weight:600;}

/* ---------- Cards: soft depth instead of heavy borders ---------- */
.card,.kpi-card,.chart-card,.ratio-card,.bucket,.inv-stat,.integ-card,.alerts-panel,.report-hdr,.period-bar,.doc-item,
.fxpu-card,.fxpu-card2,.fxpu-kpis,.fxpu-pvc,.fxg-card,.fxal-p,.fxin-card,.fx-bc,.fx-scn-card,.fx-sum,.fxs-table{
  border:1px solid rgba(16,31,47,.07);border-radius:var(--radius);box-shadow:var(--shadow-sm);background:#fff;}
.card-header{padding:18px 22px;border-bottom:1px solid var(--sunken);}
.card-title,.chart-title,.alerts-label{color:var(--ink);font-weight:650;letter-spacing:-.01em;}
.card-body{padding:22px;}
.report-hdr{padding:22px 26px;}
.rh-title{font-size:20px;font-weight:700;color:var(--ink);letter-spacing:-.02em;}
.rh-sub{color:var(--faint);}
.sec-header,.fxpu-eyebrow{color:var(--faint);font-weight:600;letter-spacing:.08em;}
.fx-sum{border-left:3px solid var(--navy);}
.disclaimer,.connect-note{border-radius:var(--radius-sm);}

/* ---------- KPIs: large, crisp numbers ---------- */
.kpi-label,.ratio-label,.bucket-label,.inv-stat-label{color:var(--faint);font-weight:600;letter-spacing:.06em;font-size:11px;}
.kpi-value{font-size:30px;font-weight:700;color:var(--ink);letter-spacing:-.025em;line-height:1.1;margin:8px 0 6px;}
.ratio-value,.bucket-val,.inv-stat-val{font-weight:700;color:var(--ink);letter-spacing:-.02em;}
.fxpu-kpi{padding:20px 22px 16px;border-left-color:var(--line);}
.fxpu-kpi-l{color:var(--muted);font-weight:500;}
.fxpu-kpi-v{font-size:32px;font-weight:650;letter-spacing:-.03em;color:var(--ink);margin:8px 0 10px;}
.fxpu-kpi-v small{font-weight:500;}
.fxpu-kpi-yv{color:var(--ink);font-weight:700;}
.fxpu-chip,.kpi-delta,.chip,.inv-status{border-radius:999px;font-weight:600;}
.fxpu-tabs{border-bottom-color:var(--line);}
.fxpu-tab{font-weight:500;color:var(--muted);}
.fxpu-tab.on{color:var(--ink);font-weight:600;border-bottom-color:var(--navy);}
.fxpu-tab:hover{background:transparent;color:var(--ink);}

/* ---------- Tables: quiet hairlines, readable numbers ---------- */
.pl-table th,.aging-table th,.inv-table th{color:var(--faint);font-weight:600;letter-spacing:.06em;border-bottom:1px solid var(--line);}
.pl-table td,.aging-table td,.inv-table td{border-bottom-color:#EFEBE4;color:var(--text);}
.pl-table.fx-plr td{color:var(--ink);}
.pl-table tbody tr,.aging-table tbody tr,.inv-table tbody tr{transition:background .12s;}
.aging-table tbody tr:hover td,.inv-table tbody tr:hover td{background:#FBFAF7;}
.fx-plr tr.fx-r-sec td{background:var(--sunken);color:var(--muted);font-weight:700;letter-spacing:.08em;}
.fx-plr tr.fx-r-acct.fx-flag-good td,.fx-plr tr.fx-r-acct.fx-flag-bad td{background:transparent;}
.fx-plr tr.fx-flag-good td:first-child{box-shadow:inset 2px 0 0 var(--green);}
.fx-plr tr.fx-flag-bad td:first-child{box-shadow:inset 2px 0 0 var(--red);}
.fx-plr tr.fx-r-sub td{background:#FBFAF7;border-top:1px solid var(--line);}
.fx-plr tr.fx-r-tot td{background:#FBFAF7;border-top:1px solid var(--line-strong);color:var(--ink);}
.fx-plr tr.fx-r-key td{background:color-mix(in srgb,var(--navy) 5%,#fff);border-top:1px solid color-mix(in srgb,var(--navy) 35%,#fff);color:var(--ink);}
.fx-plr tr.fx-r-ni td{border-bottom:0;font-size:14.5px;}
.fx-plr tr.fx-drill:hover td{background:#FBFAF7;}

/* ---------- Badges / pills / status ---------- */
.chip-red,.delta-down,.inv-overdue{background:var(--red-bg);color:var(--red);}
.chip-green,.delta-up,.inv-paid{background:var(--green-bg);color:var(--green);}
.chip-orange,.inv-due{background:var(--amber-bg);color:var(--amber);}
.rs-good{color:var(--green);} .rs-warn{color:var(--amber);} .rs-bad{color:var(--red);}
.dot-orange{background:var(--amber-fill);} .dot-blue{background:var(--blue);}
.connected-badge{border-color:var(--green-line);}

/* ---------- Forms ---------- */
.form-input,.date-input,.thresh-input,.msg-input,.fx-in,.fx-pr-in,select{border-color:var(--line-strong);border-radius:var(--radius-xs);transition:border-color .15s,box-shadow .15s;}
.form-label{color:var(--text);font-weight:600;}
.pl-view-tabs{background:var(--sunken);border-radius:10px;}
.pl-tab.active{box-shadow:var(--shadow-xs),0 0 0 1px rgba(16,31,47,.06);color:var(--ink);}

/* ---------- Loading + motion ---------- */
@keyframes fx-shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}
.fx-skel,.skeleton,.fx-booting .kpi-value:empty,.fx-booting .fxpu-kpi-v:empty{background:linear-gradient(90deg,#EFEBE4 0,#F7F5F1 40px,#EFEBE4 80px);background-size:800px 100%;animation:fx-shimmer 1.4s linear infinite;border-radius:6px;color:transparent!important;}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;}}
.card,.fxpu-card,.fxpu-card2,.kpi-card,.ratio-card{transition:box-shadow .2s ease,transform .2s ease;}
.fxpu-card2:hover,.ratio-card:hover,.kpi-card:hover{box-shadow:var(--shadow-md);}

/* ---------- Scrollbars ---------- */
.content::-webkit-scrollbar,.sidebar::-webkit-scrollbar{width:10px;}
.content::-webkit-scrollbar-thumb{background:#D9D2C6;border-radius:10px;border:3px solid var(--bg);}
.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:10px;border:3px solid var(--navy);}

/* ---------- Sign-in + welcome (body.fx-auth) ---------- */
.fx-auth{background:radial-gradient(1000px 520px at 88% -12%,rgba(200,116,42,.10),transparent 60%),radial-gradient(900px 700px at -10% 110%,rgba(47,94,140,.30),transparent 60%),var(--navy)!important;position:relative;overflow-x:hidden;}
.fx-auth::before,.fx-auth::after{content:"";position:fixed;border:1px solid rgba(200,116,42,.22);border-radius:50%;pointer-events:none;}
.fx-auth::before{width:560px;height:560px;left:-180px;top:-160px;}
.fx-auth::after{width:380px;height:380px;right:-120px;bottom:-110px;border-color:rgba(255,255,255,.08);}
.fx-auth .card{position:relative;z-index:1;border:0;border-radius:18px;overflow:hidden;box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 30px 80px -20px rgba(0,0,0,.55),0 8px 24px -8px rgba(0,0,0,.25);}
.fx-login .card{padding:44px 40px 36px;max-width:420px;}
.fx-auth .logo{height:76px;margin:0 auto 14px;}
.fx-auth .tagline{text-align:center;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink);margin:0 0 26px;}
.fx-auth h1{font-size:22px;font-weight:650;color:var(--ink);letter-spacing:-.02em;}
.fx-auth .sub,.fx-auth .card-sub{color:var(--muted);font-size:14px;}
.fx-auth label{font-size:12.5px;font-weight:600;color:var(--text);margin-bottom:6px;}
.fx-auth input{height:44px;padding:0 14px;border:1px solid var(--line-strong);border-radius:10px;font-size:14.5px;background:#fff;box-shadow:var(--shadow-xs);}
.fx-auth input::placeholder{color:#9A9389;}
.fx-auth .btn{display:flex;align-items:center;justify-content:center;text-decoration:none;height:46px;padding:0 16px;background:var(--navy);color:#fff;border:1px solid var(--navy);border-radius:10px;font-size:15px;font-weight:600;box-shadow:0 1px 2px rgba(16,31,47,.2),0 6px 16px -6px rgba(16,31,47,.45);}
.fx-auth .btn:hover{background:var(--navy-light);}
.fx-auth .btn:disabled{background:var(--line-strong);border-color:var(--line-strong);box-shadow:none;}
.fx-auth .btn-secondary{background:#fff;color:var(--ink);border:1px solid var(--line-strong);box-shadow:var(--shadow-xs);}
.fx-auth .btn-secondary:hover{background:var(--sunken);}
.fx-auth .forgot a,.fx-auth .resend-row a{color:var(--accent-ink);font-weight:600;}
.fx-auth .err,.fx-auth .info,.fx-auth .security-badge{border-radius:10px;}

/* ---------- Client Hub (hub.html) ---------- */
.hub .sidebar-logo{min-height:0;justify-content:flex-start;}
.hub .sidebar-logo img{height:auto;max-height:96px;width:auto;}
.hub .link-btn{color:#E0A468;font-weight:600;}
.hub .btn{background:var(--navy);color:#fff;border:1px solid var(--navy);border-radius:var(--radius-xs);font-weight:600;box-shadow:var(--shadow-xs);transition:background .15s;}
.hub .btn:hover{background:var(--navy-light);}
.hub .btn:disabled{background:var(--line-strong);border-color:var(--line-strong);box-shadow:none;}
.hub .btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line-strong);}
.hub .btn.ghost:hover{background:var(--sunken);border-color:var(--line-strong);}
.hub .btn.danger{background:#fff;color:var(--red);border:1px solid var(--red-line);}
.hub .btn.danger:hover{background:var(--red-bg);}
.hub input,.hub select,.hub textarea{border-width:1px;border-color:var(--line-strong);}
.hub table.t th{background:#FBFAF7;color:var(--faint);font-weight:600;letter-spacing:.06em;}
.hub table.t td{border-bottom-color:#EFEBE4;}
.hub table.t tbody tr:hover td{background:#FBFAF7;}
.hub .svc{color:var(--ink);font-weight:600;}
.hub .badge{border-radius:999px;font-weight:600;}
.hub .note{border-radius:var(--radius-sm);color:var(--blue);}
.hub .env-badge{border-radius:999px;}
.hub .kv dt{color:var(--faint);font-weight:600;}
.hub .stat{border-left-color:var(--line);}
.hub .stat-n{font-size:32px;font-weight:650;letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums;}
.hub .stat-n.warn{color:var(--amber);}
.hub .seg-b.on .n{background:var(--orange);color:var(--on-accent);}

/* Budget summary account names: quiet ink, copper on hover (they are links, but a column of copper is loud) */
.fx-bs-go{color:var(--ink)!important;font-weight:600!important;}
.fx-bs-go:hover{color:var(--accent-ink)!important;text-decoration:underline;text-underline-offset:3px;}

/* ==========================================================================
   fx58 signature layer
   ========================================================================== */
@keyframes fx-up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes fx-fade{from{opacity:0}to{opacity:1}}
@keyframes fx-draw{from{stroke-dashoffset:1600}to{stroke-dashoffset:0}}
@keyframes fx-glow{0%,100%{box-shadow:0 0 0 4px rgba(214,136,64,.22),0 0 16px rgba(214,136,64,.5)}50%{box-shadow:0 0 0 8px rgba(214,136,64,.08),0 0 22px rgba(214,136,64,.6)}}
/* The Vitalyx V watermark: one mask, any colour. */
.fx-wm,.fx-brand::before,.fxpu-hero::before,.sidebar::after{-webkit-mask:var(--wm) no-repeat center/contain;mask:var(--wm) no-repeat center/contain;}

/* ---------- Type: a quiet serif for the big moments ---------- */
.rh-title,.fxpu-h2,.fx-auth h1{font-family:var(--font-display);font-weight:500;letter-spacing:-.015em;}
.rh-title{font-size:26px;}
.fx-auth h1{font-size:28px;line-height:1.15;}
.topbar{background:rgba(247,245,241,.86);}
.topbar-title{font-size:18px;}

/* ---------- Sidebar: watermark at the foot ---------- */
.sidebar{position:relative;isolation:isolate;background:linear-gradient(180deg,#122336 0%,#101F2F 55%,#0D1A28 100%);}
.sidebar::after{content:"";position:absolute;left:50%;bottom:140px;width:140px;height:140px;margin-left:-70px;background:#fff;opacity:.04;pointer-events:none;z-index:-1;}
@media (max-height:860px){.sidebar::after{display:none;}}
.nav-item svg,.sub-item svg{stroke-width:1.6;}

/* ---------- Overview hero: cash on hand + runway ---------- */
.fxpu-kpis.fxpu-top{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;background:none;border:0;box-shadow:none;border-radius:0;margin-bottom:22px;}
.fxpu-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;min-height:318px;padding:24px 28px 0;border-radius:20px;color:#fff;
  background:radial-gradient(90% 120% at 100% 0%,#24435F 0%,rgba(36,67,95,0) 60%),linear-gradient(160deg,#152A3F 0%,#101F2F 60%,#0C1825 100%);
  box-shadow:0 1px 2px rgba(16,31,47,.25),0 24px 48px -24px rgba(16,31,47,.6);}
.fxpu-hero::before{content:"";position:absolute;right:-40px;top:-20px;width:220px;height:220px;background:#fff;opacity:.05;z-index:-1;pointer-events:none;}
.fxpu-hero-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:0;}
.fxpu-hero .fxpu-kpi{padding:0;border:0;background:none;min-width:0;}
.fxpu-hero .fxpu-kpi + .fxpu-kpi{padding-left:28px;border-left:1px solid rgba(255,255,255,.10);}
.fxpu-hero .fxpu-kpi:first-child{padding-right:28px;}
.fxpu-hero .fxpu-kpi-l{color:rgba(255,255,255,.72);font-weight:500;font-size:13px;}
.fxpu-hero .fxpu-kpi-v{font-family:var(--font-display);font-weight:500;font-size:60px;line-height:1;letter-spacing:-.025em;color:#fff;margin:16px 0 12px;font-variant-numeric:lining-nums tabular-nums;}
.fxpu-hero .fxpu-kpi + .fxpu-kpi .fxpu-kpi-v{font-size:46px;margin-top:22px;}
.fxpu-hero .fxpu-kpi-v small{font-family:var(--font);font-size:16px;font-weight:500;color:rgba(255,255,255,.6);letter-spacing:0;}
.fxpu-hero .fxpu-kpi-s{color:rgba(255,255,255,.64);}
.fxpu-hero .fxpu-kpi-s b,.fxpu-hero .fxpu-kpi-s strong{color:#fff;}
.fxpu-hero .fxpu-spark,.fxpu-hero .fxpu-spark-none{display:none;}
.fxpu-hero .fxpu-kpi-y{border-top-color:rgba(255,255,255,.10);}
.fxpu-hero .fxpu-kpi-yl{color:rgba(255,255,255,.5);}
.fxpu-hero .fxpu-kpi-yv,.fxpu-hero .fxpu-kpi.fxpu-muted .fxpu-kpi-yv{color:#fff;}
.fxpu-hero .fxpu-kpi.fxpu-muted .fxpu-kpi-v{color:rgba(255,255,255,.7);}
.fxpu-hero .fxpu-chip.up{background:rgba(64,190,128,.16);color:#86DDB0;}
.fxpu-hero .fxpu-chip.dn{background:rgba(240,96,80,.18);color:#FFA79B;}
.fxpu-hero .fxpu-chip.ne{background:rgba(255,255,255,.10);color:rgba(255,255,255,.78);}
.fxpu-hero .fxpu-pos{color:#86DDB0;}
.fxpu-hero .fxpu-dash{color:rgba(255,255,255,.35);}
.fxpu-hero .fx-link,.fxpu-hero a{color:var(--copper-soft);}
.fxpu-hero-viz{position:relative;margin:auto -28px 0;height:118px;}
.fxpu-hero-viz svg{position:absolute;inset:0 0 22px 0;width:100%;height:calc(100% - 22px);display:block;overflow:visible;}
.fxpu-hero-x span{position:absolute;transform:translateX(-50%);white-space:nowrap;}
.fxpu-hero-dot{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#E0A468;animation:fx-glow 2.8s ease-in-out infinite;}
.fxpu-hero-x{position:absolute;left:0;right:0;bottom:6px;height:14px;font-size:10.5px;font-weight:500;letter-spacing:.04em;color:rgba(255,255,255,.42);}
.fxpu-side{display:grid;grid-template-rows:1fr 1fr;gap:16px;min-width:0;}
.fxpu-side .fxpu-kpi{background:#fff;border:1px solid rgba(16,31,47,.07);border-radius:18px;box-shadow:var(--shadow-sm);padding:18px 20px 14px;display:flex;flex-direction:column;}
.fxpu-side .fxpu-kpi:first-child{border-left:1px solid rgba(16,31,47,.07);}
.fxpu-side .fxpu-kpi-v{font-size:30px;font-weight:600;letter-spacing:-.03em;margin:8px 0 6px;}
.fxpu-side .fxpu-kpi-y{margin-top:auto;}
.fxpu-side .fxpu-spark{width:110px;height:38px;}
/* skeleton in the same shape */
.fxsk-hero .fxsk{background:linear-gradient(90deg,rgba(255,255,255,.08) 25%,rgba(255,255,255,.16) 37%,rgba(255,255,255,.08) 63%);background-size:400% 100%;}
.fxsk-hero .fxpu-kpi-v .fxsk{height:44px;width:70%;}
/* first-load entrance (once per page load; never on re-render) */
.fx-enter .fxpu-body > *{animation:fx-up .6s cubic-bezier(.2,.7,.2,1) both;}
.fx-enter .fxpu-body > *:nth-child(2){animation-delay:.06s} .fx-enter .fxpu-body > *:nth-child(3){animation-delay:.12s}
.fx-enter .fxpu-body > *:nth-child(4){animation-delay:.18s} .fx-enter .fxpu-body > *:nth-child(n+5){animation-delay:.24s}
.fx-enter .fxpu-hero-line{stroke-dasharray:1600;animation:fx-draw 1.6s .25s cubic-bezier(.3,.6,.2,1) both;}
.fx-enter .fxpu-hero-area,.fx-enter .fxpu-hero-dot{animation:fx-fade .9s .9s both;}

/* ---------- Cards, to-do and goals: more air, clearer hierarchy ---------- */
.fxpu-card{border-radius:18px;padding:22px 24px;}
.fxpu-h2{font-size:22px;color:var(--ink);}
.fxpu-h3{font-size:15.5px;font-weight:650;}
.fxpu-ch{margin-bottom:16px;}
.fxpu-eyebrow{margin-bottom:12px;}
.fxpu-pvc{border:1px solid rgba(200,116,42,.22);border-left:1px solid rgba(200,116,42,.22);background:linear-gradient(90deg,#FBF4EA,#fff 60%);border-radius:14px;box-shadow:none;padding:12px 18px;}
.fxpu-pvc-k{color:var(--accent-ink);}
.fxpu-item{padding:16px 4px;border-top-color:var(--sunken);gap:14px;}
.fxpu-item:first-child{border-top:0;}
.fxpu-item-t{font-size:14.5px;}
.fxpu-item-s{font-size:13px;margin-top:4px;line-height:1.5;}
.fxpu-card2{border-radius:14px;padding:14px 16px 12px;box-shadow:none;}
.fxpu-goals{gap:18px;}
.fxpu-goal{padding:10px 12px 10px 8px;border-radius:14px;}
.fxpu-goal:hover{background:var(--bg);}
.fxpu-goal-t{font-size:14px;}
.fxpu-chip{padding:2px 9px;}

/* ---------- Empty states ---------- */
.fx-empty{border:1px solid rgba(16,31,47,.07);border-radius:20px;box-shadow:var(--shadow-sm);padding:56px 28px;position:relative;overflow:hidden;isolation:isolate;}
.fx-empty::before{content:"";position:absolute;right:-30px;bottom:-60px;width:180px;height:304px;background:var(--navy);opacity:.04;z-index:-1;-webkit-mask:var(--wm) no-repeat center/contain;mask:var(--wm) no-repeat center/contain;}
.fx-empty-compact{padding:34px 22px;}
.fx-empty-compact::before{display:none;}
.fx-empty-icon{width:64px;height:64px;background:linear-gradient(180deg,#F3EEE6,#EAE3D8);box-shadow:inset 0 0 0 1px rgba(16,31,47,.05);margin-bottom:16px;}
.fx-empty-title{font-family:var(--font-display);font-weight:500;font-size:24px;letter-spacing:-.01em;}
.fx-empty-text{font-size:14px;line-height:1.6;}
.fx-empty-mini{padding:34px 0;color:var(--faint);}

/* ---------- Tables: sticky heads, soft hover ---------- */
.pl-table tbody tr,.fx-bud-wrap tbody tr{transition:background .12s;}
.pl-table tbody tr:hover td,.fx-bud-wrap tbody tr:hover td{background:#FBF8F3;}
@media (min-width:900px){
  .card-body:has(> .pl-table),.fx-bud-wrap{overflow:auto!important;max-height:calc(100vh - 150px);overscroll-behavior:contain;}
  .pl-table thead th,.fx-bud-wrap thead th{position:sticky;top:0;z-index:2;background:#FBFAF7;box-shadow:inset 0 -1px 0 var(--line);}
}

/* ---------- Settings: one calm column (Brand Colors is gone); Company profile laid out wide ---------- */
#page-settings .settings-grid{grid-template-columns:minmax(0,1fr);max-width:1080px;}
#page-settings .settings-grid > .card:has(#set-client-name) > .card-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:32px;}
#page-settings .settings-grid > .card:has(#set-client-name) > .card-body > .form-group:first-child{grid-row:span 3;}
@media (max-width:760px){ #page-settings .settings-grid > .card:has(#set-client-name) > .card-body{grid-template-columns:minmax(0,1fr);} #page-settings .settings-grid > .card:has(#set-client-name) > .card-body > .form-group:first-child{grid-row:auto;} }

/* ---------- Sign-in + welcome: split brand layout ---------- */
body.fx-split{display:grid!important;grid-template-columns:minmax(360px,41%) minmax(0,1fr);align-items:stretch!important;justify-content:stretch!important;padding:0!important;min-height:100vh;background:var(--bg)!important;}
body.fx-split::before,body.fx-split::after{display:none;}
.fx-brand{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;min-height:100vh;padding:56px 40px 48px;color:#fff;
  background:radial-gradient(80% 60% at 100% 0%,#24435F 0%,rgba(36,67,95,0) 70%),linear-gradient(165deg,#152A3F 0%,#101F2F 55%,#0B1622 100%);}
.fx-brand::before{content:"";position:absolute;left:50%;top:52%;width:min(380px,78%);aspect-ratio:1/1;height:auto;margin-left:calc(min(380px,78%)/-2);margin-top:calc(min(380px,78%)/-2);background:#fff;opacity:.045;z-index:-1;pointer-events:none;}
.fx-brand-logo{height:68px;width:auto;align-self:flex-start;}
.fx-brand-mid{max-width:440px;width:100%;animation:fx-up .9s .1s cubic-bezier(.2,.7,.2,1) both;text-align:center;}
.fx-brand-k{font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--copper-soft);}
.fx-brand-h{font-family:var(--font-display);font-weight:400;font-size:clamp(34px,3.4vw,48px);line-height:1.08;letter-spacing:-.02em;margin:0;}
.fx-brand-h em,.fx-brand-h *{font-family:inherit;}
.fx-brand-h em{font-style:italic;color:var(--copper-soft);}
.fx-brand-p{font-size:16.5px;line-height:1.6;color:rgba(255,255,255,.68);max-width:400px;}
.fx-brand-curve{position:absolute;left:0;bottom:0;width:100%;height:22%;z-index:-1;}
.fx-brand-line{stroke-dasharray:1600;animation:fx-draw 2.2s .3s cubic-bezier(.3,.6,.2,1) both;}
.fx-brand-area{animation:fx-fade 1.4s 1.2s both;}
.fx-brand-f{display:flex;align-items:center;gap:8px;font-size:12.5px;color:rgba(255,255,255,.58);}
.fx-split-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 28px;min-width:0;}
.fx-split .card{border:1px solid rgba(16,31,47,.07)!important;box-shadow:0 1px 2px rgba(16,31,47,.04),0 24px 60px -28px rgba(16,31,47,.28)!important;animation:fx-up .7s .15s cubic-bezier(.2,.7,.2,1) both;}
.fx-split .card .logo,.fx-split .card .tagline,.fx-split .card .bar{display:none!important;}
.fx-split.fx-login .card{padding:40px 40px 34px;}
@media (max-width:900px){
  body.fx-split{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;}
  .fx-brand{min-height:0;padding:22px 22px 26px;gap:16px;}
  .fx-brand::before{right:-40px;top:-30px;height:240px;}
  .fx-brand-logo{height:50px;}
  .fx-brand-h{font-size:34px;margin:10px 0 0;}
  .fx-brand-k{font-size:10.5px;}
  .fx-brand-p,.fx-brand-f{display:none;}
  .fx-brand-curve{height:22%;opacity:.7;}
  .fx-split-main{justify-content:flex-start;padding:22px 14px 32px;}
  .fx-split.fx-login .card{padding:28px 22px 24px;}
}

/* ---------- Mobile: hero stacks, numbers stay big ---------- */
@media (max-width:980px){
  .fxpu-kpis.fxpu-top{grid-template-columns:minmax(0,1fr);}
  .fxpu-side{grid-template-rows:none;grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:760px){
  .fxpu-kpis.fxpu-top{gap:12px;margin-bottom:16px;}
  .fxpu-hero{min-height:0;padding:18px 18px 0;border-radius:18px;}
  .fxpu-hero::before{right:-40px;top:-30px;width:170px;height:287px;}
  .fxpu-hero-row{grid-template-columns:minmax(0,1fr);}
  .fxpu-hero .fxpu-kpi:first-child{padding-right:0;}
  .fxpu-hero .fxpu-kpi + .fxpu-kpi{padding-left:0;border-left:0;border-top:1px solid rgba(255,255,255,.10);margin-top:14px;padding-top:14px;}
  .fxpu-hero .fxpu-kpi-v{font-size:46px;margin:10px 0 8px;}
  .fxpu-hero .fxpu-kpi + .fxpu-kpi .fxpu-kpi-v{font-size:34px;margin-top:10px;}
  .fxpu-hero .fxpu-kpi:nth-child(n+3){border-top:0;}
  .fxpu-hero-viz{margin:12px -18px 0;height:96px;}
  .fxpu-side{gap:12px;}
  .fxpu-side .fxpu-kpi{padding:14px 14px 12px;border-radius:16px;}
  .fxpu-side .fxpu-kpi-v{font-size:22px;}
  .fxpu-side .fxpu-spark{width:100%;height:28px;}
  .fxpu-card{padding:18px 16px;border-radius:16px;}
  .rh-title{font-size:22px;}
}
@media (prefers-reduced-motion:reduce){
  .fx-enter .fxpu-body > *,.fx-enter .fxpu-hero-line,.fx-enter .fxpu-hero-area,.fx-enter .fxpu-hero-dot,.fxpu-hero-dot,.fx-brand-mid,.fx-brand-line,.fx-brand-area,.fx-split .card{animation:none!important;}
}

/* ==========================================================================
   fx59: Client Hub + admin page brought into the signature look
   (serif page titles, navy hero bands with the BBS watermark, soft cards,
   quieter tables and badges, friendlier empty states). Motion is opacity/
   translate only and is switched off by prefers-reduced-motion above.
   ========================================================================== */
.hub .kpis .kpi:first-child::before,.hub .card-body:has(> .close-hero)::before,.fx-admin .adm-hero::before,.hub .empty:not(:has(.spin))::before{-webkit-mask:var(--wm) no-repeat center/contain;mask:var(--wm) no-repeat center/contain;}

/* ---------- Hub: header ---------- */
.hub .topbar{height:var(--fx-head-h,74px);padding:0 32px;background:rgba(247,245,241,.9);backdrop-filter:saturate(1.2) blur(6px);border-bottom:1px solid var(--line);}
.hub .topbar-title{font-family:var(--font-display);font-weight:500;font-size:27px;letter-spacing:-.015em;color:var(--ink);line-height:1.1;}
.hub .topbar-sub{font-size:12.5px;color:var(--faint);margin-top:4px;}
.hub .picker{font-weight:500;color:var(--faint);}
.hub .picker select{border-radius:10px;background-color:#fff;font-weight:500;color:var(--ink);box-shadow:var(--shadow-xs);}
.hub .content{padding:26px 32px 48px;}
.hub .content.fx-in{animation:fx-fade .35s ease-out both;}

/* ---------- Hub: cards, tables, badges ---------- */
.hub .card{border:1px solid rgba(16,31,47,.07);border-radius:16px;box-shadow:0 1px 2px rgba(16,31,47,.04),0 10px 30px -18px rgba(16,31,47,.18);overflow:hidden;}
.hub .card-header{padding:16px 22px;border-bottom-color:#EFEBE4;}
.hub .card-title{font-size:15px;font-weight:650;color:var(--ink);letter-spacing:-.005em;}
.hub .card-sub{color:var(--faint);font-size:12.5px;}
.hub .card-body{padding:20px 22px;}
.hub table.t th{background:#FBFAF7;font-size:10.5px;padding:11px 12px;border-bottom:1px solid var(--line);}
.hub table.t td{padding:12px 12px;}
.hub table.t td.nw{white-space:nowrap;}
.hub table.t .row-actions{flex-wrap:nowrap;}
.hub .btn.sm{border-radius:8px;}
.hub .badge,.hub .pill{font-weight:600;letter-spacing:.01em;padding:3px 10px;border-radius:999px;}
.hub .badge.bank,.hub .badge.payroll,.hub .badge.software{background:var(--blue-bg);color:var(--blue);}
.hub .badge.tax,.hub .badge.primary{background:var(--amber-bg);color:var(--accent-ink);}
.hub .pill.rs-waiting_on_client,.hub .pill.cs-waiting_on_client{box-shadow:inset 0 0 0 1px var(--amber-line);}
.hub .pill.rs-responded,.hub .pill.cs-in_review{box-shadow:inset 0 0 0 1px var(--blue-line);}
.hub .pill.rs-resolved,.hub .pill.cs-done{box-shadow:inset 0 0 0 1px var(--green-line);}
.hub .note{background:#F3F6FA;border-color:#DCE5EF;border-radius:12px;padding:12px 16px;}
.hub .chip{border:1px solid var(--line-strong);font-weight:500;color:var(--muted);padding:5px 13px;}
.hub .chip.on{background:var(--navy);border-color:var(--navy);color:#fff;}
.hub .seg{background:var(--sunken);border-radius:12px;}
.hub .seg-b{font-weight:500;}
.hub .seg-b.on{font-weight:600;box-shadow:0 1px 2px rgba(16,31,47,.08),0 2px 6px -2px rgba(16,31,47,.12);}
.hub .rq{padding:15px 22px;transition:background .15s;}
.hub .rq:hover{background:#FBF8F3;}
.hub .rq-title{font-weight:600;color:var(--ink);}
.hub .rq-meta{color:var(--faint);}
.hub .file-row{padding:13px 22px;}
.hub .drop{border-color:var(--line-strong);border-radius:14px;background:#FBFAF7;transition:border-color .15s,background .15s;}
.hub .drop.over{border-color:var(--orange);background:#FDF6EC;}
.hub .msg{border-radius:14px;}
.hub .msg.from-b{background:#F3F6FA;border-color:#DCE5EF;}
.hub .msg.from-c{background:#FDF6EC;border-color:var(--amber-line);}
.hub .sec-h{color:var(--faint);font-weight:600;}
.hub .tpl{border-color:var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-xs);}
.hub .tpl-h{font-family:var(--font-display);font-weight:500;font-size:19px;color:var(--ink);}
.hub .modal{background:rgba(16,31,47,.42);backdrop-filter:blur(3px);}
.hub .modal-card{border-radius:18px;box-shadow:0 1px 2px rgba(16,31,47,.1),0 30px 80px -20px rgba(16,31,47,.45);animation:fx-up .3s cubic-bezier(.2,.7,.2,1) both;}
.hub .modal-card .card-title{font-family:var(--font-display);font-weight:500;font-size:21px;}

/* ---------- Hub: monthly close hero (navy band with the watermark) ---------- */
.hub .card-body:has(> .close-hero){position:relative;isolation:isolate;overflow:hidden;padding:26px 28px;color:#fff;
  background:radial-gradient(80% 140% at 100% 0%,#24435F 0%,rgba(36,67,95,0) 60%),linear-gradient(160deg,#152A3F 0%,#101F2F 60%,#0C1825 100%);}
.hub .card-body:has(> .close-hero)::before{content:"";position:absolute;right:-30px;top:-46px;width:150px;height:253px;background:#fff;opacity:.05;z-index:-1;pointer-events:none;}
.hub .close-hero .small{color:rgba(255,255,255,.66);}
.hub .close-hero .upper{color:rgba(255,255,255,.78);letter-spacing:.1em;}
.hub .close-hero .stat{border-left-color:rgba(255,255,255,.12);}
.hub .close-hero .stat-n{font-family:var(--font-display);font-weight:500;font-size:46px;color:#fff;letter-spacing:-.02em;}
.hub .close-hero .stat-n span{font-family:var(--font);color:rgba(255,255,255,.55);}
.hub .close-hero .stat-n.warn{color:var(--copper-soft);}
.hub .close-hero .due.late{color:#FFA79B;}
.hub .close-hero .bar{background:rgba(255,255,255,.14);}
.hub .close-hero .bar span{background:linear-gradient(90deg,#4FB585,#86DDB0);}
.hub .close-hero .btn{background:var(--copper-soft);border-color:var(--copper-soft);color:var(--navy);}
.hub .close-hero .btn:hover{background:#EAB580;}

/* ---------- Hub: close overview KPIs (first tile is the hero) ---------- */
.hub .kpis{gap:16px;margin-bottom:22px;}
.hub .kpi{border:1px solid rgba(16,31,47,.07);border-radius:16px;box-shadow:var(--shadow-sm);padding:18px 20px;}
.hub .kpi .stat-n{font-family:var(--font-display);font-weight:500;font-size:40px;}
.hub .kpi .small{font-size:12.5px;color:var(--faint);}
.hub .kpis .kpi:first-child{position:relative;isolation:isolate;overflow:hidden;border-color:transparent;color:#fff;
  background:radial-gradient(90% 140% at 100% 0%,#24435F 0%,rgba(36,67,95,0) 60%),linear-gradient(160deg,#152A3F 0%,#101F2F 70%);}
.hub .kpis .kpi:first-child::before{content:"";position:absolute;right:-18px;top:-24px;width:74px;height:125px;background:#fff;opacity:.06;z-index:-1;}
.hub .kpis .kpi:first-child .stat-n{color:#fff;}
.hub .kpis .kpi:first-child .small{color:rgba(255,255,255,.7);}

/* ---------- Hub: friendly empty states ---------- */
.hub .empty:not(:has(.spin)){position:relative;padding:34px 16px 30px;font-family:var(--font-display);font-style:italic;font-size:17px;color:var(--muted);}
.hub .empty:not(:has(.spin))::before{content:"";display:block;width:22px;height:37px;margin:0 auto 10px;background:var(--orange);opacity:.35;}
.hub .empty .spin{border-top-color:var(--orange);}
.hub .placeholder h2{font-family:var(--font-display);font-weight:500;font-size:26px;color:var(--ink);}

/* ---------- Hub: phone ---------- */
@media (max-width:720px){
  .hub .topbar{height:auto;padding:14px 16px;backdrop-filter:none;}
  .hub .topbar-title{font-size:23px;}
  .hub .content{padding:14px 12px 40px;}
  .hub .card-body:has(> .close-hero){padding:20px 18px;}
  .hub .close-hero .stat-n{font-size:36px;}
  .hub .kpi .stat-n{font-size:32px;}
  .hub .card{overflow:visible;}
  .hub .card:has(table.t){overflow-x:auto;}
}

/* ---------- Admin (index.html) ---------- */
.fx-admin{background:var(--bg);color:var(--text);}
.fx-admin .app-header{height:68px;padding:0 32px;box-shadow:0 1px 0 rgba(255,255,255,.04),0 8px 24px -12px rgba(16,31,47,.5);
  background:linear-gradient(90deg,#0E1B29 0%,#101F2F 40%,#152A3F 100%);}
.fx-admin .brand-logo{height:58px;width:auto;max-width:46vw;display:block;object-fit:contain;}
.fx-admin .header-brand{gap:14px;}
.fx-admin .header-pill{background:rgba(224,164,104,.14);border:1px solid rgba(224,164,104,.45);color:var(--copper-soft);font-weight:600;letter-spacing:.12em;padding:3px 10px;}
.fx-admin .header-right{gap:10px;}
.fx-admin .header-user{font-size:13px;color:rgba(255,255,255,.78);margin-right:6px;}
.fx-admin .hdr-link,.fx-admin .btn-signout{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:9px;font-size:12.5px;font-weight:500;color:#fff;text-decoration:none;cursor:pointer;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);transition:background .15s,border-color .15s;}
.fx-admin .hdr-link:hover,.fx-admin .btn-signout:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);}
.fx-admin .page-wrap{padding:28px 32px 56px;max-width:1320px;}
.fx-admin .adm-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.9fr);gap:28px;align-items:center;
  padding:30px 32px;margin-bottom:24px;border-radius:20px;color:#fff;
  background:radial-gradient(70% 140% at 100% 0%,#24435F 0%,rgba(36,67,95,0) 60%),linear-gradient(160deg,#152A3F 0%,#101F2F 60%,#0C1825 100%);
  box-shadow:0 1px 2px rgba(16,31,47,.25),0 24px 48px -24px rgba(16,31,47,.6);animation:fx-up .6s cubic-bezier(.2,.7,.2,1) both;}
.fx-admin .adm-hero::before{content:"";position:absolute;right:-46px;top:-60px;width:170px;height:287px;background:#fff;opacity:.045;z-index:-1;pointer-events:none;}
.fx-admin .adm-eyebrow{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--copper-soft);margin-bottom:10px;}
.fx-admin .page-title{font-family:var(--font-display);font-weight:500;font-size:38px;line-height:1.05;letter-spacing:-.02em;color:#fff;margin:0 0 8px;}
.fx-admin .page-sub{font-size:13.5px;color:rgba(255,255,255,.68);margin:0;}
.fx-admin .stats-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;}
.fx-admin .stat-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:14px 18px;box-shadow:none;}
.fx-admin .stat-val{font-family:var(--font-display);font-weight:500;font-size:34px;line-height:1.05;color:#fff;letter-spacing:-.02em;font-variant-numeric:lining-nums tabular-nums;}
.fx-admin .stat-lbl{font-size:11px;font-weight:500;letter-spacing:.08em;color:rgba(255,255,255,.62);margin-top:4px;}
.fx-admin .stat-card:first-child .stat-val{color:var(--copper-soft);}
.fx-admin #screen-admin .card{border:1px solid rgba(16,31,47,.07);border-radius:18px;box-shadow:0 1px 2px rgba(16,31,47,.04),0 14px 36px -22px rgba(16,31,47,.22);animation:fx-up .6s .08s cubic-bezier(.2,.7,.2,1) both;}
.fx-admin #screen-admin .card-header{padding:18px 24px;border-bottom:1px solid #EFEBE4;}
.fx-admin #screen-admin .card-title{font-family:var(--font-display);font-weight:500;font-size:22px;color:var(--ink);letter-spacing:-.01em;}
.fx-admin .filter-select{border:1px solid var(--line-strong);border-radius:9px;padding:8px 12px;font-size:12.5px;color:var(--ink);background:#fff;}
.fx-admin .show-archived{font-weight:500;color:var(--muted);}
.fx-admin .btn-add{background:var(--navy);color:#fff;border:1px solid var(--navy);border-radius:10px;padding:9px 18px;font-weight:600;font-size:13px;letter-spacing:0;box-shadow:0 1px 2px rgba(16,31,47,.2),0 6px 16px -8px rgba(16,31,47,.5);}
.fx-admin .btn-add:hover{background:var(--navy-light);}
.fx-admin #screen-admin th{background:#FBFAF7;color:var(--faint);font-size:10.5px;font-weight:600;letter-spacing:.08em;padding:12px 16px;border-bottom:1px solid var(--line);position:sticky;top:0;}
.fx-admin #screen-admin td{padding:16px;color:var(--text);border-bottom:1px solid #EFEBE4;font-size:13px;}
.fx-admin #screen-admin tr:hover td{background:#FBF8F3;}
.fx-admin .c-name{font-weight:600;color:var(--ink);white-space:nowrap;}
.fx-admin .c-mail{color:var(--muted);font-size:12.5px;}
.fx-admin .c-date{color:var(--faint);font-size:12px;white-space:nowrap;}
.fx-admin .c-act{min-width:250px;}
.fx-admin .badge{font-size:11px;font-weight:600;text-transform:none;letter-spacing:.01em;padding:3px 10px;border-radius:999px;gap:6px;}
.fx-admin .badge-foundation{background:var(--sunken);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line);}.fx-admin .badge-foundation::before{background:var(--navy);}
.fx-admin .badge-momentum{background:var(--navy);color:#fff;}.fx-admin .badge-momentum::before{background:var(--copper-soft);}
.fx-admin .badge-legacy{background:#fff;color:var(--muted);box-shadow:inset 0 0 0 1px var(--line-strong);}.fx-admin .badge-legacy::before{background:var(--line-strong);}
.fx-admin .badge-addon{background:var(--amber-bg);color:var(--accent-ink);border:0;box-shadow:inset 0 0 0 1px var(--amber-line);}.fx-admin .badge-addon::before{background:var(--orange);}
.fx-admin .badge-active{box-shadow:inset 0 0 0 1px var(--green-line);}
.fx-admin .badge-pending{box-shadow:inset 0 0 0 1px var(--amber-line);}
.fx-admin .qbo-state{font-weight:600;font-size:12px;}
.fx-admin .qbo-sub{font-size:11px;color:var(--faint);}
.fx-admin .qbo-btn{border-color:var(--line-strong);border-radius:7px;padding:3px 9px;font-weight:500;font-size:11px;color:var(--ink);background:#fff;}
.fx-admin .qbo-btn.primary{background:var(--navy);border-color:var(--navy);color:#fff;}
.fx-admin .act-btn{border:1px solid var(--line-strong);border-radius:8px;padding:5px 11px;font-size:11.5px;font-weight:500;color:var(--muted);background:#fff;margin:0 4px 4px 0;}
.fx-admin .act-btn:hover{border-color:var(--navy);color:var(--navy);}
.fx-admin .act-btn.view{background:var(--navy);border-color:var(--navy);color:#fff;}
.fx-admin .act-btn.view:hover{background:var(--navy-light);color:#fff;}
.fx-admin .act-btn.del{color:var(--red);border-color:var(--red-line);}
.fx-admin .act-btn.del:hover{background:var(--red-bg);border-color:var(--red);color:var(--red);}
.fx-admin .empty-state{padding:56px 20px 60px;color:var(--faint);}
.fx-admin .empty-icon{display:inline-flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:50%;background:var(--amber-bg);color:var(--accent-ink);margin-bottom:14px;font-size:0;}
.fx-admin .empty-title{font-family:var(--font-display);font-weight:500;font-size:22px;color:var(--ink);}
.fx-admin .empty-sub{font-size:13px;color:var(--muted);}
/* admin modals */
.fx-admin .modal-overlay{background:rgba(16,31,47,.42);}
.fx-admin .modal{border-radius:20px;padding:32px 34px;box-shadow:0 1px 2px rgba(16,31,47,.1),0 30px 80px -20px rgba(16,31,47,.45);animation:fx-up .3s cubic-bezier(.2,.7,.2,1) both;}
.fx-admin .modal-title{font-family:var(--font-display);font-weight:500;font-size:28px;letter-spacing:-.015em;color:var(--ink);}
.fx-admin .modal-sub{color:var(--muted);}
.fx-admin .form-label{font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--muted);}
.fx-admin .form-input{border:1px solid var(--line-strong);border-radius:10px;background:#fff;padding:11px 14px;}
.fx-admin .form-input:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(200,116,42,.18);}
.fx-admin .btn-save{background:var(--navy);border-radius:10px;font-weight:600;box-shadow:0 1px 2px rgba(16,31,47,.2),0 6px 16px -8px rgba(16,31,47,.5);}
.fx-admin .btn-save:hover{background:var(--navy-light);}
.fx-admin .btn-cancel{background:#fff;border:1px solid var(--line-strong);border-radius:10px;font-weight:500;color:var(--ink);}
.fx-admin .addon-row{border-color:var(--line);border-radius:12px;background:#FBFAF7;}
.fx-admin .spinner{border-top-color:var(--orange);}
@media (max-width:1100px){.fx-admin .adm-hero{grid-template-columns:1fr;}}
@media (max-width:640px){
  .fx-admin .app-header{height:auto;min-height:60px;padding:10px 16px;flex-wrap:wrap;gap:8px;}
  .fx-admin .brand-logo{height:46px;}
  .fx-admin .header-user{display:none;}
  .fx-admin .hdr-link,.fx-admin .btn-signout{padding:6px 10px;font-size:12px;}
  .fx-admin .page-wrap{padding:14px 12px 40px;}
  .fx-admin .adm-hero{padding:22px 20px;gap:18px;border-radius:18px;}
  .fx-admin .page-title{font-size:30px;}
  .fx-admin .stats-row{grid-template-columns:repeat(3,minmax(0,1fr));}
  .fx-admin .stat-card{padding:10px 12px;}
  .fx-admin .stat-val{font-size:26px;}
  .fx-admin .stat-lbl{font-size:10px;}
  .fx-admin #screen-admin .card-header{padding:16px;}
  .fx-admin .card-tools{flex-wrap:wrap;}
  /* the client table becomes a stack of row cards */
  .fx-admin #screen-admin thead{display:none;}
  .fx-admin #screen-admin tbody tr{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:16px;border-bottom:1px solid #EFEBE4;}
  .fx-admin #screen-admin tbody td{display:block;padding:0;border:0;background:none!important;}
  .fx-admin #screen-admin tbody td[colspan]{grid-column:1/-1;}
  .fx-admin #screen-admin td.c-name{font-size:15px;}
  .fx-admin #screen-admin td.c-name + td{grid-column:1;grid-row:2;color:var(--muted);}
  .fx-admin #screen-admin td.c-mail{grid-column:1/-1;}
  .fx-admin #screen-admin td.qbo-cell,.fx-admin #screen-admin td.c-act{grid-column:1/-1;min-width:0;}
  .fx-admin #screen-admin td.c-date{grid-column:2;grid-row:1;text-align:right;}
}
/* ---------- fx60: calmer Subscribers table ---------- */
.fx-admin .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.fx-admin #screen-admin td{padding:22px 18px;vertical-align:middle;}
.fx-admin #screen-admin th{padding:13px 18px;}
.fx-admin #screen-admin tbody tr:last-child td{border-bottom:0;}
.fx-admin .c-co{color:var(--muted);font-size:12.5px;}
.fx-admin .c-mail{color:var(--faint);font-size:12px;}
.fx-admin .c-act{min-width:0;width:1%;white-space:nowrap;}
.fx-admin .act-wrap{display:flex;align-items:center;justify-content:flex-end;gap:6px;}
.fx-admin .act-wrap .act-btn{margin:0;padding:7px 14px;font-size:12px;border-radius:9px;}
.fx-admin .row-more{display:inline-flex;align-items:center;justify-content:center;width:34px;height:32px;border-radius:9px;border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer;fill:currentColor;transition:background .15s,border-color .15s,color .15s;}
.fx-admin .row-more:hover,.fx-admin .row-more[aria-expanded="true"]{background:#fff;border-color:var(--line-strong);color:var(--ink);}
.fx-admin .row-more:focus-visible,.fx-admin .rm-item:focus-visible,.fx-admin .act-btn:focus-visible{outline:2px solid var(--orange);outline-offset:2px;}
/* tier: one chip, the Advisor add-on rides inside it */
.fx-admin .tier-chip{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;line-height:1;padding:5px 11px;border-radius:999px;white-space:nowrap;}
.fx-admin .tier-chip::before{content:"";width:6px;height:6px;border-radius:50%;}
.fx-admin .tier-addon{font-size:10.5px;font-weight:500;color:var(--accent-ink);padding-left:7px;margin-left:1px;border-left:1px solid var(--line-strong);}
.fx-admin .badge-momentum .tier-addon{color:var(--copper-soft);border-left-color:rgba(255,255,255,.22);}
/* QuickBooks: status + last sync only */
.fx-admin .qbo-cell{white-space:nowrap;line-height:1.4;}
.fx-admin .qbo-state{font-weight:500;font-size:12.5px;color:var(--ink);}
.fx-admin .qbo-state::before{width:7px;height:7px;}
.fx-admin .qbo-on::before{background:#13744A;}.fx-admin .qbo-off{color:var(--faint);}.fx-admin .qbo-off::before{background:var(--line-strong);}
.fx-admin .qbo-err{color:var(--red);}.fx-admin .qbo-warn{color:var(--accent-ink);}
.fx-admin .qbo-sub{margin-top:3px;padding-left:12px;font-size:11.5px;color:var(--faint);}
/* the floating row menu */
.row-menu{position:fixed;z-index:1000;min-width:212px;padding:6px;background:#fff;border:1px solid rgba(16,31,47,.10);border-radius:12px;
  box-shadow:0 2px 4px rgba(16,31,47,.06),0 18px 40px -12px rgba(16,31,47,.35);font-family:Inter,system-ui,sans-serif;animation:fx-up .14s ease-out both;}
.row-menu .rm-item{display:block;width:100%;text-align:left;background:none;border:0;border-radius:8px;padding:9px 12px;font:500 13px/1.2 Inter,system-ui,sans-serif;color:#182431;cursor:pointer;}
.row-menu .rm-item:hover,.row-menu .rm-item:focus{background:#F7F5F1;outline:none;}
.row-menu .rm-item:focus-visible{box-shadow:inset 0 0 0 2px #C8742A;}
.row-menu .rm-item:disabled{color:#646B73;cursor:default;}
.row-menu .rm-item.danger{color:#B42318;}
.row-menu .rm-item.danger:hover,.row-menu .rm-item.danger:focus{background:#FEF3F2;}
.row-menu .rm-sep{height:1px;background:#EFEBE4;margin:5px 4px;}
.row-menu .rm-sep.strong{background:#E7E2D9;margin:7px 4px;}
.row-menu .rm-head{padding:6px 12px 2px;font:600 10px/1 Inter,system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#646B73;}
@media (max-width:640px){
  .fx-admin #screen-admin tbody tr{padding:18px 16px;gap:8px 12px;}
  .fx-admin #screen-admin td.c-act{width:auto;}
  .fx-admin .act-wrap{justify-content:flex-start;}
  .fx-admin .act-wrap .act-btn.view,.fx-admin .act-wrap .act-btn.restore{flex:1;text-align:center;}
  .fx-admin .row-more{border-color:var(--line-strong);background:#fff;width:40px;height:34px;}
  .fx-admin .qbo-sub{display:inline;padding-left:8px;}
  .row-menu .rm-item{padding:12px 14px;font-size:14px;}
}
@media (prefers-reduced-motion:reduce){.row-menu{animation:none!important;}}
@media (prefers-reduced-motion:reduce){.hub .content.fx-in,.hub .modal-card,.fx-admin .adm-hero,.fx-admin #screen-admin .card,.fx-admin .modal{animation:none!important;}}

/* fx61: client logo tile next to the company name in the sidebar footer (initials stay when there is no logo). */
.footer-avatar{position:relative;overflow:hidden;}
.footer-avatar.has-logo{border-radius:8px;background:#F7F5F1;color:transparent;font-size:0;box-shadow:inset 0 0 0 1px rgba(200,116,42,.35);}
.footer-avatar .fx-client-logo{display:none;}
.footer-avatar.has-logo .fx-client-logo{display:block;position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);object-fit:contain;}
/* fx90: cream -> navy headers, copper seam (same language as the copper curve at the bottom of the brand panel). The dark E3 lockup sits on cream (like the sidebar strip) and the band fades into navy. */
.fx-admin .app-header{background:linear-gradient(90deg,#F7F5F1 0,#F7F5F1 300px,#EEDCC6 345px,#C8742A 400px,#5A3A2A 445px,#152A3F 540px,#101F2F 100%)!important;box-shadow:inset 0 -2px 0 #D68840,0 8px 24px -12px rgba(16,31,47,.5)!important;}
.fx-admin .app-header .brand-logo{height:44px;width:auto;max-width:280px;object-fit:contain;}
.fx-admin .header-pill{background:rgba(200,116,42,.10);color:#9A5418;border-color:rgba(200,116,42,.5);}
@media (max-width:700px){
  .fx-admin .app-header{background:linear-gradient(180deg,#F7F5F1 0,#F7F5F1 56px,#D68840 60px,rgba(200,116,42,.45) 64px,#152A3F 96px,#101F2F 100%)!important;}
  .fx-admin .app-header .header-right{width:100%;justify-content:flex-end;padding-top:8px;}
  .fx-admin .app-header .brand-logo{height:40px;}
}
.fx-brand-top{position:absolute;left:0;top:0;width:100%;height:150px;z-index:-1;pointer-events:none;}
.fx-brand{background:radial-gradient(80% 60% at 100% 0%,#24435F 0%,rgba(36,67,95,0) 70%),linear-gradient(165deg,#152A3F 0%,#101F2F 55%,#0B1622 100%);}
.fx-brand-logo{width:min(300px,88%);height:auto;max-height:128px;object-fit:contain;}
@media (max-width:900px){.fx-brand-mid{padding-top:8px;}.fx-brand-top{height:110px;}.fx-brand::before{top:40%;left:70%;width:200px;margin:0;transform:translate(-50%,-50%);}.fx-brand{background:linear-gradient(165deg,#152A3F 0%,#101F2F 55%,#0B1622 100%);justify-content:flex-start;padding:20px 22px 22px;}.fx-brand-logo{height:48px;width:auto;max-height:none;}.fx-brand-stack{gap:14px;align-items:flex-start;width:100%;}.fx-brand-mid{text-align:left;}.fx-brand-proof{display:none!important;}}
/* fx88: Balance Sheet comparison */
.fx-bs-cmp{margin-left:6px;}
.fx-bs-ct th{text-align:right;font-size:12px;color:#6b7280;font-weight:600;padding:8px 12px;}
.fx-bs-ct th:first-child{text-align:left;}
.fx-bs-ct td:not(:first-child){text-align:right;white-space:nowrap;}
.fx-bs-ct td.neg{color:#b42318;}
.fx-bs-cmpn{font-size:12px;color:#6b7280;margin-left:12px;}
/* fx89a3: Pulse product name in the headline area, above the Bravance Business Solutions kicker */
.fx-brand-pulse{display:flex;align-items:center;gap:10px;margin-bottom:-2px;}
.fx-brand-pulse svg{width:48px;height:24px;}
.fx-brand-pulse span{font-family:var(--font-display);font-size:40px;font-weight:700;line-height:1;color:#fff;letter-spacing:.01em;}
.fx-brand-pulse::after{content:"";flex:0 0 48px;height:1px;background:linear-gradient(90deg,#D68840,rgba(214,136,64,0));margin-left:4px;}
@media (max-width:900px){.fx-brand-pulse{margin-bottom:8px;gap:8px;}.fx-brand-pulse svg{width:34px;height:17px;}.fx-brand-pulse span{font-size:28px;}}
/* fx89a4: sub-tagline removed; keep Advanced solutions. on one line */
.fx-brand-h em{white-space:nowrap;}
/* fx89a5: product name Vitalyx a touch bigger, headline a touch smaller */
.fx-brand-pulse span{font-size:58px;}
.fx-brand-pulse svg{width:56px;height:28px;}
.fx-brand-h{font-size:clamp(34px,3.4vw,48px);}
@media (max-width:900px){.fx-brand-pulse span{font-size:40px;}.fx-brand-pulse svg{width:42px;height:21px;}.fx-brand-h{font-size:30px;}}
/* fx89a9: mobile logo was bottom-right on the cream area; retired in fx89a12 (reversed logo now in the navy banner, see the end of this file) */

/* fx89a9: Vitalyx rebrand — cream look kept; Vitalyx endorsed logos on cream (login/welcome/admin/sidebar strip); BBS E3 stays on reports/board pack */
.sidebar-logo img{max-height:72px;width:auto;max-width:100%;object-fit:contain;object-position:center;display:block;}
.fx-brand-pulse{display:none!important;} /* retired: wordmark lives in the Vitalyx logo */

/* fx89a9: desktop brand logo ~300px wide in cream; Vitalyx V watermark (A) default.
   Variant B — no watermark: add class "fx-no-wm" on <html> (or <body>). */
html.fx-no-wm .fx-wm,
html.fx-no-wm .fx-brand::before,
html.fx-no-wm .fxpu-hero::before,
html.fx-no-wm .sidebar::after,
html.fx-no-wm .fx-empty::before,
html.fx-no-wm .hub .kpis .kpi:first-child::before,
html.fx-no-wm .hub .card-body:has(> .close-hero)::before,
html.fx-no-wm .fx-admin .adm-hero::before,
html.fx-no-wm .hub .empty:not(:has(.spin))::before{
  display:none!important;content:none!important;opacity:0!important;background:none!important;
}

/* fx89a9: brand panel tight stack (opt1 default) + opt2 proof lines (html.fx-brand-opt2) */
.fx-brand-stack{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:40px;width:100%;max-width:440px;margin:0 auto;text-align:center;}
.fx-brand-stack .fx-brand-logo{align-self:center;}
.fx-brand-proof{display:none;list-style:none;margin:28px 0 0;padding:0;text-align:left;width:100%;max-width:360px;}
.fx-brand-proof li{display:flex;align-items:flex-start;gap:12px;font-family:var(--font-sans,Inter,system-ui,sans-serif);font-size:14.5px;line-height:1.45;color:rgba(247,245,241,.78);padding:7px 0;}
.fx-brand-dot{flex:0 0 8px;width:8px;height:8px;margin-top:6px;border-radius:50%;background:#C8742A;box-shadow:0 0 0 3px rgba(200,116,42,.18);}
html.fx-brand-opt2 .fx-brand-proof{display:block;}
html.fx-brand-opt2 .fx-brand-stack{gap:36px;}
@media (max-width:900px){
  .fx-brand-h{font-size:28px!important;margin:0;}
  .fx-brand-stack{gap:12px;}
}

/* fx89a10: refined VITALYX caps logo (wider wordmark, aspect ~4.4:1) — sizes retuned; company line under the sign-in card */
.fx-brand-logo{width:min(400px,100%);max-height:112px;}
.fx-admin .brand-logo{height:50px;max-width:56vw;}
.fx-admin .app-header .brand-logo{height:48px;max-width:300px;}
.sidebar-logo img{max-height:64px;}
.sidebar-logo{padding:13px 12px 11px;}
.fx-split-main{position:relative;padding-bottom:64px;}
/* fx89a11: two-line footer. Line 1 the product company line (12px, #646B73 = 4.9:1 on the cream), line 2 (c) + Privacy / Terms (11px; links underlined faintly, copper #9A5418 on hover/focus). */
.fx-company{position:absolute;left:0;right:0;bottom:20px;margin:0;padding:0 24px;text-align:center;font-family:var(--font-sans,Inter,system-ui,sans-serif);color:#646B73;}
.fx-company p{margin:0;}
.fx-company-l1{font-size:12px;line-height:1.5;letter-spacing:.005em;}
.fx-company-l2{margin-top:3px!important;font-size:11px;line-height:1.5;letter-spacing:.01em;}
.fx-company a{color:#545E69;text-decoration:underline;text-decoration-color:rgba(84,94,105,.35);text-underline-offset:2px;border-radius:2px;transition:color .15s ease,text-decoration-color .15s ease;}
.fx-company a:hover,.fx-company a:focus-visible{color:#9A5418;text-decoration-color:currentColor;}
.fx-company a:focus-visible{outline:2px solid #C8742A;outline-offset:2px;}
@media (max-width:900px){
  .fx-brand-logo{width:auto;height:48px;max-height:none;}
  .fx-admin .brand-logo{height:40px;}
  .fx-admin .app-header .brand-logo{height:38px;}
  .fx-split-main{padding-bottom:76px;}
  .fx-company{bottom:14px;padding:0 14px;}
}
@media (max-width:420px){.fx-company-l1{font-size:11.5px;}}

/* fx89a10b/c: logo strip and top bar share one header height (--fx-head-h) and one bottom line (--fx-head-line), so the strip and
   the bar read as one header row. Client dashboards 64px, Client Hub 74px. The strip is a touch deeper cream (#F1EBDF, between --bg and --sunken but warmer) than the bar
   so the sidebar column reads as its own column; the logo's left ink edge sits on the nav icon column (--fx-nav-x = item margin 10 + padding 12). */
:root{--fx-head-h:64px;--fx-head-line:var(--line);--fx-strip-bg:#F1EBDF;--fx-nav-x:22px;--fx-logo-w:200px;}
.hub{--fx-head-h:74px;}
.sidebar-logo,.hub .sidebar-logo{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;height:var(--fx-head-h)!important;min-height:0!important;margin:0 0 8px;padding:0 0 0 calc(var(--fx-nav-x) - var(--fx-logo-w) * 12 / 565.54);border-radius:0;flex-shrink:0;background:var(--fx-strip-bg)!important;border-bottom:1px solid var(--fx-head-line);}
.sidebar-logo img,.hub .sidebar-logo img{display:block;width:var(--fx-logo-w)!important;max-width:calc(100% - 24px)!important;height:auto!important;max-height:44px!important;object-fit:contain!important;object-position:left center!important;margin:0;}
.topbar,.hub .topbar{border-bottom:1px solid var(--fx-head-line);}
@media (max-width:720px){
  .hub .sidebar-logo{height:auto!important;margin:0;padding:8px 12px;border:0;}
  .hub .sidebar-logo img{width:auto!important;max-width:90px!important;max-height:28px!important;}
}

/* fx89a12: phone login + set-password: the reversed VITALYX logo (BY BRAVANCE legible) sits in the navy banner, left-aligned above the tagline on the same 22px edge.
   The cream wave fades out over the top ~70px, so the logo starts below it; the bottom of the page keeps only the two-line company/legal footer. Desktop (>900px) unchanged. */
@media (max-width:900px){
  .fx-brand{padding:82px 22px 28px;}
  .fx-brand-stack{gap:20px;}
  .fx-brand-stack .fx-brand-logo{align-self:flex-start;width:196px;height:auto;max-height:none;margin-left:-7px;}
}
@media (max-width:359px){.fx-brand-stack .fx-brand-logo{width:176px;margin-left:-6px;}}
