.xray-overlay{position:fixed;z-index:100;inset:0;background:#041017f8;color:#e8f5f9;display:none;overflow:auto;padding:14px}.xray-overlay.open{display:block}.xray-head{display:flex;justify-content:space-between;align-items:start;max-width:1100px;margin:auto}.xray-head small{color:#6cd1fa;font-size:9px;letter-spacing:.15em}.xray-head h2{margin:2px 0 12px}.xray-head button{border:1px solid #315263;background:#0c2530;color:#fff;border-radius:10px;width:34px;height:34px;font-size:20px}.xray-grid{max-width:1100px;margin:auto;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.xray-grid section{border:1px solid #284855;background:#081923;border-radius:16px;padding:12px}.xray-grid h3{font-size:10px;letter-spacing:.1em;color:#83cfe9;margin:0 0 9px}.xray-events{grid-column:1/-1}.kv{display:grid;grid-template-columns:1fr auto;gap:8px;padding:6px 0;border-bottom:1px solid #1c3540;font-size:9px}.kv span:last-child{color:#9bdcf3}.agent-fabric{display:flex;gap:6px;flex-wrap:wrap}.agent-chip{border:1px solid #315261;background:#0c2530;border-radius:999px;padding:6px 8px;font-size:8px}.agent-chip.active{border-color:#46b9e9;color:#c9f0ff;box-shadow:0 0 18px #56c8f51d}.x-event{display:grid;grid-template-columns:64px 1fr auto;gap:8px;padding:6px 0;border-bottom:1px solid #17303b;font-size:8px}.x-event code{color:#7fd8fa}.x-event b{font-weight:600}.x-event small{color:#738f9c}.toast{position:fixed;left:50%;bottom:84px;transform:translate(-50%,30px);z-index:120;background:#0d2a35;border:1px solid #366171;color:#e8f7fc;border-radius:12px;padding:9px 12px;font-size:9px;opacity:0;pointer-events:none;transition:.25s;max-width:88vw}.toast.show{opacity:1;transform:translate(-50%,0)}
body.signal-attention .avatar-status{background:var(--yellow)}body.signal-notsafe .avatar-status{background:var(--orange)}body.signal-danger .avatar-status{background:var(--red)}body.signal-danger .sos-mini{animation:sosPulse 1.1s infinite}@keyframes sosPulse{50%{box-shadow:0 0 0 7px rgba(240,90,98,0)}}
@media(min-width:760px){.shell{margin-top:12px;min-height:calc(100dvh - 24px);border-radius:28px 28px 0 0;overflow:hidden}.bottom-nav{bottom:0}.map-stage{height:510px}.sheet-panel{bottom:8px;border-radius:24px;max-height:80dvh}.xray-grid{grid-template-columns:repeat(3,1fr)}.xray-events{grid-column:1/-1}}
@media(max-width:380px){.brand-copy span{display:none}.brand-logo{width:36px;height:36px}.location-chip{max-width:110px}.signal-card{width:116px}.signal-row span{font-size:6.8px}.companion-copy h1{font-size:15px}.avatar-wrap{width:54px;height:54px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
