/* SICOP Theme Repair — intentional high-contrast light experience.
   Dark mode remains Reference Match. Light mode keeps a premium bright canvas.
   Loaded last after the reference design. */
body[data-theme="light"]{
 color-scheme:light!important;
 background:#f1f5fd!important;
 color:#23334f!important;
}
body[data-theme="light"] #app{
 background:
  radial-gradient(ellipse at 9% 18%,#dcd8ff88,transparent 38%),
  radial-gradient(ellipse at 86% 29%,#c4f0fc9a,transparent 38%),
  linear-gradient(155deg,#f9fbff,#f1f5fd 63%,#f7f8ff)!important;
 color:#243453!important;
}
body[data-theme="light"] #app>.sidebar{
 background:linear-gradient(100deg,#fff,#f7f7ff 68%,#effaff)!important;
 color:#273855!important;
 border-bottom:1px solid #cbd8ef!important;
 box-shadow:0 7px 24px #233f7720!important;
}
body[data-theme="light"] #app>.sidebar .brand{color:#263554!important}
body[data-theme="light"] #app>.sidebar .brand em{color:#7158d3!important}
body[data-theme="light"] #app>.sidebar .brand small{color:#627797!important}
body[data-theme="light"] #app>.sidebar #primaryNav button{
 color:#435475!important;background:transparent!important;
}
body[data-theme="light"] #app>.sidebar #primaryNav button.active{
 background:linear-gradient(110deg,#e5e1ff,#eee7ff)!important;
 color:#4a3c9a!important;border:1px solid #b8a9eb!important;
 box-shadow:inset 0 -2px #9a83ec,0 4px 15px #7954b31e!important;
}
body[data-theme="light"] #app>.sidebar #primaryNav button:not(.active):hover{
 color:#334c8b!important;background:#e8efff!important;
}
body[data-theme="light"] #app>.sidebar #themeSwitch,
body[data-theme="light"] #app>.sidebar #logout{
 color:#374b70!important;
 background:#edf2ff!important;border:1px solid #cbd7ed!important;
}
body[data-theme="light"] #app>.sidebar .sicop-command-trigger{
 color:#314368!important;background:#edf1ff!important;
 border-color:#c5d2ee!important;
}
body[data-theme="light"] #app>main>.periodbar{
 background:#ffffffeb!important;color:#354d73!important;
 border-color:#d4dfee!important;box-shadow:0 8px 22px #45628b13!important;
}
body[data-theme="light"] #app>main>.periodbar label,
body[data-theme="light"] #app>main>.periodbar .scope,
body[data-theme="light"] #app>main>.periodbar .period-sync-summary{
 color:#415a80!important;
}
body[data-theme="light"] #app>main>.periodbar select{
 color:#26395f!important;background:#f9fbff!important;border-color:#c8d6ed!important;
}
body[data-theme="light"] #content .living-hero{
 background:
  radial-gradient(ellipse at 88% 24%,#a1e6f8a1,transparent 43%),
  radial-gradient(ellipse at 13% 93%,#dbc4ff8a,transparent 50%),
  linear-gradient(115deg,#fff,#f6f8ff 52%,#e8f2ff)!important;
 color:#223453!important;border:1px solid #ccdcf1!important;
 box-shadow:0 22px 54px #394e8c2c!important;
}
body[data-theme="light"] #content .living-hero::before{
 border-top-color:#9868e77a!important;
 box-shadow:0 -16px 45px #996be03b,0 -40px 80px #9e82e32a!important;
}
body[data-theme="light"] #content .living-hero::after{
 opacity:.35!important;
}
body[data-theme="light"] #content .living-hero .radar-copy h2{
 color:#1f3156!important;text-shadow:none!important;
}
body[data-theme="light"] #content .living-hero .radar-copy h2 em{
 background:linear-gradient(90deg,#4f5ed2,#8050bf 65%,#ae52b5)!important;
 background-clip:text!important;
 -webkit-background-clip:text!important;
 -webkit-text-fill-color:transparent!important;
}
body[data-theme="light"] #content .living-hero .radar-intro{
 color:#435b82!important;
}
body[data-theme="light"] #content .living-hero .radar-eyebrow{color:#235c93!important;text-shadow:none!important}
body[data-theme="light"] #content .living-hero .radar-badge{
 background:#e9efff!important;color:#4563a0!important;
 border-color:#becfea!important;
}
body[data-theme="light"] #content .living-hero .radar-actions .radar-primary{
 background:linear-gradient(110deg,#7959eb,#a44bdc)!important;color:#fff!important;
}
body[data-theme="light"] #content .living-hero .radar-actions button:nth-child(2){
 background:#e3f3ff!important;border-color:#b7d8ef!important;color:#246383!important;
}
body[data-theme="light"] #content .living-hero .radar-actions button:nth-child(3){
 background:#e9e8ff!important;border-color:#ccc8ef!important;color:#504f9d!important;
}
/* Keep the dashboard instrument dark for visual depth, while controls are light. */
body[data-theme="light"] #content .living-hero .living-device{
 background:linear-gradient(140deg,#20396b,#19234e)!important;color:#f0f5ff!important;
}
body[data-theme="light"] #content .living-hero .living-floating{
 color:#fff!important;
}
body[data-theme="light"] #content .living-section-heading{color:#253755!important}
body[data-theme="light"] #content .living-title-tail{background:linear-gradient(90deg,#8068e8,#40bdd2,transparent)!important}
body[data-theme="light"] #content .living-kpi{
 color:#334663!important;
 box-shadow:0 10px 28px #3957851c!important;
}
body[data-theme="light"] #content .living-kpi-0{background:linear-gradient(125deg,#f1e5ff,#e5defa)!important;border-color:#c4a9ed!important}
body[data-theme="light"] #content .living-kpi-1{background:linear-gradient(125deg,#e3faff,#cfedf6)!important;border-color:#a1d8e8!important}
body[data-theme="light"] #content .living-kpi-2{background:linear-gradient(125deg,#e6f1ff,#dce8fb)!important;border-color:#aac6eb!important}
body[data-theme="light"] #content .living-kpi-3{background:linear-gradient(125deg,#ffecf8,#f3dcf1)!important;border-color:#dfb5db!important}
body[data-theme="light"] #content .living-kpi>strong{color:#2e4267!important}
body[data-theme="light"] #content .living-kpi .moneymini{color:#215e83!important}
body[data-theme="light"] #content .living-kpi>small{color:#4e6180!important}
body[data-theme="light"] #content .living-source-strip{
 background:#fff!important;color:#4a6084!important;border-color:#d6e2f3!important;
}
body[data-theme="light"] #content .living-source-strip b{color:#2b5283!important}
body[data-theme="light"] #content .living-intelligence-grid{
 background:linear-gradient(145deg,#f8faff,#edf3fc)!important;
 border:1px solid #ccd9ed!important;
 box-shadow:0 15px 38px #37517c1f!important;
}
body[data-theme="light"] #content .living-bank-chart{
 background:linear-gradient(145deg,#fff,#eef4ff)!important;
 border-color:#d0dff1!important;
}
body[data-theme="light"] #content .living-evolution{
 background:linear-gradient(145deg,#effffb,#e4f5f4)!important;
 border-color:#b4e2d7!important;
}
body[data-theme="light"] #content .living-insights{
 background:linear-gradient(145deg,#f3eaff,#eee7ff)!important;
 border-color:#cfc0ed!important;box-shadow:0 8px 27px #7158aa20!important;
}
body[data-theme="light"] #content .living-bank-chart .sectionhead h2,
body[data-theme="light"] #content .living-evolution-header h3,
body[data-theme="light"] #content .living-insights header strong{
 color:#243858!important;
}
body[data-theme="light"] #content .living-bank-chart .scope,
body[data-theme="light"] #content .living-evolution .scope,
body[data-theme="light"] #content .living-insight p{
 color:#4d6282!important;
}
body[data-theme="light"] #content .living-insights header small{color:#6b528e!important}
body[data-theme="light"] #content .living-bank-chart .chartrow{color:#34486b!important}
body[data-theme="light"] #content .living-bank-chart .track{background:#dbe4f2!important}
body[data-theme="light"] #content .living-bank-chart .track i{
 background:linear-gradient(90deg,#5f68d6,#9875e5)!important;
}
body[data-theme="light"] #content .living-discover,
body[data-theme="light"] #content .home-search{
 background:linear-gradient(145deg,#fff,#f4f6ff)!important;
 color:#273a5b!important;border-color:#d0def1!important;
}
body[data-theme="light"] #content .living-discover .radar-section-title h3,
body[data-theme="light"] #content .living-discover .radar-card h3,
body[data-theme="light"] #content .home-search h2,
body[data-theme="light"] #content .home-search label{
 color:#243858!important;
}
body[data-theme="light"] #content .living-discover .radar-card p,
body[data-theme="light"] #content .living-discover .radar-proof,
body[data-theme="light"] #content .home-search p{
 color:#506580!important;
}
body[data-theme="light"] #content .living-discover .radar-card-featured{background:#e7f8f3!important}
body[data-theme="light"] #content .living-discover .radar-card-secondary:nth-child(2){background:#e9f7fe!important}
body[data-theme="light"] #content .living-discover .radar-card-secondary:nth-child(3){background:#f4ecff!important}
body[data-theme="light"] #content .home-search input{
 color:#294260!important;background:#fff!important;border-color:#ced9ed!important;
}
body[data-theme="light"] #content .home-search input::placeholder{color:#7786a2!important}
body[data-theme="light"] #content .rev-analytics-panel{
 color:#293d5b!important;
}
body[data-theme="light"] #content .rev-panel-0{background:linear-gradient(130deg,#e3f9ff,#d7eef7)!important}
body[data-theme="light"] #content .rev-panel-1{background:linear-gradient(130deg,#f1e9ff,#e9e1fb)!important}
body[data-theme="light"] #content .rev-panel-2{background:linear-gradient(130deg,#fff0f8,#f9e0ef)!important}
body[data-theme="light"] #content .rev-panel-3{background:linear-gradient(130deg,#e5fff6,#d8f5e9)!important}
body[data-theme="light"] #content .rev-panel-4{background:linear-gradient(130deg,#fff8e8,#faebce)!important}
body[data-theme="light"] #content .rev-panel-5{background:linear-gradient(130deg,#edf6ff,#e3edff)!important}
body[data-theme="light"] #content .rev-panel-6{background:linear-gradient(130deg,#e5faff,#e0f0ff)!important}
body[data-theme="light"] #content .rev-panel-title h2{color:#243957!important}
body[data-theme="light"] #content .rev-ranking-row>span:first-child{color:#344a67!important}
body[data-theme="light"] #content .rev-ranking-row>b{color:#274365!important}
body[data-theme="light"] #content .rev-analytics-panel .scope{color:#506582!important}
@media(prefers-reduced-motion:reduce){body[data-theme="light"] *{scroll-behavior:auto!important}}
