/* Unslop by Damir Sokolovsky https://github.com/heydamir/unslop (CC BY 4.0).
   MPSCOPE visual adaptation 2026-11-14. Content, chart semantics and layouts preserved. */
@layer mpscope-unslop {
:root[data-mpscope-theme]{--theme-bg:#141415!important;--theme-surface:#19191b!important;--theme-raised:#232325!important;--theme-text:#ededed!important;--theme-muted:#a1a1a6!important;--theme-line:#303033!important;--theme-control:#626269!important;--theme-chart-neutral:#a1a1a6!important;--theme-accent-soft:#23352d!important;--u-bg:#f7f7f7;--u-surface:#fff;--u-raised:#f1f2f1;--u-line:#e7e8e6;--u-text:#1b1d18;--u-muted:#6c756e;--u-nav:#fff;--u-selected:#edf5f0;--u-selected-text:#006e49}
:root[data-mpscope-theme][data-theme=dark]{--u-bg:#141415;--u-surface:#19191b;--u-raised:#232325;--u-line:#303033;--u-text:#ededed;--u-muted:#a1a1a6;--u-nav:#101011;--u-selected:#25352d;--u-selected-text:#a2ddc1}
html[data-mpscope-theme] body{background:var(--u-bg)!important;color:var(--u-text)!important}
html[data-mpscope-theme] :is(button,input,select,textarea){font-family:Inter,system-ui,sans-serif!important;letter-spacing:normal!important}
html[data-mpscope-theme] :is(button,.btn,.button,input,select,textarea){border-radius:8px!important;box-shadow:none!important;transition:background-color 140ms ease-out,border-color 140ms ease-out,color 140ms ease-out!important}
html[data-mpscope-theme] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid #109769!important;outline-offset:3px!important}
html[data-mpscope-theme] :is(table,.rdKpi,.finance-kpi,.crm-kpi){font-variant-numeric:tabular-nums!important}
html[data-mpscope-theme] :is(h1,h2,h3){text-shadow:none!important;letter-spacing:normal!important}
html[data-mpscope-theme] :is(h2,h3){font-weight:500!important}
html[data-mpscope-theme] :is(.card,.panel,.box,.finance-kpi,.finance-panel,.finance-overhead-panel,.finance-cost-kpi,.fr-panel,.crm-card,.crm-column,.task-card,.task-column,.rdKpi){box-shadow:none!important;border-color:var(--u-line)!important;border-radius:12px!important}
html[data-mpscope-theme] :is(.card,.panel,.box,.finance-kpi,.finance-panel,.finance-overhead-panel,.finance-cost-kpi,.fr-panel,.crm-card,.task-card){background:var(--u-surface)!important}
html[data-mpscope-theme] :is(.crm-top,.crm-controls,.crm-column,.task-column){background:var(--u-bg)!important;border-color:var(--u-line)!important;box-shadow:none!important}
html[data-mpscope-theme] :is(dialog,[role=dialog]){background:var(--u-surface)!important;color:var(--u-text)!important;border:1px solid var(--u-line)!important;border-radius:16px!important}
html[data-mpscope-theme] dialog::backdrop{background:#101011a6!important}
html[data-mpscope-theme] :is(th,td){border-color:var(--u-line)!important}
html[data-mpscope-theme] th{font-weight:500!important}
html[data-mpscope-theme] #rdSidebar{background:var(--u-nav)!important;border-right:1px solid var(--u-line)!important;box-shadow:none!important}
html[data-mpscope-theme] #rdSidebar::before{background:none!important;box-shadow:none!important}
html[data-mpscope-theme] #rdSidebar .market-btn{background:transparent!important;border-color:transparent!important;border-radius:8px!important;box-shadow:none!important;color:var(--u-muted)!important}
html[data-mpscope-theme] #rdSidebar .market-btn.active{background:var(--u-raised)!important;color:var(--u-text)!important}
html[data-mpscope-theme] #rdSidebar .market-mark{background:transparent!important;color:inherit!important;box-shadow:none!important}
html[data-mpscope-theme] #rdSidebar .workspace-brand-switcher a{background:var(--u-raised)!important;color:var(--u-text)!important;box-shadow:none!important;border-color:var(--u-line)!important}
html[data-mpscope-theme] #rdOverviewFilters{background:transparent!important;border:0!important;border-bottom:1px solid var(--u-line)!important;border-radius:0!important;padding:0 0 24px!important;gap:16px!important;margin-bottom:24px!important;box-shadow:none!important}
html[data-mpscope-theme] #rdOverviewFilters :is(.overview-command-controls,.overview-detail-tabs,.overview-market-filter){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;gap:8px!important}
html[data-mpscope-theme] #rdOverviewFilters :is(button,.overview-period-picker){background:var(--u-surface)!important;border:1px solid var(--u-line)!important;color:var(--u-text)!important}
html[data-mpscope-theme] #rdOverviewFilters button.active{background:var(--u-selected)!important;color:var(--u-selected-text)!important}
html[data-mpscope-theme] #rdKpis{gap:12px!important}
html[data-mpscope-theme] #rdKpis .rdKpi{background:var(--u-surface)!important;padding:20px!important;border:1px solid var(--u-line)!important;border-radius:12px!important;box-shadow:none!important}
html[data-mpscope-theme] #rdKpis .rdKpi>span{color:var(--u-muted)!important;font-size:13px!important;font-weight:400!important}
html[data-mpscope-theme] #rdKpis .rdKpi>strong{color:var(--u-text)!important;font-weight:500!important;font-size:clamp(20px,1.55vw,27px)!important}
html[data-mpscope-theme] #rdKpis .rdLead{background:#006e49!important;border-color:#006e49!important}
html[data-mpscope-theme] #rdKpis .rdLead>span,html[data-mpscope-theme] #rdKpis .rdLead>strong{color:#fff!important}
html[data-mpscope-theme] :is(.rdLead,.btn-primary){background-image:none!important;box-shadow:none!important}
@media(max-width:700px){html[data-mpscope-theme] #rdKpis .rdKpi{padding:16px!important}html[data-mpscope-theme] #rdKpis .rdKpi>strong{font-size:clamp(18px,5vw,22px)!important}html[data-mpscope-theme] :is(dialog,[role=dialog]) :is(input,select,textarea){font-size:16px!important}}
@media(prefers-reduced-motion:reduce){html[data-mpscope-theme] :is(button,.btn,.button,input,select,textarea){transition:none!important}}
}
/* Readable empty-board guidance, including mobile and read-only role. */
@layer mpscope-unslop {
html[data-mpscope-theme][data-theme-page=ideas] #empty h1{color:var(--u-text)!important;opacity:1!important}
html[data-mpscope-theme][data-theme-page=ideas] #empty p{color:var(--u-muted)!important;opacity:1!important}
}

/* Marketplace lead KPI: removing its gradient must retain a solid accent. */
@layer mpscope-unslop {
html[data-mpscope-theme] .pfr-kpi.primary{background:#006e49!important;border-color:#006e49!important;color:#fff!important;box-shadow:none!important}
html[data-mpscope-theme] .pfr-kpi.primary>span,html[data-mpscope-theme] .pfr-kpi.primary>strong{color:#fff!important}
html[data-mpscope-theme] .pfr-kpi.primary .pfr-kpi-meta{color:#d2f1e2!important}
}
