/* ============================================================
   BRIOUX SOFTWARE UI FOUNDATION V1
   Dark surfaces. Silver structure. Precision magenta signal.
   Masculine structure + feminine refinement.
   ============================================================ */

:root {
    --brx-black: #050507;
    --brx-black-deep: #020203;
    --brx-charcoal: #0b0b10;
    --brx-graphite: #131319;
    --brx-graphite-2: #1a1a21;
    --brx-panel: #111117;
    --brx-panel-raised: #18181f;

    --brx-silver: #d7d7dc;
    --brx-silver-mid: #a9a9b2;
    --brx-silver-muted: #777782;
    --brx-white: #f5f5f7;

    --brx-magenta: #FF2B86;
    --brx-magenta-bright: #ff2b92;
    --brx-magenta-deep: #a50050;
    --brx-magenta-soft: rgba(255, 43, 134, 0.12);
    --brx-magenta-glow: rgba(255, 43, 134, 0.30);

    --brx-success: #4ac78e;
    --brx-warning: #e8b95f;
    --brx-danger: #f16b78;
    --brx-info: #8ba8ff;

    --brx-border: rgba(211, 211, 220, 0.16);
    --brx-border-strong: rgba(211, 211, 220, 0.28);
    --brx-border-magenta: rgba(255, 43, 134, 0.55);

    --brx-shadow-panel:
        0 18px 48px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    --brx-shadow-focus:
        0 0 0 1px rgba(255, 43, 134, 0.52),
        0 0 22px rgba(255, 43, 134, 0.18);

    --brx-radius-sm: 6px;
    --brx-radius-md: 10px;
    --brx-radius-lg: 14px;
}


/* ============================================================
   EXECUTIVE EXPERIENCE SURFACE
   ============================================================ */

body.brioux-executive-ui {
    background:
        radial-gradient(
            circle at 85% -10%,
            rgba(255, 43, 134, 0.09),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            var(--brx-black-deep) 0%,
            var(--brx-charcoal) 44%,
            #09090d 100%
        ) !important;

    color: var(--brx-silver) !important;
    min-height: 100vh;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

body.brioux-executive-ui h1,
body.brioux-executive-ui h2,
body.brioux-executive-ui h3,
body.brioux-executive-ui h4,
body.brioux-executive-ui .section-title {
    color: var(--brx-white) !important;
    letter-spacing: 0.01em;
}

body.brioux-executive-ui p,
body.brioux-executive-ui label,
body.brioux-executive-ui .text-muted {
    color: var(--brx-silver-mid);
}


/* ============================================================
   PRIMARY HEADER
   ============================================================ */

body.brioux-executive-ui .global-header {
    background:
        linear-gradient(
            180deg,
            rgba(18, 18, 24, 0.98),
            rgba(7, 7, 10, 0.98)
        ) !important;

    border-bottom: 1px solid var(--brx-border-strong) !important;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.34),
        0 1px 0 rgba(255, 43, 134, 0.16);

    color: var(--brx-silver);
}

body.brioux-executive-ui .logo-area {
    color: var(--brx-white) !important;
}


/* ============================================================
   SECONDARY NAVIGATION
   ============================================================ */

body.brioux-executive-ui .sub-nav {
    background:
        linear-gradient(
            180deg,
            #111117 0%,
            #0b0b0f 100%
        ) !important;

    border-bottom: 1px solid var(--brx-border) !important;
}

body.brioux-executive-ui .sub-nav-item {
    color: var(--brx-silver-mid) !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
}

body.brioux-executive-ui .sub-nav-item:hover {
    color: var(--brx-white) !important;
    background: rgba(255, 255, 255, 0.025) !important;
}

body.brioux-executive-ui .sub-nav-item.active {
    color: var(--brx-white) !important;
    border-bottom-color: var(--brx-magenta) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 43, 134, 0.00),
            rgba(255, 43, 134, 0.09)
        ) !important;

    box-shadow:
        inset 0 -1px 0 rgba(255, 43, 134, 0.8);
}


/* ============================================================
   PAGE / WORKSPACE SURFACES
   ============================================================ */

body.brioux-executive-ui main,
body.brioux-executive-ui .dashboard-container,
body.brioux-executive-ui .dashboard-content,
body.brioux-executive-ui .content-area,
body.brioux-executive-ui .main-content {
    background: transparent !important;
    color: var(--brx-silver);
}


/* ============================================================
   PANELS / CARDS
   ============================================================ */

body.brioux-executive-ui .card,
body.brioux-executive-ui .panel,
body.brioux-executive-ui .dashboard-card,
body.brioux-executive-ui .metric-card,
body.brioux-executive-ui .stat-card,
body.brioux-executive-ui .chart-card,
body.brioux-executive-ui .content-card,
body.brioux-executive-ui .table-container {
    background:
        linear-gradient(
            145deg,
            rgba(27, 27, 35, 0.96),
            rgba(12, 12, 17, 0.98)
        ) !important;

    color: var(--brx-silver) !important;

    border:
        1px solid
        var(--brx-border) !important;

    border-radius: var(--brx-radius-md) !important;

    box-shadow: var(--brx-shadow-panel) !important;
}


/* ============================================================
   BUTTON SYSTEM
   ============================================================ */

body.brioux-executive-ui .btn-primary,
body.brioux-executive-ui button.btn-primary {
    background:
        linear-gradient(
            135deg,
            #d90068 0%,
            var(--brx-magenta) 56%,
            #b00056 100%
        ) !important;

    color: #ffffff !important;

    border:
        1px solid
        rgba(255, 92, 164, 0.60) !important;

    border-radius: var(--brx-radius-sm) !important;

    box-shadow:
        0 8px 22px rgba(255, 43, 134, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    font-weight: 700;
}

body.brioux-executive-ui .btn-primary:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 28px rgba(255, 43, 134, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.brioux-executive-ui .btn-secondary,
body.brioux-executive-ui button.btn-secondary {
    background:
        linear-gradient(
            180deg,
            #1c1c23,
            #101014
        ) !important;

    color: var(--brx-silver) !important;

    border:
        1px solid
        var(--brx-border-strong) !important;

    border-radius: var(--brx-radius-sm) !important;
}

body.brioux-executive-ui .btn-secondary:hover {
    color: #fff !important;
    border-color: var(--brx-border-magenta) !important;
}


/* ============================================================
   FORM CONTROLS
   ============================================================ */

body.brioux-executive-ui input,
body.brioux-executive-ui select,
body.brioux-executive-ui textarea {
    background: #0c0c11 !important;
    color: var(--brx-white) !important;

    border:
        1px solid
        var(--brx-border-strong) !important;

    border-radius: var(--brx-radius-sm) !important;

    outline: none !important;
}

body.brioux-executive-ui input:focus,
body.brioux-executive-ui select:focus,
body.brioux-executive-ui textarea:focus {
    border-color: var(--brx-magenta) !important;
    box-shadow: var(--brx-shadow-focus) !important;
}


/* ============================================================
   TABLES
   ============================================================ */

body.brioux-executive-ui table {
    background: var(--brx-panel) !important;
    color: var(--brx-silver) !important;
    border-color: var(--brx-border) !important;
}

body.brioux-executive-ui thead,
body.brioux-executive-ui th {
    background: #0b0b10 !important;
    color: var(--brx-silver-mid) !important;
    border-color: var(--brx-border) !important;
}

body.brioux-executive-ui td {
    border-color: rgba(211, 211, 220, 0.09) !important;
}

body.brioux-executive-ui tbody tr:hover {
    background: rgba(255, 43, 134, 0.055) !important;
}


/* ============================================================
   MODALS
   ============================================================ */

body.brioux-executive-ui .modal-content,
body.brioux-executive-ui .modal {
    color: var(--brx-silver);
}

body.brioux-executive-ui .modal-content {
    background:
        linear-gradient(
            145deg,
            #18181f,
            #09090d
        ) !important;

    border:
        1px solid
        var(--brx-border-strong) !important;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.68),
        0 0 30px rgba(255, 43, 134, 0.08) !important;
}


/* ============================================================
   STATUS / SIGNAL LANGUAGE
   ============================================================ */

body.brioux-executive-ui .active,
body.brioux-executive-ui .is-active {
    --brx-current-signal: var(--brx-magenta);
}

body.brioux-executive-ui .status-success {
    color: var(--brx-success) !important;
}

body.brioux-executive-ui .status-warning {
    color: var(--brx-warning) !important;
}

body.brioux-executive-ui .status-error,
body.brioux-executive-ui .status-danger {
    color: var(--brx-danger) !important;
}


/* ============================================================
   BRAND DETAIL — MAGENTA IS SIGNAL, NOT SURFACE
   ============================================================ */

body.brioux-executive-ui .brioux-signal-line {
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--brx-magenta),
            transparent
        );

    box-shadow:
        0 0 12px
        var(--brx-magenta-glow);
}

/* ============================================================
   BRIOUX_CLIENT_DASHBOARD_V1
   Executive client command experience
   ============================================================ */

body.brioux-executive-ui .brx-client-overview {
    padding: 28px 30px 44px;
    overflow-y: auto;
}

body.brioux-executive-ui .brx-dashboard-command-header {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 28px 30px;
    margin-bottom: 18px;

    background:
        radial-gradient(
            circle at 92% 20%,
            rgba(255, 43, 134, 0.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #18181f 0%,
            #0d0d12 52%,
            #08080c 100%
        );

    border: 1px solid var(--brx-border-strong);
    border-radius: var(--brx-radius-lg);
    box-shadow: var(--brx-shadow-panel);
}

body.brioux-executive-ui .brx-dashboard-command-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;

    background:
        linear-gradient(
            180deg,
            transparent,
            var(--brx-magenta),
            transparent
        );

    box-shadow:
        0 0 18px
        rgba(255, 43, 134, 0.50);
}

body.brioux-executive-ui .brx-dashboard-eyebrow {
    margin-bottom: 8px;

    color: var(--brx-magenta);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

body.brioux-executive-ui .brx-dashboard-command-header h2 {
    margin: 0;
    font-size: clamp(25px, 2vw, 34px);
    line-height: 1.12;
    font-weight: 700;
}

body.brioux-executive-ui .brx-dashboard-command-header p {
    max-width: 720px;
    margin: 9px 0 0;
    color: var(--brx-silver-mid);
    font-size: 14px;
    line-height: 1.6;
}

body.brioux-executive-ui .brx-dashboard-refresh {
    flex: 0 0 auto;
    min-width: 175px;
    min-height: 42px;
}

body.brioux-executive-ui .brx-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

body.brioux-executive-ui .brx-dashboard-kpi {
    position: relative;
    overflow: hidden;
    min-height: 146px;
    padding: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(27, 27, 35, 0.98),
            rgba(10, 10, 14, 0.98)
        );

    border: 1px solid var(--brx-border);
    border-radius: var(--brx-radius-md);
    box-shadow: var(--brx-shadow-panel);
    cursor: pointer;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

body.brioux-executive-ui .brx-dashboard-kpi::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 43, 134, 0.70),
            transparent
        );

    opacity: 0.55;
}

body.brioux-executive-ui .brx-dashboard-kpi:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255, 43, 134, 0.38);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(255, 43, 134, 0.08);
}

body.brioux-executive-ui .brx-kpi-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

body.brioux-executive-ui .brx-kpi-label {
    color: var(--brx-silver-mid);
    font-family: "Century Gothic", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.095em;
    text-transform: uppercase;
}

body.brioux-executive-ui .brx-kpi-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: var(--brx-magenta);

    box-shadow:
        0 0 9px
        rgba(255, 43, 134, 0.70);
}

body.brioux-executive-ui .brx-kpi-value {
    margin-top: 18px;

    color: var(--brx-white);
    font-size: clamp(24px, 2vw, 31px);
    line-height: 1;
    font-weight: 750;
    letter-spacing: -0.025em;
}

body.brioux-executive-ui .brx-kpi-meta {
    margin-top: 11px;
    color: var(--brx-silver-muted);
    font-size: 12px;
    line-height: 1.45;
}

body.brioux-executive-ui .brx-dashboard-intelligence {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 16px;
    margin-top: 18px;
}

body.brioux-executive-ui .brx-intelligence-card {
    padding: 22px 24px;

    background:
        linear-gradient(
            145deg,
            rgba(21, 21, 28, 0.98),
            rgba(9, 9, 13, 0.98)
        );

    border: 1px solid var(--brx-border);
    border-radius: var(--brx-radius-md);
    box-shadow: var(--brx-shadow-panel);
}

body.brioux-executive-ui .brx-intelligence-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

body.brioux-executive-ui .brx-intelligence-heading h3 {
    margin: 0;
    font-size: 16px;
}

body.brioux-executive-ui .brx-intelligence-heading p {
    margin: 5px 0 0;
    font-size: 12px;
}

body.brioux-executive-ui .brx-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;

    color: var(--brx-silver);
    background: rgba(255, 255, 255, 0.035);

    border: 1px solid var(--brx-border);
    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.brioux-executive-ui .brx-live-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brx-magenta);
    box-shadow: 0 0 8px var(--brx-magenta);
}

body.brioux-executive-ui .brx-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

body.brioux-executive-ui .brx-focus-item {
    min-height: 102px;
    padding: 15px 16px;

    background:
        rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(215, 215, 220, 0.10);
    border-radius: var(--brx-radius-sm);
}

body.brioux-executive-ui .brx-focus-item strong {
    display: block;
    margin-bottom: 8px;

    color: var(--brx-white);
    font-size: 12px;
    letter-spacing: 0.02em;
}

body.brioux-executive-ui .brx-focus-item span {
    color: var(--brx-silver-muted);
    font-size: 11px;
    line-height: 1.55;
}

body.brioux-executive-ui .brx-dashboard-principle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

body.brioux-executive-ui .brx-dashboard-principle-mark {
    width: 34px;
    height: 2px;
    margin-bottom: 18px;

    background: var(--brx-magenta);

    box-shadow:
        0 0 12px
        rgba(255, 43, 134, 0.48);
}

body.brioux-executive-ui .brx-dashboard-principle h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

body.brioux-executive-ui .brx-dashboard-principle p {
    margin: 0;
    color: var(--brx-silver-muted);
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    body.brioux-executive-ui .brx-dashboard-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    body.brioux-executive-ui .brx-dashboard-intelligence {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body.brioux-executive-ui .brx-client-overview {
        padding: 18px;
    }

    body.brioux-executive-ui .brx-dashboard-command-header {
        flex-direction: column;
        align-items: stretch;
    }

    body.brioux-executive-ui .brx-dashboard-refresh {
        width: 100%;
    }

    body.brioux-executive-ui .brx-dashboard-kpis,
    body.brioux-executive-ui .brx-focus-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   BRIOUX_CLIENT_WORKSPACE_SYSTEM_V1
   Shared visual language for all Client Dashboard workspaces
   ============================================================ */


/* ------------------------------------------------------------
   WORKSPACE LAYOUT
   ------------------------------------------------------------ */

body.brioux-executive-ui .dash-view:not(#view-overview) {
    padding: 26px 30px 42px;
    overflow-y: auto;
    background: transparent !important;
    color: var(--brx-silver);
}


/* ------------------------------------------------------------
   LEGACY WHITE CONTAINERS -> PREMIUM GRAPHITE
   Scoped only inside Client Dashboard workspaces.
   ------------------------------------------------------------ */

body.brioux-executive-ui .dash-view
    div[style*="background: white"],

body.brioux-executive-ui .dash-view
    div[style*="background:white"],

body.brioux-executive-ui .dash-view
    div[style*="background: #FFFFFF"],

body.brioux-executive-ui .dash-view
    div[style*="background:#FFFFFF"],

body.brioux-executive-ui .dash-view
    div[style*="background: var(--bg-light)"] {

    background:
        linear-gradient(
            145deg,
            rgba(24, 24, 31, 0.97),
            rgba(10, 10, 15, 0.98)
        ) !important;

    color: var(--brx-silver) !important;

    border-color:
        var(--brx-border) !important;

    box-shadow:
        var(--brx-shadow-panel) !important;
}


/* ------------------------------------------------------------
   PAGE HEADINGS
   ------------------------------------------------------------ */

body.brioux-executive-ui .dash-view > div:first-child h2 {
    color: var(--brx-white) !important;
    letter-spacing: -0.015em;
}

body.brioux-executive-ui .dash-view > div:first-child p {
    color: var(--brx-silver-muted) !important;
    line-height: 1.55;
}


/* ------------------------------------------------------------
   FORM SECTIONS
   ------------------------------------------------------------ */

body.brioux-executive-ui .form-section {
    background:
        linear-gradient(
            145deg,
            rgba(22, 22, 29, 0.98),
            rgba(9, 9, 13, 0.98)
        ) !important;

    border:
        1px solid
        var(--brx-border) !important;

    border-radius:
        var(--brx-radius-md) !important;

    box-shadow:
        var(--brx-shadow-panel) !important;
}

body.brioux-executive-ui .section-title {
    color: var(--brx-white) !important;

    border-bottom:
        1px solid
        var(--brx-border) !important;

    padding-bottom: 12px !important;
}

body.brioux-executive-ui .section-title::after {
    content: "";
    display: block;

    width: 30px;
    height: 1px;

    margin-left: auto;

    background:
        var(--brx-magenta);

    box-shadow:
        0 0 10px
        rgba(255, 43, 134, 0.42);
}


/* ------------------------------------------------------------
   LABELS / DATA FIELDS
   ------------------------------------------------------------ */

body.brioux-executive-ui .data-label {
    color:
        var(--brx-silver-muted) !important;

    letter-spacing:
        0.07em;
}

body.brioux-executive-ui .data-group input,
body.brioux-executive-ui .data-group select,
body.brioux-executive-ui .data-group textarea {

    background:
        #0a0a0f !important;

    color:
        var(--brx-white) !important;

    border:
        1px solid
        var(--brx-border-strong) !important;

    min-height: 40px;
}

body.brioux-executive-ui
.data-group input::placeholder,

body.brioux-executive-ui
.data-group textarea::placeholder {

    color:
        #62626d !important;
}


/* ------------------------------------------------------------
   DATA TABLES
   ------------------------------------------------------------ */

body.brioux-executive-ui .data-table {
    overflow: hidden;

    background:
        var(--brx-panel) !important;

    border:
        1px solid
        var(--brx-border) !important;

    border-radius:
        var(--brx-radius-md) !important;

    box-shadow:
        var(--brx-shadow-panel) !important;
}

body.brioux-executive-ui .data-table th {
    background:
        linear-gradient(
            180deg,
            #16161c,
            #0c0c11
        ) !important;

    color:
        var(--brx-silver-mid) !important;

    border-bottom:
        1px solid
        var(--brx-border-strong) !important;

    font-size: 10px;
    font-weight: 800;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}

body.brioux-executive-ui .data-table td {
    color:
        var(--brx-silver) !important;

    border-bottom:
        1px solid
        rgba(215, 215, 220, 0.08) !important;
}

body.brioux-executive-ui
.data-table tbody tr:hover {

    background:
        rgba(
            255,
            8,
            127,
            0.055
        ) !important;
}


/* ------------------------------------------------------------
   PATIENT MASTER CHART
   ------------------------------------------------------------ */

body.brioux-executive-ui .chart-window {
    background:
        var(--brx-black) !important;

    border:
        1px solid
        var(--brx-border-strong) !important;

    border-radius:
        var(--brx-radius-lg) !important;

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, 0.75) !important;
}

body.brioux-executive-ui .chart-body,
body.brioux-executive-ui .chart-main {

    background:
        linear-gradient(
            145deg,
            #09090d,
            #101016
        ) !important;
}

body.brioux-executive-ui .face-card {
    background:
        linear-gradient(
            145deg,
            rgba(27, 27, 34, 0.98),
            rgba(12, 12, 16, 0.98)
        ) !important;

    border:
        1px solid
        var(--brx-border) !important;

    border-radius:
        var(--brx-radius-md) !important;

    box-shadow:
        var(--brx-shadow-panel) !important;
}

body.brioux-executive-ui .face-card-header {
    color:
        var(--brx-white) !important;

    border-bottom:
        1px solid
        var(--brx-border) !important;
}

body.brioux-executive-ui .data-pair .lbl {
    color:
        var(--brx-silver-muted) !important;
}

body.brioux-executive-ui .data-pair .val {
    color:
        var(--brx-silver) !important;
}


/* ------------------------------------------------------------
   MODAL SYSTEM
   ------------------------------------------------------------ */

body.brioux-executive-ui .modal-overlay {
    background:
        rgba(0, 0, 0, 0.78) !important;

    backdrop-filter:
        blur(6px);
}

body.brioux-executive-ui .modal-box {
    background:
        linear-gradient(
            145deg,
            #18181f,
            #09090d
        ) !important;

    color:
        var(--brx-silver) !important;

    border:
        1px solid
        var(--brx-border-strong) !important;

    border-radius:
        var(--brx-radius-lg) !important;

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, 0.72),
        0 0 34px
        rgba(255, 43, 134, 0.06) !important;
}

body.brioux-executive-ui .modal-header {
    background:
        linear-gradient(
            180deg,
            #1a1a20,
            #0d0d12
        ) !important;

    color:
        var(--brx-white) !important;

    border-bottom:
        1px solid
        var(--brx-border-magenta) !important;
}


/* ------------------------------------------------------------
   SCHEDULE / CALENDAR
   ------------------------------------------------------------ */

body.brioux-executive-ui #view-schedule {
    background:
        transparent !important;
}

body.brioux-executive-ui #view-schedule
div[style*="background: white"],

body.brioux-executive-ui #view-schedule
div[style*="background:white"] {

    background:
        var(--brx-panel) !important;

    border-color:
        var(--brx-border) !important;
}

body.brioux-executive-ui
.authoritative-calendar-message {

    background:
        rgba(255, 255, 255, 0.025) !important;

    color:
        var(--brx-silver-muted) !important;

    border:
        1px solid
        var(--brx-border) !important;

    border-radius:
        var(--brx-radius-sm);
}

body.brioux-executive-ui
.authoritative-time-axis {

    color:
        var(--brx-silver-muted);
}

body.brioux-executive-ui
.authoritative-time-label {

    color:
        var(--brx-silver-muted) !important;
}


/* ------------------------------------------------------------
   FILTER / SEARCH CONTROLS
   ------------------------------------------------------------ */

body.brioux-executive-ui
.dash-view input[type="text"],

body.brioux-executive-ui
.dash-view input[type="search"],

body.brioux-executive-ui
.dash-view select {

    background:
        #0a0a0f !important;

    color:
        var(--brx-white) !important;

    border:
        1px solid
        var(--brx-border-strong) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.02);
}


/* ------------------------------------------------------------
   CHECKBOX / RADIO ACCENT
   ------------------------------------------------------------ */

body.brioux-executive-ui input[type="checkbox"],
body.brioux-executive-ui input[type="radio"] {

    accent-color:
        var(--brx-magenta) !important;
}


/* ------------------------------------------------------------
   SCROLLBARS
   ------------------------------------------------------------ */

body.brioux-executive-ui * {
    scrollbar-width:
        thin;

    scrollbar-color:
        #34343d
        #09090d;
}

body.brioux-executive-ui *::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

body.brioux-executive-ui *::-webkit-scrollbar-track {
    background:
        #09090d;
}

body.brioux-executive-ui *::-webkit-scrollbar-thumb {
    background:
        #34343d;

    border:
        2px solid
        #09090d;

    border-radius:
        10px;
}

body.brioux-executive-ui
*::-webkit-scrollbar-thumb:hover {

    background:
        var(--brx-magenta-deep);
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 850px) {

    body.brioux-executive-ui
    .dash-view:not(#view-overview) {

        padding:
            20px 18px 36px;
    }

    body.brioux-executive-ui
    .form-grid-3 {

        grid-template-columns:
            1fr !important;
    }
}


/* ============================================================
   BRIOUX_GLOBAL_BRAND_SHELL_V1
   Safe Brioux identity layer available across all HTML surfaces
   ============================================================ */

body.brioux-brand-shell-v1 {
    accent-color: var(--brx-magenta);
}

body.brioux-brand-shell-v1 ::selection {
    background: rgba(255, 43, 134, 0.30);
    color: #ffffff;
}

body.brioux-brand-shell-v1 a:focus-visible,
body.brioux-brand-shell-v1 button:focus-visible,
body.brioux-brand-shell-v1 input:focus-visible,
body.brioux-brand-shell-v1 select:focus-visible,
body.brioux-brand-shell-v1 textarea:focus-visible {
    outline: 2px solid var(--brx-magenta);
    outline-offset: 2px;
}

body.brioux-brand-shell-v1 img {
    max-width: 100%;
}
/* BRIOUX_LEGACY_OPERATIONAL_NORMALIZATION_V2 */

/*
 * Brings legacy operational pages into the approved Brioux visual system
 * without changing page JavaScript, IDs, workflows, or data bindings.
 */
body.brioux-executive-ui {
    --primary-brand: var(--brx-magenta, #ff2b86);
    --bg-light: #0a0d12;
    --page-bg: #0a0d12;
    --card-bg: #11161f;
    --panel-bg: #11161f;
    --surface: #11161f;
    --surface-alt: #171d27;
    --text-dark: #f3f5f8;
    --text-primary: #f3f5f8;
    --text-color: #f3f5f8;
    --text-muted: #a8b0bd;
    --secondary-silver: #a8b0bd;
    --border-light: rgba(190, 199, 212, 0.20);
}

/* PAGE CANVAS */
body.brioux-executive-ui :where(
    main,
    .main-content,
    .content-wrapper,
    .page-content,
    .content-area,
    .workspace,
    .workspace-content,
    .dashboard-content
) {
    background-color: transparent !important;
    color: #f3f5f8;
}

/* LEGACY CARD / PANEL SYSTEM */
body.brioux-executive-ui :where(
    .card,
    .panel,
    .overview-card,
    .metric-card,
    .dashboard-card,
    .summary-card,
    .workspace-card,
    .hub-card,
    .form-card,
    .form-section,
    .section-card,
    .settings-card,
    .profile-card,
    .data-card,
    .data-region,
    .table-container,
    .table-card,
    .auth-card,
    .authorization-card,
    .credentialing-card,
    .clinical-card,
    .billing-card,
    .content-card
) {
    background:
        linear-gradient(
            145deg,
            rgba(23, 29, 39, 0.98),
            rgba(13, 17, 24, 0.98)
        ) !important;

    border-color:
        rgba(190, 199, 212, 0.20) !important;

    color: #f3f5f8 !important;

    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.22) !important;
}

/*
 * Several older Brioux pages used inline white backgrounds.
 * !important is intentional here because inline non-important declarations
 * otherwise outrank the shared design system.
 */
body.brioux-executive-ui :where(
    [style*="background: white" i],
    [style*="background:white" i],
    [style*="background: #fff" i],
    [style*="background:#fff" i],
    [style*="background: #ffffff" i],
    [style*="background:#ffffff" i],
    [style*="background-color: white" i],
    [style*="background-color:white" i],
    [style*="background-color: #fff" i],
    [style*="background-color:#fff" i],
    [style*="background-color: #ffffff" i],
    [style*="background-color:#ffffff" i]
) {
    background:
        linear-gradient(
            145deg,
            rgba(23, 29, 39, 0.98),
            rgba(13, 17, 24, 0.98)
        ) !important;

    color: #f3f5f8 !important;

    border-color:
        rgba(190, 199, 212, 0.20) !important;
}

/* OLD SLATE TEXT COLORS BECOME READABLE ON GRAPHITE */
body.brioux-executive-ui :where(
    [style*="color: #334155" i],
    [style*="color:#334155" i]
) {
    color: #f3f5f8 !important;
}

body.brioux-executive-ui :where(
    [style*="color: #475569" i],
    [style*="color:#475569" i],
    [style*="color: var(--text-muted)" i]
) {
    color: #a8b0bd !important;
}

/* FORMS */
body.brioux-executive-ui :where(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
) {
    background: #0c1016 !important;

    color: #f3f5f8 !important;

    border:
        1px solid rgba(190, 199, 212, 0.24) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02) !important;
}

body.brioux-executive-ui :where(
    input,
    textarea
)::placeholder {
    color: #737d8c !important;
}

body.brioux-executive-ui :where(
    input,
    select,
    textarea
):focus {
    border-color:
        var(--brx-magenta, #ff2b86) !important;

    outline:
        1px solid rgba(255, 43, 134, 0.25) !important;

    box-shadow:
        0 0 0 3px rgba(255, 43, 134, 0.08) !important;
}

/* TABLES */
body.brioux-executive-ui :where(
    table
) {
    color: #e9edf3;
    background: transparent;
}

body.brioux-executive-ui :where(
    thead,
    th
) {
    background: #151b24 !important;
    color: #dce2ea !important;
}

body.brioux-executive-ui :where(
    tbody tr
) {
    background: rgba(15, 19, 27, 0.86);
    border-color: rgba(190, 199, 212, 0.12);
}

body.brioux-executive-ui :where(
    tbody tr:hover
) {
    background: rgba(255, 43, 134, 0.055) !important;
}

/* SECONDARY / LEGACY BUTTONS */
body.brioux-executive-ui :where(
    .btn-secondary,
    .secondary-button,
    button.secondary
) {
    background:
        linear-gradient(
            180deg,
            #202733,
            #151a23
        ) !important;

    border:
        1px solid rgba(190, 199, 212, 0.28) !important;

    color: #eef1f5 !important;
}

/* HEADINGS */
body.brioux-executive-ui :where(
    h1,
    h2,
    h3,
    h4
) {
    color: #f4f6f9;
}

/* MAGENTA REMAINS SIGNAL, NOT SURFACE */
body.brioux-executive-ui :where(
    .btn-primary,
    .primary-button
) {
    box-shadow:
        0 8px 22px rgba(255, 43, 134, 0.16);
}

/* EMPTY / LOADING STATES */
body.brioux-executive-ui :where(
    .empty-state,
    .placeholder,
    .loading-state
) {
    color: #8e98a7 !important;
}

/* KEEP WHITE MEDIA / DOCUMENT CONTENT FROM BEING ALTERED */
body.brioux-executive-ui :where(
    img,
    video,
    canvas,
    svg
) {
    background-color: transparent;
}

/* BRIOUX_BRAND_CONTRACT_V3 */

/*
=========================================================
BRIOUX SYSTEMS — CANONICAL SOFTWARE BRAND CONTRACT

Deep Black       #080A0E
Graphite         #12161D
Charcoal         #252B34
Metallic Silver  #C8CED8
Muted Silver     #9EA7B4
Light Text       #F5F7FA
Brioux Pink      #FF2B86

RULES:
- No white application cards.
- White is reserved for real document/print surfaces.
- Charcoal is structure, not dark-surface text.
- Silver belongs on black/graphite/charcoal.
- One canonical pink everywhere.
- Pink behaves like electricity, not paint.
=========================================================
*/

body.brioux-executive-ui {
    color-scheme: dark;

    --brx-black: #080A0E !important;
    --brx-black-deep: #050609 !important;

    --brx-graphite: #12161D !important;
    --brx-graphite-2: #181D25 !important;

    --brx-charcoal: #252B34 !important;
    --brx-charcoal-2: #303741 !important;

    --brx-silver: #C8CED8 !important;
    --brx-silver-muted: #9EA7B4 !important;

    --brx-white: #F5F7FA !important;

    --brx-magenta: #FF2B86 !important;
    --brx-magenta-bright: #FF2B86 !important;
    --brx-magenta-deep: #D9166B !important;
    --brx-magenta-soft: rgba(255, 43, 134, 0.12) !important;
    --brx-magenta-glow: rgba(255, 43, 134, 0.32) !important;

    /* Legacy variables forced into Brioux contract */
    --primary-brand: #FF2B86 !important;
    --accent-brand: #FF2B86 !important;
    --brand-pink: #FF2B86 !important;
    --pink: #FF2B86 !important;
    --magenta: #FF2B86 !important;
    --ai-purple: #FF2B86 !important;

    --bg-light: #080A0E !important;
    --page-bg: #080A0E !important;
    --card-bg: #12161D !important;
    --panel-bg: #12161D !important;
    --surface: #12161D !important;
    --surface-alt: #181D25 !important;

    /* Never charcoal text on dark Brioux surfaces */
    --text-dark: #F5F7FA !important;
    --text-primary: #F5F7FA !important;
    --text-color: #F5F7FA !important;

    --text-muted: #9EA7B4 !important;
    --secondary-silver: #C8CED8 !important;

    --border-light:
        rgba(200, 206, 216, 0.22) !important;

    background:
        radial-gradient(
            circle at top right,
            rgba(255, 43, 134, 0.055),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #080A0E 0%,
            #0C0F14 48%,
            #080A0E 100%
        ) !important;

    color: #F5F7FA !important;
}


/* =====================================================
   APPLICATION CANVAS
   ===================================================== */

body.brioux-executive-ui :where(
    main,
    .main-content,
    .page-content,
    .content-area,
    .content-wrapper,
    .workspace,
    .workspace-content,
    .dashboard-content,
    .master-content,
    .portal-content
) {
    background: transparent !important;
    color: #F5F7FA !important;
}


/* =====================================================
   GLOBAL HEADERS
   ===================================================== */

body.brioux-executive-ui > header,
body.brioux-executive-ui :where(
    .global-header,
    .top-header,
    .page-header,
    .master-header,
    .brioux-master-page-header,
    .dashboard-header
) {
    background:
        linear-gradient(
            180deg,
            #151A21 0%,
            #0B0E13 100%
        ) !important;

    color: #F5F7FA !important;

    border-color:
        rgba(200, 206, 216, 0.18) !important;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28) !important;
}


/* =====================================================
   SIDEBARS / NAVIGATION
   ===================================================== */

body.brioux-executive-ui :where(
    aside,
    .sidebar,
    .side-nav,
    .nav-sidebar,
    .master-sidebar,
    .workspace-sidebar
) {
    background:
        linear-gradient(
            180deg,
            #11151C,
            #090C10
        ) !important;

    color: #C8CED8 !important;

    border-color:
        rgba(200, 206, 216, 0.16) !important;
}


/* =====================================================
   PANELS / CARDS
   NO WHITE APPLICATION SURFACES
   ===================================================== */

body.brioux-executive-ui :where(
    .card,
    .panel,
    .overview-card,
    .metric-card,
    .dashboard-card,
    .summary-card,
    .workspace-card,
    .hub-card,
    .form-card,
    .form-section,
    .section-card,
    .settings-card,
    .profile-card,
    .data-card,
    .data-region,
    .table-card,
    .table-container,
    .content-card,
    .authorization-card,
    .credentialing-card,
    .clinical-card,
    .billing-card,
    .commercial-card,
    .compliance-card,
    .reporting-card
) {
    background:
        linear-gradient(
            145deg,
            #181D25 0%,
            #11151C 100%
        ) !important;

    color: #F5F7FA !important;

    border:
        1px solid rgba(200, 206, 216, 0.18) !important;

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.025) !important;
}


/* =====================================================
   KILL LEGACY WHITE / PALE ADMIN SURFACES
   ===================================================== */

body.brioux-executive-ui
:where(
    div,
    section,
    article,
    main,
    aside,
    header,
    footer,
    nav
)
:where(
    [style*="background: white" i],
    [style*="background:white" i],
    [style*="background: #fff" i],
    [style*="background:#fff" i],
    [style*="background: #ffffff" i],
    [style*="background:#ffffff" i],
    [style*="background-color: white" i],
    [style*="background-color:white" i],
    [style*="background-color: #fff" i],
    [style*="background-color:#fff" i],
    [style*="background-color: #ffffff" i],
    [style*="background-color:#ffffff" i],
    [style*="background: #f8fafc" i],
    [style*="background:#f8fafc" i],
    [style*="background: #f9fafb" i],
    [style*="background:#f9fafb" i],
    [style*="background: #f1f5f9" i],
    [style*="background:#f1f5f9" i]
) {
    background:
        linear-gradient(
            145deg,
            #181D25,
            #11151C
        ) !important;

    color: #F5F7FA !important;

    border-color:
        rgba(200, 206, 216, 0.18) !important;
}


/* =====================================================
   DARK TEXT MUST NEVER DISAPPEAR INTO DARK SURFACES
   ===================================================== */

body.brioux-executive-ui :where(
    [style*="color: #0f172a" i],
    [style*="color:#0f172a" i],
    [style*="color: #1e293b" i],
    [style*="color:#1e293b" i],
    [style*="color: #334155" i],
    [style*="color:#334155" i],
    [style*="color: #374151" i],
    [style*="color:#374151" i],
    [style*="color: #475569" i],
    [style*="color:#475569" i]
) {
    color: #C8CED8 !important;
}


/* =====================================================
   TYPOGRAPHY
   SILVER / WHITE ON DARK ONLY
   ===================================================== */

body.brioux-executive-ui :where(
    h1,
    h2,
    h3
) {
    color: #F5F7FA !important;
}

body.brioux-executive-ui :where(
    h4,
    h5,
    h6,
    label,
    legend,
    th
) {
    color: #C8CED8 !important;
}

body.brioux-executive-ui :where(
    p,
    .description,
    .subtitle,
    .helper-text,
    .muted,
    .text-muted
) {
    color: #9EA7B4;
}


/* =====================================================
   FORMS
   ===================================================== */

body.brioux-executive-ui :where(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
) {
    background:
        #0C1016 !important;

    color:
        #F5F7FA !important;

    border:
        1px solid rgba(200, 206, 216, 0.24) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02) !important;
}

body.brioux-executive-ui
:where(input, textarea)::placeholder {
    color:
        #737D8C !important;
}

body.brioux-executive-ui
:where(input, select, textarea):focus {
    border-color:
        #FF2B86 !important;

    outline:
        1px solid rgba(255,43,134,0.32) !important;

    box-shadow:
        0 0 0 3px rgba(255,43,134,0.09) !important;
}


/* =====================================================
   TABLES
   ===================================================== */

body.brioux-executive-ui table {
    background:
        #11151C !important;

    color:
        #F5F7FA !important;
}

body.brioux-executive-ui :where(
    thead,
    th
) {
    background:
        #1A2029 !important;

    color:
        #C8CED8 !important;

    border-color:
        rgba(200, 206, 216, 0.16) !important;
}

body.brioux-executive-ui tbody tr {
    background:
        #11151C !important;

    color:
        #F5F7FA !important;

    border-color:
        rgba(200, 206, 216, 0.10) !important;
}

body.brioux-executive-ui tbody tr:nth-child(even) {
    background:
        #151A21 !important;
}

body.brioux-executive-ui tbody tr:hover {
    background:
        rgba(255,43,134,0.055) !important;
}


/* =====================================================
   CANONICAL BRIOUX PINK
   ONE PINK ACROSS THE APPLICATION
   ===================================================== */

body.brioux-executive-ui :where(
    .btn-primary,
    .primary-button,
    button.primary,
    button.active,
    .nav-item.active,
    .sub-nav-item.active,
    .tab.active,
    .is-active
) {
    --primary-brand: #FF2B86 !important;
    --accent-brand: #FF2B86 !important;
}

body.brioux-executive-ui :where(
    .btn-primary,
    .primary-button,
    button.primary
) {
    background:
        linear-gradient(
            180deg,
            #FF2B86,
            #FF2B86
        ) !important;

    color:
        #FFFFFF !important;

    border-color:
        #FF2B86 !important;

    box-shadow:
        0 10px 24px rgba(255,43,134,0.20) !important;
}

body.brioux-executive-ui :where(
    .btn-primary,
    .primary-button,
    button.primary
):hover {
    background:
        #FF2B86 !important;

    filter:
        brightness(1.08);
}


/* Active navigation = signal line, not giant pink surface */
body.brioux-executive-ui :where(
    .nav-item.active,
    .sub-nav-item.active,
    .tab.active
) {
    color:
        #F5F7FA !important;

    border-color:
        #FF2B86 !important;
}


/* =====================================================
   LINKS
   ===================================================== */

body.brioux-executive-ui a {
    color:
        #C8CED8;
}

body.brioux-executive-ui a:hover,
body.brioux-executive-ui a:focus-visible {
    color:
        #FF2B86;
}


/* =====================================================
   MODALS
   ===================================================== */

body.brioux-executive-ui :where(
    .modal,
    .modal-content,
    .dialog,
    [role="dialog"]
) {
    background:
        #12161D !important;

    color:
        #F5F7FA !important;

    border-color:
        rgba(200,206,216,0.20) !important;
}


/* =====================================================
   TRUE DOCUMENT SURFACES
   WHITE IS ALLOWED ONLY HERE
   ===================================================== */

body.brioux-executive-ui :where(
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview
) {
    background:
        #FFFFFF !important;

    color:
        #252B34 !important;
}

body.brioux-executive-ui
:where(
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview
)
:where(
    h1,h2,h3,h4,h5,h6,p,label,span
) {
    color:
        #252B34 !important;
}


/* =====================================================
   BRIOUX SIGNAL DETAILS
   ===================================================== */

body.brioux-executive-ui :where(
    .brioux-signal-line,
    .accent-line,
    .active-indicator
) {
    background:
        #FF2B86 !important;

    box-shadow:
        0 0 16px rgba(255,43,134,0.34) !important;
}


/* Metallic edge language */
body.brioux-executive-ui :where(
    .card,
    .panel,
    .workspace-card,
    .metric-card
)::before {
    border-color:
        rgba(200,206,216,0.12);
}

/* BRIOUX_GATEWAY_LOGIN_SYSTEM_V1 */

body.brioux-gateway-ui {
    min-height: 100vh !important;

    background:
        radial-gradient(
            circle at 50% 18%,
            rgba(255,43,134,0.08),
            transparent 26%
        ),
        radial-gradient(
            circle at 80% 72%,
            rgba(200,206,216,0.035),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #080A0E 0%,
            #11161D 52%,
            #080A0E 100%
        ) !important;

    color: #F5F7FA !important;
}


/* LOGIN / GATEWAY CARDS */

body.brioux-gateway-ui :where(
    .login-card,
    .gateway-card,
    .portal-card,
    .auth-card,
    .access-card
) {
    background:
        linear-gradient(
            145deg,
            #181D25 0%,
            #10141A 100%
        ) !important;

    border:
        1px solid rgba(200,206,216,0.30) !important;

    box-shadow:
        0 30px 70px rgba(0,0,0,0.52),
        0 0 0 1px rgba(255,255,255,0.015),
        0 0 34px rgba(255,43,134,0.045) !important;

    color:
        #F5F7FA !important;
}


/* LOGIN HEADERS */

body.brioux-gateway-ui :where(
    .login-header,
    .gateway-header,
    .portal-header,
    .auth-header
) {
    background:
        linear-gradient(
            180deg,
            #171C24 0%,
            #0D1016 100%
        ) !important;

    border-bottom:
        2px solid #FF2B86 !important;

    color:
        #F5F7FA !important;
}

body.brioux-gateway-ui :where(
    .login-header,
    .gateway-header,
    .portal-header
) h1,
body.brioux-gateway-ui :where(
    .login-header,
    .gateway-header,
    .portal-header
) h2 {
    color:
        #F5F7FA !important;

    letter-spacing:
        0.10em;
}


/* BODY / FORM AREAS */

body.brioux-gateway-ui :where(
    .login-body,
    .gateway-body,
    .portal-body,
    .auth-body
) {
    background:
        #12161D !important;

    color:
        #F5F7FA !important;
}


/* LABELS */

body.brioux-gateway-ui label {
    color:
        #C8CED8 !important;

    letter-spacing:
        0.035em;
}


/* INPUTS */

body.brioux-gateway-ui :where(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
) {
    background:
        #090C11 !important;

    color:
        #F5F7FA !important;

    border:
        1px solid rgba(200,206,216,0.28) !important;
}

body.brioux-gateway-ui :where(
    input,
    select,
    textarea
):focus {
    border-color:
        #FF2B86 !important;

    box-shadow:
        0 0 0 3px rgba(255,43,134,0.10),
        0 0 18px rgba(255,43,134,0.08) !important;
}


/* AUTH BUTTONS */

body.brioux-gateway-ui :where(
    .btn-login,
    .btn-primary,
    .gateway-button,
    .portal-button
) {
    background:
        linear-gradient(
            180deg,
            #FF2B86,
            #FF2B86
        ) !important;

    color:
        #FFFFFF !important;

    border:
        1px solid #FF2B86 !important;

    box-shadow:
        0 10px 28px rgba(255,43,134,0.18) !important;
}

body.brioux-gateway-ui :where(
    .btn-login,
    .btn-primary,
    .gateway-button,
    .portal-button
):hover {
    filter:
        brightness(1.08);

    box-shadow:
        0 12px 32px rgba(255,43,134,0.26) !important;
}


/* FOOTER / SECONDARY ACCESS */

body.brioux-gateway-ui :where(
    .gateway-footer,
    .login-footer,
    .portal-footer
) {
    border-color:
        rgba(200,206,216,0.14) !important;

    color:
        #9EA7B4 !important;
}

body.brioux-gateway-ui :where(
    .gateway-link,
    .login-link,
    .portal-link
) {
    color:
        #C8CED8 !important;

    text-decoration:
        none !important;
}

body.brioux-gateway-ui :where(
    .gateway-link,
    .login-link,
    .portal-link
):hover {
    color:
        #FF2B86 !important;
}


/* LOGOS */

body.brioux-gateway-ui :where(
    .login-header img,
    .gateway-header img,
    .portal-header img
) {
    max-height:
        52px;

    width:
        auto;

    object-fit:
        contain;

    filter:
        drop-shadow(
            0 0 12px rgba(255,43,134,0.14)
        );
}


/* ERROR STATES */

body.brioux-gateway-ui :where(
    #login-error-alert,
    .login-error,
    .auth-error,
    .error-alert
) {
    background:
        rgba(255,43,134,0.07) !important;

    border:
        1px solid rgba(255,43,134,0.32) !important;

    border-left:
        3px solid #FF2B86 !important;

    color:
        #F5F7FA !important;
}


/* NEVER WHITE LOGIN SURFACES */

body.brioux-gateway-ui :where(
    .login-card,
    .login-body,
    .gateway-card,
    .gateway-body,
    .portal-card,
    .portal-body,
    .auth-card,
    .auth-body
) {
    background-color:
        #12161D !important;
}


/* SILVER ONLY AGAINST DARK SURFACES */

body.brioux-gateway-ui :where(
    .secondary-silver,
    .subtitle,
    .login-subtitle,
    .gateway-subtitle
) {
    color:
        #C8CED8 !important;
}


/* CANONICAL PINK — NO PAGE-SPECIFIC ALTERNATES */

body.brioux-gateway-ui {
    --primary-brand: #FF2B86 !important;
    --accent-brand: #FF2B86 !important;
    --brand-pink: #FF2B86 !important;
    --pink: #FF2B86 !important;
    --magenta: #FF2B86 !important;
}

/* BRIOUX_CONTRAST_MATERIAL_RULES_V1 */

/*
RULES LOCKED:
1) White background => black / graphite text only.
2) Black / graphite background => white / metallic silver / muted silver text only.
3) Pink is accent only, not a paint bucket.
4) Gradient treatments should feel like client Support:
   dark graphite foundation + restrained magenta energy.
*/

body.brioux-executive-ui,
body.brioux-gateway-ui {
    --brx-black: #080A0E !important;
    --brx-graphite: #12161D !important;
    --brx-charcoal: #252B34 !important;

    --brx-white: #F5F7FA !important;

    --brx-silver: #C8CED8 !important;
    --brx-silver-muted: #9EA7B4 !important;

    --brx-pink: #FF2B86 !important;
    --brx-pink-deep: #FF2B86 !important;
    --brx-pink-soft: rgba(255, 43, 134, 0.10) !important;
    --brx-pink-glow: rgba(255, 43, 134, 0.22) !important;

    --primary-brand: #FF2B86 !important;
    --accent-brand: #FF2B86 !important;
    --brand-pink: #FF2B86 !important;
    --pink: #FF2B86 !important;
    --magenta: #FF2B86 !important;

    --text-on-dark-primary: #F5F7FA !important;
    --text-on-dark-secondary: #C8CED8 !important;
    --text-on-dark-muted: #9EA7B4 !important;

    --text-on-light-primary: #12161D !important;
    --text-on-light-secondary: #252B34 !important;
    --text-on-light-muted: #4B5563 !important;
}


/* =====================================================
   DARK SURFACE SYSTEM
   ===================================================== */

body.brioux-executive-ui :where(
    .brx-surface-dark,
    .brx-surface-gradient,
    .login-card,
    .gateway-card,
    .portal-card,
    .auth-card,
    .card,
    .panel,
    .overview-card,
    .metric-card,
    .dashboard-card,
    .summary-card,
    .workspace-card,
    .hub-card,
    .form-card,
    .section-card,
    .settings-card,
    .profile-card,
    .data-card,
    .content-card,
    .table-card,
    .table-container,
    .topbar,
    .global-header,
    .dashboard-header,
    .sidebar,
    .side-nav,
    .workspace-sidebar,
    .master-sidebar
),
body.brioux-gateway-ui :where(
    .brx-surface-dark,
    .brx-surface-gradient,
    .login-card,
    .gateway-card,
    .portal-card,
    .auth-card
) {
    color: #F5F7FA !important;
}

body.brioux-executive-ui :where(
    .brx-surface-dark,
    .card,
    .panel,
    .overview-card,
    .metric-card,
    .dashboard-card,
    .summary-card,
    .workspace-card,
    .hub-card,
    .form-card,
    .section-card,
    .settings-card,
    .profile-card,
    .data-card,
    .content-card,
    .table-card,
    .table-container
),
body.brioux-gateway-ui :where(
    .brx-surface-dark,
    .login-card,
    .gateway-card,
    .portal-card,
    .auth-card
) {
    background:
        linear-gradient(
            145deg,
            #181D25 0%,
            #10141A 100%
        ) !important;

    border:
        1px solid rgba(200,206,216,0.18) !important;

    box-shadow:
        0 18px 40px rgba(0,0,0,0.26),
        inset 0 1px 0 rgba(255,255,255,0.02) !important;
}


/* Support-like restrained gradient */
body.brioux-executive-ui :where(
    .brx-surface-gradient,
    .global-header,
    .topbar,
    .dashboard-header,
    .login-header,
    .gateway-header,
    .portal-header,
    .auth-header
),
body.brioux-gateway-ui :where(
    .brx-surface-gradient,
    .login-header,
    .gateway-header,
    .portal-header,
    .auth-header
) {
    background:
        radial-gradient(
            circle at 75% 15%,
            rgba(255,43,134,0.08),
            transparent 24%
        ),
        linear-gradient(
            160deg,
            #1A2029 0%,
            #10151C 50%,
            #090D12 100%
        ) !important;

    color: #F5F7FA !important;
}


/* Typography on dark */
body.brioux-executive-ui :where(
    .brx-surface-dark,
    .brx-surface-gradient,
    .card,
    .panel,
    .overview-card,
    .metric-card,
    .dashboard-card,
    .summary-card,
    .workspace-card,
    .hub-card,
    .topbar,
    .global-header,
    .dashboard-header,
    .sidebar,
    .side-nav
) :where(h1,h2,h3,h4,h5,h6,strong,th),
body.brioux-gateway-ui :where(
    .login-card,
    .gateway-card,
    .portal-card,
    .auth-card,
    .login-header,
    .gateway-header,
    .portal-header,
    .auth-header
) :where(h1,h2,h3,h4,h5,h6,strong,label) {
    color: #F5F7FA !important;
}

body.brioux-executive-ui :where(
    .brx-surface-dark,
    .brx-surface-gradient,
    .card,
    .panel,
    .overview-card,
    .metric-card,
    .dashboard-card,
    .summary-card,
    .workspace-card,
    .hub-card,
    .topbar,
    .global-header,
    .dashboard-header,
    .sidebar,
    .side-nav
) :where(p,span,small,li,td,label,.muted,.text-muted,.subtitle,.helper-text),
body.brioux-gateway-ui :where(
    .login-card,
    .gateway-card,
    .portal-card,
    .auth-card,
    .login-header,
    .gateway-header,
    .portal-header,
    .auth-header
) :where(p,span,small,.muted,.text-muted,.subtitle,.helper-text) {
    color: #C8CED8 !important;
}

body.brioux-executive-ui :where(
    .brx-surface-dark,
    .brx-surface-gradient,
    .card,
    .panel,
    .overview-card,
    .metric-card,
    .dashboard-card,
    .summary-card,
    .workspace-card,
    .hub-card,
    .topbar,
    .global-header,
    .dashboard-header,
    .sidebar,
    .side-nav
) :where(.secondary-text,.meta,.caption,.fine-print),
body.brioux-gateway-ui :where(
    .login-card,
    .gateway-card,
    .portal-card,
    .auth-card
) :where(.secondary-text,.meta,.caption,.fine-print) {
    color: #9EA7B4 !important;
}


/* =====================================================
   LIGHT / WHITE SURFACE SYSTEM
   ===================================================== */

body.brioux-executive-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview,
    .invoice-preview,
    .statement-preview
),
body.brioux-gateway-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview
) {
    background: #FFFFFF !important;
    color: #12161D !important;
    border: 1px solid rgba(18,22,29,0.10) !important;
}

body.brioux-executive-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview,
    .invoice-preview,
    .statement-preview
) :where(h1,h2,h3,h4,h5,h6,strong,th,label),
body.brioux-gateway-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview
) :where(h1,h2,h3,h4,h5,h6,strong,th,label) {
    color: #12161D !important;
}

body.brioux-executive-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview,
    .invoice-preview,
    .statement-preview
) :where(p,span,small,li,td,.muted,.text-muted,.subtitle,.helper-text),
body.brioux-gateway-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview
) :where(p,span,small,li,td,.muted,.text-muted,.subtitle,.helper-text) {
    color: #252B34 !important;
}


/* If a real white surface exists, force dark text */
body.brioux-executive-ui :where(
    [style*="background: white" i],
    [style*="background:white" i],
    [style*="background: #fff" i],
    [style*="background:#fff" i],
    [style*="background: #ffffff" i],
    [style*="background:#ffffff" i],
    [style*="background-color: white" i],
    [style*="background-color:white" i],
    [style*="background-color: #fff" i],
    [style*="background-color:#fff" i],
    [style*="background-color: #ffffff" i],
    [style*="background-color:#ffffff" i]
),
body.brioux-gateway-ui :where(
    [style*="background: white" i],
    [style*="background:white" i],
    [style*="background: #fff" i],
    [style*="background:#fff" i],
    [style*="background: #ffffff" i],
    [style*="background:#ffffff" i],
    [style*="background-color: white" i],
    [style*="background-color:white" i],
    [style*="background-color: #fff" i],
    [style*="background-color:#fff" i],
    [style*="background-color: #ffffff" i],
    [style*="background-color:#ffffff" i]
) {
    color: #12161D !important;
    border-color: rgba(18,22,29,0.10) !important;
}

body.brioux-executive-ui :where(
    [style*="background: white" i],
    [style*="background:white" i],
    [style*="background: #fff" i],
    [style*="background:#fff" i],
    [style*="background: #ffffff" i],
    [style*="background:#ffffff" i],
    [style*="background-color: white" i],
    [style*="background-color:white" i],
    [style*="background-color: #fff" i],
    [style*="background-color:#fff" i],
    [style*="background-color: #ffffff" i],
    [style*="background-color:#ffffff" i]
) :where(h1,h2,h3,h4,h5,h6,strong,th,label,p,span,small,li,td,.muted,.text-muted,.subtitle,.helper-text),
body.brioux-gateway-ui :where(
    [style*="background: white" i],
    [style*="background:white" i],
    [style*="background: #fff" i],
    [style*="background:#fff" i],
    [style*="background: #ffffff" i],
    [style*="background:#ffffff" i],
    [style*="background-color: white" i],
    [style*="background-color:white" i],
    [style*="background-color: #fff" i],
    [style*="background-color:#fff" i],
    [style*="background-color: #ffffff" i],
    [style*="background-color:#ffffff" i]
) :where(h1,h2,h3,h4,h5,h6,strong,th,label,p,span,small,li,td,.muted,.text-muted,.subtitle,.helper-text) {
    color: #12161D !important;
}


/* =====================================================
   PINK AS ACCENT ONLY
   ===================================================== */

body.brioux-executive-ui :where(
    .btn-primary,
    .btn-login,
    .primary-button,
    .gateway-button,
    .portal-button
),
body.brioux-gateway-ui :where(
    .btn-primary,
    .btn-login,
    .primary-button,
    .gateway-button,
    .portal-button
) {
    background:
        linear-gradient(
            180deg,
            #FF2B86,
            #FF2B86
        ) !important;

    color: #FFFFFF !important;
    border: 1px solid #FF2B86 !important;
    box-shadow: 0 10px 22px rgba(255,43,134,0.18) !important;
}

body.brioux-executive-ui :where(
    .sub-nav-item.active,
    .nav-item.active,
    .tab.active,
    .is-active
),
body.brioux-gateway-ui :where(
    .sub-nav-item.active,
    .nav-item.active,
    .tab.active,
    .is-active
) {
    background: transparent !important;
    color: #F5F7FA !important;
    border-color: #FF2B86 !important;
    box-shadow: inset 0 -2px 0 #FF2B86 !important;
}

body.brioux-executive-ui :where(
    .accent-line,
    .signal-line,
    .active-indicator,
    .progress-bar-fill,
    .kpi-accent
),
body.brioux-gateway-ui :where(
    .accent-line,
    .signal-line,
    .active-indicator,
    .progress-bar-fill,
    .kpi-accent
) {
    background: #FF2B86 !important;
    box-shadow: 0 0 14px rgba(255,43,134,0.26) !important;
}


/* No giant pink panels / Barbie effect */
body.brioux-executive-ui :where(
    .card,
    .panel,
    .workspace-card,
    .dashboard-card,
    .summary-card
)[style*="#ff" i],
body.brioux-gateway-ui :where(
    .login-card,
    .gateway-card,
    .portal-card,
    .auth-card
)[style*="#ff" i] {
    background-image: none;
}


/* =====================================================
   INPUTS
   ===================================================== */

body.brioux-executive-ui :where(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
),
body.brioux-gateway-ui :where(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
) {
    background: #090D12 !important;
    color: #F5F7FA !important;
    border: 1px solid rgba(200,206,216,0.22) !important;
}

body.brioux-executive-ui :where(
    input,
    select,
    textarea
)::placeholder,
body.brioux-gateway-ui :where(
    input,
    select,
    textarea
)::placeholder {
    color: #9EA7B4 !important;
}

body.brioux-executive-ui :where(
    input,
    select,
    textarea
):focus,
body.brioux-gateway-ui :where(
    input,
    select,
    textarea
):focus {
    border-color: #FF2B86 !important;
    box-shadow: 0 0 0 3px rgba(255,43,134,0.10) !important;
}


/* =====================================================
   TABLES
   ===================================================== */

body.brioux-executive-ui table,
body.brioux-gateway-ui table {
    background: #11151C !important;
    color: #F5F7FA !important;
}

body.brioux-executive-ui thead,
body.brioux-executive-ui th,
body.brioux-gateway-ui thead,
body.brioux-gateway-ui th {
    background: #1A2029 !important;
    color: #C8CED8 !important;
}

body.brioux-executive-ui tbody tr,
body.brioux-gateway-ui tbody tr {
    background: #11151C !important;
    color: #F5F7FA !important;
}

body.brioux-executive-ui tbody tr:nth-child(even),
body.brioux-gateway-ui tbody tr:nth-child(even) {
    background: #151A21 !important;
}

/* BRIOUX_SURFACE_CONTRAST_LOCK_V2 */

/*
=========================================================
FINAL BRIOUX SURFACE RULES

DARK SURFACE:
  Text = white / metallic silver / muted silver

LIGHT SURFACE:
  Text = black / graphite / charcoal

BRAND ACCENT:
  One pink only: #FF2B86

Dark gradient reference:
  Client Support visual language.
=========================================================
*/


/* =====================================================
   ONE PINK. EVERYWHERE.
   ===================================================== */

body.brioux-executive-ui,
body.brioux-gateway-ui,
body.brioux-executive-ui *,
body.brioux-gateway-ui * {
    --primary-brand: #FF2B86 !important;
    --accent-brand: #FF2B86 !important;
    --brand-pink: #FF2B86 !important;
    --brand-magenta: #FF2B86 !important;
    --pink: #FF2B86 !important;
    --magenta: #FF2B86 !important;
    --hot-pink: #FF2B86 !important;
    --ai-purple: #FF2B86 !important;
}


/* =====================================================
   DARK APPLICATION SURFACES
   SUPPORT-STYLE GRADIENT
   ===================================================== */

body.brioux-executive-ui :where(
    main,
    .main-content,
    .workspace,
    .workspace-content,
    .dashboard-content,
    .master-content,
    .portal-content
) {
    color: #F5F7FA !important;
}

body.brioux-executive-ui :where(
    [class*="card"],
    [class*="panel"],
    [class*="workspace"],
    [class*="dashboard-card"],
    [class*="summary-card"],
    [class*="metric-card"],
    [class*="hub-card"],
    [class*="data-card"],
    [class*="form-card"],
    [class*="section-card"],
    [class*="content-card"],
    [class*="settings-card"],
    [class*="profile-card"]
):not(
    .brx-surface-light
):not(
    .brx-document-surface
):not(
    .document-preview
):not(
    .print-preview
):not(
    .pdf-preview
) {
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(255,43,134,0.045),
            transparent 25%
        ),
        linear-gradient(
            150deg,
            #181D25 0%,
            #11161D 48%,
            #0C1016 100%
        ) !important;

    color: #F5F7FA !important;

    border-color:
        rgba(200,206,216,0.18) !important;
}


/* =====================================================
   DARK SURFACE TYPOGRAPHY
   ===================================================== */

body.brioux-executive-ui :where(
    [class*="card"],
    [class*="panel"],
    [class*="workspace"],
    [class*="dashboard-card"],
    [class*="summary-card"],
    [class*="metric-card"],
    [class*="hub-card"],
    [class*="data-card"],
    [class*="form-card"],
    [class*="section-card"],
    [class*="content-card"],
    [class*="settings-card"],
    [class*="profile-card"]
):not(
    .brx-surface-light
):not(
    .brx-document-surface
) :where(
    h1,h2,h3,h4,h5,h6,strong,b,label,legend
) {
    color: #F5F7FA !important;
}

body.brioux-executive-ui :where(
    [class*="card"],
    [class*="panel"],
    [class*="workspace"],
    [class*="dashboard-card"],
    [class*="summary-card"],
    [class*="metric-card"],
    [class*="hub-card"],
    [class*="data-card"],
    [class*="form-card"],
    [class*="section-card"],
    [class*="content-card"],
    [class*="settings-card"],
    [class*="profile-card"]
):not(
    .brx-surface-light
):not(
    .brx-document-surface
) :where(
    p,span,small,li,td,.subtitle,.description
) {
    color: #C8CED8 !important;
}

body.brioux-executive-ui :where(
    [class*="card"],
    [class*="panel"],
    [class*="workspace"],
    [class*="dashboard-card"],
    [class*="summary-card"]
) :where(
    .muted,
    .text-muted,
    .helper-text,
    .caption,
    .meta,
    .fine-print
) {
    color: #9EA7B4 !important;
}


/* =====================================================
   INLINE DARK BACKGROUNDS
   NEVER DARK TEXT ON DARK
   ===================================================== */

body.brioux-executive-ui :where(
    [style*="background: black" i],
    [style*="background:black" i],
    [style*="background: #000" i],
    [style*="background:#000" i],
    [style*="background: #080a0e" i],
    [style*="background:#080a0e" i],
    [style*="background: #12161d" i],
    [style*="background:#12161d" i],
    [style*="background: #252b34" i],
    [style*="background:#252b34" i]
) {
    color: #F5F7FA !important;
}

body.brioux-executive-ui :where(
    [style*="background: black" i],
    [style*="background:black" i],
    [style*="background: #000" i],
    [style*="background:#000" i],
    [style*="background: #080a0e" i],
    [style*="background:#080a0e" i],
    [style*="background: #12161d" i],
    [style*="background:#12161d" i],
    [style*="background: #252b34" i],
    [style*="background:#252b34" i]
) :where(
    h1,h2,h3,h4,h5,h6,strong,b,label
) {
    color: #F5F7FA !important;
}

body.brioux-executive-ui :where(
    [style*="background: black" i],
    [style*="background:black" i],
    [style*="background: #000" i],
    [style*="background:#000" i],
    [style*="background: #080a0e" i],
    [style*="background:#080a0e" i],
    [style*="background: #12161d" i],
    [style*="background:#12161d" i],
    [style*="background: #252b34" i],
    [style*="background:#252b34" i]
) :where(
    p,span,small,li,td
) {
    color: #C8CED8 !important;
}


/* =====================================================
   WHITE / LIGHT SURFACES
   NEVER LIGHT TEXT ON LIGHT
   ===================================================== */

body.brioux-executive-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview,
    .invoice-preview,
    .statement-preview
) {
    background: #FFFFFF !important;

    color: #12161D !important;
}

body.brioux-executive-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview,
    .invoice-preview,
    .statement-preview
) :where(
    h1,h2,h3,h4,h5,h6,strong,b,label,legend
) {
    color: #12161D !important;
}

body.brioux-executive-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview,
    .invoice-preview,
    .statement-preview
) :where(
    p,span,small,li,td
) {
    color: #252B34 !important;
}

body.brioux-executive-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview
) :where(
    .muted,
    .text-muted,
    .subtitle,
    .helper-text,
    .caption,
    .meta
) {
    color: #4B5563 !important;
}


/* INLINE WHITE SURFACES */

body.brioux-executive-ui :where(
    [style*="background: white" i],
    [style*="background:white" i],
    [style*="background: #fff" i],
    [style*="background:#fff" i],
    [style*="background: #ffffff" i],
    [style*="background:#ffffff" i],
    [style*="background-color: white" i],
    [style*="background-color:white" i],
    [style*="background-color: #fff" i],
    [style*="background-color:#fff" i],
    [style*="background-color: #ffffff" i],
    [style*="background-color:#ffffff" i]
) {
    color: #12161D !important;
}

body.brioux-executive-ui :where(
    [style*="background: white" i],
    [style*="background:white" i],
    [style*="background: #fff" i],
    [style*="background:#fff" i],
    [style*="background: #ffffff" i],
    [style*="background:#ffffff" i],
    [style*="background-color: white" i],
    [style*="background-color:white" i],
    [style*="background-color: #fff" i],
    [style*="background-color:#fff" i],
    [style*="background-color: #ffffff" i],
    [style*="background-color:#ffffff" i]
) :where(
    h1,h2,h3,h4,h5,h6,strong,b,label,
    p,span,small,li,td
) {
    color: #12161D !important;
}


/* =====================================================
   PRIMARY ACTIONS
   ONE PINK ONLY
   ===================================================== */

body.brioux-executive-ui :where(
    .btn-primary,
    .primary-button,
    .btn-login,
    .gateway-button,
    .portal-button,
    button.primary
),
body.brioux-gateway-ui :where(
    .btn-primary,
    .primary-button,
    .btn-login,
    .gateway-button,
    .portal-button,
    button.primary
) {
    background: #FF2B86 !important;

    background-image: none !important;

    color: #FFFFFF !important;

    border-color: #FF2B86 !important;

    box-shadow:
        0 8px 20px rgba(255,43,134,0.18) !important;
}


/* =====================================================
   ACTIVE NAVIGATION
   PINK = SIGNAL ONLY
   ===================================================== */

body.brioux-executive-ui :where(
    .nav-item.active,
    .sub-nav-item.active,
    .tab.active,
    .is-active
) {
    background:
        rgba(255,43,134,0.055) !important;

    color:
        #F5F7FA !important;

    border-color:
        #FF2B86 !important;

    box-shadow:
        inset 0 -2px 0 #FF2B86 !important;
}


/* =====================================================
   COMMON LEGACY BRAND COLOR CORRECTIONS
   ===================================================== */

body.brioux-executive-ui :where(
    [style*="#E52B50" i],
    [style*="#e52b50" i],
    [style*="#FF1493" i],
    [style*="#ff1493" i],
    [style*="#EC4899" i],
    [style*="#ec4899" i],
    [style*="#E91E63" i],
    [style*="#e91e63" i]
),
body.brioux-gateway-ui :where(
    [style*="#E52B50" i],
    [style*="#e52b50" i],
    [style*="#FF1493" i],
    [style*="#ff1493" i],
    [style*="#EC4899" i],
    [style*="#ec4899" i],
    [style*="#E91E63" i],
    [style*="#e91e63" i]
) {
    --primary-brand: #FF2B86 !important;
    --accent-brand: #FF2B86 !important;
}


/* =====================================================
   SUPPORT VISUAL LANGUAGE
   ===================================================== */

body.brioux-executive-ui :where(
    main[class*="support"],
    section[class*="support"],
    div[class*="support-card"],
    div[class*="support-panel"],
    div[class*="support-workspace"]
) {
    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(255,43,134,0.055),
            transparent 24%
        ),
        linear-gradient(
            150deg,
            #181D25,
            #10151C 52%,
            #0A0E13
        ) !important;

    color:
        #F5F7FA !important;
}

/* BRIOUX_STRICT_SURFACE_TEXT_RULES_V1 */

/*
BLACK       -> WHITE TEXT ONLY
GRAPHITE    -> WHITE / SILVER
CHARCOAL    -> WHITE / SILVER
WHITE       -> BLACK / GRAPHITE ONLY

CANONICAL PINK:
#FF2B86
*/


/* =====================================================
   PURE BLACK / NEAR-BLACK SURFACES
   WHITE TEXT ONLY
   ===================================================== */

body.brioux-executive-ui :where(
    .brx-black-surface,
    .app-shell,
    .page-shell,
    .main-shell,
    .sidebar,
    .master-sidebar,
    .side-nav
),
body.brioux-gateway-ui :where(
    .brx-black-surface
) {
    color: #FFFFFF !important;
}

body.brioux-executive-ui :where(
    .brx-black-surface,
    .app-shell,
    .page-shell,
    .main-shell,
    .sidebar,
    .master-sidebar,
    .side-nav
) :where(
    h1,h2,h3,h4,h5,h6,
    p,span,small,strong,b,
    label,legend,
    li,td,th,
    .subtitle,
    .description,
    .muted,
    .text-muted,
    .helper-text,
    .caption,
    .meta,
    .fine-print
),
body.brioux-gateway-ui :where(
    .brx-black-surface
) :where(
    h1,h2,h3,h4,h5,h6,
    p,span,small,strong,b,
    label,legend,
    li,td,th,
    .subtitle,
    .description,
    .muted,
    .text-muted,
    .helper-text,
    .caption,
    .meta,
    .fine-print
) {
    color: #FFFFFF !important;
}


/* Inline black surfaces */

body.brioux-executive-ui :where(
    [style*="background: black" i],
    [style*="background:black" i],
    [style*="background: #000" i],
    [style*="background:#000" i],
    [style*="background: #000000" i],
    [style*="background:#000000" i],
    [style*="background: #080a0e" i],
    [style*="background:#080a0e" i],
    [style*="background-color: black" i],
    [style*="background-color:black" i],
    [style*="background-color: #000" i],
    [style*="background-color:#000" i],
    [style*="background-color: #080a0e" i],
    [style*="background-color:#080a0e" i]
) {
    color: #FFFFFF !important;
}

body.brioux-executive-ui :where(
    [style*="background: black" i],
    [style*="background:black" i],
    [style*="background: #000" i],
    [style*="background:#000" i],
    [style*="background: #000000" i],
    [style*="background:#000000" i],
    [style*="background: #080a0e" i],
    [style*="background:#080a0e" i],
    [style*="background-color: black" i],
    [style*="background-color:black" i],
    [style*="background-color: #000" i],
    [style*="background-color:#000" i],
    [style*="background-color: #080a0e" i],
    [style*="background-color:#080a0e" i]
) :where(
    h1,h2,h3,h4,h5,h6,
    p,span,small,strong,b,
    label,legend,
    li,td,th,
    .subtitle,
    .description,
    .muted,
    .text-muted,
    .helper-text,
    .caption,
    .meta,
    .fine-print
) {
    color: #FFFFFF !important;
}


/* =====================================================
   GRAPHITE / CHARCOAL
   WHITE OR SILVER ALLOWED
   ===================================================== */

body.brioux-executive-ui :where(
    .brx-graphite-surface,
    .brx-charcoal-surface,
    .card,
    .panel,
    .workspace-card,
    .dashboard-card,
    .metric-card,
    .summary-card,
    .hub-card,
    .form-card,
    .section-card
) :where(
    h1,h2,h3,h4,h5,h6,strong,b
) {
    color: #FFFFFF !important;
}

body.brioux-executive-ui :where(
    .brx-graphite-surface,
    .brx-charcoal-surface,
    .card,
    .panel,
    .workspace-card,
    .dashboard-card,
    .metric-card,
    .summary-card,
    .hub-card,
    .form-card,
    .section-card
) :where(
    p,span,small,label,
    li,td,
    .subtitle,
    .description
) {
    color: #C8CED8 !important;
}

body.brioux-executive-ui :where(
    .brx-graphite-surface,
    .brx-charcoal-surface,
    .card,
    .panel,
    .workspace-card,
    .dashboard-card
) :where(
    .muted,
    .text-muted,
    .helper-text,
    .caption,
    .meta
) {
    color: #9EA7B4 !important;
}


/* =====================================================
   WHITE / LIGHT SURFACES
   BLACK / GRAPHITE TEXT ONLY
   ===================================================== */

body.brioux-executive-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview,
    .invoice-preview,
    .statement-preview
) {
    color: #12161D !important;
}

body.brioux-executive-ui :where(
    .brx-surface-light,
    .brx-document-surface,
    .document-preview,
    .print-preview,
    .pdf-preview,
    .invoice-preview,
    .statement-preview
) :where(
    h1,h2,h3,h4,h5,h6,
    p,span,small,strong,b,
    label,legend,
    li,td,th,
    .subtitle,
    .description,
    .muted,
    .text-muted,
    .helper-text,
    .caption,
    .meta,
    .fine-print
) {
    color: #12161D !important;
}


/* Inline white surfaces */

body.brioux-executive-ui :where(
    [style*="background: white" i],
    [style*="background:white" i],
    [style*="background: #fff" i],
    [style*="background:#fff" i],
    [style*="background: #ffffff" i],
    [style*="background:#ffffff" i],
    [style*="background-color: white" i],
    [style*="background-color:white" i],
    [style*="background-color: #fff" i],
    [style*="background-color:#fff" i],
    [style*="background-color: #ffffff" i],
    [style*="background-color:#ffffff" i]
) {
    color: #12161D !important;
}

body.brioux-executive-ui :where(
    [style*="background: white" i],
    [style*="background:white" i],
    [style*="background: #fff" i],
    [style*="background:#fff" i],
    [style*="background: #ffffff" i],
    [style*="background:#ffffff" i],
    [style*="background-color: white" i],
    [style*="background-color:white" i],
    [style*="background-color: #fff" i],
    [style*="background-color:#fff" i],
    [style*="background-color: #ffffff" i],
    [style*="background-color:#ffffff" i]
) :where(
    h1,h2,h3,h4,h5,h6,
    p,span,small,strong,b,
    label,legend,
    li,td,th,
    .subtitle,
    .description,
    .muted,
    .text-muted,
    .helper-text,
    .caption,
    .meta,
    .fine-print
) {
    color: #12161D !important;
}


/* =====================================================
   CANONICAL PINK
   ONE PINK ONLY
   ===================================================== */

body.brioux-executive-ui,
body.brioux-gateway-ui {
    --brx-pink: #FF2B86 !important;
    --primary-brand: #FF2B86 !important;
    --accent-brand: #FF2B86 !important;
    --brand-pink: #FF2B86 !important;
    --brand-magenta: #FF2B86 !important;
    --pink: #FF2B86 !important;
    --magenta: #FF2B86 !important;
    --hot-pink: #FF2B86 !important;
}


/* Pink remains accent, not text hierarchy */

body.brioux-executive-ui :where(
    .btn-primary,
    .primary-button,
    .btn-login,
    button.primary
),
body.brioux-gateway-ui :where(
    .btn-primary,
    .primary-button,
    .btn-login,
    button.primary
) {
    background: #FF2B86 !important;
    background-image: none !important;
    border-color: #FF2B86 !important;
    color: #FFFFFF !important;
}


/* Active elements get a pink signal, not a pink wall */

body.brioux-executive-ui :where(
    .nav-item.active,
    .sub-nav-item.active,
    .tab.active,
    .is-active
) {
    color: #FFFFFF !important;

    background:
        rgba(255,43,134,0.045) !important;

    border-color:
        #FF2B86 !important;

    box-shadow:
        inset 0 -2px 0 #FF2B86 !important;
}
