:root {
  --echo-overlay-cyan: #48d7ff;
  --echo-overlay-blue: #0d7fff;
  --echo-overlay-ink: #020714;
  --echo-overlay-panel: rgba(1, 8, 18, 0.94);
  --echo-overlay-text: #eaf9ff;
}

.floating-site-menu,
.echo-display-gear:not(.echo-overlay-gear),
.echoDisplayGear,
.echostream-launcher-with-badge,
.echostream-log-menu-button,
.echo-map-menu-button {
  display: none !important;
}

.echo-overlay-shell,
.echo-overlay-shell * {
  box-sizing: border-box;
}

.echo-overlay-shell {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.echo-overlay-launcher,
.echo-overlay-backdrop,
.echo-overlay-profile,
.echo-overlay-profile *,
.echo-overlay-quick-stack,
.echo-overlay-quick-stack *,
.echo-overlay-gear,
.echo-overlay-gear *,
.echo-overlay-pop.echo-overlay-open,
.echo-overlay-pop.echo-overlay-open * {
  pointer-events: auto;
}

.echo-overlay-launcher {
  position: fixed;
  left: 28px;
  top: 28px;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(72, 215, 255, 0.86);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #020714;
  box-shadow: 0 0 22px rgba(72, 215, 255, 0.76), 0 0 46px rgba(13, 127, 255, 0.28);
  cursor: pointer;
}

.echo-overlay-launcher img,
.echo-overlay-quick-button img,
.echo-overlay-site img,
.echo-overlay-gear-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.echo-overlay-backdrop {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(13, 127, 255, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(0, 0, 10, 0.9), rgba(1, 14, 32, 0.92));
  transition: opacity 180ms ease;
}

.echo-overlay-menu-open .echo-overlay-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.echo-overlay-radial {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(78vw, 980px);
  height: min(78vh, 760px);
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.echo-overlay-radial,
.echo-overlay-radial * {
  pointer-events: none;
}

.echo-overlay-menu-open .echo-overlay-radial {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.echo-overlay-menu-open .echo-overlay-radial,
.echo-overlay-menu-open .echo-overlay-radial * {
  pointer-events: auto;
}

.echo-overlay-radial::before {
  content: "";
  position: absolute;
  inset: 12%;
  background: url("/syncrotel-radial-button.png") center / contain no-repeat;
  opacity: 0.42;
  filter: drop-shadow(0 0 34px rgba(72, 215, 255, 0.32));
}

.echo-overlay-notifications {
  position: absolute;
  left: 50%;
  top: 51%;
  width: min(460px, 46vw);
  max-height: min(490px, 60vh);
  transform: translate(-50%, -50%);
  padding: 16px;
  border: 1px solid rgba(72, 215, 255, 0.38);
  border-radius: 16px;
  background: rgba(1, 8, 18, 0.72);
  box-shadow: inset 0 0 26px rgba(72, 215, 255, 0.08);
  color: var(--echo-overlay-text);
  overflow: auto;
}

.echo-overlay-notifications h2 {
  margin: 0 0 2px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
  text-shadow: 0 0 14px rgba(72, 215, 255, 0.72);
}

.echo-overlay-notifications p {
  margin: 0 0 12px;
  color: #9feaff;
  font-size: 12px;
}

.echo-overlay-notification-group {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.echo-overlay-notification-group strong {
  color: #76f0ff;
  text-transform: uppercase;
  font-size: 11px;
}

.echo-overlay-note {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(72, 215, 255, 0.26);
  border-radius: 10px;
  color: #eaf9ff;
  text-decoration: none;
  background: rgba(2, 18, 38, 0.82);
}

.echo-overlay-note span {
  display: block;
  color: #99ddff;
  font-size: 11px;
}

.echo-overlay-site {
  --x: 0px;
  --y: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%) translate(var(--x), var(--y));
  border: 2px solid rgba(72, 215, 255, 0.86);
  border-radius: 14px;
  overflow: hidden;
  background: #020714;
  box-shadow: 0 0 20px rgba(72, 215, 255, 0.56), inset 0 0 18px rgba(72, 215, 255, 0.08);
  color: transparent;
  text-decoration: none;
}

.echo-overlay-site.echo-overlay-featured {
  width: 176px;
  height: 176px;
}

.echo-overlay-site[data-fallback="true"] {
  display: grid;
  place-items: center;
  color: #eaf9ff;
  font-weight: 900;
  font-size: 24px;
}

.echo-overlay-site-label {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  color: #eaf9ff;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(72, 215, 255, 0.9);
}

.echo-overlay-profile {
  position: fixed;
  right: 28px;
  top: 28px;
  pointer-events: auto;
}

.echo-overlay-profile-button {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(72, 215, 255, 0.8);
  border-radius: 50%;
  color: #aef0ff;
  background: radial-gradient(circle, rgba(72, 215, 255, 0.22), rgba(1, 8, 18, 0.92) 62%);
  box-shadow: 0 0 24px rgba(72, 215, 255, 0.58);
  font-weight: 900;
  font-size: 22px;
  cursor: pointer;
}

.echo-overlay-profile-panel,
.echo-overlay-gear-panel {
  position: absolute;
  right: 0;
  display: none;
  min-width: 230px;
  padding: 12px;
  border: 1px solid rgba(72, 215, 255, 0.42);
  border-radius: 14px;
  background: rgba(1, 8, 18, 0.94);
  color: #eaf9ff;
  box-shadow: 0 0 26px rgba(72, 215, 255, 0.32);
}

.echo-overlay-profile:hover .echo-overlay-profile-panel,
.echo-overlay-profile:focus-within .echo-overlay-profile-panel,
.echo-overlay-gear:hover .echo-overlay-gear-panel,
.echo-overlay-gear:focus-within .echo-overlay-gear-panel {
  display: grid;
  gap: 8px;
}

.echo-overlay-profile-panel {
  top: 96px;
}

.echo-overlay-profile-panel strong,
.echo-overlay-gear-panel strong {
  color: #ffffff;
}

.echo-overlay-profile-panel a,
.echo-overlay-profile-panel button,
.echo-overlay-gear-panel button {
  width: 100%;
  border: 1px solid rgba(72, 215, 255, 0.36);
  border-radius: 8px;
  padding: 8px 10px;
  color: #eaf9ff;
  background: rgba(3, 19, 40, 0.9);
  text-decoration: none;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.echo-overlay-quick-stack {
  position: fixed;
  left: 28px;
  bottom: 28px;
  display: grid;
  gap: 12px;
  pointer-events: auto;
}

.echo-overlay-quick-button {
  position: relative;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(72, 215, 255, 0.78);
  border-radius: 16px;
  overflow: visible;
  padding: 0;
  background: rgba(1, 8, 18, 0.8);
  box-shadow: 0 0 22px rgba(72, 215, 255, 0.58);
  cursor: pointer;
}

.echo-overlay-quick-button img {
  border-radius: inherit;
}

.echo-overlay-map-button {
  border-color: rgba(105, 255, 108, 0.86);
  box-shadow: 0 0 22px rgba(105, 255, 108, 0.52);
}

.echo-overlay-badge {
  position: absolute;
  right: -9px;
  top: -32px;
  z-index: 2;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #00101a;
  background: #48d7ff;
  border: 2px solid #ffffff;
  font-weight: 950;
  font-size: 12px;
  box-shadow: 0 0 14px rgba(72, 215, 255, 0.88);
}

.echo-overlay-gear {
  position: fixed;
  right: 32px;
  bottom: 30px;
  pointer-events: auto;
}

.echo-overlay-gear-button {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(180, 204, 218, 0.7);
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  opacity: 0.82;
  background: rgba(1, 8, 18, 0.62);
  box-shadow: 0 0 24px rgba(180, 204, 218, 0.36);
  cursor: pointer;
}

.echo-overlay-gear-panel {
  right: 4px;
  bottom: 98px;
}

.echo-overlay-pop {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.echo-overlay-pop.echo-overlay-open {
  display: grid;
}

.echo-overlay-pop-card {
  width: min(1040px, 88vw);
  height: min(760px, 82vh);
  border: 1px solid rgba(72, 215, 255, 0.52);
  border-radius: 16px;
  overflow: hidden;
  background: #020714;
  box-shadow: 0 0 34px rgba(72, 215, 255, 0.4);
}

.echo-overlay-pop-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #eaf9ff;
  background: #001a32;
}

.echo-overlay-pop-head button,
.echo-overlay-pop-head a {
  border: 1px solid rgba(72, 215, 255, 0.5);
  border-radius: 8px;
  padding: 7px 10px;
  color: #eaf9ff;
  background: rgba(0, 0, 0, 0.42);
  text-decoration: none;
  font-weight: 800;
}

.echo-overlay-pop iframe {
  width: 100%;
  height: calc(100% - 48px);
  border: 0;
  background: #020714;
}

@media (max-width: 760px) {
  .echo-overlay-launcher {
    left: 14px;
    top: 14px;
    width: 68px;
    height: 68px;
  }

  .echo-overlay-profile {
    right: 14px;
    top: 14px;
  }

  .echo-overlay-profile-button,
  .echo-overlay-gear-button {
    width: 68px;
    height: 68px;
    font-size: 18px;
  }

  .echo-overlay-radial {
    width: 100vw;
    height: 100vh;
  }

  .echo-overlay-site,
  .echo-overlay-site.echo-overlay-featured {
    width: 92px;
    height: 92px;
  }

  .echo-overlay-notifications {
    width: min(88vw, 380px);
    max-height: 38vh;
    top: 54%;
  }

  .echo-overlay-quick-stack {
    left: 14px;
    bottom: 14px;
  }

  .echo-overlay-quick-button {
    width: 62px;
    height: 62px;
  }

  .echo-overlay-gear {
    right: 16px;
    bottom: 16px;
  }
}
