/*
 * SICOP Intelligence • Spectrum Enterprise palette
 * Semantics: índigo = marca/navegación, cian = inteligencia/mercado,
 * esmeralda = oportunidades/operación, violeta = copiloto/IA,
 * ámbar = alertas/seguimiento.
 * Dark & light modes both have matching visible contrast.
 */
:root{
 --spectrum-indigo:#8f9cff;
 --spectrum-cyan:#66d8f5;
 --spectrum-green:#58d6b1;
 --spectrum-violet:#c4a0ff;
 --spectrum-amber:#ffcf83;
 --spectrum-rose:#ff93ad;
}
body[data-theme=light]{
 --spectrum-indigo:#455ac1;
 --spectrum-cyan:#116d9c;
 --spectrum-green:#126f55;
 --spectrum-violet:#7643bb;
 --spectrum-amber:#94580e;
 --spectrum-rose:#ac3c65;
}
/* Multi-hue atmosphere. Use dark navy base so this remains a business product. */
#app>.sidebar{
 background:linear-gradient(110deg,#101b32 8%,#1c2345 58%,#142838 100%)!important;
 border-image:linear-gradient(90deg,#7c8df1,#b186ef,#59bcd9,#4fcdab) 1!important;
 border-bottom-width:2px!important;
}
#app>.sidebar .brand em{color:#b9adff!important}
#app>.sidebar #primaryNav button[data-group="tenders"]:hover{background:#193e46;border-color:#54bda5;color:#9aefcb}
#app>.sidebar #primaryNav button[data-group="market"]:hover{background:#173b54;border-color:#64c7eb;color:#96e0ff}
#app>.sidebar #primaryNav button[data-group="operations"]:hover{background:#403021;border-color:#c5a15c;color:#ffe1a8}
#app>.sidebar #primaryNav button[data-group="enterprise"]:hover{background:#372c56;border-color:#9c84e5;color:#e0c6ff}
#app>.sidebar #primaryNav button[data-group="tenders"].active{background:#17443d;border-color:#54bda5;color:#baffdf;box-shadow:inset 0 -2px var(--spectrum-green)}
#app>.sidebar #primaryNav button[data-group="market"].active{background:#1a4256;border-color:#58bbdb;color:#a4e8ff;box-shadow:inset 0 -2px var(--spectrum-cyan)}
#app>.sidebar #primaryNav button[data-group="operations"].active{background:#443623;border-color:#d8b16d;color:#ffe4b3;box-shadow:inset 0 -2px var(--spectrum-amber)}
#app>.sidebar #primaryNav button[data-group="enterprise"].active{background:#3c3159;border-color:#ab87e7;color:#ebd6ff;box-shadow:inset 0 -2px var(--spectrum-violet)}
#app>.sidebar #primaryNav button[data-group="tenders"].active::after{background:var(--spectrum-green)}
#app>.sidebar #primaryNav button[data-group="market"].active::after{background:var(--spectrum-cyan)}
#app>.sidebar #primaryNav button[data-group="operations"].active::after{background:var(--spectrum-amber)}
#app>.sidebar #primaryNav button[data-group="enterprise"].active::after{background:var(--spectrum-violet)}
/* Original color identity with restrained atmospheric accents. */
#content .radar{
 background:
  radial-gradient(circle at 87% 6%,#a66ee930 0%,transparent 34%),
  radial-gradient(circle at 12% 84%,#24c8b71a 0%,transparent 34%),
  radial-gradient(circle at 62% 58%,#2478ce12 0%,transparent 48%),
  linear-gradient(130deg,#182541,#101a2f 81%)!important;
}
#content .radar .radar-eyebrow{color:var(--spectrum-cyan)}
#content .radar .radar-copy h2 em{color:#bbacff!important}
#content .radar .radar-section-kicker{color:var(--spectrum-cyan)}
#content .radar .radar-live{
 border-color:#4c6f92;
 background:
  radial-gradient(circle at 94% 0%,#b86aeb24,transparent 50%),
  linear-gradient(148deg,#213650,#14273f);
}
#content .radar .radar-live-bars i{
 background:linear-gradient(0deg,#276fbd,#56d0e9)!important
}
#content .radar .radar-live-bars .radar-week:nth-child(2n) i{
 background:linear-gradient(0deg,#5854b5,#b897ef)!important
}
#content .radar .radar-live-bars .radar-week:nth-child(3n) i{
 background:linear-gradient(0deg,#187e70,#5adcb1)!important
}
#content .radar .radar-live-dot{background:var(--spectrum-green);box-shadow:0 0 0 4px #58d6b122}
#content .radar .radar-card-featured{
 background:
  radial-gradient(circle at 95% 10%,#75d8c42b,transparent 34%),
  linear-gradient(132deg,#1e5357,#1b3d50 65%,#192d46)!important;
 border-color:#40837c!important;
}
#content .radar .radar-card-featured .radar-number{color:#abffe1!important}
#content .radar .radar-card-featured .radar-card-symbol{color:#a6f6d8;background:#36a79131}
#content .radar .radar-card-featured button{background:#a4f2d4!important;color:#153c38!important;border-color:#a4f2d4!important}
#content .radar .radar-card-featured button:hover:not(:disabled){background:#cdfde9!important;color:#123c36!important}
#content .radar .radar-card-secondary:nth-child(2){
 background:linear-gradient(136deg,#223c59,#1b2a47)!important;border-color:#4f6588
}
#content .radar .radar-card-secondary:nth-child(2) .radar-number,
#content .radar .radar-card-secondary:nth-child(2) .radar-card-symbol{color:var(--spectrum-cyan)}
#content .radar .radar-card-secondary:nth-child(3){
 background:linear-gradient(140deg,#322e53,#242a47)!important;border-color:#605888
}
#content .radar .radar-card-secondary:nth-child(3) .radar-number,
#content .radar .radar-card-secondary:nth-child(3) .radar-card-symbol{color:var(--spectrum-violet)}
#content .radar .radar-chips button{background:#243e52;border-color:#456d81;color:#c8edfa}
#content .radar .radar-chips button:nth-child(2n){background:#293353;border-color:#566096;color:#ddd7ff}
#content .radar .radar-chips button:nth-child(3n){background:#28403f;border-color:#4e7a6c;color:#c4f9e1}
#content .radar .radar-chips button:hover:not(:disabled){background:#38567a;color:#fff;border-color:#7ba9e8}
#content .radar .radar-primary{background:#6879dc;border-color:#8696ef;color:#fff}
/* Enterprise: color-coded functions without confusing completion states. */
#enterpriseStudio .studio-intro{
 background:radial-gradient(circle at 92% 15%,#9a63da33,transparent 41%),linear-gradient(125deg,#202f52,#18253e)!important;
 border-color:#596b9b!important;
}
#enterpriseStudio .studio-intro small{color:#a9cbff!important}
#enterpriseStudio .studio-live{background:#23473f!important;border-color:#3f9379!important;color:#b7f9e1!important}
#enterpriseStudio .studio-tabs [data-studio-tab="dashboard"][aria-selected=true]{border-color:#8c9cfa;color:#dbe0ff;background:#323967}
#enterpriseStudio .studio-tabs [data-studio-tab="copilot"][aria-selected=true]{border-color:#b38fec;color:#efd7ff;background:#42325b}
#enterpriseStudio .studio-tabs [data-studio-tab="autobid"][aria-selected=true]{border-color:#6bcada;color:#c5f2ff;background:#23485d}
#enterpriseStudio .studio-tabs [data-studio-tab="winlab"][aria-selected=true]{border-color:#e5be76;color:#ffe9b8;background:#4e4029}
#enterpriseStudio .studio-tabs [data-studio-tab="crm"][aria-selected=true]{border-color:#67ceb0;color:#d5ffed;background:#25453e}
#enterpriseStudio .studio-tabs [data-studio-tab="contract"][aria-selected=true]{border-color:#89abef;color:#d0e2ff;background:#293f68}
#enterpriseStudio .studio-launchcards .studio-launch:nth-child(1){border-color:#755eae;background:linear-gradient(145deg,#3b315b,#231f43)}
#enterpriseStudio .studio-launchcards .studio-launch:nth-child(2){border-color:#4e8395;background:linear-gradient(145deg,#23475b,#192b44)}
#enterpriseStudio .studio-launchcards .studio-launch:nth-child(3){border-color:#977b4c;background:linear-gradient(145deg,#4a3d2c,#2b2b41)}
#enterpriseStudio .studio-launchcards .studio-launch:nth-child(4){border-color:#4f8a7a;background:linear-gradient(145deg,#254d47,#1a303e)}
#enterpriseStudio .studio-launchcards .studio-launch:nth-child(5){border-color:#526eaa;background:linear-gradient(145deg,#283f62,#1b2948)}
#enterpriseStudio .studio-launchcards .studio-launch:nth-child(1) strong{color:#ecd8ff}
#enterpriseStudio .studio-launchcards .studio-launch:nth-child(2) strong{color:#b3f0ff}
#enterpriseStudio .studio-launchcards .studio-launch:nth-child(3) strong{color:#ffe5ae}
#enterpriseStudio .studio-launchcards .studio-launch:nth-child(4) strong{color:#a8f1d0}
#enterpriseStudio .studio-launchcards .studio-launch:nth-child(5) strong{color:#c5d6ff}
#enterpriseStudio .copilot-head{
 background:radial-gradient(circle at 86% 5%,#b46aef3b,transparent 42%),linear-gradient(135deg,#352b58,#1b2540)!important;
 border-color:#7960a4;
}
#enterpriseStudio .copilot-head h2 span{background:#7e4ab2;border-color:#a780e4}
#enterpriseStudio .copilot-readiness-ring{
 background:conic-gradient(#b696fb 0 var(--copilot-progress),#4a5879 var(--copilot-progress) 100%)
}
#enterpriseStudio .command-journey-step:nth-child(6n+1) .journey-num{color:#98d9f9}
#enterpriseStudio .command-journey-step:nth-child(6n+2) .journey-num{color:#c3a6ff}
#enterpriseStudio .command-journey-step:nth-child(6n+3) .journey-num{color:#ffd28e}
#enterpriseStudio .command-journey-step:nth-child(6n+4) .journey-num{color:#7cdec5}
#enterpriseStudio .command-journey-step:nth-child(6n+5) .journey-num{color:#aab8ff}
#enterpriseStudio .command-journey-step:nth-child(6n+6) .journey-num{color:#93ceff}
#app .premium-scroll-progress i{background:linear-gradient(90deg,#59a6ee,#a18bea,#51cca9,#f0c782,#59a6ee)}
#app #sicopCommandOverlay .sicop-command-glyph{background:#44376d;color:#e2c5ff}
/* Light appearance: independent design, never dark-on-dark pills. */
body[data-theme=light] #app>.sidebar{
 background:linear-gradient(105deg,#fff 0%,#f5f6ff 65%,#effafc 100%)!important;
 border-bottom-color:#bdc7e3!important;
}
body[data-theme=light] #app>.sidebar #primaryNav button[data-group="tenders"].active{background:#e2f6ee;color:#12664d;border-color:#8acbb2}
body[data-theme=light] #app>.sidebar #primaryNav button[data-group="market"].active{background:#e2f4fd;color:#11628e;border-color:#92d0e7}
body[data-theme=light] #app>.sidebar #primaryNav button[data-group="operations"].active{background:#fff0d9;color:#815018;border-color:#d7b478}
body[data-theme=light] #app>.sidebar #primaryNav button[data-group="enterprise"].active{background:#f1e9ff;color:#6a3c9d;border-color:#c6acee}
body[data-theme=light] #content .radar{
 background:radial-gradient(circle at 87% 6%,#decdfb88,transparent 36%),
 radial-gradient(circle at 11% 87%,#c9f1e69a,transparent 40%),
 linear-gradient(125deg,#fbfcff,#f0f5fd)!important;
}
body[data-theme=light] #content .radar .radar-eyebrow,
body[data-theme=light] #content .radar .radar-section-kicker{color:#176f95}
body[data-theme=light] #content .radar .radar-copy h2 em{color:#7653c2!important}
body[data-theme=light] #content .radar .radar-live{
 background:linear-gradient(145deg,#fff,#eff9fc)!important;border-color:#d0e3ea
}
body[data-theme=light] #content .radar .radar-card-featured{
 background:radial-gradient(circle at 92% 7%,#a5eed75c,transparent 43%),linear-gradient(135deg,#eafaf4,#dfefe9)!important;
 border-color:#9ed5c2!important;
}
body[data-theme=light] #content .radar .radar-card-featured .radar-number{color:#166e58!important}
body[data-theme=light] #content .radar .radar-card-featured .radar-card-symbol{color:#267962;background:#ccf4e5}
body[data-theme=light] #content .radar .radar-card-featured button{background:#1a7b65!important;border-color:#1a7b65!important;color:#fff!important}
body[data-theme=light] #content .radar .radar-card-featured button:hover:not(:disabled){background:#176650!important;border-color:#176650!important;color:#fff!important}
body[data-theme=light] #content .radar .radar-card-secondary:nth-child(2){background:#f2faff!important;border-color:#cbe4ef}
body[data-theme=light] #content .radar .radar-card-secondary:nth-child(3){background:#faf5ff!important;border-color:#e1d3f0}
body[data-theme=light] #content .radar .radar-card-secondary:nth-child(2) .radar-number{color:#136f99}
body[data-theme=light] #content .radar .radar-card-secondary:nth-child(3) .radar-number{color:#754db2}
body[data-theme=light] #content .radar .radar-chips button{background:#e6f5fc;border-color:#b8dce9;color:#176688}
body[data-theme=light] #content .radar .radar-chips button:nth-child(2n){background:#eee9ff;border-color:#d5caed;color:#6b4aa0}
body[data-theme=light] #content .radar .radar-chips button:nth-child(3n){background:#e2f6ed;border-color:#c2e4d0;color:#176b4b}
body[data-theme=light] #content .radar .radar-chips button:hover:not(:disabled){background:#dcecff;color:#274d8a}
body[data-theme=light] #enterpriseStudio .studio-intro{background:radial-gradient(circle at 93% 7%,#e5dcff,transparent 49%),linear-gradient(125deg,#fff,#f4f8ff)!important;border-color:#d4ddef!important}
body[data-theme=light] #enterpriseStudio .studio-intro small{color:#4d63ab!important}
body[data-theme=light] #enterpriseStudio .studio-live{background:#e6f6ee!important;color:#17664a!important;border-color:#acd7c4!important}
body[data-theme=light] #enterpriseStudio .studio-tabs [aria-selected=true]{background:#e8edfc;color:#4256a2;border-color:#c3cdec}
body[data-theme=light] #enterpriseStudio .studio-tabs [data-studio-tab="copilot"][aria-selected=true]{background:#f0e8ff;color:#7141a8;border-color:#d2b7ee}
body[data-theme=light] #enterpriseStudio .studio-tabs [data-studio-tab="autobid"][aria-selected=true]{background:#e6f8fe;color:#156a8d;border-color:#b8dfe9}
body[data-theme=light] #enterpriseStudio .studio-tabs [data-studio-tab="winlab"][aria-selected=true]{background:#fff2d9;color:#88550e;border-color:#e3ca9d}
body[data-theme=light] #enterpriseStudio .studio-tabs [data-studio-tab="crm"][aria-selected=true]{background:#e1f8ec;color:#176b50;border-color:#addfca}
body[data-theme=light] #enterpriseStudio .studio-launchcards .studio-launch:nth-child(1){background:#f6f0ff;border-color:#dccded}
body[data-theme=light] #enterpriseStudio .studio-launchcards .studio-launch:nth-child(2){background:#eef9ff;border-color:#cde4ef}
body[data-theme=light] #enterpriseStudio .studio-launchcards .studio-launch:nth-child(3){background:#fff7e9;border-color:#e9dbc0}
body[data-theme=light] #enterpriseStudio .studio-launchcards .studio-launch:nth-child(4){background:#effaf5;border-color:#cee8dc}
body[data-theme=light] #enterpriseStudio .studio-launchcards .studio-launch:nth-child(5){background:#f0f5ff;border-color:#d5e0ee}
body[data-theme=light] #enterpriseStudio .studio-launchcards .studio-launch:nth-child(1) strong{color:#6d45a4}
body[data-theme=light] #enterpriseStudio .studio-launchcards .studio-launch:nth-child(2) strong{color:#176f92}
body[data-theme=light] #enterpriseStudio .studio-launchcards .studio-launch:nth-child(3) strong{color:#8b5d20}
body[data-theme=light] #enterpriseStudio .studio-launchcards .studio-launch:nth-child(4) strong{color:#176951}
body[data-theme=light] #enterpriseStudio .studio-launchcards .studio-launch:nth-child(5) strong{color:#355a9e}
body[data-theme=light] #enterpriseStudio .copilot-head{background:radial-gradient(circle at 87% 8%,#ebddff,transparent 43%),linear-gradient(130deg,#fff,#f9f4ff)!important;border-color:#ded0f4}
body[data-theme=light] #enterpriseStudio .copilot-head h2 span{background:#794ba9;border-color:#794ba9;color:#fff}
body[data-theme=light] #enterpriseStudio .copilot-readiness-ring{
 background:conic-gradient(#8254bc 0 var(--copilot-progress),#d5ddec var(--copilot-progress) 100%)
}
@media(prefers-reduced-motion:no-preference){
 #app>.sidebar #primaryNav button.active{transition:background .24s ease,border-color .24s ease,color .24s ease}
 #content .radar .radar-card-featured,#enterpriseStudio .studio-launchcards .studio-launch{
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
 }
 #enterpriseStudio .studio-launchcards .studio-launch:hover{transform:translateY(-4px);filter:brightness(1.12)}
}
