


:root,
html[data-theme="dark"] {
    --fs-bg-primary:#07111f;
    --fs-bg-secondary:#0c1729;
    --fs-surface:#111f36;
    --fs-surface-2:#142742;
    --fs-card-bg:#101d33;
    --fs-header-bg:rgba(7,17,31,.96);
    --fs-border:rgba(120,165,255,.22);
    --fs-border-strong:rgba(126,170,255,.38);
    --fs-text-primary:#f8fbff;
    --fs-text-secondary:#c7d6f3;
    --fs-text-muted:#8fa4c5;
    --fs-accent:#4e8cff;
    --fs-accent-contrast:#ffffff;
    --fs-secondary-btn-bg:#16243b;
    --fs-secondary-btn-text:#e9f1ff;
    --fs-ghost-btn-bg:transparent;
    --fs-ghost-btn-text:#c7d6f3;
    --fs-accent-2:#00b894;
    --fs-success:#00c27f;
    --fs-warning:#ffcc00;
    --fs-danger:#ff6b6b;
    --fs-danger-contrast:#ffffff;
    --fs-shadow:rgba(0,0,0,.34);
    --fs-radius:18px;
}

html[data-theme="light"] {
    --fs-bg-primary:#f4f7fb;
    --fs-bg-secondary:#ffffff;
    --fs-surface:#ffffff;
    --fs-surface-2:#eef4ff;
    --fs-card-bg:#ffffff;
    --fs-header-bg:rgba(255,255,255,.96);
    --fs-border:rgba(36,77,130,.18);
    --fs-border-strong:rgba(36,77,130,.32);
    --fs-text-primary:#101828;
    --fs-text-secondary:#344054;
    --fs-text-muted:#667085;
    --fs-accent:#155eef;
    --fs-accent-contrast:#ffffff;
    --fs-secondary-btn-bg:#ffffff;
    --fs-secondary-btn-text:#1d2939;
    --fs-ghost-btn-bg:transparent;
    --fs-ghost-btn-text:#344054;
    --fs-accent-2:#087f5b;
    --fs-success:#07845f;
    --fs-warning:#b77900;
    --fs-danger:#c33b3b;
    --fs-danger-contrast:#ffffff;
    --fs-shadow:rgba(16,24,40,.10);
    --fs-radius:18px;
}

html[data-theme="cyber-defense"] {
    --fs-bg-primary:#02052d;
    --fs-bg-secondary:#060b3d;
    --fs-surface:#08114a;
    --fs-surface-2:#10184e;
    --fs-card-bg:#090f39;
    --fs-header-bg:rgba(2,5,45,.96);
    --fs-border:rgba(255,212,0,.26);
    --fs-border-strong:rgba(255,212,0,.48);
    --fs-text-primary:#ffffff;
    --fs-text-secondary:#d9e1ff;
    --fs-text-muted:#9aa7dc;
    --fs-accent:#ffd400;
    --fs-accent-contrast:#050716;
    --fs-secondary-btn-bg:#10184e;
    --fs-secondary-btn-text:#ffffff;
    --fs-ghost-btn-bg:transparent;
    --fs-ghost-btn-text:#d9e1ff;
    --fs-accent-2:#47d7ff;
    --fs-success:#00d989;
    --fs-warning:#ffd400;
    --fs-danger:#ff4d4d;
    --fs-danger-contrast:#ffffff;
    --fs-shadow:rgba(0,0,0,.45);
    --fs-radius:18px;
}

html[data-theme="enterprise-insight"] {
    --fs-bg-primary:#f3f9fb;
    --fs-bg-secondary:#ffffff;
    --fs-surface:#ffffff;
    --fs-surface-2:#e7f4f8;
    --fs-card-bg:#ffffff;
    --fs-header-bg:rgba(255,255,255,.96);
    --fs-border:rgba(10,91,120,.20);
    --fs-border-strong:rgba(10,91,120,.35);
    --fs-text-primary:#102833;
    --fs-text-secondary:#284d60;
    --fs-text-muted:#607d8a;
    --fs-accent:#0a5b78;
    --fs-accent-contrast:#ffffff;
    --fs-secondary-btn-bg:#ffffff;
    --fs-secondary-btn-text:#102833;
    --fs-ghost-btn-bg:transparent;
    --fs-ghost-btn-text:#284d60;
    --fs-accent-2:#0f9aaf;
    --fs-success:#087f5b;
    --fs-warning:#b77900;
    --fs-danger:#c33b3b;
    --fs-danger-contrast:#ffffff;
    --fs-shadow:rgba(10,91,120,.14);
    --fs-radius:18px;
}

* { box-sizing:border-box; }

body.fs-nexus-enabled {
    margin:0;
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb,var(--fs-accent) 12%,transparent), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb,var(--fs-bg-primary) 92%,#fff 8%), var(--fs-bg-primary)) !important;
    color:var(--fs-text-primary) !important;
    font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif !important;
    font-size:15px;
}


.fs-legacy-theme-hidden,
.theme-toggle,
.theme-switch,
.themeControls,
.theme-controls,
#themeToggle,
#darkModeToggle,
#darkToggle,
#lightToggle,
#themeSelect,
#languageSelect,
.language-select,
select[aria-label="Theme"]:not(.fs-nexus-theme-select) {
    display:none !important;
}

/* Avoid hiding useful form selects inside portals. Only hide old website language/select pairs in legacy header zones. */
header:not(.fs-nexus-header) select,
nav:not(.fs-nexus-nav) select {
    display:none !important;
}

.fs-nexus-enabled h1,
.fs-nexus-enabled h2,
.fs-nexus-enabled h3 {
    color:var(--fs-text-primary) !important;
    letter-spacing:-.02em;
}

.fs-nexus-enabled p,
.fs-nexus-enabled label,
.fs-nexus-enabled span,
.fs-nexus-enabled td,
.fs-nexus-enabled th {
    color:inherit;
}

.fs-nexus-enabled a {
    color:var(--fs-accent) !important;
    text-decoration:none;
}

.fs-nexus-enabled a:hover { text-decoration:underline; }

.fs-nexus-header {
    position:sticky;
    top:0;
    z-index:9999;
    min-height:74px;
    display:flex;
    align-items:center;
    padding:0 28px;
    gap:22px;
    background:var(--fs-header-bg);
    border-bottom:1px solid var(--fs-border);
    backdrop-filter:blur(18px);
    box-shadow:0 10px 28px var(--fs-shadow);
}

.fs-nexus-brand {
    display:flex;
    align-items:center;
    gap:13px;
    min-width:260px;
}

.fs-nexus-mark {
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--fs-accent),var(--fs-accent-2));
    color:var(--fs-accent-contrast);
    font-weight:900;
    box-shadow:0 10px 22px var(--fs-shadow);
    letter-spacing:-.04em;
}

.fs-nexus-brand-text { line-height:1.05; }

.fs-nexus-brand-title {
    display:block;
    font-size:18px;
    font-weight:850;
    color:var(--fs-text-primary);
}

.fs-nexus-brand-subtitle {
    display:block;
    margin-top:4px;
    font-size:12px;
    font-weight:650;
    color:var(--fs-text-muted);
}

.fs-nexus-nav {
    display:flex;
    align-items:center;
    gap:6px;
    flex:1;
    min-width:0;
}

.fs-nexus-nav a {
    padding:9px 12px;
    border-radius:999px;
    color:var(--fs-text-secondary) !important;
    font-weight:700;
    font-size:13px;
    white-space:nowrap;
}

.fs-nexus-nav a:hover {
    background:color-mix(in srgb,var(--fs-accent) 12%,transparent);
    text-decoration:none;
}

.fs-nexus-context-pill {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:9px 13px;
    border-radius:999px;
    background:color-mix(in srgb,var(--fs-accent) 12%,var(--fs-surface));
    border:1px solid var(--fs-border);
    color:var(--fs-text-secondary);
    font-weight:750;
    font-size:13px;
    white-space:nowrap;
}

.fs-nexus-theme-wrap {
    display:flex;
    align-items:center;
    gap:8px;
}

.fs-nexus-theme-label {
    font-size:12px;
    color:var(--fs-text-muted);
    font-weight:700;
}

.fs-nexus-theme-select {
    width:190px !important;
    max-width:190px !important;
    height:38px !important;
    padding:0 38px 0 12px !important;
    border-radius:999px !important;
    background:var(--fs-surface) !important;
    color:var(--fs-text-primary) !important;
    border:1px solid var(--fs-border-strong) !important;
    font-size:13px !important;
    font-weight:700 !important;
    outline:none !important;
}

.fs-nexus-enabled main,
.fs-nexus-enabled .container,
.fs-nexus-enabled .wrap {
    max-width:1180px;
    margin-left:auto;
    margin-right:auto;
}

.fs-nexus-enabled section,
.fs-nexus-enabled .card,
.fs-nexus-enabled .panel,
.fs-nexus-enabled .box {
    background:var(--fs-card-bg) !important;
    color:var(--fs-text-primary) !important;
    border:1px solid var(--fs-border) !important;
    border-radius:var(--fs-radius) !important;
    box-shadow:0 18px 44px var(--fs-shadow) !important;
}

/* Forms */
.fs-nexus-enabled input,
.fs-nexus-enabled select,
.fs-nexus-enabled textarea {
    background:color-mix(in srgb,var(--fs-surface) 92%,#000 8%) !important;
    color:var(--fs-text-primary) !important;
    border:1px solid var(--fs-border-strong) !important;
    border-radius:12px !important;
    outline:none !important;
}

.fs-nexus-enabled input::placeholder,
.fs-nexus-enabled textarea::placeholder {
    color:var(--fs-text-muted) !important;
}


.fs-nexus-enabled button,
.fs-nexus-enabled .btn,
.fs-nexus-enabled input[type="button"],
.fs-nexus-enabled input[type="submit"],
.fs-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:38px;
    padding:10px 16px;
    border-radius:12px !important;
    border:1px solid var(--fs-border-strong) !important;
    background:var(--fs-secondary-btn-bg) !important;
    color:var(--fs-secondary-btn-text) !important;
    font-weight:800 !important;
    box-shadow:0 6px 16px color-mix(in srgb,var(--fs-shadow) 70%,transparent) !important;
    transition:transform .15s ease,filter .2s ease,box-shadow .2s ease,background .2s ease !important;
    cursor:pointer;
    text-decoration:none !important;
}

.fs-nexus-enabled button:hover,
.fs-nexus-enabled .btn:hover,
.fs-btn:hover {
    transform:translateY(-1px);
    filter:brightness(1.04);
    text-decoration:none !important;
}

.fs-nexus-enabled button.primary,
.fs-nexus-enabled .btn-primary,
.fs-btn-primary,
.fs-nexus-enabled [data-variant="primary"] {
    background:var(--fs-accent) !important;
    color:var(--fs-accent-contrast) !important;
    border-color:color-mix(in srgb,var(--fs-accent) 70%,#fff 30%) !important;
}

.fs-nexus-enabled button.secondary,
.fs-nexus-enabled .btn-secondary,
.fs-btn-secondary,
.fs-nexus-enabled [data-variant="secondary"] {
    background:var(--fs-secondary-btn-bg) !important;
    color:var(--fs-secondary-btn-text) !important;
}

.fs-nexus-enabled button.ghost,
.fs-nexus-enabled .btn-ghost,
.fs-btn-ghost,
.fs-nexus-enabled [data-variant="ghost"] {
    background:var(--fs-ghost-btn-bg) !important;
    color:var(--fs-ghost-btn-text) !important;
    box-shadow:none !important;
}

.fs-nexus-enabled button.danger,
.fs-nexus-enabled .btn-danger,
.fs-btn-danger,
.fs-nexus-enabled button[id*="logout" i],
.fs-nexus-enabled button[onclick*="logout" i] {
    background:var(--fs-danger) !important;
    color:var(--fs-danger-contrast) !important;
    border-color:color-mix(in srgb,var(--fs-danger) 70%,#fff 30%) !important;
}

/* Tables */
.fs-nexus-enabled table {
    width:100%;
    border-collapse:collapse;
    background:var(--fs-card-bg);
    color:var(--fs-text-primary);
    border-radius:14px;
    overflow:hidden;
}

.fs-nexus-enabled th,
.fs-nexus-enabled td {
    border-bottom:1px solid var(--fs-border);
    padding:12px 14px;
}

.fs-nexus-enabled th {
    background:color-mix(in srgb,var(--fs-accent) 15%,var(--fs-card-bg));
    color:var(--fs-text-primary);
    font-weight:800;
}

.fs-nexus-footer {
    margin:42px auto 18px;
    padding:18px 24px;
    max-width:1180px;
    color:var(--fs-text-muted);
    border-top:1px solid var(--fs-border);
    text-align:center;
    font-size:12px;
}

.fs-card {
    background:var(--fs-card-bg);
    border:1px solid var(--fs-border);
    border-radius:var(--fs-radius);
    padding:22px;
    box-shadow:0 18px 44px var(--fs-shadow);
}

.fs-grid { display:grid; gap:18px; }
.fs-grid-3 { grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }

.fs-pill {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 11px;
    border-radius:999px;
    background:color-mix(in srgb,var(--fs-accent) 12%,var(--fs-surface));
    border:1px solid var(--fs-border);
    color:var(--fs-text-secondary);
    font-size:12px;
    font-weight:800;
}

.fs-muted { color:var(--fs-text-muted) !important; }
.fs-nexus-hidden-provenance { display:none !important; }

@media (max-width:1100px) {
    .fs-nexus-header { height:auto; flex-wrap:wrap; padding:14px 18px; }
    .fs-nexus-brand { min-width:auto; flex:1; }
    .fs-nexus-nav { order:3; width:100%; overflow:auto; padding-bottom:4px; }
    .fs-nexus-theme-wrap { margin-left:auto; }
}

@media (max-width:720px) {
    .fs-nexus-context-pill { display:none; }
    .fs-nexus-theme-select { width:160px !important; }
}



html[data-theme="sovereign-blue"]{--fs-bg-primary:#061426;--fs-bg-secondary:#0a1c35;--fs-surface:#102947;--fs-surface-2:#16395f;--fs-card-bg:#0d2340;--fs-header-bg:rgba(6,20,38,.97);--fs-border:rgba(91,155,255,.30);--fs-border-strong:rgba(91,155,255,.55);--fs-text-primary:#f7fbff;--fs-text-secondary:#c8dcff;--fs-text-muted:#9eb6da;--fs-accent:#5b9bff;--fs-accent-contrast:#ffffff;--fs-secondary-btn-bg:#132c4f;--fs-secondary-btn-text:#eef6ff;--fs-accent-2:#32d6c2;--fs-success:#29d391;--fs-warning:#ffd166;--fs-danger:#ff647c;--fs-shadow:rgba(0,0,0,.42);--fs-radius:18px;}
html[data-theme="executive-slate"]{--fs-bg-primary:#0b1118;--fs-bg-secondary:#111827;--fs-surface:#17212f;--fs-surface-2:#202c3d;--fs-card-bg:#141e2b;--fs-header-bg:rgba(11,17,24,.97);--fs-border:rgba(200,213,230,.20);--fs-border-strong:rgba(200,213,230,.38);--fs-text-primary:#f8fafc;--fs-text-secondary:#d5dce8;--fs-text-muted:#9aa9bc;--fs-accent:#9bb7ff;--fs-accent-contrast:#07111f;--fs-secondary-btn-bg:#1d2939;--fs-secondary-btn-text:#f8fafc;--fs-accent-2:#94a3b8;--fs-success:#78d7a2;--fs-warning:#f1c66a;--fs-danger:#ff7373;--fs-shadow:rgba(0,0,0,.46);--fs-radius:18px;}
html[data-theme="secure-emerald"]{--fs-bg-primary:#041711;--fs-bg-secondary:#062018;--fs-surface:#0b2e23;--fs-surface-2:#104536;--fs-card-bg:#09271e;--fs-header-bg:rgba(4,23,17,.97);--fs-border:rgba(101,230,173,.25);--fs-border-strong:rgba(101,230,173,.48);--fs-text-primary:#f0fff8;--fs-text-secondary:#c9f7df;--fs-text-muted:#91c9aa;--fs-accent:#65e6ad;--fs-accent-contrast:#03120d;--fs-secondary-btn-bg:#103527;--fs-secondary-btn-text:#eafff4;--fs-accent-2:#72d3ff;--fs-success:#42e89e;--fs-warning:#ffdc7a;--fs-danger:#ff7575;--fs-shadow:rgba(0,0,0,.45);--fs-radius:18px;}
html[data-theme="boardroom-gold"]{--fs-bg-primary:#141006;--fs-bg-secondary:#211909;--fs-surface:#2d220d;--fs-surface-2:#3b2d13;--fs-card-bg:#261d0b;--fs-header-bg:rgba(20,16,6,.97);--fs-border:rgba(245,197,86,.28);--fs-border-strong:rgba(245,197,86,.56);--fs-text-primary:#fff9ea;--fs-text-secondary:#f3dfb2;--fs-text-muted:#c5ad79;--fs-accent:#f5c556;--fs-accent-contrast:#141006;--fs-secondary-btn-bg:#352810;--fs-secondary-btn-text:#fff9ea;--fs-accent-2:#75a7ff;--fs-success:#89dda7;--fs-warning:#f5c556;--fs-danger:#ff6b6b;--fs-shadow:rgba(0,0,0,.46);--fs-radius:18px;}

.fs-nexus-theme-wrap,.fs-top-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.fs-nexus-theme-select,.fs-nexus-language-select,#fsThemeSelect,#fsLanguageSelect{appearance:auto!important;background:#000!important;color:#fff!important;border:1px solid color-mix(in srgb,var(--fs-border-strong) 80%,#ffffff 20%)!important;border-radius:10px!important;min-width:150px!important;padding:10px 13px!important;font-weight:800!important;box-shadow:0 12px 30px rgba(0,0,0,.18)!important}.fs-nexus-language-select,#fsLanguageSelect{min-width:120px!important}.fs-nexus-mark{background:linear-gradient(135deg,var(--fs-accent),var(--fs-accent-2))!important;color:var(--fs-accent-contrast)!important;box-shadow:0 0 0 1px var(--fs-border),0 12px 30px var(--fs-shadow)!important}.fs-nexus-enabled .card,.fs-nexus-enabled .fs-card,.fs-nexus-enabled .admin-section,.fs-nexus-enabled .workspace-panel{background:linear-gradient(145deg,color-mix(in srgb,var(--fs-surface) 96%,#fff 4%),color-mix(in srgb,var(--fs-surface-2) 82%,var(--fs-bg-primary) 18%))!important;border-color:var(--fs-border)!important;color:var(--fs-text-primary)!important;box-shadow:0 20px 60px var(--fs-shadow)!important}.fs-nexus-enabled .workspace-tab,.fs-nexus-enabled .admin-tab-btn{background:color-mix(in srgb,var(--fs-surface-2) 90%,#000 10%)!important;border-color:var(--fs-border-strong)!important;color:var(--fs-text-primary)!important}.fs-nexus-enabled .workspace-tab.active,.fs-nexus-enabled .admin-tab-btn.active{background:linear-gradient(135deg,color-mix(in srgb,var(--fs-accent) 32%,var(--fs-surface)),color-mix(in srgb,var(--fs-accent-2) 24%,var(--fs-surface-2)))!important;outline:2px solid color-mix(in srgb,var(--fs-accent) 60%,#fff 40%)!important}.fs-nexus-enabled button,.fs-nexus-enabled .btn,.fs-nexus-enabled .fs-btn{border-radius:12px!important}.fs-nexus-enabled .primary,.fs-nexus-enabled .btn-primary,.fs-nexus-enabled .fs-btn-primary{background:linear-gradient(135deg,var(--fs-accent),var(--fs-accent-2))!important;color:var(--fs-accent-contrast)!important;border-color:transparent!important}.fs-nexus-enabled .secondary,.fs-nexus-enabled .btn-secondary,.fs-nexus-enabled .fs-btn-secondary{background:var(--fs-secondary-btn-bg)!important;color:var(--fs-secondary-btn-text)!important;border:1px solid var(--fs-border-strong)!important}.fs-nexus-enabled .danger,.fs-nexus-enabled .btn-delete,.fs-nexus-enabled .btn-reject{background:var(--fs-danger)!important;color:var(--fs-danger-contrast)!important;border-color:transparent!important}



.fs-nexus-mark{display:grid!important;place-items:center!important;overflow:hidden!important;font-weight:900!important;letter-spacing:-.04em!important}.fs-nexus-mark img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}.fs-nexus-header{backdrop-filter:blur(14px)!important}.workflow-tab-legal-first,.workspace-tab[data-workspace-tab="legal"]{order:-10!important}.workspace-tabs{display:flex!important;flex-wrap:wrap!important;gap:12px!important}.workspace-tab[data-workspace-tab="legal"]{background:linear-gradient(135deg,color-mix(in srgb,var(--fs-accent) 35%,var(--fs-surface)),color-mix(in srgb,var(--fs-accent-2) 28%,var(--fs-surface-2)))!important;border-color:color-mix(in srgb,var(--fs-accent) 60%,#ffffff 20%)!important;box-shadow:0 0 0 1px rgba(255,255,255,.03),0 14px 36px var(--fs-shadow)!important}.workspace-tab[data-workspace-tab="legal"]::before{content:'1';display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;margin-right:10px;background:rgba(0,0,0,.28);border:1px solid var(--fs-border-strong);color:var(--fs-text-primary);font-weight:900}.workspace-tab[data-workspace-tab="opportunities"]::before{content:'2';display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;margin-right:10px;background:rgba(0,0,0,.20);border:1px solid var(--fs-border-strong);font-weight:900}.workspace-tab[data-workspace-tab="assets"]::before{content:'3';display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;margin-right:10px;background:rgba(0,0,0,.20);border:1px solid var(--fs-border-strong);font-weight:900}.workspace-tab[data-workspace-tab="quotes"]::before{content:'4';display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;margin-right:10px;background:rgba(0,0,0,.20);border:1px solid var(--fs-border-strong);font-weight:900}.workspace-tab[data-workspace-tab="po"]::before{content:'5';display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;margin-right:10px;background:rgba(0,0,0,.20);border:1px solid var(--fs-border-strong);font-weight:900}.workspace-tab[data-workspace-tab="machines"]::before{content:'6';display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;margin-right:10px;background:rgba(0,0,0,.20);border:1px solid var(--fs-border-strong);font-weight:900}.workspace-tab[data-workspace-tab="licensing"]::before{content:'7';display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;margin-right:10px;background:rgba(0,0,0,.20);border:1px solid var(--fs-border-strong);font-weight:900}.workspace-tab[data-workspace-tab="settlements"]::before{content:'8';display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;margin-right:10px;background:rgba(0,0,0,.20);border:1px solid var(--fs-border-strong);font-weight:900}.workspace-tab[data-workspace-tab="apis"]::before{content:'9';display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;margin-right:10px;background:rgba(0,0,0,.20);border:1px solid var(--fs-border-strong);font-weight:900}.workspace-tab[data-workspace-tab="resellers"]::before{content:'10';display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;margin-right:10px;background:rgba(0,0,0,.20);border:1px solid var(--fs-border-strong);font-weight:900}

.workspace-tab .step-num,.workspace-tab .workflow-num,.workspace-tab > .num{display:none!important}


:root,
html[data-theme="dark"]{
  --fs-control-bg:#172a49;
  --fs-control-text:#ffffff;
  --fs-control-border:rgba(164,190,255,.44);
  --fs-control-hover:#203b63;
  --fs-outline:#93c5fd;
  --fs-status-success-bg:#047857;
  --fs-status-success-text:#ffffff;
  --fs-status-warning-bg:#facc15;
  --fs-status-warning-text:#111827;
  --fs-status-danger-bg:#dc2626;
  --fs-status-danger-text:#ffffff;
  --fs-status-info-bg:#2563eb;
  --fs-status-info-text:#ffffff;
  --fs-input-bg:#091527;
  --fs-input-text:#ffffff;
  --fs-table-head-text:#ffffff;
}
html[data-theme="light"]{
  --fs-control-bg:#0f172a;
  --fs-control-text:#ffffff;
  --fs-control-border:#334155;
  --fs-control-hover:#1e293b;
  --fs-outline:#1d4ed8;
  --fs-status-success-bg:#047857;
  --fs-status-success-text:#ffffff;
  --fs-status-warning-bg:#facc15;
  --fs-status-warning-text:#111827;
  --fs-status-danger-bg:#b91c1c;
  --fs-status-danger-text:#ffffff;
  --fs-status-info-bg:#1d4ed8;
  --fs-status-info-text:#ffffff;
  --fs-input-bg:#ffffff;
  --fs-input-text:#0f172a;
  --fs-table-head-text:#0f172a;
  --fs-card-bg:#ffffff;
  --fs-surface:#ffffff;
  --fs-surface-2:#f1f7ff;
}
html[data-theme="cyber-defense"]{
  --fs-control-bg:#07112f;
  --fs-control-text:#ffffff;
  --fs-control-border:rgba(255,212,0,.65);
  --fs-control-hover:#10184e;
  --fs-outline:#ffd400;
  --fs-status-success-bg:#00a86b;
  --fs-status-success-text:#ffffff;
  --fs-status-warning-bg:#ffd400;
  --fs-status-warning-text:#050716;
  --fs-status-danger-bg:#e11d48;
  --fs-status-danger-text:#ffffff;
  --fs-status-info-bg:#0369a1;
  --fs-status-info-text:#ffffff;
  --fs-input-bg:#050a2a;
  --fs-input-text:#ffffff;
  --fs-table-head-text:#ffffff;
}
html[data-theme="enterprise-insight"]{
  --fs-control-bg:#083344;
  --fs-control-text:#ffffff;
  --fs-control-border:#0f5f76;
  --fs-control-hover:#0f4a5f;
  --fs-outline:#0e7490;
  --fs-status-success-bg:#047857;
  --fs-status-success-text:#ffffff;
  --fs-status-warning-bg:#facc15;
  --fs-status-warning-text:#102833;
  --fs-status-danger-bg:#b91c1c;
  --fs-status-danger-text:#ffffff;
  --fs-status-info-bg:#0e7490;
  --fs-status-info-text:#ffffff;
  --fs-input-bg:#ffffff;
  --fs-input-text:#102833;
  --fs-table-head-text:#102833;
}
html[data-theme="sovereign-blue"],
html[data-theme="executive-slate"],
html[data-theme="secure-emerald"],
html[data-theme="boardroom-gold"]{
  --fs-control-bg:color-mix(in srgb,var(--fs-surface-2) 86%,#000 14%);
  --fs-control-text:var(--fs-text-primary);
  --fs-control-border:var(--fs-border-strong);
  --fs-control-hover:color-mix(in srgb,var(--fs-accent) 18%,var(--fs-surface-2));
  --fs-outline:var(--fs-accent);
  --fs-status-success-bg:#047857;
  --fs-status-success-text:#ffffff;
  --fs-status-warning-bg:#facc15;
  --fs-status-warning-text:#111827;
  --fs-status-danger-bg:#b91c1c;
  --fs-status-danger-text:#ffffff;
  --fs-status-info-bg:#2563eb;
  --fs-status-info-text:#ffffff;
  --fs-input-bg:color-mix(in srgb,var(--fs-surface) 92%,#000 8%);
  --fs-input-text:var(--fs-text-primary);
  --fs-table-head-text:var(--fs-text-primary);
}

/* Global readability guardrails */
html[data-theme] body,
html[data-theme] .fs-nexus-enabled,
html[data-theme] .fs-nexus-enabled .card,
html[data-theme] .fs-nexus-enabled .panel,
html[data-theme] .fs-nexus-enabled .box,
html[data-theme] .fs-nexus-enabled .admin-section,
html[data-theme] .fs-nexus-enabled .workspace-panel,
html[data-theme] .fs-nexus-enabled .modal,
html[data-theme] .fs-nexus-enabled .quote-modal,
html[data-theme] .fs-nexus-enabled .fs-card{
  color:var(--fs-text-primary)!important;
}

html[data-theme] .fs-nexus-enabled p,
html[data-theme] .fs-nexus-enabled li,
html[data-theme] .fs-nexus-enabled td,
html[data-theme] .fs-nexus-enabled label,
html[data-theme] .fs-nexus-enabled .body-text,
html[data-theme] .fs-nexus-enabled .content-text{
  color:var(--fs-text-primary)!important;
}

html[data-theme] .fs-nexus-enabled .small,
html[data-theme] .fs-nexus-enabled small,
html[data-theme] .fs-nexus-enabled .muted,
html[data-theme] .fs-nexus-enabled .fs-muted,
html[data-theme] .fs-nexus-enabled .hint,
html[data-theme] .fs-nexus-enabled .subtext{
  color:var(--fs-text-muted)!important;
}

/* Buttons and button-like links must never inherit unreadable text colors. */
html[data-theme] .fs-nexus-enabled button,
html[data-theme] .fs-nexus-enabled .btn,
html[data-theme] .fs-nexus-enabled a.btn,
html[data-theme] .fs-nexus-enabled .fs-btn,
html[data-theme] .fs-nexus-enabled input[type="button"],
html[data-theme] .fs-nexus-enabled input[type="submit"],
html[data-theme] .fs-nexus-enabled [role="button"],
html[data-theme] .fs-nexus-enabled .workspace-tab,
html[data-theme] .fs-nexus-enabled .admin-tab-btn,
html[data-theme] .fs-nexus-enabled .ss-mini{
  background:var(--fs-control-bg)!important;
  color:var(--fs-control-text)!important;
  border-color:var(--fs-control-border)!important;
  text-shadow:none!important;
}
html[data-theme] .fs-nexus-enabled button *,
html[data-theme] .fs-nexus-enabled .btn *,
html[data-theme] .fs-nexus-enabled .fs-btn *,
html[data-theme] .fs-nexus-enabled [role="button"] *{
  color:inherit!important;
}
html[data-theme] .fs-nexus-enabled button:hover,
html[data-theme] .fs-nexus-enabled .btn:hover,
html[data-theme] .fs-nexus-enabled a.btn:hover,
html[data-theme] .fs-nexus-enabled .fs-btn:hover,
html[data-theme] .fs-nexus-enabled [role="button"]:hover{
  background:var(--fs-control-hover)!important;
  color:var(--fs-control-text)!important;
}
html[data-theme] .fs-nexus-enabled .btn-primary,
html[data-theme] .fs-nexus-enabled .primary,
html[data-theme] .fs-nexus-enabled [data-variant="primary"]{
  background:linear-gradient(135deg,var(--fs-accent),var(--fs-accent-2))!important;
  color:var(--fs-accent-contrast)!important;
  border-color:transparent!important;
}
html[data-theme] .fs-nexus-enabled .btn-danger,
html[data-theme] .fs-nexus-enabled .btn-delete,
html[data-theme] .fs-nexus-enabled .btn-reject,
html[data-theme] .fs-nexus-enabled .danger,
html[data-theme] .fs-nexus-enabled button[onclick*="logout" i]{
  background:var(--fs-status-danger-bg)!important;
  color:var(--fs-status-danger-text)!important;
  border-color:transparent!important;
}

/* Form controls and dropdowns must remain readable in every theme. */
html[data-theme] .fs-nexus-enabled input,
html[data-theme] .fs-nexus-enabled textarea,
html[data-theme] .fs-nexus-enabled select,
html[data-theme] .fs-nexus-theme-select,
html[data-theme] .fs-nexus-language-select,
html[data-theme] #fsThemeSelect,
html[data-theme] #fsLanguageSelect{
  background:var(--fs-input-bg)!important;
  color:var(--fs-input-text)!important;
  border-color:var(--fs-control-border)!important;
  caret-color:var(--fs-input-text)!important;
}
html[data-theme] .fs-nexus-enabled option,
html[data-theme] .fs-nexus-theme-select option,
html[data-theme] .fs-nexus-language-select option{
  background:var(--fs-input-bg)!important;
  color:var(--fs-input-text)!important;
}
html[data-theme] .fs-nexus-enabled input::placeholder,
html[data-theme] .fs-nexus-enabled textarea::placeholder{
  color:color-mix(in srgb,var(--fs-text-muted) 78%,transparent)!important;
  opacity:1!important;
}

/* Table and workspace contrast */
html[data-theme] .fs-nexus-enabled table,
html[data-theme] .fs-nexus-enabled .table-wrap{
  color:var(--fs-text-primary)!important;
  background:var(--fs-card-bg)!important;
}
html[data-theme] .fs-nexus-enabled th{
  color:var(--fs-table-head-text)!important;
  background:color-mix(in srgb,var(--fs-accent) 18%,var(--fs-card-bg))!important;
}
html[data-theme="light"] .fs-nexus-enabled th,
html[data-theme="enterprise-insight"] .fs-nexus-enabled th{
  color:#0f172a!important;
  background:#eaf2ff!important;
}

/* Status badges and common state labels */
html[data-theme] .fs-nexus-enabled .pill,
html[data-theme] .fs-nexus-enabled .badge,
html[data-theme] .fs-nexus-enabled .status-badge{
  color:var(--fs-control-text)!important;
  background:var(--fs-control-bg)!important;
  border-color:var(--fs-control-border)!important;
}
html[data-theme] .fs-nexus-enabled .ok,
html[data-theme] .fs-nexus-enabled .success,
html[data-theme] .fs-nexus-enabled .fully-executed,
html[data-theme] .fs-nexus-enabled [class*="success" i],
html[data-theme] .fs-nexus-enabled [class*="executed" i]{
  color:var(--fs-status-success-text)!important;
  background-color:var(--fs-status-success-bg)!important;
  border-color:color-mix(in srgb,var(--fs-status-success-bg) 70%,#fff 30%)!important;
}
html[data-theme] .fs-nexus-enabled .warning,
html[data-theme] .fs-nexus-enabled [class*="pending" i],
html[data-theme] .fs-nexus-enabled [class*="warning" i]{
  color:var(--fs-status-warning-text)!important;
  background-color:var(--fs-status-warning-bg)!important;
  border-color:color-mix(in srgb,var(--fs-status-warning-bg) 70%,#000 30%)!important;
}
html[data-theme] .fs-nexus-enabled .error,
html[data-theme] .fs-nexus-enabled .danger,
html[data-theme] .fs-nexus-enabled [class*="error" i],
html[data-theme] .fs-nexus-enabled [class*="reject" i]{
  color:var(--fs-status-danger-text)!important;
}

/* Some existing cards use inline colors; this protects text on dark/elevated panels without modifying logic. */
html[data-theme] .fs-nexus-enabled [style*="background:#000"],
html[data-theme] .fs-nexus-enabled [style*="background: #000"],
html[data-theme] .fs-nexus-enabled [style*="background-color:#000"],
html[data-theme] .fs-nexus-enabled [style*="background-color: #000"],
html[data-theme] .fs-nexus-enabled [style*="background: black"],
html[data-theme] .fs-nexus-enabled [style*="background-color: black"]{
  color:#ffffff!important;
}
html[data-theme] .fs-nexus-enabled [style*="background:#fff"],
html[data-theme] .fs-nexus-enabled [style*="background: #fff"],
html[data-theme] .fs-nexus-enabled [style*="background-color:#fff"],
html[data-theme] .fs-nexus-enabled [style*="background-color: #fff"],
html[data-theme] .fs-nexus-enabled [style*="background: white"],
html[data-theme] .fs-nexus-enabled [style*="background-color: white"]{
  color:#0f172a!important;
}

/* Keyboard/focus accessibility */
html[data-theme] .fs-nexus-enabled button:focus-visible,
html[data-theme] .fs-nexus-enabled a:focus-visible,
html[data-theme] .fs-nexus-enabled input:focus-visible,
html[data-theme] .fs-nexus-enabled select:focus-visible,
html[data-theme] .fs-nexus-enabled textarea:focus-visible{
  outline:3px solid var(--fs-outline)!important;
  outline-offset:2px!important;
  box-shadow:0 0 0 5px color-mix(in srgb,var(--fs-outline) 25%,transparent)!important;
}


html[data-theme="light"],
html[data-theme="enterprise-insight"]{
  --fs-readable-on-light:#0b1220;
  --fs-readable-muted-on-light:#334155;
  --fs-readable-success:#065f46;
  --fs-readable-success-bg:#d1fae5;
  --fs-readable-success-border:#059669;
  --fs-readable-action-bg:#0f2a55;
  --fs-readable-action-text:#ffffff;
  --fs-readable-tab-bg:#e8f1fb;
  --fs-readable-tab-text:#0f172a;
  --fs-readable-tab-border:#7aa7d9;
}

/* Light themes: do not allow dark/navy button backgrounds to keep dark inherited text. */
html[data-theme="light"] .fs-nexus-enabled button,
html[data-theme="light"] .fs-nexus-enabled .btn,
html[data-theme="light"] .fs-nexus-enabled a.btn,
html[data-theme="light"] .fs-nexus-enabled .fs-btn,
html[data-theme="light"] .fs-nexus-enabled [role="button"],
html[data-theme="enterprise-insight"] .fs-nexus-enabled button,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .btn,
html[data-theme="enterprise-insight"] .fs-nexus-enabled a.btn,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .fs-btn,
html[data-theme="enterprise-insight"] .fs-nexus-enabled [role="button"]{
  background:var(--fs-readable-action-bg)!important;
  color:var(--fs-readable-action-text)!important;
  border-color:#315f9a!important;
  text-shadow:none!important;
}
html[data-theme="light"] .fs-nexus-enabled button *,
html[data-theme="light"] .fs-nexus-enabled .btn *,
html[data-theme="light"] .fs-nexus-enabled a.btn *,
html[data-theme="light"] .fs-nexus-enabled .fs-btn *,
html[data-theme="enterprise-insight"] .fs-nexus-enabled button *,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .btn *,
html[data-theme="enterprise-insight"] .fs-nexus-enabled a.btn *,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .fs-btn *{
  color:inherit!important;
}

/* Marketing/authority pills in light themes were dark blue with dark text. */
html[data-theme="light"] .fs-nexus-enabled .fs-pill,
html[data-theme="light"] .fs-nexus-enabled .pill,
html[data-theme="light"] .fs-nexus-enabled .badge,
html[data-theme="light"] .fs-nexus-enabled .status-badge,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .fs-pill,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .pill,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .badge,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .status-badge{
  background:#0f2a55!important;
  color:#ffffff!important;
  border-color:#315f9a!important;
}
html[data-theme="light"] .fs-nexus-enabled .fs-pill *,
html[data-theme="light"] .fs-nexus-enabled .pill *,
html[data-theme="light"] .fs-nexus-enabled .badge *,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .fs-pill *,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .pill *,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .badge *{
  color:#ffffff!important;
}

/* Workspace tabs in Light/Enterprise Insight: readable dark text on pale tabs; active tab still obvious. */
html[data-theme="light"] .fs-nexus-enabled .workspace-tab,
html[data-theme="light"] .fs-nexus-enabled .admin-tab-btn,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .workspace-tab,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .admin-tab-btn{
  background:var(--fs-readable-tab-bg)!important;
  color:var(--fs-readable-tab-text)!important;
  border-color:var(--fs-readable-tab-border)!important;
  box-shadow:0 8px 20px rgba(15,42,85,.10)!important;
}
html[data-theme="light"] .fs-nexus-enabled .workspace-tab *,
html[data-theme="light"] .fs-nexus-enabled .admin-tab-btn *,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .workspace-tab *,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .admin-tab-btn *{
  color:var(--fs-readable-tab-text)!important;
}
html[data-theme="light"] .fs-nexus-enabled .workspace-tab.active,
html[data-theme="light"] .fs-nexus-enabled .admin-tab-btn.active,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .workspace-tab.active,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .admin-tab-btn.active{
  background:linear-gradient(135deg,#d7ecff,#c8f3ee)!important;
  color:#07111f!important;
  border-color:#2563eb!important;
  outline:2px solid #2563eb!important;
}
html[data-theme="light"] .fs-nexus-enabled .workspace-tab::before,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .workspace-tab::before{
  background:#ffffff!important;
  color:#0f172a!important;
  border-color:#7aa7d9!important;
}

/* Plain green success/status text on white was too low contrast. Keep badges readable too. */
html[data-theme="light"] .fs-nexus-enabled .ok,
html[data-theme="light"] .fs-nexus-enabled .success,
html[data-theme="light"] .fs-nexus-enabled [class*="success" i],
html[data-theme="light"] .fs-nexus-enabled [class*="executed" i],
html[data-theme="enterprise-insight"] .fs-nexus-enabled .ok,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .success,
html[data-theme="enterprise-insight"] .fs-nexus-enabled [class*="success" i],
html[data-theme="enterprise-insight"] .fs-nexus-enabled [class*="executed" i]{
  color:#ffffff!important;
  background-color:var(--fs-readable-success)!important;
  border-color:var(--fs-readable-success-border)!important;
}
html[data-theme="light"] .fs-nexus-enabled td .ok,
html[data-theme="light"] .fs-nexus-enabled td .success,
html[data-theme="enterprise-insight"] .fs-nexus-enabled td .ok,
html[data-theme="enterprise-insight"] .fs-nexus-enabled td .success{
  color:#ffffff!important;
}
/* Inline style success text cannot stay neon green on white. */
html[data-theme="light"] .fs-nexus-enabled [style*="color:#00"],
html[data-theme="light"] .fs-nexus-enabled [style*="color: #00"],
html[data-theme="light"] .fs-nexus-enabled [style*="color:lime"],
html[data-theme="light"] .fs-nexus-enabled [style*="color: lime"],
html[data-theme="enterprise-insight"] .fs-nexus-enabled [style*="color:#00"],
html[data-theme="enterprise-insight"] .fs-nexus-enabled [style*="color: #00"],
html[data-theme="enterprise-insight"] .fs-nexus-enabled [style*="color:lime"],
html[data-theme="enterprise-insight"] .fs-nexus-enabled [style*="color: lime"]{
  color:var(--fs-readable-success)!important;
  background:transparent!important;
}

/* Tables and small text in pale themes: keep enough contrast. */
html[data-theme="light"] .fs-nexus-enabled td,
html[data-theme="light"] .fs-nexus-enabled th,
html[data-theme="light"] .fs-nexus-enabled label,
html[data-theme="light"] .fs-nexus-enabled p,
html[data-theme="enterprise-insight"] .fs-nexus-enabled td,
html[data-theme="enterprise-insight"] .fs-nexus-enabled th,
html[data-theme="enterprise-insight"] .fs-nexus-enabled label,
html[data-theme="enterprise-insight"] .fs-nexus-enabled p{
  color:var(--fs-readable-on-light)!important;
}
html[data-theme="light"] .fs-nexus-enabled .small,
html[data-theme="light"] .fs-nexus-enabled small,
html[data-theme="light"] .fs-nexus-enabled .fs-muted,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .small,
html[data-theme="enterprise-insight"] .fs-nexus-enabled small,
html[data-theme="enterprise-insight"] .fs-nexus-enabled .fs-muted{
  color:var(--fs-readable-muted-on-light)!important;
}

/* Links that look like buttons should stay legible. */
html[data-theme="light"] .fs-nexus-enabled a:not(.fs-nexus-nav a):not(.btn):not(.fs-btn),
html[data-theme="enterprise-insight"] .fs-nexus-enabled a:not(.fs-nexus-nav a):not(.btn):not(.fs-btn){
  color:#0f4fbf!important;
}



html[data-theme="light"] .chip,
html[data-theme="enterprise-insight"] .chip,
html[data-theme="light"] .chips .chip,
html[data-theme="enterprise-insight"] .chips .chip {
  background:#0f2a55 !important;
  color:#ffffff !important;
  border:1px solid #315f9a !important;
  text-shadow:none !important;
}
html[data-theme="light"] .chip *,
html[data-theme="enterprise-insight"] .chip * {
  color:#ffffff !important;
}

/* Distributor/admin guided workflow tabs in pale themes */
html[data-theme="light"] .workspace-tabs,
html[data-theme="enterprise-insight"] .workspace-tabs,
html[data-theme="light"] .admin-tab-shell,
html[data-theme="enterprise-insight"] .admin-tab-shell {
  background:#eef5fb !important;
  border-color:#91b7d4 !important;
  color:#0b1220 !important;
}
html[data-theme="light"] .workspace-tab,
html[data-theme="enterprise-insight"] .workspace-tab,
html[data-theme="light"] .admin-tab-btn,
html[data-theme="enterprise-insight"] .admin-tab-btn {
  background:#e3eef7 !important;
  color:#0b1220 !important;
  border:1px solid #6f9fc1 !important;
  text-shadow:none !important;
  opacity:1 !important;
}
html[data-theme="light"] .workspace-tab *,
html[data-theme="enterprise-insight"] .workspace-tab *,
html[data-theme="light"] .admin-tab-btn *,
html[data-theme="enterprise-insight"] .admin-tab-btn * {
  color:#0b1220 !important;
  text-shadow:none !important;
}
html[data-theme="light"] .workspace-tab::before,
html[data-theme="enterprise-insight"] .workspace-tab::before,
html[data-theme="light"] .admin-tab-btn::before,
html[data-theme="enterprise-insight"] .admin-tab-btn::before {
  background:#ffffff !important;
  color:#0b1220 !important;
  border-color:#6f9fc1 !important;
  text-shadow:none !important;
}
html[data-theme="light"] .workspace-tab::after,
html[data-theme="enterprise-insight"] .workspace-tab::after {
  color:#334155 !important;
  opacity:.9 !important;
}
html[data-theme="light"] .workspace-tab.active,
html[data-theme="enterprise-insight"] .workspace-tab.active,
html[data-theme="light"] .admin-tab-btn.active,
html[data-theme="enterprise-insight"] .admin-tab-btn.active {
  background:linear-gradient(135deg,#c7e8ff,#b7f1e8) !important;
  color:#05111f !important;
  border-color:#2563eb !important;
  outline:2px solid #2563eb !important;
  box-shadow:0 0 0 3px rgba(37,99,235,.14),0 14px 32px rgba(15,42,85,.16) !important;
}
html[data-theme="light"] .workspace-tab.active *,
html[data-theme="enterprise-insight"] .workspace-tab.active *,
html[data-theme="light"] .admin-tab-btn.active *,
html[data-theme="enterprise-insight"] .admin-tab-btn.active * {
  color:#05111f !important;
}

/* Direct button protection for older page-local CSS buttons outside .fs-nexus-enabled */
html[data-theme="light"] body button,
html[data-theme="enterprise-insight"] body button,
html[data-theme="light"] body .btn,
html[data-theme="enterprise-insight"] body .btn {
  color:#ffffff !important;
  text-shadow:none !important;
}
html[data-theme="light"] body button.secondary,
html[data-theme="enterprise-insight"] body button.secondary {
  background:#0f2a55 !important;
  color:#ffffff !important;
  border-color:#315f9a !important;
}

/* Direct success and warning readability on white/pale surfaces */
html[data-theme="light"] .success,
html[data-theme="enterprise-insight"] .success,
html[data-theme="light"] .ok,
html[data-theme="enterprise-insight"] .ok {
  color:#065f46 !important;
  background:transparent !important;
  text-shadow:none !important;
}
html[data-theme="light"] .badge.success,
html[data-theme="enterprise-insight"] .badge.success,
html[data-theme="light"] .pill.success,
html[data-theme="enterprise-insight"] .pill.success,
html[data-theme="light"] .status-badge.success,
html[data-theme="enterprise-insight"] .status-badge.success {
  background:#065f46 !important;
  color:#ffffff !important;
  border-color:#059669 !important;
}
html[data-theme="light"] .warn,
html[data-theme="enterprise-insight"] .warn,
html[data-theme="light"] .warning,
html[data-theme="enterprise-insight"] .warning {
  color:#7c2d12 !important;
  background:transparent !important;
  text-shadow:none !important;
}

/* Hero/header text in pale themes */
html[data-theme="light"] .hero,
html[data-theme="enterprise-insight"] .hero,
html[data-theme="light"] .card,
html[data-theme="enterprise-insight"] .card {
  color:#0b1220 !important;
}
html[data-theme="light"] .hero h1,
html[data-theme="enterprise-insight"] .hero h1,
html[data-theme="light"] .hero p,
html[data-theme="enterprise-insight"] .hero p,
html[data-theme="light"] .card h1,
html[data-theme="enterprise-insight"] .card h1,
html[data-theme="light"] .card h2,
html[data-theme="enterprise-insight"] .card h2,
html[data-theme="light"] .card h3,
html[data-theme="enterprise-insight"] .card h3,
html[data-theme="light"] .card p,
html[data-theme="enterprise-insight"] .card p {
  color:#0b1220 !important;
  text-shadow:none !important;
}


html[data-theme="light"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab:not(.active),
html[data-theme="enterprise-insight"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab:not(.active),
body.theme-light.fs-nexus-enabled .workspace-tabs button.workspace-tab:not(.active) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.42) !important;
}
html[data-theme="light"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab:not(.active)::after,
html[data-theme="enterprise-insight"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab:not(.active)::after,
body.theme-light.fs-nexus-enabled .workspace-tabs button.workspace-tab:not(.active)::after {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: .95 !important;
}
html[data-theme="light"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab:not(.active) *,
html[data-theme="enterprise-insight"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab:not(.active) *,
body.theme-light.fs-nexus-enabled .workspace-tabs button.workspace-tab:not(.active) * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="light"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab.active,
html[data-theme="enterprise-insight"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab.active,
body.theme-light.fs-nexus-enabled .workspace-tabs button.workspace-tab.active {
  color: #071827 !important;
  -webkit-text-fill-color: #071827 !important;
  text-shadow: none !important;
}
html[data-theme="light"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab.active::after,
html[data-theme="enterprise-insight"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab.active::after,
body.theme-light.fs-nexus-enabled .workspace-tabs button.workspace-tab.active::after {
  color: #071827 !important;
  -webkit-text-fill-color: #071827 !important;
}
html[data-theme="light"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab::before,
html[data-theme="enterprise-insight"] body.fs-nexus-enabled .workspace-tabs button.workspace-tab::before,
body.theme-light.fs-nexus-enabled .workspace-tabs button.workspace-tab::before {
  color: #071827 !important;
  -webkit-text-fill-color: #071827 !important;
  text-shadow: none !important;
}



:root {
    --fs-accent-glow: color-mix(in srgb, var(--fs-accent, #4f8cff) 55%, transparent);
}

.fs-accent-live,
.support-ai-sticky,
.support-ai-bar,
.support-privacy-bar,
.support-now,
a[href*="support-private-ai"],
button[data-revenue-action],
.revenue-cta,
.cta-support {
    position: relative;
    isolation: isolate;
}

.support-ai-sticky::before,
.support-ai-bar::before,
.support-privacy-bar::before,
.revenue-cta::before,
.cta-support::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.18) 45%, transparent 70%);
    transform: translateX(-120%);
    animation: fsAccentSweep 7s ease-in-out infinite;
    z-index: -1;
}

.support-now,
a[href*="support-private-ai"].support-now,
button[data-revenue-action] {
    animation: fsCtaBreath 3.8s ease-in-out infinite;
}

@keyframes fsAccentSweep {
    0%, 42% { transform: translateX(-120%); opacity: 0; }
    48% { opacity: .75; }
    63% { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(120%); opacity: 0; }
}

@keyframes fsCtaBreath {
    0%, 100% { box-shadow: 0 0 0 0 var(--fs-accent-glow); transform: translateY(0); }
    50% { box-shadow: 0 0 0 5px transparent; transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
    .support-ai-sticky::before,
    .support-ai-bar::before,
    .support-privacy-bar::before,
    .revenue-cta::before,
    .cta-support::before,
    .support-now,
    a[href*="support-private-ai"].support-now,
    button[data-revenue-action] {
        animation: none !important;
    }
}



:root{
  --fs-dynamic-accent: var(--fs-accent, #4e8cff);
  --fs-dynamic-accent-2: var(--fs-accent-2, #00b894);
  --fs-dynamic-warm: #ffd166;
  --fs-dynamic-cool: #70e0d6;
  --fs-dynamic-violet: #a78bfa;
}

/* Local-time accent moods. These do not change the chosen theme. */
html.fs-accent-morning{
  --fs-dynamic-accent: color-mix(in srgb, var(--fs-accent, #4e8cff) 72%, #70e0d6 28%);
  --fs-dynamic-accent-2: color-mix(in srgb, var(--fs-accent-2, #00b894) 70%, #ffd166 30%);
}
html.fs-accent-afternoon{
  --fs-dynamic-accent: color-mix(in srgb, var(--fs-accent, #4e8cff) 74%, #ffd166 26%);
  --fs-dynamic-accent-2: color-mix(in srgb, var(--fs-accent-2, #00b894) 76%, #4e8cff 24%);
}
html.fs-accent-evening{
  --fs-dynamic-accent: color-mix(in srgb, var(--fs-accent, #4e8cff) 68%, #a78bfa 32%);
  --fs-dynamic-accent-2: color-mix(in srgb, var(--fs-accent-2, #00b894) 62%, #6aa3ff 38%);
}
html.fs-accent-night{
  --fs-dynamic-accent: color-mix(in srgb, var(--fs-accent, #4e8cff) 78%, #70e0d6 22%);
  --fs-dynamic-accent-2: color-mix(in srgb, var(--fs-accent-2, #00b894) 54%, #a78bfa 46%);
}

/* Broad timezone region adds a tiny flavor to the accent only. */
html.fs-region-americas{ --fs-region-accent: #6aa3ff; }
html.fs-region-emea{ --fs-region-accent: #f5c556; }
html.fs-region-apac{ --fs-region-accent: #70e0d6; }
html.fs-region-global{ --fs-region-accent: var(--fs-dynamic-accent); }

.fs-global-support-bar{
  background:
    radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--fs-region-accent) 30%, transparent), transparent 22%),
    radial-gradient(circle at 88% 50%, color-mix(in srgb, var(--fs-dynamic-accent-2) 24%, transparent), transparent 22%),
    linear-gradient(90deg,
      color-mix(in srgb, var(--fs-dynamic-accent) 30%, var(--fs-header-bg)),
      color-mix(in srgb, var(--fs-dynamic-accent-2) 28%, var(--fs-header-bg)),
      color-mix(in srgb, var(--fs-region-accent) 24%, var(--fs-header-bg)),
      color-mix(in srgb, var(--fs-dynamic-accent) 30%, var(--fs-header-bg))) !important;
  background-size: 320% 100% !important;
  animation: fsSupportBarFlow 8s ease-in-out infinite, fsLock90PremiumLift 5s ease-in-out infinite !important;
}

/* A premium light rail behind the CTA; restrained, not gimmicky. */
.fs-global-support-bar::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:min(520px,70vw);
  transform:translateX(-50%);
  pointer-events:none;
  background:radial-gradient(ellipse at center, color-mix(in srgb, var(--fs-dynamic-accent) 20%, transparent), transparent 70%);
  opacity:.85;
  filter:blur(8px);
}

.fs-global-support-content{
  backdrop-filter: saturate(1.12);
}

.fs-global-support-text strong{
  animation: fsSupportTextBreathe 2.9s ease-in-out infinite, fsLock90TextMicroGlow 6s ease-in-out infinite !important;
}

.fs-global-support-action{
  background:
    linear-gradient(135deg,
      var(--fs-support-bar-btn-bg),
      color-mix(in srgb, var(--fs-support-bar-btn-bg) 72%, var(--fs-dynamic-accent) 28%)) !important;
  outline: 1px solid color-mix(in srgb, var(--fs-dynamic-accent) 30%, transparent);
  animation: fsSupportButtonPulse 2.25s ease-in-out infinite, fsLock90ButtonFloat 4s ease-in-out infinite !important;
}

.fs-global-support-content:hover .fs-global-support-action{
  transform: translateY(-1px) scale(1.045) !important;
}

/* Small contextual label for diagnostics/accessibility; hidden visually but available if needed. */
.fs-global-support-content::after{
  content: attr(data-accent-context);
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
}

@keyframes fsLock90PremiumLift{
  0%,100%{ box-shadow:0 10px 26px color-mix(in srgb,var(--fs-dynamic-accent) 16%,transparent); }
  50%{ box-shadow:0 14px 38px color-mix(in srgb,var(--fs-dynamic-accent-2) 26%,transparent); }
}
@keyframes fsLock90TextMicroGlow{
  0%,100%{ text-shadow:0 1px 1px rgba(0,0,0,.25), 0 0 0 transparent; }
  50%{ text-shadow:0 1px 1px rgba(0,0,0,.25), 0 0 16px color-mix(in srgb,var(--fs-dynamic-accent) 36%,transparent); }
}
@keyframes fsLock90ButtonFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-1px); }
}

/* Keep light backgrounds readable and dark backgrounds premium. */
html[data-theme="light"] .fs-global-support-content,
html[data-theme="enterprise-insight"] .fs-global-support-content{
  text-shadow:none !important;
}
html[data-theme="light"] .fs-global-support-text strong,
html[data-theme="light"] .fs-global-support-text span,
html[data-theme="enterprise-insight"] .fs-global-support-text strong,
html[data-theme="enterprise-insight"] .fs-global-support-text span{
  text-shadow:none !important;
}

/* Motion is always optional for accessibility. */
@media (prefers-reduced-motion: reduce){
  .fs-global-support-bar,
  .fs-global-support-bar::before,
  .fs-global-support-bar::after,
  .fs-global-support-text strong,
  .fs-global-support-action,
  .fs-global-support-pulse{
    animation:none !important;
    transition:none !important;
  }
}


@media (max-width:760px){
  .fs-global-support-bar::after{
    width: 78vw;
    opacity:.65;
  }
  .fs-global-support-action{
    animation: fsSupportButtonPulse 2.8s ease-in-out infinite !important;
  }
}



.fs-theme-preview-modal{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:grid;
    place-items:center;
    padding:24px;
    background:rgba(2,8,18,.72);
    backdrop-filter:blur(18px);
}
.fs-theme-preview-shell{
    width:min(1040px,96vw);
    max-height:92vh;
    overflow:auto;
    border:1px solid var(--fs-border-strong);
    border-radius:28px;
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb,var(--fs-accent) 18%,transparent), transparent 34%),
        linear-gradient(145deg,var(--fs-surface),var(--fs-card-bg));
    color:var(--fs-text-primary);
    box-shadow:0 28px 80px rgba(0,0,0,.48);
}
.fs-theme-preview-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    padding:28px 30px 18px;
    border-bottom:1px solid var(--fs-border);
}
.fs-theme-preview-kicker{
    display:inline-flex;
    margin-bottom:8px;
    color:var(--fs-accent);
    font-weight:850;
    font-size:12px;
    letter-spacing:.14em;
    text-transform:uppercase;
}
.fs-theme-preview-head h2{
    margin:0 0 8px;
    font-size:clamp(26px,3vw,40px);
    line-height:1.05;
}
.fs-theme-preview-head p{
    margin:0;
    max-width:660px;
    color:var(--fs-text-secondary);
    font-size:16px;
}
.fs-theme-preview-close{
    flex:0 0 auto;
    width:42px;
    height:42px;
    border-radius:14px;
    border:1px solid var(--fs-border);
    background:var(--fs-secondary-btn-bg);
    color:var(--fs-secondary-btn-text);
    font-size:28px;
    line-height:1;
    cursor:pointer;
}
.fs-theme-preview-stage{ padding:22px 30px 10px; }
.fs-theme-preview-dashboard{
    border:1px solid var(--fs-border);
    border-radius:24px;
    padding:18px;
    background:linear-gradient(145deg,var(--fs-bg-secondary),var(--fs-surface-2));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 18px 42px var(--fs-shadow);
}
.fs-theme-preview-topline{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
    color:var(--fs-text-secondary);
}
.fs-theme-preview-topline strong{
    margin-left:auto;
    padding:8px 12px;
    border-radius:999px;
    background:color-mix(in srgb,var(--fs-accent) 18%,transparent);
    color:var(--fs-accent);
    border:1px solid color-mix(in srgb,var(--fs-accent) 38%,transparent);
}
.fs-theme-preview-logo{
    width:38px;
    height:38px;
    border-radius:13px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--fs-accent),var(--fs-accent-2));
    color:var(--fs-accent-contrast);
    font-weight:900;
}
.fs-theme-preview-grid{
    display:grid;
    grid-template-columns:190px 1fr;
    gap:16px;
    min-height:210px;
}
.fs-theme-preview-grid aside,
.fs-theme-preview-grid main{
    border-radius:20px;
    border:1px solid var(--fs-border);
    background:color-mix(in srgb,var(--fs-card-bg) 88%,transparent);
}
.fs-theme-preview-grid aside{
    padding:16px;
    display:grid;
    gap:12px;
    align-content:start;
}
.fs-theme-preview-grid aside span{
    display:block;
    height:18px;
    border-radius:999px;
    background:color-mix(in srgb,var(--fs-text-secondary) 20%,transparent);
}
.fs-theme-preview-grid aside span:first-child{
    background:linear-gradient(90deg,var(--fs-accent),var(--fs-accent-2));
}
.fs-theme-preview-grid main{
    padding:16px;
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:14px;
}
.fs-theme-preview-card{
    min-height:82px;
    border-radius:18px;
    border:1px solid var(--fs-border);
    background:linear-gradient(145deg,var(--fs-surface),var(--fs-card-bg));
}
.fs-theme-preview-card.large{ grid-row:span 2; min-height:180px; }
.fs-theme-preview-card.accent{ background:linear-gradient(135deg,var(--fs-accent),var(--fs-accent-2)); }
.fs-theme-preview-progress{
    height:4px;
    margin:0 30px 20px;
    overflow:hidden;
    border-radius:999px;
    background:color-mix(in srgb,var(--fs-border-strong) 45%,transparent);
}
.fs-theme-preview-progress span{
    display:block;
    height:100%;
    width:0;
    border-radius:999px;
    background:linear-gradient(90deg,var(--fs-accent),var(--fs-accent-2));
}
@keyframes fsThemePreviewProgress{ from{width:0;} to{width:100%;} }
.fs-theme-card-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    padding:0 30px 22px;
}
.fs-theme-card{
    text-align:left;
    border:1px solid var(--fs-border);
    border-radius:20px;
    padding:14px;
    background:color-mix(in srgb,var(--fs-card-bg) 92%,transparent);
    color:var(--fs-text-primary);
    cursor:pointer;
    transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fs-theme-card:hover,
.fs-theme-card.active{
    transform:translateY(-2px);
    border-color:var(--fs-accent);
    box-shadow:0 14px 32px var(--fs-shadow);
}
.fs-theme-card strong{ display:block; margin-top:10px; font-size:15px; }
.fs-theme-card small{ display:block; margin-top:5px; color:var(--fs-text-secondary); line-height:1.35; }
.fs-theme-swatch{
    display:block;
    height:46px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.18);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.fs-theme-swatch[data-theme-swatch="sovereign-blue"]{background:linear-gradient(135deg,#061426,#5b9bff 58%,#32d6c2);}
.fs-theme-swatch[data-theme-swatch="executive-slate"]{background:linear-gradient(135deg,#0b1118,#17212f 58%,#9bb7ff);}
.fs-theme-swatch[data-theme-swatch="enterprise-insight"]{background:linear-gradient(135deg,#f3f9fb,#ffffff 58%,#0a5b78);}
.fs-theme-swatch[data-theme-swatch="cyber-defense"]{background:linear-gradient(135deg,#02052d,#08114a 58%,#ffd400);}
.fs-theme-swatch[data-theme-swatch="secure-emerald"]{background:linear-gradient(135deg,#041711,#0b2e23 58%,#65e6ad);}
.fs-theme-swatch[data-theme-swatch="boardroom-gold"]{background:linear-gradient(135deg,#141006,#2d220d 58%,#f5c556);}
.fs-theme-preview-actions{
    display:flex;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:12px;
    padding:18px 30px 28px;
    border-top:1px solid var(--fs-border);
}
.fs-theme-preview-actions .fs-btn{
    min-height:44px;
    border-radius:14px;
    padding:0 18px;
    font-weight:800;
    cursor:pointer;
    border:1px solid var(--fs-border);
}
.fs-theme-preview-actions .fs-btn.primary{
    background:linear-gradient(135deg,var(--fs-accent),var(--fs-accent-2));
    color:var(--fs-accent-contrast);
    border-color:transparent;
}
.fs-theme-preview-actions .fs-btn.secondary{
    background:var(--fs-secondary-btn-bg);
    color:var(--fs-secondary-btn-text);
}
.fs-theme-preview-actions .fs-btn.ghost{
    background:transparent;
    color:var(--fs-text-secondary);
}
@media (max-width:760px){
    .fs-theme-preview-modal{padding:12px;align-items:start;overflow:auto;}
    .fs-theme-preview-shell{max-height:none;margin:12px 0;}
    .fs-theme-preview-head{padding:22px 18px 14px;}
    .fs-theme-preview-stage{padding:16px 18px 8px;}
    .fs-theme-preview-grid{grid-template-columns:1fr;}
    .fs-theme-preview-grid aside{display:none;}
    .fs-theme-preview-grid main{grid-template-columns:1fr;}
    .fs-theme-preview-card.large{grid-row:auto;min-height:120px;}
    .fs-theme-card-grid{grid-template-columns:1fr;padding:0 18px 18px;}
    .fs-theme-preview-progress{margin:0 18px 16px;}
    .fs-theme-preview-actions{padding:16px 18px 22px;justify-content:stretch;}
    .fs-theme-preview-actions .fs-btn{width:100%;}
}
@media (prefers-reduced-motion:reduce){
    .fs-theme-card{transition:none;}
    .fs-theme-preview-progress span{animation:none !important;width:100% !important;}
}



.fs-public-discovery-hub{margin:34px auto;padding:0 18px;max-width:1180px}
.fs-public-discovery-inner{border:1px solid rgba(255,255,255,.16);border-radius:22px;padding:26px;background:linear-gradient(135deg,rgba(37,169,224,.14),rgba(142,230,168,.08));box-shadow:0 18px 45px rgba(0,0,0,.18)}
.fs-public-kicker{display:inline-block;font-size:12px;text-transform:uppercase;letter-spacing:.16em;color:#8ee6a8;font-weight:800}
.fs-public-discovery-inner h2{margin:8px 0 8px;font-size:clamp(24px,3vw,38px);line-height:1.12}
.fs-public-discovery-inner p{color:rgba(232,242,255,.82);max-width:880px}
.fs-public-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:16px}
.fs-public-link-grid a{display:block;border:1px solid rgba(255,255,255,.14);border-radius:15px;padding:15px;background:rgba(255,255,255,.075);color:#eef6ff;text-decoration:none}
.fs-public-link-grid a:hover{transform:translateY(-1px);background:rgba(255,255,255,.115);text-decoration:none}
.fs-public-link-grid strong{display:block;font-size:16px}.fs-public-link-grid span{display:block;color:rgba(216,230,247,.76);font-size:13px;margin-top:3px}
