#pttBindingControls,
#pttControls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  justify-content: center;
  padding: 8px 4px;
}

#fullscreenPttBtn[hidden],
#pttFullscreenOverlay[hidden] {
  display: none !important;
}

#pttBindingControls small {
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}

.ptt-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ptt-background-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  width: auto;
  max-width: 100%;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.8125rem;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
}

.ptt-background-toggle input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  margin: 0.125rem 0 0;
  padding: 0;
  border: 1px solid #475569;
  border-radius: 0.25rem;
  background: rgb(2 6 23 / 0.8);
  accent-color: #10b981;
  cursor: pointer;
  flex-shrink: 0;
}

.ptt-background-toggle input[type='checkbox']:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}

.ptt-background-toggle > span {
  min-width: 0;
}

#pttBindingControls,
#pttControls {
  min-width: 0;
}

#pttControls > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.625rem;
  width: 100%;
  max-width: 100%;
}

#pttControls #pushToTalkBtn,
#pttControls #fullscreenPttBtn {
  width: 100%;
  min-width: 0;
}

.pttButton {
  min-width: 190px;
  font-weight: 700;
  letter-spacing: 0.02em;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  border: 1px solid rgb(16 185 129 / 0.45);
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  color: #020617;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08) inset, 0 4px 14px rgb(0 0 0 / 0.25);
}

.pttButton:hover {
  background: linear-gradient(180deg, #6ee7b7 0%, #34d399 100%);
}

.pttButton.active {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  border-color: #22c55e;
  color: #052e16;
  box-shadow: 0 0 0 1px rgb(74 222 128 / 0.35), 0 0 18px rgb(74 222 128 / 0.35);
}

#fullscreenPttBtn {
  background: rgb(15 23 42 / 0.8);
  border: 1px solid #475569;
  color: #e2e8f0;
}

#fullscreenPttBtn:hover {
  background: rgb(30 41 59 / 0.9);
  border-color: rgb(16 185 129 / 0.45);
  color: #6ee7b7;
}

#pttFullscreenOverlay {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.14), rgba(2, 6, 23, 0.96));
  z-index: 1000;
}

#pttFullscreenOverlay.visible {
  display: flex;
}

#pushToTalkFullscreenBtn {
  width: min(82vw, 540px);
  height: min(58vh, 540px);
  border-radius: 1.5rem;
  font-size: clamp(24px, 5vw, 42px);
}

#exitFullscreenPttBtn {
  background: rgb(30 41 59 / 0.9);
  border: 1px solid #475569;
  color: #e2e8f0;
}

#exitFullscreenPttBtn:hover {
  background: rgb(51 65 85 / 0.95);
  color: #f8fafc;
}

body.fullscreen-ptt-active {
  overflow: hidden;
}
