:root {
  --bg: #142018;
  --panel: #1e2e22;
  --accent: #5a9a5a;
  --accent-hot: #c45a2a;
  --text: #e6f0e6;
  --muted: #8aa08a;
  --border: #3a5a3a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 20% 0%, #243828 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, #1a3020 0%, transparent 45%),
    var(--bg);
  color: var(--text);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #b8d8b8;
}

.status {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #3a2a2a;
  border: 1px solid #6a4a4a;
  text-transform: lowercase;
}

.status-on {
  background: #1e3a1e;
  border-color: var(--accent);
}

.main {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field {
  font-size: 0.85rem;
  color: var(--muted);
}

.select {
  font-size: 1.1rem;
  padding: 0.75rem;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ptt {
  margin-top: 1rem;
  height: min(42vw, 200px);
  min-height: 160px;
  border: 3px solid #6aaa6a;
  border-radius: 50%;
  background: linear-gradient(160deg, #4a8a4a, #2a5a2a);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s ease, background 0.08s ease, border-color 0.08s ease;
}

.ptt:active,
.ptt.is-down {
  transform: scale(0.96);
  background: linear-gradient(160deg, #d06030, #8a3010);
  border-color: #e09060;
}

.hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 1rem;
}

.roster h2 {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0.5rem 0;
}

.devices {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.devices li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.devices li:last-child { border-bottom: none; }

.devices .tx {
  color: #f0a060;
  font-weight: 700;
}

.devices .away { opacity: 0.55; }

.foot {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.foot a { color: #9ec89e; }
