/* DIGI HAM LINK DMR UI CONSISTENCY V3 — Frontend presentation only */
/* The old Networks tile is not removed from application logic or account favorites storage. */
#networkChoices > button[data-dhl-kind="networks"],
#networkChoices > button.dhl-visible-tile-v3[data-dhl-kind="networks"] {
  display:none !important;
}

/* Keep the two DMR additions visually consistent with native radio tiles. */
#networkChoices > button#dhlFreedmrLaunch,
#networkChoices > button#dhlTgifLaunch {
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:13px !important;
  min-height:86px !important;
  min-width:0 !important;
  padding:12px 14px !important;
  font:inherit !important;
  color:#fff !important;
  text-align:left !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  border-radius:13px !important;
}
#networkChoices > button#dhlFreedmrLaunch[hidden],
#networkChoices > button#dhlTgifLaunch[hidden] {display:none!important}
#networkChoices > button#dhlFreedmrLaunch {
  order:6 !important;
  border:2px solid #8ce4ef !important;
  background:linear-gradient(128deg,#105073 0%,#18749a 60%,#0d416d 100%) !important;
}
#networkChoices > button#dhlTgifLaunch {
  order:9999 !important;
  border:2px solid #ee93cd !important;
  background:linear-gradient(128deg,#642451 0%,#84265e 60%,#552650 100%) !important;
  font-size:clamp(16px,1.3vw,21px) !important;
  font-weight:750 !important;
  line-height:1.15 !important;
}
/* Hide every legacy extra FreeDMR glyph; preserve its text copy. */
#networkChoices > button#dhlFreedmrLaunch > :not(.dhlFreedmrCopy) {display:none !important;}
#networkChoices > button#dhlFreedmrLaunch .dhlFreedmrCopy {
  display:flex!important;flex-direction:column!important;gap:4px!important;
  align-items:flex-start!important;justify-content:center!important;
  min-width:0!important;opacity:1!important;visibility:visible!important;
}
#networkChoices > button#dhlFreedmrLaunch .dhlFreedmrCopy strong {
  font-size:clamp(16px,1.3vw,21px)!important;
  font-weight:750!important;line-height:1.1!important;color:#fff!important;
}
#networkChoices > button#dhlFreedmrLaunch .dhlFreedmrCopy small {
  font-size:clamp(10px,.85vw,13px)!important;
  font-weight:400!important;line-height:1.2!important;color:#e7f9ff!important;
}
#networkChoices > button#dhlFreedmrLaunch::before,
#networkChoices > button#dhlTgifLaunch::before {
  content:"" !important;
  display:block !important;
  width:47px !important;
  height:49px !important;
  flex:0 0 47px !important;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2044%2046%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%208v34M15%2042h14M18%2031h8M22%208l-9%2031h18L22%208Z%22%2F%3E%3Ccircle%20cx%3D%2222%22%20cy%3D%227%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M11%2015c-5%205-5%2015%200%2020M33%2015c5%205%205%2015%200%2020M6%2010c-7%208-7%2021%200%2030M38%2010c7%208%207%2021%200%2030%22%2F%3E%3Cpath%20d%3D%22M15%2035h14%22%2F%3E%3C%2Fsvg%3E") !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  background-size:contain !important;
  opacity:1 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
#networkChoices > button#dhlFreedmrLaunch::after {content:none!important;display:none!important}
#networkChoices > button#dhlTgifLaunch::after {
  content:"DMR Network" !important;
  position:absolute!important;top:calc(50% + 7px)!important;left:74px!important;
  display:block!important;max-width:calc(100% - 83px)!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  font-size:clamp(10px,.85vw,13px)!important;font-weight:400!important;
  line-height:1.2!important;color:#ffeffc!important;pointer-events:none!important;
}
#networkChoices > button#dhlFreedmrLaunch.selected,
#networkChoices > button#dhlTgifLaunch.selected {
  box-shadow:inset 0 0 0 1px rgba(152,241,206,.38)!important;
  border-color:#9ef0cf!important;
}
#networkChoices > button#dhlFreedmrLaunch:focus-visible,
#networkChoices > button#dhlTgifLaunch:focus-visible {
  outline:3px solid #fff!important;outline-offset:2px!important;
}

/* Consistent pill Close button, retaining original listeners. */
#dhlFreedmrDialog .dhlFreedmrHeader,
#dhlTgifDialog .dhlTgifHeader {
  display:flex!important;align-items:center!important;gap:12px!important;
  justify-content:space-between!important;padding:14px 18px!important;
}
#dhlFreedmrDialog .dhlFreedmrHeader h2,
#dhlTgifDialog .dhlTgifHeader h2 {
  flex:1 1 auto!important;min-width:0!important;margin:0!important;
  font-size:clamp(17px,2.5vw,21px)!important;line-height:1.2!important;
}
#dhlFreedmrDialog .dhlFreedmrBadge,
#dhlTgifDialog .dhlTgifBadge {flex:0 0 auto!important;white-space:nowrap!important}
#dhlFreedmrDialog .dhlFreedmrClose,
#dhlTgifDialog .dhlTgifClose {
  flex:0 0 auto!important;position:static!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:38px!important;min-width:76px!important;padding:8px 14px!important;
  background:linear-gradient(180deg,#1d5b7f,#174461)!important;
  border:1px solid #63b9dd!important;border-radius:9px!important;
  color:#fff!important;font-size:14px!important;font-weight:700!important;
  line-height:1.1!important;cursor:pointer!important;
}
#dhlFreedmrDialog .dhlFreedmrClose:focus-visible,
#dhlTgifDialog .dhlTgifClose:focus-visible {outline:2px solid #fff!important;outline-offset:3px!important}

/* FreeDMR Now Talking: true per-session data; no stale BrandMeister prompts. */
#vfoPanel.dhlFreedmrLive #talkingStatus,
#vfoPanel.dhlFreedmrLive #talkingCurrent,
#vfoPanel.dhlFreedmrLive .vfoStandby,
#vfoPanel.dhlFreedmrLive .dhlFreedmrSuppressed {
  display:none!important;
}
#vfoPanel #dhlFreedmrNowTalking {
  display:none;
  box-sizing:border-box;
  margin:8px 3px 13px;
  padding:13px 18px;
  border:1px solid rgba(117,220,247,.45);
  border-radius:12px;
  background:linear-gradient(115deg,rgba(7,54,78,.93),rgba(13,39,62,.95));
  min-height:142px;
  color:#e7f7ff;
  text-align:center;
  overflow-wrap:anywhere;
}
#vfoPanel.dhlFreedmrLive #dhlFreedmrNowTalking {display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px}
#dhlFreedmrNowTalking .dhlFreedmrLiveTitle {
  font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:#8fe4fb;font-weight:750;
}
#dhlFreedmrNowTalking .dhlFreedmrLiveCall {
  font-size:clamp(23px,4vw,43px);font-weight:800;line-height:1.15;color:#b7efff;
}
#dhlFreedmrNowTalking .dhlFreedmrLiveDetails {
  font-size:clamp(12px,1.4vw,15px);line-height:1.35;color:#f0faff;font-weight:550;
}
#dhlFreedmrNowTalking .dhlFreedmrLiveMeta {
  font-size:12px;color:#9fcbdf;line-height:1.4;
}
@media(max-width:480px) {
  #networkChoices > button#dhlFreedmrLaunch,
  #networkChoices > button#dhlTgifLaunch {min-height:70px!important;padding:8px!important;gap:8px!important}
  #networkChoices > button#dhlFreedmrLaunch::before,
  #networkChoices > button#dhlTgifLaunch::before {width:30px!important;height:33px!important;flex-basis:30px!important}
  #networkChoices > button#dhlTgifLaunch::after {left:46px!important;max-width:calc(100% - 52px)!important;top:calc(50% + 7px)!important;font-size:10px!important}
  #networkChoices > button#dhlFreedmrLaunch .dhlFreedmrCopy strong {font-size:13px!important}
  #networkChoices > button#dhlFreedmrLaunch .dhlFreedmrCopy small {font-size:10px!important}
  #vfoPanel #dhlFreedmrNowTalking {min-height:100px;padding:9px 11px;margin:5px 0}
  #vfoPanel.dhlFreedmrLive #dhlFreedmrNowTalking {gap:3px}
}
