/* DIGI HAM LINK — desktop/laptop receive panel space repair v2.
   Keeps the existing dashboard, original radio elements and handlers. */
@media (min-width:1024px) {
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio {
   grid-template-rows: 164px 160px 76px minmax(145px,auto) !important;
   grid-auto-rows:auto !important;
   gap:8px 12px !important;
 }
 /* Three tracks for the receiver area instead of squeezing its contents into two. */
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio > #vfoPanel {
   grid-column:2 !important;
   grid-row:1 / span 3 !important;
   height:100% !important;
   max-height:none !important;
   min-height:0 !important;
   overflow:hidden !important;
   display:flex !important;
   flex-direction:column !important;
   padding:10px 12px 56px !important;
   box-sizing:border-box !important;
 }
 /* Leave a visible few pixels below temperatures and the local-weather text. */
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio > :is(.dhlLocalInfo,.dhlDesktopInfoCard) {
   padding-bottom:11px !important;
   overflow:auto !important;
   box-sizing:border-box !important;
 }
 /* Never crop large standby text or detailed callsign metadata. */
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio #vfoPanel > #talkingCurrent {
   flex:0 1 auto !important;
   min-height:90px !important;
   max-height:160px !important;
   overflow-y:auto !important;
   overflow-x:hidden !important;
   margin-top:5px !important;
   margin-bottom:4px !important;
   scrollbar-width:thin;
 }
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio #vfoPanel .vfoStandby {
   line-height:1.05 !important;
   padding-top:3px !important;
   padding-bottom:4px !important;
 }
 /* Compact history remains above the original absolute-positioned Mic Gain bar. */
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio #vfoPanel > details:has(> #talkingLast) {
   flex:0 0 auto !important;
   margin-top:auto !important;
   margin-bottom:0 !important;
   max-height:106px !important;
   min-height:35px !important;
   overflow:hidden !important;
 }
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio #vfoPanel #talkingLast {
   max-height:76px !important;
   overflow-y:auto !important;
 }
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio #vfoPanel #dhlInlineMicGain {
   bottom:7px !important;
 }
 /* Prevent a stale rule from collapsing the bottom row of the left column. */
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio > .radioDock.dhlDesktopDockInFlow {
   grid-row:3 !important;
 }
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio > #dhlRecentQsoDesktop {
   grid-column:1/-1 !important;
   grid-row:4 !important;
 }
}
@media (min-width:1024px) and (max-height:760px) {
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio {
   grid-template-rows:154px 150px 72px minmax(130px,auto) !important;
 }
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio #vfoPanel > #talkingCurrent {
   max-height:140px !important;
   min-height:75px !important;
 }
}
@media (min-width:1024px) and (max-height:650px) {
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio {
   grid-template-rows:145px 144px 68px minmax(115px,auto) !important;
 }
 html:not(.digi-signed-out):has(#tab-radio[aria-selected="true"]) #view-radio #vfoPanel > #talkingCurrent {
   max-height:130px !important;
   min-height:65px !important;
 }
}
