/* Yourcloudweb Online v4.2: calibrated bright Spectrum, combined monitoring data,
   stable mobile identity, and a uniform responsive component system. */
:root[data-palette="spectrum"]{
 --brand:#0878ff;--brand-hover:#0568e9;--brand-2:#20bafa;
 --chart-primary:#116bff;--chart-secondary:#06d4a2;--chart-warning:#ff496b;
}
:root[data-palette="spectrum"][data-theme="light"]{
 --body:#f0f4ff;--nav-selected:#e7f0ff;--line:#e1e8f6;--panel:#fff;
 --theme-glow:rgba(0,105,255,.07);
}
:root[data-palette="spectrum"] .v3-kpi-grid>.v3-kpi:nth-child(6n+1){--kpi-accent:#ff246b;--kpi-soft:#fff0f5;--kpi-pill-bg:#ffe7f0;--kpi-pill-color:#b90140}
:root[data-palette="spectrum"] .v3-kpi-grid>.v3-kpi:nth-child(6n+2){--kpi-accent:#ff751a;--kpi-soft:#fff0e1;--kpi-pill-bg:#ffeedc;--kpi-pill-color:#ba4f00}
:root[data-palette="spectrum"] .v3-kpi-grid>.v3-kpi:nth-child(6n+3){--kpi-accent:#d69b00;--kpi-soft:#fff8dc;--kpi-pill-bg:#fff2c7;--kpi-pill-color:#866400}
:root[data-palette="spectrum"] .v3-kpi-grid>.v3-kpi:nth-child(6n+4){--kpi-accent:#00ce92;--kpi-soft:#dbfff2;--kpi-pill-bg:#d8fff1;--kpi-pill-color:#006d54}
:root[data-palette="spectrum"] .v3-kpi-grid>.v3-kpi:nth-child(6n+5){--kpi-accent:#116bff;--kpi-soft:#e9f1ff;--kpi-pill-bg:#e3efff;--kpi-pill-color:#064cbd}
:root[data-palette="spectrum"] .v3-kpi-grid>.v3-kpi:nth-child(6n+6){--kpi-accent:#8d31ff;--kpi-soft:#f4e6ff;--kpi-pill-bg:#f2e3ff;--kpi-pill-color:#5b14b6}
/* Full-spectrum colored content, no false color-coded comparison badges. */
:root[data-palette="spectrum"] .v3-kpi{overflow:hidden}
:root[data-palette="spectrum"] .v3-kpi::after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:3px;border-radius:999px;background:var(--kpi-accent);opacity:.8;pointer-events:none}
:root[data-palette="spectrum"] .v3-kpi:hover{transform:none!important;box-shadow:var(--shadow)!important}
.v42-kpi-bars{display:flex;align-items:end;gap:4px;height:100%;width:100%;padding-top:4px}
.v42-kpi-bars>span{flex:1;max-width:20px;min-height:3px;border-radius:6px 6px 2px 2px;transition:opacity .15s ease,filter .15s ease,transform .15s ease}
.v42-kpi-bars>span:hover{filter:saturate(1.7) brightness(1.06);transform:scaleY(1.02);transform-origin:center bottom}
.v42-sparkline path{filter:drop-shadow(0 2px 2px rgba(12,74,200,.10))}
:root[data-palette="spectrum"] .v42-kpi-bars>span{opacity:.98!important}
:root[data-palette="spectrum"] .v3-kpi-grid>.v3-kpi:nth-child(2) .v42-kpi-bars>span:nth-child(2n){background:#00caa1!important}
:root[data-palette="spectrum"] .v3-kpi-grid>.v3-kpi:nth-child(2) .v42-kpi-bars>span:nth-child(3n){background:#0bbff2!important}
:root[data-palette="spectrum"] .v3-kpi-grid>.v3-kpi:nth-child(3) .v42-kpi-bars>span:nth-child(2n){background:#ff4c65!important}
/* Smooth dual axis visualization using REAL measurements (never fabricated values). */
.v42-dual{display:flex;flex-direction:column;gap:4px;min-width:0}
.v42-dual-svg{width:100%;height:auto;display:block;overflow:visible;min-height:190px;max-height:290px}
.v42-chart-grid{stroke:var(--line);stroke-width:1;stroke-dasharray:4 6}
.v42-series{fill:none;stroke-width:3.8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 5px 5px rgba(40,110,255,.12))}
.v42-requests{stroke:#1574ff}
.v42-availability{stroke:#00c995;filter:drop-shadow(0 4px 4px rgba(0,193,138,.10))}
.v42-failure-zone{fill:#ff426a;fill-opacity:.09}
.v42-failure-point{fill:#ff426a;stroke:var(--panel);stroke-width:2}
.v42-chart-hit{cursor:crosshair;pointer-events:all}
.v42-chart-hit:hover{fill:rgba(34,105,244,.05)}
.v42-legend{display:flex;gap:15px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:4px;font-size:11px;color:var(--muted);font-weight:700}
.v42-legend>span{display:inline-flex;align-items:center;gap:6px}
.v42-key{width:9px;height:9px;border-radius:50%;display:inline-block}
.v42-key-response{background:#1574ff}.v42-key-availability{background:#00c995}.v42-key-alert{background:#ff426a}
.v42-alert-policy{background:var(--panel2);border:1px solid var(--line);padding:18px;border-radius:16px;margin:16px 0 20px}
.v42-alert-policy>strong{display:flex;align-items:center;gap:8px;font-size:14px}
.v42-alert-policy .fields-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.v42-alert-policy :is(.field,select){min-width:0}
/* Brand is aligned by one consistent mobile grid, regardless of logo aspect ratio. */
@media(max-width:760px){
 :root[data-palette] .mobile-topbar{
  display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px;
  column-gap:10px;align-items:center;min-height:64px;
  padding:9px 14px!important;background:var(--sidebar)!important;
  border-bottom:1px solid var(--line);width:100%;box-sizing:border-box;
 }
 :root[data-palette] .mobile-topbar>.icon-btn{width:42px;height:42px;border-radius:12px;justify-self:center;margin:0!important}
 :root[data-palette] .mobile-topbar .ycw-brand-home{
   justify-self:center;display:flex!important;align-items:center!important;justify-content:center!important;
   gap:6px!important;min-width:0;max-width:100%;width:auto!important;padding:0!important;
   margin:0!important;line-height:1.12!important;height:42px!important;text-align:left;
 }
 :root[data-palette] .mobile-topbar .brand-logo-wrap{
   display:flex!important;align-items:center;justify-content:center;
   flex:0 0 auto;max-width:118px!important;height:34px!important;
   width:auto!important;min-height:0!important;padding:0!important;margin:0!important;
 }
 :root[data-palette] .mobile-topbar .brand-logo-wrap .brand-logo{
   max-width:112px!important;max-height:30px!important;object-fit:contain!important;
   width:auto!important;height:auto!important;vertical-align:middle!important;
 }
 :root[data-palette] .mobile-topbar .brand-title{display:none!important}
 .v42-alert-policy .fields-three{grid-template-columns:1fr}
 .v42-dual-svg{min-height:180px;max-height:none}
}
@media(max-width:390px){:root[data-palette] .mobile-topbar{grid-template-columns:38px minmax(0,1fr) 38px;gap:4px;padding:9px 8px!important}}
@media(prefers-reduced-motion:reduce){.v42-kpi-bars>span{transition:none}}
/* Incident trend: real new/resolved per-day values displayed in stacked neon columns. */
.v42-incident-stack{display:flex;flex-direction:column;justify-content:end;align-items:stretch;gap:0;width:100%;border-radius:9px 9px 4px 4px;overflow:hidden}
.v42-incident-new{display:block;width:100%;background:linear-gradient(180deg,#ff3270,#ff7952)}
.v42-incident-resolved{display:block;width:100%;background:linear-gradient(180deg,#00dba7,#4d8dff)}
.v42-incident-bars .incident-track{overflow:hidden}
.v42-incident-bars .incident-day:hover .v42-incident-stack{filter:saturate(1.2) brightness(1.02)}
.v42-key-new{background:#ff3270}.v42-key-resolved{background:#00dba7}
.v42-incidents-legend{margin-top:10px}
@media(max-width:760px){:root[data-palette] .mobile-topbar .brand-logo-wrap{max-width:155px!important}:root[data-palette] .mobile-topbar .brand-logo-wrap .brand-logo{max-width:150px!important;max-height:29px!important}}
