/* DIGI HAM LINK v56 — Personal AllStarLink visual-only stabilizer.
   No connection, SIP, API, audio, microphone, or PTT rules are modified. */

/* The legacy VFO activity renderer continues writing "NOT CONNECTED" into
   #talkingCurrent while Personal ASL's verified display is rendered elsewhere.
   Hide its complete fluctuating region, not just individual text nodes: this
   prevents both the flashing and the vertical layout shift shown in the video.
   Other networks retain their original VFO behavior. */
#vfoPanel.dhl-asl-v51-audio-live #talkingCurrent,
#vfoPanel.dhl-asl-v51-audio-live .vfoStation,
#vfoPanel.dhl-asl-v51-audio-live .vfoStandby,
#vfoPanel.dhl-asl-v51-audio-live .vfoRoom,
#vfoPanel.dhl-asl-v51-audio-live #talkingStatus,
#vfoPanel.dhl-asl-v53-linked #talkingCurrent,
#vfoPanel.dhl-asl-v53-linked .vfoStation,
#vfoPanel.dhl-asl-v53-linked .vfoStandby,
#vfoPanel.dhl-asl-v53-linked .vfoRoom,
#vfoPanel.dhl-asl-v53-linked #talkingStatus {
  display:none!important;
  animation:none!important;
  transition:none!important;
}

/* When the destination is verified, show the node number once instead of
   layering multiple audio-connected headings over the verified-link hero. */
#vfoPanel.dhl-asl-v53-linked #dhl-asl-v51-connected,
#vfoPanel.dhl-asl-v53-linked #dhl-asl-v51-indicator {
  display:none!important;
}

/* Avoid popup-sized status banners stretching an older fixed-height VFO. */
#view-radio #vfoPanel.dhl-asl-v51-audio-live,
#view-radio #vfoPanel.dhl-asl-v53-linked {
  position:relative!important;
  top:auto!important;
  bottom:auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  isolation:isolate;
  padding-bottom:12px!important;
  margin-bottom:12px!important;
}
#view-radio #vfoPanel.dhl-asl-v51-audio-live > *,
#view-radio #vfoPanel.dhl-asl-v53-linked > * {
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
}
#vfoPanel.dhl-asl-v53-linked #dhl-asl-v53-hero,
#vfoPanel.dhl-asl-v51-audio-live #dhl-asl-v48-radio-state,
#vfoPanel.dhl-asl-v51-audio-live #dhl-asl-v52-details {
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  float:none!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  margin:6px 0!important;
  overflow-wrap:anywhere;
}
#vfoPanel.dhl-asl-v51-audio-live #dhl-asl-v53-hero[hidden],
#vfoPanel.dhl-asl-v51-audio-live #dhl-asl-v48-radio-state[hidden],
#vfoPanel.dhl-asl-v51-audio-live #dhl-asl-v52-details[hidden] {display:none!important;}
#vfoPanel.dhl-asl-v51-audio-live #dhl-asl-v52-details {max-height:230px;overflow:auto!important;}
#vfoPanel.dhl-asl-v51-audio-live #dhl-asl-v52-details pre {max-height:150px;overflow:auto!important;}

/* Last Heard should occupy normal page flow instead of floating over PTT/QSOs. */
#view-radio details.dhl-asl-v56-lastheard {
  position:static!important;
  inset:auto!important;
  transform:none!important;
  float:none!important;
  clear:both!important;
  width:100%!important;
  max-width:100%!important;
  max-height:190px;
  overflow:auto!important;
  box-sizing:border-box!important;
  margin:8px 0!important;
}
#view-radio #vfoPanel.dhl-asl-v51-audio-live .vfoMeter,
#view-radio #vfoPanel.dhl-asl-v51-audio-live .vfoMeterTrack,
#view-radio #vfoPanel.dhl-asl-v51-audio-live .vfoMeterLabel {
  position:relative!important;
  inset:auto!important;
  width:auto;
  max-width:100%;
  box-sizing:border-box;
}

/* The old popup PTT remains wired internally, but is removed from its UI.
   The main Radio HOLD TO TALK stays visible and unchanged. */
#dhl-personal-asl-bridge button.dhl-asl-v56-popup-ptt,
#dhl-personal-asl-bridge .dhl-asl-v56-popup-ptt-help {
  display:none!important;
}
