/* Compact launcher; the popup's primary Connect action keeps its own styling. */
#view-radio .personalDmrPanel {
  display: flex;
  justify-content: center;
  min-width: 0;
  margin: 9px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#view-radio .personalDmrPanel[hidden] { display: none !important; }
#view-radio .personalDmrPanel #brandmeisterOpen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  gap: 8px;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #59d8e8;
  border-radius: 10px;
  background: linear-gradient(115deg, #24cfe6, #08afd4);
  color: #032434;
  font: 700 .88rem/1.35 system-ui, sans-serif;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
}
#view-radio .personalDmrPanel #brandmeisterOpen::before {
  flex-basis: 18px;
  width: 18px;
  height: 18px;
}
#view-radio .personalDmrPanel #brandmeisterOpen:focus-visible {
  outline: 2px solid #d9fbff;
  outline-offset: 3px;
}
#view-radio .personalDmrPanel #brandmeisterOpen:disabled { opacity: .48; }

/* A separate app view reuses the original input, keypad, and Send handler. */
#view-keypad { max-width: 560px; margin-inline: auto; }
#view-keypad[hidden] { display: none !important; }
#view-keypad .viewTitle { margin: 18px 0 12px; }
#view-keypad #nodeDtmfPanel {
  box-sizing: border-box;
  min-width: 0;
  padding: 18px;
  border: 1px solid #31546c;
  border-radius: 14px;
  background: linear-gradient(135deg, #13293d, #0c1b2d);
}
#view-keypad #nodeDtmfPanel > summary {
  min-height: 32px;
  color: #d8eef8;
  font-size: 1rem;
}
#view-keypad #nodeDtmfPanel > p { color: #a9c2d7; font-size: .9rem; line-height: 1.45; }
#view-keypad #nodeDtmfPanel label { display: block; margin: 12px 0 7px; font-size: .9rem; color: #d6e9f7; }
#view-keypad #dtmfEntry {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  font: 500 1.2rem/1.3 ui-monospace, monospace;
  letter-spacing: .1em;
}
#view-keypad #keypad { margin: 14px 0; gap: 9px; }
#view-keypad #keypad button {
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 10px;
  border: 1px solid #3b5d79;
  border-radius: 10px;
  background: #17344b;
  color: #e3f6ff;
  font-size: 1.25rem;
}
#view-keypad .dtmfActions { display: flex; gap: 9px; }
#view-keypad .dtmfActions button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  width: auto;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
}
#view-keypad #clearDtmf { background: #183248; border-color: #42657c; color: #cfe6f4; }
#view-keypad #sendDtmf { background: #19c7dd; border-color: #62e4f1; color: #042536; font-weight: 700; }
#view-keypad #nodeDtmfPanel button:disabled { opacity: .45; cursor: not-allowed; }
#view-keypad #nodeDtmfPanel button:focus-visible,
#view-keypad #dtmfEntry:focus-visible { outline: 2px solid #9af2ff; outline-offset: 3px; }
#view-keypad #dtmfStatus { min-height: 1.35em; margin-bottom: 0; }

/* Numeric fallback remains readable before a station identity is available. */
html:not(.digi-signed-out) #view-radio #vfoPanel .vfoDmrStation .vfoDmrNumber {
  font-size: clamp(1.5rem, 8vw, 3.6rem) !important;
}
html:not(.digi-signed-out) #view-radio #vfoPanel .vfoDmrStation .vfoDmrLongCall {
  font-size: clamp(1.65rem, 7vw, 2.8rem) !important;
}
#view-radio #vfoPanel .vfoDmrStation .vfoDmrLocation { color: #b7d1e4; }
#view-radio #vfoPanel .vfoDmrStation .vfoDmrPath { color: #8ab9d0; font-variant-numeric: tabular-nums; }
#view-radio #talkingLast .vfoDmrHistory { line-height: 1.5; }
@media (max-width: 380px) {
  #view-keypad #nodeDtmfPanel { padding: 13px; }
  #view-keypad #keypad { gap: 7px; }
  #view-radio .personalDmrPanel #brandmeisterOpen { font-size: .84rem; padding-inline: 12px; }
}
