:root {
  --navy: #1F3864;
  --gold: #B8860B;
  --bg: #0f172a;
  --card: #16213e;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg); color: white; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; padding: 16px;
}
header { text-align: center; margin: 10px 0 20px; }
header h1 { margin: 0; font-size: 20px; color: var(--gold); letter-spacing: 0.5px; }
header p { margin: 4px 0 0; font-size: 12px; color: #94a3b8; }

.card { width: 100%; max-width: 420px; background: var(--card); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
input, select, textarea {
  width: 100%; padding: 12px; margin: 6px 0; border-radius: 8px; border: 1px solid #334155;
  background: #0b1226; color: white; font-size: 16px;
}
button {
  padding: 12px 16px; border: none; border-radius: 8px;
  background: var(--navy); color: white; font-size: 15px; font-weight: 600; cursor: pointer;
}
button.secondary { background: #334155; }
button.danger { background: var(--red); }
button.success { background: var(--green); }
button:disabled { opacity: 0.5; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #0b1226; border: 1px solid #334155; font-size: 13px; cursor: pointer;
}
.chip.selected { background: var(--navy); border-color: var(--gold); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #475569; }
.chip .dot.on { background: var(--green); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #334155; }
th { color: #94a3b8; font-weight: 600; }

.ptt-button {
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2b3b63, var(--navy));
  border: 6px solid #334155; margin: 24px auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: white; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.08s, background 0.15s;
  user-select: none;
}
.ptt-button.talking { background: radial-gradient(circle at 30% 30%, #ef8a8a, var(--red)); transform: scale(0.96); }
.ptt-button.disabled { opacity: 0.4; }

.msg-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #0b1226; border-radius: 8px; margin-bottom: 6px; font-size: 14px; }
.small { font-size: 12px; color: #94a3b8; }
.error { color: var(--red); font-size: 13px; margin-top: 6px; }
.success-text { color: var(--green); font-size: 13px; margin-top: 6px; }

.ring-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 100; text-align: center; padding: 20px;
}
.ring-overlay h2 { color: var(--gold); }
.pulse { width: 100px; height: 100px; border-radius: 50%; background: var(--green); display:flex;align-items:center;justify-content:center; animation: pulse 1s infinite; margin-bottom: 20px;}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6);} 70% { box-shadow: 0 0 0 24px rgba(34,197,94,0);} 100% {box-shadow: 0 0 0 0 rgba(34,197,94,0);} }

.tag-live { background: var(--green); color: black; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
