/* IE11-safe layout — no CSS Grid / gap / clamp */
html, body {
  margin: 0;
  padding: 0;
  background: #0b1a12;
  color: #e8f5ec;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
}

h1 {
  margin: 0 0 6px 0;
  color: #3ddc84;
  font-size: 28px;
}

#status {
  min-height: 2.4em;
  color: #b7dcc6;
  font-size: 13px;
}

.vpn-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid #3ddc84;
  background: #143322;
  color: #e8f5ec;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
}

.vpn-pill.warn {
  border-color: #c45a2a;
  background: #3a2218;
}

.ptt.sos {
  margin-top: 12px;
  border-color: #c45a2a;
  background: #4a2018;
}

#sosDial {
  min-height: 1.5em;
  color: #ffb0a0;
  font-size: 13px;
}

#lights {
  margin: 10px 0 16px 0;
}

.light {
  display: inline-block;
  margin: 0 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  background: #44554a;
  color: #dfeee6;
}

.light.on {
  background: #3ddc84;
  color: #0b1a12;
}

.light.tx {
  background: #ff6b4a;
  color: #0b1a12;
}

label {
  display: block;
  text-align: left;
  margin: 8px 0 4px 0;
  font-size: 12px;
  color: #8fd9a8;
}

select, input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #2a4a36;
  background: #12261a;
  color: #e8f5ec;
  font-size: 16px; /* avoid iOS/IE zoom quirks */
}

.row {
  margin: 8px 0 12px 0;
}

.row button {
  margin: 4px;
  padding: 10px 14px;
  border: 0;
  background: #1f3d2a;
  color: #e8f5ec;
  font-size: 14px;
}

.ptt {
  width: 220px;
  height: 220px;
  margin: 18px auto;
  border: 0;
  border-radius: 50%;
  background: #3ddc84;
  color: #0b1a12;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

.ptt.down {
  background: #ff6b4a;
}

.ptt small {
  font-size: 12px;
  font-weight: 400;
}

footer {
  margin-top: 20px;
  font-size: 11px;
  color: #8fd9a8;
}

footer code {
  color: #cfeede;
}
