/* DIGI HAM LINK v69 — Mobile card containment + expected SIP hangup message.
 * Presentation only. No connection, SIP, RTP, PTT or account operations.
 * v65/v68 connected state is authoritative for this CSS; don't infer link health.
 */
@media screen and (max-width:767px) {
  /* Treat the verified node, badge, and its node caption as normal flow content.
     Mobile fixed/sticky VFO constraints must not cut off the badge. */
  html body #view-radio.dhl-v65-mobile-verified:not([hidden]) > #vfoPanel {
    display:block!important;
    position:relative!important;
    top:auto!important;
    bottom:auto!important;
    inset:auto!important;
    float:none!important;
    transform:none!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-height:350px!important;
    height:auto!important;
    max-height:none!important;
    padding:12px 12px 42px!important;
    margin-bottom:12px!important;
    overflow:visible!important;
  }
  html body #view-radio.dhl-v65-mobile-verified:not([hidden]) > #vfoPanel #dhl-asl-v53-hero {
    display:block!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-height:160px!important;
    height:auto!important;
    max-height:none!important;
    margin:0 auto 20px!important;
    padding:7px 5px 20px!important;
    overflow:visible!important;
  }
  html body #view-radio.dhl-v65-mobile-verified:not([hidden]) > #vfoPanel #dhl-v65-mobile-identity {
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    box-sizing:border-box!important;
    min-height:130px!important;
    height:auto!important;
    max-height:none!important;
    width:100%!important;
    margin:0 auto!important;
    padding:6px 5px 15px!important;
    gap:10px!important;
    overflow:visible!important;
  }
  html body #view-radio.dhl-v65-mobile-verified:not([hidden]) > #vfoPanel #dhl-v65-mobile-identity .dhl-v65-call {
    position:relative!important;
    line-height:1.17!important;
    padding-bottom:3px!important;
  }
  html body #view-radio.dhl-v65-mobile-verified:not([hidden]) > #vfoPanel #dhl-v65-mobile-identity .dhl-v65-status {
    position:relative!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    min-height:37px!important;
    height:auto!important;
    max-height:none!important;
    max-width:calc(100% - 12px)!important;
    padding:8px 15px!important;
    margin:4px auto 13px!important;
    line-height:1.28!important;
    white-space:normal!important;
    text-align:center!important;
    overflow:visible!important;
  }
  html body #view-radio.dhl-v65-mobile-verified:not([hidden]) > #vfoPanel #dhl-v65-mobile-identity .dhl-v65-node {
    display:block!important;
    position:relative!important;
    height:auto!important;
    min-height:17px!important;
    margin:0 auto 9px!important;
    line-height:1.45!important;
    white-space:normal!important;
  }
  /* When disconnected, the legacy large NOT CONNECTED label must fit inside
     the VFO instead of being cut by the border. Keep error messages unrelated
     to expected user disconnect visible. */
  html body #view-radio:not(.dhl-v65-mobile-verified):not([hidden]) > #vfoPanel {
    box-sizing:border-box!important;
    min-height:265px!important;
    height:auto!important;
    max-height:none!important;
    padding-bottom:28px!important;
    overflow:hidden!important;
  }
  html body #view-radio:not(.dhl-v65-mobile-verified):not([hidden]) > #vfoPanel .vfoStandby {
    box-sizing:border-box!important;
    display:block;
    max-width:100%!important;
    font-size:clamp(22px,7vw,36px)!important;
    line-height:1.15!important;
    letter-spacing:.025em!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    text-align:center!important;
    padding:9px 2px 18px!important;
    margin:4px auto 0!important;
  }
  /* Only the precise routine SIP termination, and only after the local user
     deliberately clicked Disconnect, receives this opt-in presentation class. */
  html body #view-radio #dhl-asl-v51-indicator.dhl-v69-expected-termination {
    display:none!important;
    visibility:hidden!important;
  }
}
