/* DIGI HAM LINK Home Favorites v1. Scoped to Home and its Favorites dialog. */
#view-radio #dhlConnectionSummary { display: none !important; }
#view-radio #networkChoiceNotice { display: none !important; }
#view-radio .networkPicker { padding: 18px; border-radius: 20px; border-color: #29465a; background: linear-gradient(145deg,#13283b,#101d2e); }
#view-radio #networkChoiceTitle { margin: 0 0 13px; color: #dbe9f3; font-size: .94rem; font-weight: 650; letter-spacing: .02em; }
#view-radio #networkChoices { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
#view-radio #networkChoices > .hfLauncher { display: flex; justify-content: flex-start; align-items: center; gap: 10px; min-height: 72px; min-width: 0; padding: 13px 12px; border: 1px solid #365269; border-radius: 15px; background: linear-gradient(145deg,#20374b,#172b3e); text-align: left; white-space: normal; }
#view-radio #networkChoices > .hfLauncher::before { display: none; }
#view-radio #networkChoices > .hfLauncher > svg { width: 22px; height: 22px; flex: 0 0 22px; color: #a7ccdd; }
#view-radio #networkChoices > .hfLauncher[aria-pressed="true"] { border-color: #46d5d3; background: linear-gradient(135deg,#12434d,#153342); box-shadow: inset 0 0 0 1px #46d5d32a,0 3px 14px #05101744; }
#view-radio #networkChoices > .hfLauncher[aria-pressed="true"] > svg { color: #7cf0e5; }
.hfLauncherWords { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
#view-radio .hfLauncherWords strong { color: #eff8ff; font-size: .91rem; line-height: 1.2; letter-spacing: 0; font-weight: 750; }
#view-radio .hfLauncherWords small { color: #afc4d3; font-size: .71rem; font-weight: 450; line-height: 1.3; letter-spacing: .025em; }
.hfSummary { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; min-height: 40px; }
.hfSummary[hidden] { display: none; }
.hfSummaryDot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #6f8c9f; }
.hfSummary[data-state="connected"] .hfSummaryDot { background: #60e6b8; box-shadow: 0 0 0 4px #60e6b812; }
.hfSummary[data-state="busy"] .hfSummaryDot { background: #6ddfed; animation: hfPulse 1.5s ease-in-out infinite; }
.hfSummary[data-state="attention"] .hfSummaryDot { background: #ecc678; }
.hfSummaryWords { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.hfSummaryWords strong { color: #daeaf4; font-size: .78rem; line-height: 1.35; font-weight: 600; }
.hfSummaryWords > span { color: #a2b9ca; font-size: .72rem; line-height: 1.4; overflow-wrap: anywhere; }
#view-radio .hfSmallAction { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; width: auto; margin: 0; padding: 7px 11px; border: 1px solid #3b6075; border-radius: 11px; background: #213d51; color: #dbf5ff; font: inherit; font-size: .76rem; font-weight: 700; }
#view-radio .hfSmallAction[hidden] { display: none; }
.hfDialog { --hf-viewport-height: 100dvh; --hf-viewport-top: 0px; box-sizing: border-box; width: min(520px,calc(100vw - 32px)); max-width: none; height: min(700px,calc(var(--hf-viewport-height) - 48px)); max-height: calc(var(--hf-viewport-height) - 48px); margin: auto; padding: 0; overflow: hidden; color: #eef7ff; border: 1px solid #3a576b; border-radius: 24px; background: #101e2e; box-shadow: 0 25px 100px #000a; font-family: inherit; }
.hfDialog::backdrop { background: #020913bd; backdrop-filter: blur(7px); }
.hfDialog[open] { display: flex; flex-direction: column; }
.hfDialog * { box-sizing: border-box; }
.hfDialog [hidden] { display: none !important; }
.hfHeader { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: 24px 24px 20px; gap: 14px; background: linear-gradient(125deg,#1a3345,#142537 75%); border-bottom: 1px solid #2c4356; }
.hfHeading { display: flex; flex-direction: column; gap: 8px; }
.hfEyebrow { color: #9eb9ca; font-size: 10px; font-weight: 750; letter-spacing: .15em; }
.hfHeadingLine { display: flex; align-items: center; gap: 10px; }
.hfHeadingLine svg { width: 26px; height: 26px; color: #74ded7; }
.hfDialog h2 { margin: 0; padding: 0; color: #f0f8ff; font-size: 1.5rem; line-height: 1.2; font-weight: 750; letter-spacing: -.02em; text-transform: none; }
.hfDialog .hfClose { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; margin: 0; border: 1px solid #3d596d; border-radius: 14px; background: #233d51; color: #d3e5f0; font: inherit; font-size: 27px; line-height: 1; }
.hfBody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 22px 24px; scrollbar-width: thin; scrollbar-color: #3c6077 transparent; }
.hfSection + .hfSection { margin-top: 25px; }
.hfDialog h3 { color: #95b2c5; font-size: 10px; font-weight: 750; letter-spacing: .13em; margin: 0 0 11px; }
.hfSectionHeading { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.hfSectionHeading h3 { margin: 0; flex: 0 0 auto; white-space: nowrap; }
.hfSectionHeading > span { color: #7594a9; font-size: 11px; flex: 0 0 auto; white-space: nowrap; }
.hfDialog .hfTextAction { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; max-width: none; white-space: nowrap; margin: -9px -3px -9px auto; min-width: 44px; min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: #79dcd9; font: inherit; font-size: 12px; font-weight: 650; box-shadow: none; }
.hfDialog .hfNetworkConnect { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 78px; margin: 0; padding: 14px; border: 1px solid #395368; border-radius: 16px; background: linear-gradient(135deg,#25384b,#1a2d40); color: #ecf6ff; text-align: left; font: inherit; }
.hfDialog .hfNetworkConnect::before { display: none; }
.hfNetworkWords { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hfNetworkWords strong { color: #eaf4ff; font-size: 15px; line-height: 1.2; font-weight: 750; }
.hfNetworkWords small { color: #9eb6c9; font-size: 12px; font-weight: 400; }
.hfKpMark { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; border: 1px solid #7483ad75; color: #c9d3ff; background: #44517b66; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.hfNetworkConnect > svg,.hfFavoriteConnect > svg { flex: 0 0 15px; width: 15px; height: 15px; color: #829fb2; }
.hfDialog .hfNetworkConnect[aria-pressed="true"] { border-color: #70d5c1; background: linear-gradient(135deg,#254b4c,#1a3940); }
.hfList { display: flex; flex-direction: column; gap: 8px; }
.hfFavoriteRow { display: flex; align-items: center; border: 1px solid #2c465b; background: #172b3c; border-radius: 14px; overflow: hidden; }
.hfFavoriteRow.is-active { background: #15383f; border-color: #448d88; }
.hfDialog .hfFavoriteConnect { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; min-height: 72px; margin: 0; padding: 13px 14px; border: 0; border-radius: 0; background: transparent; color: #e5f2ff; box-shadow: none; font: inherit; text-align: left; }
.hfFavoriteFlag { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; }
.hfFavoriteFlag img,.hfFavoriteFlag svg { width: 30px; height: 22px; max-width: 30px; object-fit: cover; border-radius: 4px; }
.hfFavoriteWords { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 4px; }
.hfFavoriteTitle { font-size: 14px; line-height: 1.2; font-weight: 720; }
.hfFavoriteName { color: #9eb8cb; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.hfFavoriteState { color: #83e6c6; font-size: 10px; font-weight: 650; }
.hfFavoriteState:empty { display: none; }
.hfDialog .hfFavoriteRemove { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; min-width: 44px; width: 44px; min-height: 44px; padding: 0; margin: 0 6px 0 0; border: 1px solid #794a57; border-radius: 10px; background: #452e3b; color: #ffc3ca; font: inherit; font-size: 23px; }
.hfEmpty { display: flex; align-items: center; flex-direction: column; gap: 9px; border: 1px dashed #355266; border-radius: 16px; padding: 22px 12px; background: #142637; text-align: center; }
.hfEmpty svg { width: 25px; height: 25px; color: #718fa3; }
.hfEmpty strong { color: #c1d6e4; font-size: 13px; font-weight: 600; }
.hfEmpty span { color: #8cabbf; font-size: 12px; }
.hfDialog .hfAdd { margin-top: 24px; }
.hfDialog .hfAdd label { display: block; color: #bfd3e2; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.hfAddRow { display: flex; gap: 8px; }
.hfDialog .hfAdd input { flex: 1; min-width: 0; min-height: 47px; width: 100%; margin: 0; padding: 11px 13px; border: 1px solid #3b566b; border-radius: 11px; color: #ecf8ff; background: #0c1b2b; font: inherit; font-size: 16px; }
.hfDialog .hfAdd input::placeholder { color: #819cb0; font-size: 13px; }
.hfDialog .hfAdd button { width: auto; flex: 0 0 auto; min-height: 47px; margin: 0; padding: 10px 17px; border: 1px solid #63c8c5; border-radius: 11px; background: #63d4c9; color: #073d40; font: inherit; font-size: 13px; font-weight: 800; }
.hfMessage { color: #acd1df; font-size: 12px; line-height: 1.45; margin: 9px 0 0; min-height: 18px; }
.hfFooter { flex: 0 0 auto; padding: 15px 24px max(17px,env(safe-area-inset-bottom)); border-top: 1px solid #2b4357; background: #122333; }
.hfDialog .hfBrowse { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 47px; margin: 0; padding: 10px 15px; border: 1px solid #3c5a70; border-radius: 12px; background: #203a4e; color: #d1effa; font: inherit; font-size: 13px; font-weight: 650; }
.hfBrowse svg { width: 15px; height: 15px; }
.hfDialog button:disabled { cursor: not-allowed; opacity: .48; filter: none; }
.hfDialog button:focus-visible,.hfDialog input:focus-visible,#view-radio .hfSmallAction:focus-visible { outline: 3px solid #92eee4; outline-offset: 3px; }
.hfDialog .hfFavoriteConnect:focus-visible { outline-offset: -3px; }
@keyframes hfPulse { 50% { opacity: .35; } }
@media (max-width: 560px) {
  #view-radio #networkChoices > .hfLauncher { flex-direction: column; justify-content: center; min-height: 82px; padding: 10px 8px; gap: 6px; text-align: center; }
  #view-radio #networkChoices > .hfLauncher > svg { width: 18px; height: 18px; flex: 0 0 18px; }
  #view-radio .hfLauncherWords { align-items: center; gap: 3px; }
  #view-radio .hfLauncherWords strong { white-space: nowrap; }
  .hfDialog { position: fixed; inset: auto 0 auto 0; top: calc(var(--hf-viewport-top) + max(10px,var(--hf-viewport-height) - min(760px,var(--hf-viewport-height) - 10px))); width: 100%; height: min(760px,calc(var(--hf-viewport-height) - 10px)); max-height: calc(var(--hf-viewport-height) - 10px); margin: 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .hfHeader { padding: 22px 20px 18px; }
  .hfBody { padding: 20px; }
  .hfFooter { padding-inline: 20px; }
}
@media (max-width: 360px) {
  #view-radio .networkPicker { padding: 14px; }
  #view-radio #networkChoices { gap: 8px; }
  #view-radio #networkChoices > .hfLauncher { padding: 11px 9px; gap: 7px; min-height: 68px; }
  #view-radio #networkChoices > .hfLauncher > svg { width: 18px; height: 18px; flex-basis: 18px; }
  #view-radio .hfLauncherWords strong { font-size: .81rem; }
  #view-radio .hfLauncherWords small { font-size: .68rem; }
  .hfHeader { padding-inline: 16px; }.hfBody,.hfFooter { padding-inline: 16px; }
  .hfFavoriteState { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hfSummaryDot { animation: none !important; } }
