.pilot-radio-page .radio-hero {
  height: clamp(140px, 16vh, 180px);
}

.pilot-radio-page .radio-hero img {
  object-position: center 50%;
  filter: saturate(1.2) contrast(1.1) brightness(.9);
}

.radio-summary-grid,
.pilot-radio-console {
  position: relative;
  z-index: 2;
}

.radio-summary-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr .92fr .92fr;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(1, 2, 3, .96);
}

.radio-status-card {
  border-left-color: rgba(79, 163, 255, .8);
}

.radio-status-card.is-open {
  border-color: rgba(91, 215, 101, .5);
  border-left-color: var(--green);
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 0 36px rgba(91, 215, 101, .12);
}

.radio-status-card.is-open strong,
.radio-status-card.is-open small {
  color: var(--green);
}

.pilot-radio-console {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, .9fr) 320px;
  gap: 10px;
  padding: 0 16px 16px;
}

.radio-command-panel,
.radio-feed-panel,
.radio-side-panel > section {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .13);
  border-left: 2px solid rgba(255, 43, 50, .68);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), transparent 34%),
    radial-gradient(circle at 0 0, rgba(255, 43, 50, .15), transparent 42%),
    rgba(4, 7, 9, .88);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 22px 70px rgba(0, 0, 0, .4);
  overflow: hidden;
}

.radio-command-panel > header,
.radio-feed-panel > header,
.radio-side-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background:
    linear-gradient(90deg, rgba(255, 43, 50, .42), rgba(255, 43, 50, .08) 42%, transparent),
    rgba(255, 255, 255, .02);
}

.radio-command-panel h1,
.radio-feed-panel h2,
.radio-side-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.radio-command-panel header span,
.radio-feed-panel header span,
.radio-side-panel header span {
  color: rgba(221, 226, 232, .72);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.radio-tx-visual {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 10px 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .06), transparent 42%),
    radial-gradient(circle at 22% 42%, rgba(79, 163, 255, .16), transparent 44%),
    rgba(0, 0, 0, .38);
}

.tx-rings {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .94) 0 9px, transparent 10px),
    repeating-radial-gradient(circle, transparent 0 19px, rgba(79, 163, 255, .32) 20px 22px, transparent 23px 34px),
    radial-gradient(circle, rgba(79, 163, 255, .12), transparent 68%);
  box-shadow: inset 0 0 42px rgba(79, 163, 255, .12);
}

.tx-rings::before {
  content: "";
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 24px rgba(79, 163, 255, .75);
}

.tx-rings i {
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(79, 163, 255, .35);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: radio-sweep 2.2s linear infinite;
}

.tx-rings i:nth-child(2) {
  inset: 28%;
  animation-duration: 1.7s;
}

.tx-rings i:nth-child(3) {
  inset: 8%;
  animation-duration: 3.1s;
}

.radio-tx-visual small,
.radio-compose-box span,
.radio-metrics-row span,
.radio-link-card span,
.radio-link-card b {
  display: block;
  color: rgba(221, 226, 232, .68);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.radio-tx-visual strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: clamp(26px, 3vw, 46px);
  line-height: .9;
  text-transform: uppercase;
}

#txPill {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(0, 0, 0, .42);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.radio-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 20px 12px;
}

.radio-metrics-row div {
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(0, 0, 0, .3);
}

.radio-metrics-row strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.radio-compose-box {
  display: block;
  margin: 0 20px;
}

.radio-compose-box textarea {
  width: 100%;
  min-height: 72px;
  margin-top: 8px;
  padding: 16px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  outline: none;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 48px),
    rgba(0, 0, 0, .42);
  font: inherit;
}

.radio-compose-box textarea:disabled {
  color: rgba(255, 255, 255, .42);
  cursor: not-allowed;
}

.radio-actions {
  display: grid;
  grid-template-columns: 170px 220px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 20px 12px;
}

.radio-request-button,
.radio-send-button {
  min-height: 42px;
  border: 1px solid rgba(255, 43, 50, .65);
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 43, 50, .34), rgba(95, 8, 10, .78));
  box-shadow: 0 0 26px rgba(255, 43, 50, .18);
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.radio-request-button {
  border-color: rgba(214, 169, 58, .72);
  background: linear-gradient(180deg, rgba(214, 169, 58, .34), rgba(87, 58, 10, .78));
  box-shadow: 0 0 22px rgba(214, 169, 58, .14);
}

.radio-request-button:hover {
  border-color: rgba(255, 211, 105, .86);
  box-shadow: 0 0 26px rgba(214, 169, 58, .22);
}

.radio-request-button:disabled,
.radio-send-button:disabled {
  border-color: rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .045);
  box-shadow: none;
  cursor: not-allowed;
}

.radio-actions span {
  color: rgba(221, 226, 232, .72);
  font-size: 12px;
  font-weight: 850;
}

.pilot-radio-feed {
  display: grid;
  align-content: start;
  gap: 9px;
  height: 100%;
  min-height: 436px;
  max-height: 540px;
  padding: 14px;
  overflow-y: auto;
}

.pilot-radio-feed::-webkit-scrollbar {
  width: 7px;
}

.pilot-radio-feed::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 43, 50, .42);
}

.radio-line {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 3px solid var(--blue);
  border-radius: 7px;
  background: rgba(0, 0, 0, .34);
}

.radio-line.is-out {
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(91, 215, 101, .13), rgba(0, 0, 0, .32));
}

.radio-line.is-voice {
  border-left-color: rgba(91, 215, 101, .82);
  background:
    linear-gradient(90deg, rgba(91, 215, 101, .12), rgba(0, 0, 0, .32));
}

.radio-line small {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(221, 226, 232, .62);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.radio-line strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.pilot-voice-playback {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(91, 215, 101, .28);
  border-radius: 7px;
  background: rgba(3, 9, 10, .58);
}

.pilot-voice-playback button {
  height: 26px;
  border: 1px solid rgba(91, 215, 101, .55);
  border-radius: 5px;
  background: rgba(91, 215, 101, .12);
  color: #8dff95;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.pilot-voice-progress {
  position: relative;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.pilot-voice-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5bd765, #d6a93a);
  transition: width .12s linear;
}

.pilot-voice-playback b {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.pilot-voice-playback audio {
  display: none;
}

.radio-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, .13);
  border-radius: 7px;
  color: rgba(221, 226, 232, .64);
  background: rgba(0, 0, 0, .25);
  font-size: 13px;
}

.radio-side-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.radio-permission-card {
  min-height: 252px;
  padding-bottom: 18px;
}

.permission-led {
  width: 88px;
  aspect-ratio: 1;
  margin: 22px auto 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(214, 169, 58, .92) 0 24%, rgba(214, 169, 58, .32) 25% 48%, transparent 49%),
    rgba(0, 0, 0, .38);
  box-shadow: inset 0 0 26px rgba(214, 169, 58, .16), 0 0 30px rgba(214, 169, 58, .12);
}

.radio-permission-card strong,
.radio-permission-card small {
  display: block;
  padding: 0 18px;
  text-align: center;
}

.radio-permission-card strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.18;
  text-transform: uppercase;
}

.radio-permission-card small {
  margin-top: 8px;
  color: rgba(221, 226, 232, .62);
  font-size: 12px;
  font-weight: 850;
}

.radio-quick-card {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
}

.radio-voice-card {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  overflow: visible !important;
  border-left-color: rgba(61, 168, 255, .72) !important;
  background:
    radial-gradient(circle at 0 0, rgba(61, 168, 255, .16), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, .055), transparent 34%),
    rgba(4, 7, 9, .88) !important;
}

.radio-voice-card header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.voice-device-menu {
  position: relative;
}

.voice-device-menu summary {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background: rgba(0, 0, 0, .35);
  color: rgba(255, 255, 255, .86);
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.voice-device-menu summary::-webkit-details-marker {
  display: none;
}

.voice-device-menu[open] summary,
.voice-device-menu summary:hover {
  border-color: rgba(61, 168, 255, .55);
  color: #72bdff;
}

.voice-device-popover {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 30;
  width: min(280px, 78vw);
  padding: 10px;
  border: 1px solid rgba(61, 168, 255, .3);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(61, 168, 255, .14), transparent 44%),
    rgba(4, 7, 10, .98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}

.voice-device-field {
  display: grid;
  gap: 6px;
  margin-bottom: 9px;
}

.voice-device-field:last-child {
  margin-bottom: 0;
}

.voice-device-field span {
  display: block;
  color: rgba(221, 226, 232, .68);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.voice-device-field select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 6px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(61, 168, 255, .1), transparent),
    rgba(0, 0, 0, .38);
}

.voice-pilot-actions {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 8px;
  padding: 0 14px;
}

.voice-pilot-actions button {
  min-height: 40px;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

#pilotVoiceRequestButton {
  border: 1px solid rgba(91, 215, 101, .58);
  background:
    linear-gradient(180deg, rgba(91, 215, 101, .3), rgba(8, 76, 25, .78)),
    rgba(0, 0, 0, .35);
  box-shadow: 0 0 24px rgba(91, 215, 101, .12);
}

#pilotVoiceHangupButton {
  border: 1px solid rgba(255, 43, 50, .42);
  color: #ff9b9f;
  background:
    linear-gradient(180deg, rgba(255, 43, 50, .2), rgba(74, 0, 6, .64)),
    rgba(0, 0, 0, .34);
}

#pilotVoiceRequestButton:hover {
  border-color: rgba(91, 215, 101, .86);
  box-shadow: 0 0 28px rgba(91, 215, 101, .2);
}

#pilotVoiceRequestButton:disabled {
  border-color: rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .045);
  box-shadow: none;
  cursor: not-allowed;
}

.voice-meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 16px;
}

.voice-meter span,
.voice-meter strong {
  color: rgba(221, 226, 232, .68);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.voice-meter i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.voice-meter b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  transition: width .08s linear;
}

#pilotVoiceTarget,
#pilotVoiceNotice {
  display: block;
  padding: 0 16px;
}

#pilotVoiceTarget {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

#pilotVoiceNotice {
  color: rgba(221, 226, 232, .68);
  font-size: 12px;
  font-weight: 850;
}

body.is-voice-tx .radio-voice-card {
  border-color: rgba(91, 215, 101, .5);
  border-left-color: var(--green) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 0 36px rgba(91, 215, 101, .14);
}

body.is-voice-tx #pilotVoiceState {
  color: var(--green);
}

.radio-quick-card button {
  min-height: 44px;
  margin: 0 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  color: #fff;
  background: rgba(0, 0, 0, .32);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.radio-quick-card button:hover {
  border-color: rgba(255, 43, 50, .56);
}

.radio-link-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.radio-link-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(0, 0, 0, .28);
}

.radio-link-card strong {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

body.is-radio-tx .tx-rings {
  background:
    radial-gradient(circle, rgba(255, 255, 255, .94) 0 9px, transparent 10px),
    repeating-radial-gradient(circle, transparent 0 19px, rgba(91, 215, 101, .38) 20px 22px, transparent 23px 34px),
    radial-gradient(circle, rgba(91, 215, 101, .16), transparent 68%);
}

body.is-radio-tx .tx-rings::before {
  background: var(--green);
  box-shadow: 0 0 26px rgba(91, 215, 101, .82);
}

body.is-radio-tx .tx-rings i {
  border-top-color: rgba(91, 215, 101, .5);
  border-right-color: rgba(91, 215, 101, .5);
}

body.is-radio-tx #txPill {
  color: var(--green);
  border-color: rgba(91, 215, 101, .32);
  box-shadow: 0 0 24px rgba(91, 215, 101, .12);
}

body.is-radio-tx .permission-led {
  background:
    radial-gradient(circle, rgba(91, 215, 101, .95) 0 24%, rgba(91, 215, 101, .32) 25% 48%, transparent 49%),
    rgba(0, 0, 0, .38);
  box-shadow: inset 0 0 26px rgba(91, 215, 101, .18), 0 0 34px rgba(91, 215, 101, .18);
  animation: tx-pulse 1.2s ease-in-out infinite;
}

@keyframes radio-sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tx-pulse {
  50% {
    transform: scale(1.06);
    filter: brightness(1.2);
  }
}

/* Radio room pass */
.pilot-radio-page {
  --radio-blue: #4fa3ff;
  --radio-cyan: #4ee7ff;
  --radio-green: #5bd765;
  --radio-red: #ff2b32;
  --radio-gold: #d6a93a;
}

.pilot-radio-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 13% 46%, rgba(79, 163, 255, .16), transparent 25%),
    radial-gradient(circle at 77% 34%, rgba(91, 215, 101, .08), transparent 24%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(79, 163, 255, .035) 47px 48px),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(255, 255, 255, .025) 59px 60px);
  opacity: .72;
}

.pilot-radio-page .radio-summary-grid {
  padding: 10px 16px;
  gap: 10px;
}

.pilot-radio-page .radio-summary-grid .summary-card {
  min-height: 78px;
  padding: 16px 22px;
}

.pilot-radio-console.radio-room-console {
  grid-template-columns: minmax(0, 1.58fr) minmax(340px, .62fr);
  align-items: start;
  gap: 12px;
  padding-top: 10px;
}

.radio-written-zone,
.radio-room-console .radio-vocal-zone {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.radio-written-zone {
  grid-template-columns: minmax(360px, .92fr) minmax(380px, 1.08fr);
  align-items: stretch;
}

.radio-zone-label {
  grid-column: 1 / -1;
  position: relative;
  min-height: 58px;
  padding: 12px 16px 12px 54px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-left: 3px solid rgba(79, 163, 255, .82);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(79, 163, 255, .18), transparent 46%),
    rgba(3, 6, 9, .78);
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 18px 50px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.radio-zone-label::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--radio-blue);
  transform: translateY(-50%);
  box-shadow:
    0 0 0 7px rgba(79, 163, 255, .09),
    0 0 28px rgba(79, 163, 255, .28);
}

.radio-zone-label::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 17px;
  width: 210px;
  height: 22px;
  background:
    linear-gradient(90deg, transparent, rgba(79, 163, 255, .36), transparent),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(79, 163, 255, .55) 11px 13px, transparent 14px 22px);
  opacity: .38;
}

.radio-zone-label span {
  display: block;
  color: rgba(221, 226, 232, .62);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.radio-zone-label strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(17px, 1.45vw, 26px);
  line-height: 1;
  text-transform: uppercase;
}

.radio-zone-label-voice {
  border-left-color: rgba(91, 215, 101, .86);
  background:
    linear-gradient(90deg, rgba(91, 215, 101, .16), transparent 48%),
    rgba(3, 8, 8, .78);
}

.radio-zone-label-voice::before {
  color: var(--radio-green);
  box-shadow:
    0 0 0 7px rgba(91, 215, 101, .08),
    0 0 28px rgba(91, 215, 101, .25);
}

.radio-zone-label-voice::after {
  background:
    linear-gradient(90deg, transparent, rgba(91, 215, 101, .34), transparent),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(91, 215, 101, .52) 10px 13px, transparent 14px 22px);
}

.radio-command-panel.radio-text-panel,
.radio-written-history {
  min-height: 428px;
}

.radio-command-panel.radio-text-panel {
  border-left-color: rgba(79, 163, 255, .82);
  background:
    radial-gradient(circle at 9% 22%, rgba(79, 163, 255, .2), transparent 31%),
    linear-gradient(135deg, rgba(255, 255, 255, .055), transparent 34%),
    rgba(4, 7, 9, .9);
}

.radio-command-panel.radio-text-panel > header,
.radio-written-history > header {
  background:
    linear-gradient(90deg, rgba(79, 163, 255, .26), rgba(255, 43, 50, .12) 48%, transparent),
    rgba(255, 255, 255, .025);
}

.radio-text-panel .radio-tx-visual {
  position: relative;
  min-height: 150px;
  margin: 14px 18px;
  overflow: hidden;
  border-color: rgba(79, 163, 255, .22);
  background:
    radial-gradient(circle at 11% 46%, rgba(79, 163, 255, .22), transparent 42%),
    linear-gradient(90deg, rgba(79, 163, 255, .08), transparent 44%),
    rgba(0, 0, 0, .46);
}

.radio-text-panel .radio-tx-visual::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(360px, 44%);
  height: 48px;
  background:
    linear-gradient(90deg, transparent, rgba(79, 163, 255, .28), transparent),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(79, 163, 255, .52) 12px 15px, transparent 16px 24px);
  opacity: .4;
  clip-path: polygon(0 48%, 6% 38%, 12% 62%, 18% 18%, 25% 76%, 31% 45%, 38% 56%, 44% 22%, 51% 80%, 58% 40%, 64% 57%, 70% 27%, 77% 68%, 83% 48%, 91% 58%, 100% 46%, 100% 100%, 0 100%);
}

.radio-text-panel .tx-rings {
  width: 104px;
  max-width: 104px;
  justify-self: center;
}

.radio-text-panel .radio-compose-box textarea {
  min-height: 112px;
  border-color: rgba(79, 163, 255, .2);
  background:
    linear-gradient(90deg, rgba(79, 163, 255, .055), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .024) 0 1px, transparent 1px 48px),
    rgba(0, 0, 0, .46);
}

.radio-written-history .pilot-radio-feed {
  min-height: 368px;
  max-height: 560px;
}

.radio-written-history .radio-line {
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(79, 163, 255, .08), transparent 52%),
    rgba(0, 0, 0, .42);
}

.radio-room-console .radio-vocal-zone {
  align-content: start;
  grid-template-columns: 1fr;
}

.radio-room-console .radio-vocal-zone .radio-permission-card {
  min-height: 218px;
  border-left-color: rgba(214, 169, 58, .76);
}

.radio-room-console .radio-vocal-zone .permission-led {
  width: 72px;
  margin: 16px auto 12px;
}

.radio-room-console .radio-vocal-zone .radio-voice-card {
  position: relative;
  border-left-width: 3px !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .08),
    0 0 34px rgba(79, 163, 255, .12),
    0 22px 70px rgba(0, 0, 0, .38);
}

.radio-room-console .radio-vocal-zone .radio-voice-card::before {
  content: "";
  position: absolute;
  inset: 48px 0 auto;
  height: 82px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, rgba(79, 163, 255, .22), transparent 58%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 18px, rgba(79, 163, 255, .18) 19px 20px, transparent 21px 34px);
  opacity: .28;
}

.radio-room-console .voice-pilot-actions {
  grid-template-columns: 1fr 1fr;
  padding-top: 6px;
}

.radio-room-console .voice-meter {
  margin: 0 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.radio-room-console #pilotVoiceTarget {
  margin-top: 4px;
  color: #fff;
}

.radio-room-console #pilotVoiceNotice {
  min-height: 34px;
  line-height: 1.25;
}

.radio-room-console .radio-quick-card {
  border-left-color: rgba(255, 43, 50, .62);
}

.radio-room-console .radio-quick-card button {
  min-height: 38px;
  text-align: left;
  padding: 0 13px;
}

.radio-room-console .radio-link-card {
  border-left-color: rgba(91, 215, 101, .52);
}

.radio-ptt-card {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-left-color: rgba(79, 163, 255, .76) !important;
  background:
    radial-gradient(circle at 14% 16%, rgba(79, 163, 255, .17), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .055), transparent 34%),
    rgba(4, 7, 9, .9) !important;
}

.radio-ptt-card.is-live {
  border-color: rgba(91, 215, 101, .48);
  border-left-color: var(--radio-green) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .1),
    0 0 34px rgba(91, 215, 101, .16),
    0 22px 70px rgba(0, 0, 0, .38);
}

.radio-ptt-card.is-capturing {
  border-color: rgba(214, 169, 58, .54);
  border-left-color: var(--radio-gold) !important;
  animation: ptt-capture-pulse 1s ease-in-out infinite;
}

.ptt-readout {
  margin: 0 14px;
  padding: 14px;
  border: 1px solid rgba(79, 163, 255, .2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(79, 163, 255, .1), transparent 54%),
    rgba(0, 0, 0, .36);
}

.ptt-readout span,
.ptt-readout small,
.ptt-mode span,
#pttDeviceStatus {
  display: block;
  color: rgba(221, 226, 232, .66);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.ptt-readout strong {
  display: block;
  margin: 7px 0 5px;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}

.radio-ptt-card.is-live .ptt-readout strong {
  color: var(--radio-green);
}

.ptt-actions {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 8px;
  padding: 0 14px;
}

.ptt-actions button {
  min-height: 38px;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

#pttBindButton {
  border: 1px solid rgba(79, 163, 255, .58);
  background:
    linear-gradient(180deg, rgba(79, 163, 255, .26), rgba(10, 40, 76, .78)),
    rgba(0, 0, 0, .34);
}

#pttClearButton {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .34);
  color: rgba(255, 255, 255, .78);
}

#pttBindButton:hover {
  border-color: rgba(79, 163, 255, .85);
  box-shadow: 0 0 24px rgba(79, 163, 255, .18);
}

.ptt-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.ptt-mode {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.ptt-mode select {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(79, 163, 255, .1), transparent),
    rgba(0, 0, 0, .42);
  font-weight: 900;
  text-transform: uppercase;
}

#pttDeviceStatus {
  padding: 0 14px;
  color: rgba(79, 163, 255, .76);
}

.radio-phone-card {
  display: grid;
  gap: 12px;
}

.radio-phone-layout {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px 14px;
}

.radio-phone-layout canvas {
  width: 116px;
  height: 116px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 0 24px rgba(54, 244, 91, .15);
}

.radio-phone-layout label,
.radio-phone-layout small {
  display: block;
  color: var(--radio-muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.radio-phone-layout input {
  width: 100%;
  min-height: 38px;
  margin: 6px 0 8px;
  padding: 0 10px;
  border: 1px solid rgba(79, 163, 255, .28);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(79, 163, 255, .1), transparent),
    rgba(0, 0, 0, .42);
  color: #fff;
  font: 11px Consolas, Monaco, monospace;
}

.phone-radio-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.phone-radio-actions button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: rgba(0, 0, 0, .34);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.phone-radio-actions button:first-child {
  border-color: rgba(54, 244, 91, .5);
  color: var(--radio-green);
}

.phone-radio-actions button:last-child {
  border-color: rgba(79, 163, 255, .5);
  color: #6ebdff;
}

html:has(.pilot-phone-radio-page),
html:has(.pilot-phone-radio-page) body {
  min-height: 100%;
  margin: 0;
  background: #030507;
}

.pilot-phone-radio-page {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 70% -10%, rgba(255, 43, 50, .22), transparent 35%),
    radial-gradient(circle at 20% 20%, rgba(54, 244, 91, .12), transparent 32%),
    linear-gradient(180deg, #07090d 0%, #020304 78%, #000 100%);
}

.phone-radio-shell {
  position: relative;
  min-height: 100dvh;
  padding: 14px;
  overflow: hidden;
}

.phone-radio-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 43, 50, .1) 47%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 42px);
  opacity: .42;
}

.phone-radio-top,
.phone-radio-status article,
.phone-radio-standby,
.phone-radio-feed,
.phone-radio-alert-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), transparent 34%),
    radial-gradient(circle at 0 0, rgba(255, 43, 50, .14), transparent 44%),
    rgba(6, 10, 13, .86);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .08),
    0 18px 50px rgba(0, 0, 0, .38);
  backdrop-filter: blur(16px);
}

.phone-radio-top {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.phone-radio-top span,
.phone-radio-status span,
.phone-radio-standby span,
.phone-radio-alert-card span {
  color: var(--radio-muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.phone-radio-top i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #757b84;
}

.phone-radio-top i.is-ok {
  background: var(--radio-green);
  box-shadow: 0 0 14px rgba(54, 244, 91, .78);
}

.phone-radio-top strong {
  font-size: 30px;
  font-style: italic;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.phone-radio-top small {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.phone-radio-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.phone-radio-status article {
  min-height: 118px;
  padding: 14px;
}

.phone-radio-status strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  text-transform: uppercase;
}

.phone-radio-status small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  line-height: 1.25;
}

.phone-radio-status article.is-open {
  border-color: rgba(54, 244, 91, .55);
  background:
    linear-gradient(145deg, rgba(54, 244, 91, .16), transparent 44%),
    rgba(4, 16, 8, .88);
}

.phone-radio-status article.is-open strong {
  color: var(--radio-green);
}

.phone-radio-standby {
  margin-top: 10px;
  min-height: 260px;
  padding: 22px 18px;
  display: grid;
  align-content: center;
  overflow: hidden;
}

.phone-radio-standby::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 8px;
  border: 1px solid rgba(54, 244, 91, .16);
  background:
    radial-gradient(circle at 50% 45%, rgba(54, 244, 91, .16), transparent 36%),
    repeating-radial-gradient(circle at 50% 50%, rgba(54, 244, 91, .12) 0 2px, transparent 2px 16px);
  opacity: .52;
}

.phone-radio-standby h1,
.phone-radio-standby p,
.phone-radio-standby span {
  position: relative;
  z-index: 1;
}

.phone-radio-standby h1 {
  margin: 10px 0;
  color: var(--radio-green);
  font-size: 38px;
  font-style: italic;
  font-weight: 950;
  line-height: .95;
  text-transform: uppercase;
}

.phone-radio-standby p {
  max-width: 28ch;
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 15px;
  line-height: 1.35;
}

.phone-radio-feed {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding: 10px;
}

.phone-radio-feed p {
  margin: 0;
  padding: 16px 10px;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.phone-radio-line {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 3px solid rgba(255, 43, 50, .76);
  border-radius: 7px;
  background: rgba(0, 0, 0, .24);
}

.phone-radio-line small {
  color: var(--radio-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-radio-line strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.22;
}

.phone-radio-alert[hidden] {
  display: none;
}

.phone-radio-alert {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 43, 50, .22), transparent 44%),
    rgba(0, 0, 0, .68);
  backdrop-filter: blur(12px);
}

.phone-radio-alert-card {
  width: min(100%, 440px);
  min-height: 320px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px 24px;
  border-color: rgba(255, 43, 50, .58);
  background:
    linear-gradient(145deg, rgba(255, 43, 50, .32), transparent 44%),
    rgba(11, 6, 8, .96);
  animation: phone-radio-alert-in .24s ease-out;
}

.phone-radio-alert-card.is-tx {
  border-color: rgba(54, 244, 91, .7);
  background:
    linear-gradient(145deg, rgba(54, 244, 91, .28), transparent 44%),
    rgba(5, 13, 8, .96);
}

.phone-radio-alert-card h2 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-style: italic;
  font-weight: 950;
  line-height: .98;
  text-transform: uppercase;
}

.phone-radio-alert-card p {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
}

.phone-radio-alert-card small {
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes phone-radio-alert-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ptt-capture-pulse {
  50% {
    filter: brightness(1.18);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, .1),
      0 0 30px rgba(214, 169, 58, .18);
  }
}

@media (max-width: 1500px) {
  .radio-written-zone {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .pilot-radio-console.radio-room-console {
    grid-template-columns: 1fr;
  }

  .radio-room-console .radio-vocal-zone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radio-room-console .radio-vocal-zone .radio-zone-label,
  .radio-room-console .radio-vocal-zone .radio-link-card,
  .radio-room-console .radio-vocal-zone .radio-phone-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .radio-room-console .radio-vocal-zone,
  .radio-written-zone {
    grid-template-columns: 1fr;
  }

  .radio-zone-label {
    padding-left: 44px;
  }

  .radio-zone-label::after {
    display: none;
  }
}

@media (max-width: 1320px) {
  .radio-summary-grid,
  .pilot-radio-console {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radio-side-panel {
    grid-column: span 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .radio-summary-grid,
  .pilot-radio-console,
  .radio-side-panel {
    grid-template-columns: 1fr;
  }

  .radio-side-panel {
    grid-column: auto;
  }

  .radio-tx-visual,
  .radio-actions,
  .radio-metrics-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  .pilot-radio-console.radio-room-console {
    grid-template-columns: minmax(0, 1.58fr) minmax(340px, .62fr);
  }

  .radio-room-console .radio-vocal-zone {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .pilot-radio-console.radio-room-console {
    grid-template-columns: 1fr;
  }

  .radio-room-console .radio-vocal-zone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radio-room-console .radio-vocal-zone .radio-zone-label,
  .radio-room-console .radio-vocal-zone .radio-link-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .pilot-radio-console.radio-room-console,
  .radio-room-console .radio-vocal-zone,
  .radio-written-zone,
  .ptt-actions,
  .ptt-mode,
  .radio-phone-layout,
  .phone-radio-status,
  .phone-radio-actions {
    grid-template-columns: 1fr;
  }

  .radio-phone-layout canvas {
    width: min(180px, 100%);
    height: auto;
    justify-self: center;
  }

  .phone-radio-top strong {
    font-size: 25px;
  }

  .phone-radio-standby h1 {
    font-size: 32px;
  }
}
