/* D-STAR v2 is fully scoped; no general Radio network rules are modified. */
#dhlDstarV2Open{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:64px;text-align:left;padding:11px 16px;background:linear-gradient(130deg,#203a56,#1c4f6c);color:#fff;border:1px solid #518cb0;border-radius:12px;cursor:pointer}
#dhlDstarV2Open[hidden]{display:none!important}
#dhlDstarV2Open:hover{filter:brightness(1.10)}
#dhlDstarV2Open .dhlDstarV2Glyph{font-size:24px;color:#a5e7ff}
#dhlDstarV2Open .dhlDstarV2Words{display:flex;flex-direction:column;gap:2px}
#dhlDstarV2Open strong{font-size:17px;line-height:1.2}
#dhlDstarV2Open small{font-size:11px;color:#cae7f7}
#dhlDstarV2Dialog{box-sizing:border-box;width:min(94vw,570px);max-height:min(90dvh,790px);overflow:auto;padding:0;color:#f1f8fd;background:#0d2437;border:1px solid #4c83a4;border-radius:14px;box-shadow:0 20px 70px #000b}
#dhlDstarV2Dialog::backdrop{background:rgba(0,8,15,.80)}
#dhlDstarV2Dialog .dhlDstarV2Header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid #355c75}
#dhlDstarV2Dialog .dhlDstarV2Header small{font-size:11px;letter-spacing:.06em;color:#8ac7e8}
#dhlDstarV2Dialog .dhlDstarV2Header h2{margin:5px 0 0;color:#fff;font-size:23px;line-height:1.2}
#dhlDstarV2Dialog button{min-height:42px;border:1px solid #5a99bb;background:#164766;color:#f5fbff;border-radius:8px;cursor:pointer;padding:9px 14px;box-sizing:border-box}
#dhlDstarV2Dialog button:disabled{cursor:not-allowed;opacity:.48}
#dhlDstarV2Dialog .dhlDstarV2Close{font-size:24px;width:44px;padding:0;flex-shrink:0}
#dhlDstarV2Dialog .dhlDstarV2Content{padding:18px 20px;display:flex;flex-direction:column;gap:12px}
#dhlDstarV2Dialog .dhlDstarV2Note,#dhlDstarV2Dialog .dhlDstarV2Tx{font-size:12px;line-height:1.5;color:#bdd4e5;margin:0}
#dhlDstarV2Dialog .dhlDstarV2Tx{border-top:1px solid #32546b;padding-top:11px}
#dhlDstarV2Dialog .dhlDstarV2Fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(110px,1fr);gap:12px}
#dhlDstarV2Dialog .dhlDstarV2Fields label,#dhlDstarV2Dialog .dhlDstarV2Volume{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
#dhlDstarV2Dialog input:not([type=range]),#dhlDstarV2Dialog select{min-width:0;width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #47708a;border-radius:8px;background:#0a1b2b;color:#fff;font:inherit}
#dhlDstarV2Dialog .dhlDstarV2Volume input{width:100%;accent-color:#4ed4ec}
#dhlDstarV2Dialog .dhlDstarV2Actions{display:flex;gap:9px;flex-wrap:wrap}
#dhlDstarV2Dialog .dhlDstarV2Primary{background:#147ea7;border-color:#5ac8ed;flex:1}
#dhlDstarV2Dialog .dhlDstarV2Actions button{flex:1 1 130px}
#dhlDstarV2Dialog h3{font-size:14px;margin:4px 0 0}
#dhlDstarV2Dialog .dhlDstarV2Favorites{display:flex;flex-wrap:wrap;gap:8px}
#dhlDstarV2Dialog .dhlDstarV2Favorites button{font-size:12px;min-height:36px}
#dhlDstarV2Dialog .dhlDstarV2Empty{font-size:12px;color:#a6c2d2}
#dhlDstarV2Dialog .dhlDstarV2Status{font-size:12px;line-height:1.5;padding:12px;border:1px solid #3b6c86;border-radius:8px;background:#143a52;overflow-wrap:anywhere;margin:0}
#vfoPanel #dhlDstarV2Vfo{border:1px solid #39718c;background:#0d2b41;color:#dceffa;padding:12px;border-radius:10px;display:flex;flex-direction:column;gap:5px;margin:8px 0;min-width:0}
#vfoPanel #dhlDstarV2Vfo[hidden]{display:none!important}
#vfoPanel #dhlDstarV2Vfo strong{font-size:24px;letter-spacing:.035em;line-height:1.2;color:#aee8ff}
#vfoPanel #dhlDstarV2Vfo span{font-size:14px;overflow-wrap:anywhere}
#vfoPanel #dhlDstarV2Vfo small{font-size:12px;color:#a7c6d8}
#vfoPanel #dhlDstarV2Vfo .dhlDstarV2Meter{height:7px;border-radius:6px;background:#193b52;overflow:hidden}
#vfoPanel #dhlDstarV2Vfo .dhlDstarV2Meter span{display:block;width:0;height:100%;background:#56cde6;transition:width .18s ease}
#vfoPanel #dhlDstarV2Vfo button{align-self:flex-start;padding:5px 12px;border:1px solid #568dac;border-radius:6px;background:#16455e;color:#e7faff;cursor:pointer;font-size:12px}
#vfoPanel.dhl-dstar-v2-vfo-idle #talkingCurrent,#vfoPanel.dhl-dstar-v2-vfo-idle #talkingStatus{display:none!important}
@media(max-width:480px){#dhlDstarV2Dialog .dhlDstarV2Header,#dhlDstarV2Dialog .dhlDstarV2Content{padding:13px}#dhlDstarV2Dialog .dhlDstarV2Fields{grid-template-columns:1fr}#vfoPanel #dhlDstarV2Vfo strong{font-size:20px}}

/* D-STAR v3: staged PTT UI, exclusive to the D-STAR popup. */
#dhlDstarV2Dialog .dhlDstarV3TxArea{border-top:1px solid #365b72;padding-top:12px;display:flex;flex-direction:column;gap:9px}
#dhlDstarV2Dialog .dhlDstarV3TxArea h3{margin:0;color:#c4e9fc}
#dhlDstarV2Dialog button.dhlDstarV3Ptt{font-weight:750;font-size:15px;background:linear-gradient(130deg,#185777,#12668b);min-height:53px;border:2px solid #478db4;touch-action:none;user-select:none}
#dhlDstarV2Dialog button.dhlDstarV3Ptt[aria-pressed=true]{background:#bc4026;color:#fff;border-color:#f39a75}
#dhlDstarV2Dialog .dhlDstarV3TxStatus{font-size:12px;color:#bad1e0;margin:0;line-height:1.5}
/* D-STAR v4: an isolated hold-to-talk control on the main radio display.
 * The existing shared/SIP radio PTT is deliberately unaffected. */
#vfoPanel #dhlDstarV2Vfo .dhlDstarV4PanelActions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:5px}
#vfoPanel #dhlDstarV2Vfo .dhlDstarV4PanelActions button{min-height:45px;font-weight:700;touch-action:none;user-select:none;max-width:100%;box-sizing:border-box}
#vfoPanel #dhlDstarV2Vfo .dhlDstarV4PanelActions button.dhlDstarV4PanelPtt{background:#155b7d;border:2px solid #45bde9;color:#fff;font-size:13px;padding:9px 15px;flex:1 1 180px}
#vfoPanel #dhlDstarV2Vfo .dhlDstarV4PanelActions button.dhlDstarV4PanelPtt[aria-pressed="true"]{background:#b33929;border-color:#ffa47e}
#vfoPanel #dhlDstarV2Vfo .dhlDstarV4PanelActions button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:480px){#vfoPanel #dhlDstarV2Vfo .dhlDstarV4PanelActions{width:100%}#vfoPanel #dhlDstarV2Vfo .dhlDstarV4PanelActions button{flex:1 1 100%}}
