/* DIGI HAM LINK desktop radio control separation v4.
   Desktop only; keep the existing mobile dock and radio functionality intact. */
@media (min-width:1024px) {
  html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) main {
    overflow-x: clip;
    padding-bottom: 8px !important;
  }
  html:not(.digi-signed-out) #view-radio {
    padding-bottom: 0 !important;
    margin-bottom: 12px !important;
    min-width: 0;
  }
  /* The grid contains Your radio. Give the entire panel room to finish. */
  html:not(.digi-signed-out) #view-radio > :last-child {
    padding-bottom: 14px !important;
    box-sizing: border-box;
  }
  /* The PTT dock is an existing sibling, not part of the Your radio card. */
  html:not(.digi-signed-out) .radioDock {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 18px 0 8px !important;
    padding: 0 4px !important;
    gap: 8px;
    flex-wrap: nowrap;
  }
  html:not(.digi-signed-out) .radioDock > * {min-width:0;}
  html:not(.digi-signed-out) .radioDock #radioPtt {
    min-height: 48px !important;
    margin: 0 !important;
    flex: 1 1 auto;
  }
  html:not(.digi-signed-out) .radioDock #hangup {
    min-height: 48px !important;
  }
  html:not(.digi-signed-out) .dhlInstallEntry {
    display:flex !important;
    flex-direction:column;
    align-items:flex-end !important;
    width:100%;
    margin: 8px 0 5px !important;
    padding: 0 4px !important;
    box-sizing:border-box;
    clear:both;
  }
  html:not(.digi-signed-out) .dhlInstallEntry #dhlInstall {
    width:auto !important;
    min-width:0 !important;
    max-width:100%;
    min-height:34px !important;
    padding:6px 12px !important;
    margin:0 !important;
    white-space:normal;
  }
  html:not(.digi-signed-out) #dhlInstallNote {margin:2px 0 0 !important;}
}
/* Reduced gaps on short desktop windows without covering controls. */
@media (min-width:1024px) and (max-height:780px) {
  html:not(.digi-signed-out) #view-radio {margin-bottom:8px !important;}
  html:not(.digi-signed-out) #view-radio > :last-child {padding-bottom:10px !important;}
  html:not(.digi-signed-out) .radioDock {margin-top:12px !important;}
  html:not(.digi-signed-out) .dhlInstallEntry {margin-top:5px !important;}
}
