/* NPC INTELLECT 2.4 — legacy pages, form and reporting contrast fix */
:root{color-scheme:light!important;--green:#4338ca;--green-700:#3730a3;--gold:#6366f1;--gold-700:#4338ca;--text:#0e1830;--muted:#17243c;--bg:#f2f5fa;--white:#fff;--field-bg:#fff;--border:#ccd7e8;--chip-bg:#eef2ff;--soft-bg:#eef2ff;--grad-primary:linear-gradient(110deg,#4338ca,#6366f1);--grad-accent:linear-gradient(110deg,#4338ca,#6366f1);--grad-bg:linear-gradient(180deg,#f4f6fb,#edf1f9)}
@media(prefers-color-scheme:dark){:root{color-scheme:light!important;--text:#0e1830;--muted:#17243c;--bg:#f2f5fa;--white:#fff;--field-bg:#fff;--border:#ccd7e8;--chip-bg:#eef2ff;--soft-bg:#eef2ff;--grad-bg:linear-gradient(180deg,#f4f6fb,#edf1f9)}}
body.npc-intellect-page{background:#f2f5fa!important;color:#0e1830!important}
body.npc-intellect-page :is(main,.shell){min-width:0}
body.npc-intellect-page .hero{background:linear-gradient(115deg,#101b36,#1c2850)!important;color:#fff!important;border-color:#354469!important}
body.npc-intellect-page .hero :is(h1,h2,h3,p,small,span,strong){color:#fff!important}
body.npc-intellect-page :is(.panel,.card,.metric,.summary-card,.stat-card){background:#fff!important;color:#0e1830!important;border-color:#d6dfed!important}
body.npc-intellect-page :is(.panel,.card,.metric,.summary-card,.stat-card) :is(h1,h2,h3,h4,p,small,span,label,strong){color:#0e1830}
body.npc-intellect-page .metric strong{color:#0e1830!important}
body.npc-intellect-page :is(.bar,.trend-track,.progress-track){background:#e3e9f4!important}
body.npc-intellect-page :is(.bar>span,.trend-fill,.progress-fill){background:#4f46e5!important;background-image:linear-gradient(90deg,#4338ca,#818cf8)!important}
body.npc-intellect-page :is(.muted,.hint,.subtle,.help,.caption,.note){color:#17243c!important;opacity:1!important}
body.npc-intellect-page :is(button,.btn,input[type=submit]):not(.star):not(.acc-btn):not(.secondary):not(.btn-ghost):not([class*=outline]){background:#4338ca!important;color:#fff!important;border-color:#6366f1!important}
body.npc-intellect-page :is(button,.btn):is(.secondary,.btn-ghost,.secondary-action){background:#eef2ff!important;color:#0e1830!important;border:1px solid #a8b5cc!important}
body.npc-intellect-page :is(button,.btn):disabled{opacity:.55!important}
body.npc-intellect-page :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#fff!important;color:#0e1830!important;border-color:#a8b5cc!important}
body.npc-intellect-page :is(input,textarea)::placeholder{color:#334155!important;opacity:1!important}
body.npc-intellect-page :is(.warn,.warning,.notice){background:#eef2ff!important;color:#0e1830!important;border-left-color:#6366f1!important}
body.npc-intellect-page :is(.warn,.warning,.notice) *{color:#0e1830!important}
body.npc-intellect-page progress{accent-color:#4f46e5!important}
body.npc-intellect-page :is(th,thead th){background:#1d2e50!important;color:#fff!important}
body.npc-intellect-page :is(td,tbody th){color:#0e1830!important}
body.npc-intellect-page .report-heading{color:#0e1830!important}
body.npc-intellect-form .topbar{background:#0e1830!important;color:#fff!important}
body.npc-intellect-form .topbar :is(h1,h2,h3,p,small,span,strong){color:#fff!important;opacity:1!important}
body.npc-intellect-form .topbar :is(.badge,.pill,.privacy-badge,.privacy-chip),body.npc-intellect-form .topbar :is(.badge,.pill,.privacy-badge,.privacy-chip) *{background:#eef2ff!important;color:#0e1830!important;opacity:1!important}
body.npc-intellect-form :is(.acc-btn,.accordion-header){background:#1d2e50!important;color:#fff!important}
body.npc-intellect-form :is(.acc-btn,.accordion-header) :is(h1,h2,h3,p,span,strong,small){color:#fff!important}
body.npc-intellect-form :is(.acc-btn,.accordion-header) :is(.badge,.pill,.count,.counter,[class*=count]),body.npc-intellect-form :is(.acc-btn,.accordion-header) :is(.badge,.pill,.count,.counter,[class*=count]) *{background:#eef2ff!important;color:#0e1830!important}
body.npc-intellect-form #submitBtn{background:#4338ca!important;color:#fff!important}
body.npc-intellect-form .topbar :is(.admin-link,a):not(.badge){color:#0e1830!important;background:#eef2ff!important}
body.npc-intellect-form :is(label,.form-label,.field-label){color:#0e1830!important}
body.npc-intellect-form footer,body.npc-intellect-form footer *{color:#0e1830!important}
@media print{body.npc-intellect-page{background:#fff!important;color:#000!important}body.npc-intellect-page .hero{background:#fff!important;color:#000!important}body.npc-intellect-page .hero *{color:#000!important}}
