/* SICOP Intelligence — Reference Match v1
   Scoped entirely to Inicio. Recreates the approved indigo/cyan/violet
   enterprise showcase using actual HTML UI, never a static poster.
   Colors and spatial rhythm calibrated from the user's reference.
 */
body:not([data-theme="light"]):has(#content .living-hero){
 --ref-navy:#0a1233;--ref-indigo:#7751ed;--ref-violet:#af59f2;
 --ref-cyan:#4ee0f3;--ref-teal:#43d6c5;--ref-rose:#f48bd3;
 --ref-line:#6170b2;--ref-ink:#f5f5ff;--ref-muted:#c0c9e8;
 background:#090f2d!important;color:var(--ref-ink)!important;
 color-scheme:dark;
}
body:not([data-theme="light"]):has(#content .living-hero) #app{
 background:
 radial-gradient(ellipse at 75% 16%,#1749a53d,transparent 43%),
 radial-gradient(ellipse at 4% 37%,#6d259c23,transparent 42%),
 linear-gradient(155deg,#0c1438,#08102d 58%,#0a1235)!important;
 min-height:100vh;
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar{
 height:68px!important;min-height:68px!important;
 background:linear-gradient(90deg,#0b1134,#0c1737 66%,#0b1436)!important;
 border-bottom:1px solid #6767c5!important;
 border-image:none!important;
 box-shadow:0 4px 24px #03082455,0 1px 0 #3ad8e734!important;
 color:#f2f1ff!important;
 gap:clamp(9px,1.5vw,25px);
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar .brand{
 position:relative;padding-left:49px;
 color:#f6f4ff!important;
 letter-spacing:-.045em;
 font-size:19px!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar .brand::before{
 content:"";position:absolute;left:0;top:2px;width:39px;height:34px;
 border-radius:60% 20% 60% 25%;
 background:linear-gradient(145deg,#c061f0 0%,#804ef1 40%,#21dfda 75%,#15b8e8);
 clip-path:polygon(0 65%,15% 22%,65% 0,100% 5%,68% 33%,23% 59%,4% 100%);
 box-shadow:0 0 17px #9947f582;
 transform:rotate(-12deg);
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar .brand em{
 color:#c3a7ff!important;text-shadow:0 0 17px #795afc55!important
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar .brand small{color:#b3c3ee!important}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar #primaryNav button{
 color:#d5d7f2!important;
 border-radius:22px!important;
 background:transparent!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar #primaryNav button.active{
 background:linear-gradient(115deg,#6238bc,#914ad9)!important;
 color:#fff!important;
 border:1px solid #aa82ff!important;
 box-shadow:inset 0 1px #d7b9ff66,0 0 22px #9d64ff5c!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar #primaryNav button:not(.active):hover{
 background:#252957!important;color:#fff!important;border-color:#6d73a5!important
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar #primaryNav button.active::after{
 background:#c794ff!important
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar .sicop-command-trigger{
 border-radius:24px!important;
 background:#151c48!important;border-color:#59649e!important;color:#dde7ff!important;
 min-width:190px;max-width:300px;
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar .sicop-command-trigger kbd{
 color:#c3cbed!important;border-color:#5d70ac!important
}
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar #themeSwitch,
body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar #logout{
 background:#131c45!important;color:#dbe4ff!important;
 border:1px solid #5869a3!important;border-radius:22px!important;
 box-shadow:inset 0 1px #ffffff12;
}
body:not([data-theme="light"]):has(#content .living-hero) #app>main{
 max-width:1880px!important;
 padding:10px clamp(17px,2.1vw,38px) 36px!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #app>main>.periodbar{
 min-height:39px!important;padding:6px 15px!important;margin:4px 0 11px!important;
 border-radius:13px!important;border:1px solid #45589185!important;
 background:#121c42cc!important;box-shadow:inset 0 1px #ffffff0b!important;
 color:#c5d4f6!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #app>main>.periodbar label,
body:not([data-theme="light"]):has(#content .living-hero) #app>main>.periodbar .scope,
body:not([data-theme="light"]):has(#content .living-hero) #app>main>.periodbar .period-sync-summary{
 color:#c2cce9!important;font-size:11px!important
}
body:not([data-theme="light"]):has(#content .living-hero) #app>main>.periodbar select{
 background:#1a2751!important;border-color:#6378b6!important;
 color:#eef3ff!important;border-radius:11px!important;padding:7px 14px!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content{color:#f4f5ff!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero{
 margin:0!important;
 border-radius:24px!important;
 background:
 radial-gradient(ellipse at 81% 36%,#0c96c13e,transparent 37%),
 radial-gradient(ellipse at 14% 96%,#8d1ac93b,transparent 34%),
 linear-gradient(123deg,#0b1335,#0c193b 64%,#0d1a48)!important;
 padding:clamp(25px,2.4vw,42px)!important;
 border:1px solid #5768b17d!important;
 box-shadow:inset 0 1px #c9caff23,0 22px 62px #050a256a!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero::before{
 left:-26%;bottom:-460px;width:120%;height:570px;
 border-top:3px solid #9d50f1aa;box-shadow:0 -25px 80px #6f22dd7d,0 -70px 140px #723ce847;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero::after{
 inset:auto -12% -140px -12%;height:270px;
 background:radial-gradient(ellipse at 60% 45%,#0db9e738,transparent 60%),radial-gradient(ellipse at 18% 80%,#e158f234,transparent 45%);
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-top{
 align-items:center;gap:12px;flex-wrap:wrap;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-eyebrow{
 color:#57e0ff!important;font-size:11px!important;letter-spacing:.16em!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-badge{
 margin-left:auto;font-size:10px!important;padding:7px 11px!important;
 background:#24356c99!important;color:#dbe9ff!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-showcase{
 grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;
 gap:clamp(8px,2vw,40px)!important;
 margin:7px 0 15px!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-copy h2{
 color:#fbf9ff!important;
 font-size:clamp(38px,3.7vw,69px)!important;
 letter-spacing:-.05em!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-copy h2 em{
 background:linear-gradient(90deg,#b4b5ff,#ac89fa 55%,#ed93f1)!important;
 -webkit-background-clip:text!important;background-clip:text!important;
 -webkit-text-fill-color:transparent!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-intro{color:#d4ddf8!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-actions .radar-primary{
 background:linear-gradient(110deg,#7951ee,#b24deb)!important;color:white!important;
 border-color:#bf83ff!important;border-radius:15px!important;
 box-shadow:0 11px 27px #8036e65e,0 0 30px #ae62ee45!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-actions button:nth-child(2){
 background:#102648!important;color:#d2f9ff!important;border-color:#33b9da!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-actions button:nth-child(3){
 background:#24234e!important;color:#e2d9ff!important;border-color:#8878c6!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero-stage{height:410px!important;min-height:0}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-device{
 width:min(85%,680px)!important;min-height:290px;
 border-radius:27px!important;
 background:linear-gradient(142deg,#1b3264,#151d49 69%,#242057)!important;
 border-color:#809cfb!important;
 box-shadow:inset 0 1px #cae6ff66,0 0 0 4px #8668f51a,0 34px 72px #030928b7,0 0 34px #33c7ec66!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-device-head{border-color:#b2beff3b!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-device-trend{
 background:linear-gradient(135deg,#1c2e56,#17274b)!important;
 border-color:#6679b9!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-line-cyan{color:#66e3ff!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-orbit-glow{
 background:radial-gradient(ellipse at center,#0ad9f28a,#893de756,transparent 70%)!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-floating{backdrop-filter:blur(16px)}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-float-a{
 background:linear-gradient(130deg,#8346cce8,#4a277ade)!important;
 border-color:#e090ff!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-float-b{
 background:linear-gradient(130deg,#2b4ca1e8,#132956e9)!important;
 border-color:#66dfff!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-float-c{
 background:linear-gradient(130deg,#26429be8,#242750e9)!important;
 border-color:#8798fc!important;
}
/* Make the dashboard a contiguous midnight-blue dashboard just like the reference. */
body:not([data-theme="light"]):has(#content .living-hero) #content .living-section-heading{
 margin:24px 0 14px!important;color:#f4f5ff!important;
 font-size:clamp(20px,2vw,29px)!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-metrics{
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:12px!important;
 margin:0 0 11px!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi{
 min-width:0!important;min-height:151px!important;
 padding:18px 17px 15px 65px!important;
 border-radius:18px!important;
 color:#fff!important;
 background:linear-gradient(135deg,#262854,#1d2548)!important;
 border:1px solid #7461c3!important;
 box-shadow:inset 0 1px #ffffff38,0 10px 25px #0408226c!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi-0{
 background:radial-gradient(ellipse at 100% 100%,#a93af248,transparent 68%),linear-gradient(115deg,#32235b,#1c244a)!important;
 border-color:#a15ceb!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi-1{
 background:radial-gradient(ellipse at 100% 100%,#19dbed40,transparent 68%),linear-gradient(115deg,#18435d,#102c45)!important;
 border-color:#28c5e6!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi-2{
 background:radial-gradient(ellipse at 100% 100%,#377bee43,transparent 68%),linear-gradient(115deg,#173f77,#152e58)!important;
 border-color:#428ce7!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi-3{
 background:radial-gradient(ellipse at 100% 100%,#ed5ec949,transparent 68%),linear-gradient(115deg,#472963,#2a244d)!important;
 border-color:#d36ace!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi .metricicon{
 width:41px!important;height:41px!important;border-radius:13px!important;
 left:13px!important;top:19px!important;
 box-shadow:inset 0 1px #ffffff3b,0 0 16px #b28aff2d!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi>strong{
 color:#edf2ff!important;font-size:clamp(23px,2.4vw,37px)!important;line-height:1.1;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi>small,
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi{
 font-size:11px!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi .moneymini{
 color:#e2f5ff!important;font-size:clamp(12px,1.12vw,18px)!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi-spark{opacity:.88}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-source-strip{
 border-radius:13px!important;margin:13px 0!important;
 background:#18264ebd!important;
 border:1px solid #4c66a693!important;
 color:#d4e0fc!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-source-strip b{color:#d4f9ff!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-intelligence-grid{
 display:grid!important;
 grid-template-columns:minmax(0,1.23fr) minmax(0,.88fr) minmax(0,1.05fr)!important;
 gap:12px!important;margin:12px 0 23px!important;
 padding:13px!important;border:1px solid #5164a5!important;
 border-radius:24px!important;
 background:linear-gradient(145deg,#111a40,#0f1940)!important;
 box-shadow:0 18px 43px #060a2673!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-intelligence-grid>*{
 grid-column:auto!important;min-width:0!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-bank-chart,
body:not([data-theme="light"]):has(#content .living-hero) #content .living-evolution,
body:not([data-theme="light"]):has(#content .living-hero) #content .living-insights{
 padding:17px!important;min-height:280px!important;
 border-radius:16px!important;
 border:1px solid #5361a6!important;
 background:linear-gradient(145deg,#1e2c56,#121d3e)!important;
 box-shadow:inset 0 1px #ffffff1e!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-bank-chart{
 background:linear-gradient(140deg,#1a2951,#151f44)!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-evolution{
 background:linear-gradient(145deg,#182d54,#112849)!important;
 border-color:#467da8!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-insights{
 background:radial-gradient(ellipse at 100% 0%,#a24dea5c,transparent 57%),linear-gradient(135deg,#2c205b,#151c43)!important;
 border-color:#a179e2!important;
 box-shadow:0 0 23px #a14ce93a!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-bank-chart .sectionhead h2,
body:not([data-theme="light"]):has(#content .living-hero) #content .living-evolution-header h3,
body:not([data-theme="light"]):has(#content .living-hero) #content .living-insights header strong{
 color:#f2f3ff!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-bank-chart .scope,
body:not([data-theme="light"]):has(#content .living-hero) #content .living-evolution .scope,
body:not([data-theme="light"]):has(#content .living-hero) #content .living-insight p{
 color:#c5d3ed!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-evolution .living-data-line{
 color:#4ce7d0!important;filter:drop-shadow(0 0 11px #24dbce83)!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-bank-chart .chartrow{
 color:#d8e7ff!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-bank-chart .track{
 background:#34436e!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-bank-chart .track i{
 background:linear-gradient(90deg,#8170fa,#b66af9)!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-insight-cyan strong{color:#72e6f7!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-insight-amber strong{color:#ffd28a!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-insight-violet strong{color:#e1aafc!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-insights-action{
 background:linear-gradient(110deg,#6442cc,#a04de3)!important;
 border-color:#ab7ff5!important;color:#fff!important
}
/* All secondary dashboard sections remain on-brand, no surprise white canvases. */
body:not([data-theme="light"]):has(#content .living-hero) #content .living-discover{
 background:linear-gradient(130deg,#1a244b,#111b3e)!important;
 border:1px solid #6172b0!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-discover .radar-section-title h3,
body:not([data-theme="light"]):has(#content .living-hero) #content .living-discover .radar-card h3{color:#f4f5ff!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-discover .radar-card-featured{
 background:linear-gradient(135deg,#1b535c,#193b5b)!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-discover .radar-card-secondary:nth-child(2){
 background:linear-gradient(135deg,#183e62,#1b2a53)!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-discover .radar-card-secondary:nth-child(3){
 background:linear-gradient(135deg,#43295f,#29294f)!important
}
body:not([data-theme="light"]):has(#content .living-hero) #content .living-discover .radar-card p,
body:not([data-theme="light"]):has(#content .living-hero) #content .living-discover .radar-proof{color:#bacbe7!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .home-search{
 background:linear-gradient(130deg,#1a294d,#111c3a)!important;
 border:1px solid #6676b1!important;
 color:#f1f6ff!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .home-search input{
 background:#17284c!important;border-color:#4d699a!important;color:#eef3ff!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .home-search input::placeholder{color:#a8b8d7!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .home-search h2,
body:not([data-theme="light"]):has(#content .living-hero) #content .home-search label{color:#f0f3ff!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .home-search p{color:#c0ccea!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .rev-analytics-panel{
 background:radial-gradient(ellipse at 100% 0%,var(--rev-halo),transparent 55%),linear-gradient(138deg,#202c54,#141d3e)!important;
 border-color:color-mix(in srgb,var(--rev-color) 65%,transparent)!important;
}
body:not([data-theme="light"]):has(#content .living-hero) #content .rev-panel-title h2{color:#f2f2ff!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .rev-ranking-row>span:first-child{color:#dce7ff!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .rev-ranking-row>b{color:#f5f5ff!important}
body:not([data-theme="light"]):has(#content .living-hero) #content .rev-panel-5 .totals>*{
 background:#1c315bb5!important;border-color:#749ff099!important
}
/* Actual chart/insights color, not financial predictions. */
body:not([data-theme="light"]):has(#content .living-hero) #content .living-insights header small{
 color:#c9bcef!important
}
/* Keep hover animation real and accessible. */
@media(prefers-reduced-motion:no-preference){
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi{
 transition:transform .26s cubic-bezier(.2,.7,.2,1),box-shadow .26s ease!important
 }
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-kpi:hover{
 transform:translateY(-6px)!important;box-shadow:0 16px 33px #0a0c3293,0 0 26px #a46cf73d!important
 }
}
@media(max-width:1390px){
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-intelligence-grid{
 grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important
 }
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-intelligence-grid .living-insights{
 grid-column:1/-1!important;min-height:0!important
 }
}
@media(max-width:1120px){
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-showcase{grid-template-columns:1fr!important}
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero-stage{
 height:345px!important;max-width:740px;margin:auto!important
 }
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:780px){
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-intelligence-grid{grid-template-columns:1fr!important}
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-intelligence-grid>*{grid-column:1/-1!important}
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero-stage{height:280px!important}
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-device{min-height:200px}
 body:not([data-theme="light"]):has(#content .living-hero) #app>main{padding:9px 12px 30px!important}
}
@media(max-width:520px){
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-metrics{grid-template-columns:1fr!important}
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero-stage{height:235px!important}
 body:not([data-theme="light"]):has(#content .living-hero) #content .living-hero .radar-copy h2{font-size:clamp(32px,9vw,44px)!important}
 body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar .brand{padding-left:0}
 body:not([data-theme="light"]):has(#content .living-hero) #app>.sidebar .brand::before{display:none}
}
