/* Gateway Analytics v1: fully scoped; no effects on other Lion AI Cloud pages. */
#view-gateway {--gw-edge:rgba(155,185,228,.18);--gw-muted:#91a5bf;--gw-white:#f2f7ff;--gw-cyan:#52d7dd;--gw-violet:#ab93ff;--gw-blue:#619af9; color:var(--t-tx,#f2f7ff)}
#view-gateway .gw-head {display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap;margin-bottom:19px}
#view-gateway .gw-kicker {font-size:11px;letter-spacing:.19em;font-weight:850;text-transform:uppercase;color:#78e5dc;display:flex;gap:9px;align-items:center}
#view-gateway .gw-dot {display:inline-block;background:#49cfb4;border-radius:50%;height:8px;width:8px;box-shadow:0 0 0 5px #31cbba22}
#view-gateway h1 {font-size:clamp(26px,3vw,38px);letter-spacing:-.045em;margin:4px 0 5px;font-weight:840;color:var(--t-tx,#edf3ff)}
#view-gateway .gw-sub {color:var(--t-muted,#a5b9ce);font-size:13px;margin:0}
#view-gateway .gw-toolbar {display:flex;gap:9px;align-items:center;flex-wrap:wrap}
#view-gateway select,#view-gateway button {font-size:12px;min-height:38px;border-radius:10px}
#view-gateway select {width:auto;max-width:210px;padding:6px 28px 6px 12px;background:var(--t-surface,#111c30);color:var(--t-tx,#f2f7ff);border:1px solid var(--gw-edge)}
#view-gateway .gw-refresh,#view-gateway .gw-export {background:linear-gradient(135deg,#1b3655,#17243c);border:1px solid var(--gw-edge);color:#d4eaff;padding:9px 12px}
#view-gateway .gw-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
#view-gateway .gw-card,#view-gateway .gw-panel {background:linear-gradient(142deg,rgba(32,51,77,.96),rgba(9,20,35,.96));border:1px solid var(--gw-edge);border-radius:17px;box-shadow:0 12px 28px rgba(2,7,15,.11);min-width:0}
#view-gateway .gw-card {padding:18px 19px;position:relative;overflow:hidden}
#view-gateway .gw-card:after {content:'';position:absolute;right:-42px;top:-42px;height:116px;width:116px;border-radius:50%;background:radial-gradient(circle,rgba(100,186,251,.12),transparent 70%);pointer-events:none}
#view-gateway .gw-label {font-size:11px;font-weight:700;color:#b5c4d7;letter-spacing:.028em}
#view-gateway .gw-value {font-size:clamp(22px,2.5vw,34px);line-height:1.15;letter-spacing:-.04em;font-weight:850;color:#fff;margin:11px 0 5px;font-variant-numeric:tabular-nums}
#view-gateway .gw-accent {color:var(--gw-cyan)}
#view-gateway .gw-help {font-size:11px;color:#99aec5;line-height:1.45}
#view-gateway .gw-section-grid {display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:13px;margin-bottom:13px}
#view-gateway .gw-panel {padding:19px;min-width:0}
#view-gateway .gw-panel-head {display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:15px}
#view-gateway h2 {font-size:15px;font-weight:800;letter-spacing:-.01em;color:#eef5ff;margin:0}
#view-gateway .gw-small {font-size:11px;color:#a5b5ca}
#view-gateway .gw-legend {display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;color:#b3c4d8}
#view-gateway .gw-swatch {display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:4px}
#view-gateway .gw-svg {display:block;width:100%;height:auto;min-height:155px;overflow:visible}
#view-gateway .gw-svg text {font-size:10px;fill:#879fb9;font-family:system-ui,sans-serif}
#view-gateway .gw-table {width:100%;border-collapse:collapse;font-size:12px}
#view-gateway .gw-table th {color:#9bb2ca;text-transform:uppercase;letter-spacing:.06em;font-size:10px;text-align:left;font-weight:750;border-bottom:1px solid var(--gw-edge);padding:9px 10px;white-space:nowrap}
#view-gateway .gw-table td {border-bottom:1px solid rgba(155,185,228,.09);padding:10px;color:#dce7f6;font-variant-numeric:tabular-nums}
#view-gateway .gw-table td:first-child {font-weight:700;color:#f0f5ff}
#view-gateway .gw-scroll {overflow-x:auto}
#view-gateway .gw-strip {display:flex;height:8px;border-radius:12px;background:rgba(133,164,207,.12);overflow:hidden;min-width:90px}
#view-gateway .gw-strip span {height:100%;background:linear-gradient(90deg,#45cbd8,#7573f8)}
#view-gateway .gw-insight {border-left:3px solid #53d0d2;padding:8px 11px;background:rgba(65,173,186,.08);border-radius:3px 8px 8px 3px;color:#c2d7e9;font-size:12px;line-height:1.65}
#view-gateway .gw-facts {display:flex;gap:9px;flex-wrap:wrap;margin-bottom:13px}
#view-gateway .gw-facts span {font-size:11px;border:1px solid var(--gw-edge);padding:6px 10px;border-radius:9px;color:#b2c6dc;background:rgba(132,157,205,.08)}
#view-gateway .gw-empty {padding:45px 15px;text-align:center;color:#92acc7;font-size:13px}
#view-gateway .gw-error {border:1px solid #e7797966;background:#75262633;border-radius:10px;color:#ffd0d0;padding:12px;margin-bottom:10px}
#view-gateway .gw-date {white-space:nowrap;color:#9cafc3!important;font-size:11px}
#view-gateway .gw-notes {font-size:11px;color:var(--t-muted,#a0b4c8);line-height:1.65;margin-top:11px}
html[data-vision=day] #view-gateway .gw-card,html[data-vision=day] #view-gateway .gw-panel {background:linear-gradient(150deg,#f5f8ff,#ebf2fb);border-color:#d6e0ed}
html[data-vision=day] #view-gateway h2,html[data-vision=day] #view-gateway .gw-value,html[data-vision=day] #view-gateway .gw-table td:first-child {color:#162a43}
html[data-vision=day] #view-gateway .gw-table td {color:#28415d}
html[data-vision=day] #view-gateway .gw-label,html[data-vision=day] #view-gateway .gw-help {color:#5e7190}
@media(max-width:1150px){#view-gateway .gw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#view-gateway .gw-section-grid{grid-template-columns:1fr}}
@media(max-width:680px){#view-gateway .gw-grid{grid-template-columns:1fr 1fr;gap:8px}#view-gateway .gw-card{padding:12px}#view-gateway .gw-panel{padding:13px}#view-gateway .gw-value{font-size:24px}}

/* Analytics Pro v2.2 — scoped only to Gateway page. No header or theme-wide changes. */
#view-gateway .gw-telemetry-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#view-gateway .gw-telem .gw-card{background:rgba(75,119,178,.09);box-shadow:none;padding:14px}
#view-gateway .gw-telem .gw-value{font-size:clamp(17px,2vw,27px);overflow-wrap:anywhere}
@media(max-width:1050px){#view-gateway .gw-telemetry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){#view-gateway .gw-telemetry-grid{grid-template-columns:1fr 1fr;gap:7px}#view-gateway .gw-telem .gw-card{padding:9px}}
