/* HeaderMenu (portal dropdown) - fixes clipping inside .webrx-top-container (overflow:hidden) */

#owrx-hmenu-portal{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250000; /* above header/waterfall/panels */
}

/* the floating dropdown itself */
#owrx-hmenu-portal .owrx-hmenu-dd{
  position: fixed;
  background: rgba(20,24,32,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  padding: 10px;
  width: 300px;
  max-width: 90vw;
  display: none;
}

#owrx-hmenu-portal.is-open .owrx-hmenu-dd{ display:block; }

#owrx-hmenu-portal .owrx-hmenu-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

#owrx-hmenu-portal .owrx-hmenu-tile{
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 8px;
  cursor: pointer;
  user-select: none;
  text-align:center;
  color:#fff;
  display:grid;
  grid-template-rows: 34px auto;
  align-items:center;
}

#owrx-hmenu-portal .owrx-hmenu-tile svg{ width: 26px; height: 26px; margin: 0 auto; opacity: .95; }
#owrx-hmenu-portal .owrx-hmenu-tile span{ font-size: 11px; line-height: 1.1; opacity: .95; }
#owrx-hmenu-portal .owrx-hmenu-tile:hover{ background: rgba(255,255,255,0.10); }

@media (max-width: 520px){
  #owrx-hmenu-portal .owrx-hmenu-dd{ width: 260px; }
  #owrx-hmenu-portal .owrx-hmenu-grid{ grid-template-columns: repeat(2, 1fr); gap: 8px; }
  #owrx-hmenu-portal .owrx-hmenu-tile{ padding: 9px 7px; }
  #owrx-hmenu-portal .owrx-hmenu-tile span{ font-size: 10.5px; }
}

/* --- Modal styles (required) --- */
.owrx-hmenu-modal{
  position: fixed;
  inset: 0;
  z-index: 300000;
  display:none;
  background: rgba(0,0,0,0.55);
}
.owrx-hmenu-modal.is-open{ display:block; }

.owrx-hmenu-modal__card{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow:auto;
  border-radius: 16px;
  background: rgba(20,24,32,0.97);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  color:#fff;
}

.owrx-hmenu-modal__bar{
  position: sticky;
  top:0;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(20,24,32,0.99);
}

.owrx-hmenu-modal__bar h2{
  margin:0;
  font-size: 14px;
  opacity: .95;
}

.owrx-hmenu-modal__x{
  cursor:pointer;
  border:0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}

.owrx-hmenu-modal__body{
  padding: 14px;
  font-size: 13px;
  line-height: 1.45;
  opacity: .98;
}

.owrx-hmenu-modal__body a{ color:#7fd3ff; }

/* --- Highlight S-Meter tile --- */
.owrx-hmenu-smeter span{
  color:#ff4d4d;
  font-weight:700;
  text-shadow:
    0 0 6px rgba(255,77,77,0.45),
    0 0 12px rgba(255,77,77,0.25);
}
