/* DIGI HAM LINK D-STAR v5 — unified dashboard tiles and main PTT routing.
   Presentation only; networking and server authorization remain in v4 backend. */
/* Keep the existing D-STAR connection status; use ONLY the main dashboard
   Hold to Talk / Disconnect dock for transmission and hangup. */
#vfoPanel #dhlDstarV2Vfo .dhlDstarV4PanelActions{display:none!important}
#dhlDstarV2Dialog .dhlDstarV3TxArea{display:none!important}
#dhlDstarV2Open[hidden],#networkChoices button.dhlDstarV5Unified[hidden]{display:none!important}
/* Place every known network in a two-column grid, preserving each button's
   original click listeners and access gates. */
#networkChoices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
#networkChoices button.dhlDstarV5Unified{
  position:relative!important;order:var(--dhl-v5-order,20)!important;
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  min-width:0!important;min-height:67px!important;width:100%!important;
  padding:9px 12px!important;border:2px solid var(--dhl-v5-border,#4d93ba)!important;
  background:var(--dhl-v5-bg,linear-gradient(130deg,#183e58,#205575))!important;
  color:#fff!important;border-radius:11px!important;text-align:left!important;
  overflow:hidden!important;cursor:pointer!important;
}
#networkChoices button.dhlDstarV5Unified:disabled{cursor:not-allowed!important;opacity:.62!important}
#networkChoices button.dhlDstarV5Unified:not([hidden]):focus-visible{outline:3px solid #fff!important;outline-offset:2px!important}
#networkChoices button.dhlDstarV5Unified:not([hidden]):hover{filter:brightness(1.08)}
#networkChoices button.dhlDstarV5Unified > :not(.dhlDstarV5Face){display:none!important}
/* Override the earlier v79/v3 visual layers without replacing their actual
   buttons or removing any connection handlers. */
#networkChoices button.dhlDstarV5Unified.dhl-visible-tile-v3 > :not(.dhlDstarV5Face),
#networkChoices button.dhlDstarV5Unified.dhl-v79b-tile > :not(.dhlDstarV5Face){display:none!important}
#networkChoices button.dhlDstarV5Unified > .dhlDstarV5Face,
#networkChoices button.dhlDstarV5Unified.dhl-visible-tile-v3 > .dhlDstarV5Face{
  position:relative!important;z-index:12!important;display:flex!important;visibility:visible!important;
  opacity:1!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;gap:11px!important;pointer-events:none!important;
}
#networkChoices button.dhlDstarV5Unified .dhlDstarV5Signal{
  box-sizing:border-box!important;width:12px!important;height:12px!important;
  border:2px solid #ccedff!important;border-radius:50%!important;
  background:transparent!important;flex:0 0 12px!important;opacity:.85!important;
  box-shadow:none!important;
}
#networkChoices button.dhlDstarV5Unified.dhlDstarV5On .dhlDstarV5Signal{
  background:#37f6d1!important;border-color:#96ffea!important;opacity:1!important;
  box-shadow:0 0 0 3px #39f6ce33,0 0 10px #37f6d1!important;
}
#networkChoices button.dhlDstarV5Unified .dhlDstarV5Icon{
  color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 34px!important;width:34px!important;height:42px!important;
}
#networkChoices button.dhlDstarV5Unified .dhlDstarV5Icon svg{
  display:block!important;fill:none!important;stroke:currentColor!important;width:34px!important;height:42px!important;
}
#networkChoices button.dhlDstarV5Unified .dhlDstarV5Copy{
  display:flex!important;flex-direction:column!important;gap:3px!important;
  flex:1 1 auto!important;min-width:0!important;color:#fff!important;
}
#networkChoices button.dhlDstarV5Unified .dhlDstarV5Copy strong{
  color:#fff!important;display:block!important;font-size:clamp(14px,1.16vw,18px)!important;
  font-weight:750!important;line-height:1.12!important;
}
#networkChoices button.dhlDstarV5Unified .dhlDstarV5Copy small{
  color:#e5f8ff!important;display:block!important;font-size:clamp(10px,.78vw,12px)!important;
  font-weight:400!important;line-height:1.25!important;
}
#networkChoices button.dhlDstarV5Unified[data-dhl-dstar-v5-kind="brandmeister"]{--dhl-v5-bg:linear-gradient(130deg,#a94c0c,#c36b18);--dhl-v5-border:#ffb342}
#networkChoices button.dhlDstarV5Unified[data-dhl-dstar-v5-kind="ysf"]{--dhl-v5-bg:linear-gradient(130deg,#58218d,#8a2db1);--dhl-v5-border:#c476ee}
#networkChoices button.dhlDstarV5Unified[data-dhl-dstar-v5-kind="allstar"]{--dhl-v5-bg:linear-gradient(130deg,#07528d,#0d65af);--dhl-v5-border:#29caff}
#networkChoices button.dhlDstarV5Unified[data-dhl-dstar-v5-kind="echolink"]{--dhl-v5-bg:linear-gradient(130deg,#05606e,#047d96);--dhl-v5-border:#29ebeb}
#networkChoices button.dhlDstarV5Unified[data-dhl-dstar-v5-kind="freedmr"]{--dhl-v5-bg:linear-gradient(130deg,#16475c,#266382);--dhl-v5-border:#90d5ee}
#networkChoices button.dhlDstarV5Unified[data-dhl-dstar-v5-kind="adn"]{--dhl-v5-bg:linear-gradient(130deg,#065b56,#087e77);--dhl-v5-border:#27eccd}
#networkChoices button.dhlDstarV5Unified[data-dhl-dstar-v5-kind="tgif"]{--dhl-v5-bg:linear-gradient(130deg,#6f2151,#923468);--dhl-v5-border:#e77eb5}
#networkChoices button.dhlDstarV5Unified[data-dhl-dstar-v5-kind="dstar"]{
  --dhl-v5-bg:linear-gradient(130deg,#086b86,#0b8cba 55%,#075483);
  --dhl-v5-border:#39e5ff;
}
#networkChoices button.dhlDstarV5Unified[data-dhl-dstar-v5-kind="dstar"].dhlDstarV5On{
  box-shadow:0 0 0 1px #46edff66 inset,0 0 14px #35d5ff55!important;
}
html.dhlDstarV5Owned #radioPtt:not(:disabled){background:linear-gradient(135deg,#068db5,#146bc4)!important;border-color:#52e8ff!important;color:#fff!important}
html.dhlDstarV5Owned #radioPtt[aria-pressed="true"]{background:linear-gradient(135deg,#a63224,#dd5a2b)!important;border-color:#ffb18c!important}
@media(max-width:550px){
  #networkChoices button.dhlDstarV5Unified{padding:7px 8px!important;min-height:61px!important}
  #networkChoices button.dhlDstarV5Unified > .dhlDstarV5Face{gap:6px!important}
  #networkChoices button.dhlDstarV5Unified .dhlDstarV5Icon{width:27px!important;height:34px!important;flex-basis:27px!important}
  #networkChoices button.dhlDstarV5Unified .dhlDstarV5Icon svg{width:27px!important;height:34px!important}
  #networkChoices button.dhlDstarV5Unified .dhlDstarV5Copy strong{font-size:13px!important}
  #networkChoices button.dhlDstarV5Unified .dhlDstarV5Copy small{font-size:10px!important}
  #networkChoices button.dhlDstarV5Unified .dhlDstarV5Signal{width:9px!important;height:9px!important;flex-basis:9px!important}
}
