
/*
FutureScope Nexus LOCK 12 — Unified Theme Runtime & Button System Fix
© 2026 FutureScope Systems, Inc. All Rights Reserved.
Confidential & Proprietary.
FSN-LOCK12-UX-PROVENANCE: THEME-BUTTON-CONSOLIDATED-2026
*/

: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;
}

/* Hide legacy website theme controls. Lock 12 keeps one theme selector only. */
.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;
}

/* Lock 12 button system: no more blanket gradient on every button. */
.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; }
}


/* LOCK31M — Global Enterprise Theme Expansion + Consistent Portal Controls */
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}


/* LOCK31N — Logo rendering + legal-first distributor workflow polish */
.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}
/* Hide older numeric span if a prior lock inserted one; the new CSS numbering is legal-first. */
.workspace-tab .step-num,.workspace-tab .workflow-num,.workspace-tab > .num{display:none!important}

/* LOCK31Q — Enterprise UX & Theme Contrast Stabilization
   Cosmetic-only safety layer. Preserves all workflows and backend behavior. */
: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;
}

/* LOCK31Q1 — Light/Enterprise Insight targeted contrast hotfix
   Cosmetic only. Preserves all workflows and backend behavior. */
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;
}


/* LOCK31Q2 — Light / Enterprise Insight direct portal contrast hotfix
   Cosmetic only. Fixes distributor portal tabs/chips that live outside .fs-nexus-enabled wrappers. */
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;
}

/* LOCK31Q5 — Distributor workspace tab text visibility fix only.
   Scope: Light + Enterprise Insight themes, distributor workspace tabs only.
   Issue: inactive tab buttons use dark teal/navy backgrounds but inherited dark text.
   Fix: force inactive tab labels/arrows to white while preserving active tab dark text. */
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;
}
