.opsRadioCardShell {
  margin: 0;
}

.ops-radio-card {
  background: rgba(10, 18, 32, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.ops-radio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ops-radio-head h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.15;
}

.ops-radio-head p {
  margin: 3px 0 0;
  opacity: 0.72;
  font-size: 0.92rem;
}

.ops-radio-head .ops-radio-disclaimer {
  opacity: 0.9;
  font-size: 0.78rem;
  color: #ffd37a;
}

.ops-radio-live {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.ops-radio-live[data-state="ok"] {
  background: rgba(43, 190, 111, 0.22);
}

.ops-radio-live[data-state="tx"] {
  background: rgba(255, 70, 70, 0.32);
  animation: opsRadioPulse 1s infinite;
}

.ops-radio-live[data-state="rx"],
.ops-radio-live[data-state="connecting"] {
  background: rgba(255, 183, 64, 0.26);
}

.ops-radio-live[data-state="error"] {
  background: rgba(255, 70, 70, 0.24);
}

.ops-radio-panel {
  display: grid;
  gap: 10px;
}

.ops-radio-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.ops-radio-row label {
  display: grid;
  gap: 5px;
  font-weight: 800;
  font-size: 0.88rem;
}

.ops-radio-row select {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.95rem;
  outline: none;
}

.ops-radio-connect {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  min-width: 150px;
}

.ops-radio-tx {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 11px;
  min-height: 40px;
}

.ops-radio-tx span {
  display: block;
  opacity: 0.68;
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.ops-radio-tx strong {
  font-size: 1rem;
}

.ops-radio-ptt {
  width: 100%;
  min-height: 78px;
  border: 0;
  border-radius: 18px;
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.8rem);
  font-weight: 950;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(180deg, #2f6fed, #1747a8);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.25), 0 12px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.ops-radio-ptt:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ops-radio-ptt.is-transmitting {
  transform: translateY(2px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 8px 18px rgba(0, 0, 0, 0.2);
  animation: opsRadioPulse 0.7s infinite;
}

.ops-radio-users {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 11px;
}

.ops-radio-users h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.ops-radio-users ul {
  margin: 0;
  padding-left: 18px;
}

.ops-radio-users li {
  margin: 2px 0;
  font-size: 0.92rem;
}

.ops-radio-role {
  opacity: 0.62;
  font-size: 0.84em;
}

@keyframes opsRadioPulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.22); }
  100% { filter: brightness(1); }
}

@media (max-width: 760px) {
  .ops-radio-row {
    grid-template-columns: 1fr;
  }

  .ops-radio-connect {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .ops-radio-card {
    padding: 12px;
    border-radius: 14px;
  }

  .ops-radio-head {
    align-items: flex-start;
  }

  .ops-radio-head h2 {
    font-size: 1.12rem;
  }

  .ops-radio-head p {
    font-size: 0.85rem;
  }

  .ops-radio-live {
    width: max-content;
  }

  .ops-radio-ptt {
    min-height: 86px;
    border-radius: 16px;
    font-size: 1.35rem;
  }
}

/* FireWatch Talk v0.7 - vlastní místnosti */
.ops-radio-version {
  opacity: 0.55;
  font-size: 0.72em;
  font-weight: 800;
}

.ops-radio-create {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 9px 11px;
}

.ops-radio-create summary {
  cursor: pointer;
  font-weight: 900;
  user-select: none;
}

.ops-radio-create-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.ops-radio-create-grid label {
  display: grid;
  gap: 5px;
  font-weight: 800;
  font-size: 0.86rem;
}

.ops-radio-create-grid label span {
  opacity: 0.62;
  font-weight: 700;
}

.ops-radio-create-grid input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.95rem;
  outline: none;
}

.ops-radio-create-grid button,
.ops-radio-danger {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.ops-radio-hint {
  margin: 8px 0 0;
  opacity: 0.7;
  font-size: 0.8rem;
}

.ops-radio-users-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ops-radio-danger {
  background: rgba(255, 80, 80, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 120, 120, 0.28);
  padding: 6px 9px;
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .ops-radio-create-grid {
    grid-template-columns: 1fr;
  }
}

/* FireWatch Talk v0.8 - poslední hlasová zpráva od každého uživatele */
.ops-radio-history {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 11px;
}

.ops-radio-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ops-radio-history-head h3 {
  margin: 0;
  font-size: 1rem;
}

.ops-radio-history-head span {
  opacity: 0.65;
  font-size: 0.78rem;
  text-align: right;
}

.ops-radio-history ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ops-radio-history li:not(.ops-radio-history-item) {
  opacity: 0.72;
  font-size: 0.9rem;
}

.ops-radio-history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 7px 8px;
}

.ops-radio-history-item strong {
  display: block;
  font-size: 0.94rem;
}

.ops-radio-history-item span {
  display: block;
  opacity: 0.68;
  font-size: 0.78rem;
  margin-top: 1px;
}

.ops-radio-history-item button {
  border: 0;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 520px) {
  .ops-radio-history-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .ops-radio-history-head span {
    text-align: left;
  }

  .ops-radio-history-item {
    grid-template-columns: 1fr;
  }

  .ops-radio-history-item button {
    width: 100%;
  }
}


/* FireWatch Talk v0.9 */
.ops-radio-row-main {
  grid-template-columns: minmax(170px, 1.4fr) auto minmax(140px, 1fr) auto;
}

.ops-radio-version {
  font-size: 0.72rem;
  opacity: 0.75;
}

.ops-radio-icon-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.15rem;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.ops-radio-icon-btn.is-active {
  background: rgba(255, 211, 122, 0.22);
}

.ops-radio-presence {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin: 10px 0;
}

.ops-radio-presence label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.ops-radio-presence select {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
}

.ops-radio-dnd {
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.ops-radio-dnd.is-active {
  background: rgba(255, 70, 70, 0.28);
}

.ops-radio-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 12px;
}

.ops-radio-quick button {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.ops-radio-user-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ops-radio-user-item:last-child {
  border-bottom: 0;
}

.ops-radio-user-item strong {
  display: block;
}

.ops-radio-user-item strong span {
  opacity: 0.7;
  font-size: 0.78rem;
  font-weight: 700;
}

.ops-radio-user-item small {
  display: block;
  opacity: 0.82;
  margin-top: 2px;
  line-height: 1.35;
}

.ops-radio-user-item.is-speaking {
  color: #fff1a8;
}

.ops-radio-user-item.is-dnd {
  opacity: 0.82;
}

.ops-radio-admin-user {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ops-radio-admin-user button,
.ops-radio-admin-actions button {
  border: 0;
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.ops-radio-chat,
.ops-radio-admin {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 11px;
  margin-top: 10px;
}

.ops-radio-chat-head,
.ops-radio-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-radio-chat-head h3 {
  margin: 0;
}

.ops-radio-chat-head span {
  opacity: 0.7;
  font-size: 0.78rem;
}

.ops-radio-chat ul {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  max-height: 180px;
  overflow: auto;
}

.ops-radio-chat-item {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ops-radio-chat-item:last-child {
  border-bottom: 0;
}

.ops-radio-chat-item div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ops-radio-chat-item span {
  opacity: 0.65;
  font-size: 0.78rem;
  white-space: nowrap;
}

.ops-radio-chat-item p {
  margin: 3px 0 0;
  line-height: 1.35;
}

.ops-radio-chat-item.is-reaction p {
  font-weight: 900;
}

.ops-radio-chat-item.is-system {
  opacity: 0.78;
  font-style: italic;
}

.ops-radio-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ops-radio-chat-form input {
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 10px 11px;
  font-size: 0.95rem;
  outline: none;
}

.ops-radio-chat-form button {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.ops-radio-admin summary {
  cursor: pointer;
  font-weight: 900;
}

.ops-radio-admin-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .ops-radio-row-main,
  .ops-radio-presence {
    grid-template-columns: 1fr;
  }

  .ops-radio-icon-btn {
    width: 100%;
  }

  .ops-radio-chat-form {
    grid-template-columns: 1fr;
  }

  .ops-radio-quick button {
    flex: 1 1 calc(50% - 8px);
  }
}


/* ==============================
   FireWatch Talk v1.7
   ============================== */
.ops-radio-head-v17 {
  align-items: flex-start;
}

.ops-radio-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ops-radio-small-btn {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.ops-radio-small-btn.is-active,
.ops-radio-small-btn:hover {
  background: rgba(90,160,255,0.18);
  border-color: rgba(90,160,255,0.32);
}

.ops-talk-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.ops-talk-metrics div {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255,255,255,0.045);
}

.ops-talk-metrics span {
  display: block;
  color: rgba(235,245,255,0.62);
  font-size: 0.76rem;
  margin-bottom: 2px;
}

.ops-talk-metrics b {
  display: block;
  font-size: 1.05rem;
}

.ops-room-cards {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 5px;
  scrollbar-width: thin;
}

.ops-room-card {
  min-width: 160px;
  display: grid;
  gap: 3px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px 11px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  cursor: pointer;
}

.ops-room-card:hover {
  border-color: rgba(90,160,255,0.35);
  background: rgba(90,160,255,0.10);
}

.ops-room-card.is-active {
  border-color: rgba(90,160,255,0.56);
  background: linear-gradient(135deg, rgba(90,160,255,0.24), rgba(255,255,255,0.055));
}

.ops-room-card.is-tx {
  border-color: rgba(255,90,90,0.55);
}

.ops-room-card span {
  color: rgba(235,245,255,0.62);
  font-size: 0.76rem;
}

.ops-radio-card.is-compact .ops-radio-create,
.ops-radio-card.is-compact .ops-radio-chat,
.ops-radio-card.is-compact .ops-radio-history,
.ops-radio-card.is-compact .ops-radio-admin {
  display: none;
}

.ops-radio-card.is-compact .ops-talk-metrics {
  grid-template-columns: repeat(5, minmax(70px, 1fr));
}

.ops-radio-card.is-compact .ops-radio-ptt {
  min-height: 78px;
  font-size: 1.05rem;
}

.ops-radio-card.is-compact .ops-radio-users ul {
  max-height: 150px;
  overflow: auto;
}

@media (min-width: 1100px) {
  .ops-radio-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  }

  .ops-radio-row-main,
  .ops-room-cards,
  .ops-radio-presence,
  .ops-radio-ptt,
  .ops-radio-quick,
  .ops-radio-create {
    grid-column: 1;
  }

  .ops-radio-users,
  .ops-radio-chat,
  .ops-radio-history,
  .ops-radio-admin {
    grid-column: 2;
  }

  .ops-radio-users {
    grid-row: 1 / span 3;
  }
}

@media (max-width: 760px) {
  .ops-radio-head-v17,
  .ops-radio-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-talk-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-room-card {
    min-width: 145px;
  }
}


/* FireWatch Talk v1.7 click/layout fix
   Ovládání vlevo nesmí přetékat pod pravý panel Online v místnosti. */
.ops-radio-row-main {
  grid-template-columns: minmax(0, 1fr) 44px !important;
  align-items: end;
}

.ops-radio-row-main label {
  min-width: 0;
}

.ops-radio-row-main #fwTalkFavoriteRoom {
  width: 44px;
  min-width: 44px;
}

.ops-radio-row-main .ops-radio-tx {
  grid-column: 1 / -1;
  min-width: 0;
}

.ops-radio-row-main .ops-radio-connect {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.ops-radio-users {
  position: relative;
  z-index: 1;
}

@media (min-width: 1100px) {
  .ops-radio-panel {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    align-items: start;
  }

  .ops-radio-row-main {
    grid-column: 1;
    max-width: 100%;
    overflow: hidden;
  }

  .ops-radio-users,
  .ops-radio-chat,
  .ops-radio-history,
  .ops-radio-admin {
    grid-column: 2;
    min-width: 0;
  }
}

@media (max-width: 1099px) {
  .ops-radio-row-main {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }
}
