body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #f6f7fb;
  color: #222;
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
  line-height: 1.6;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

input[type="text"], button, select {
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  margin: 0.5rem 0;
}

input[type="text"] {
  width: 280px;
}

button {
  background: #333;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #111;
}

a {
  text-decoration: none;
  background: rgba(0,0,0,0.05);
  color: #333;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  margin: 0.2rem;
  display: inline-block;
  transition: background 0.2s;
}

a:hover {
  background: #333;
  color: #fff;
}

.hidden {
  display: none;
}

.error {
  color: red;
  margin-top: 0.5rem;
}

#platforms button {
  margin: 0.2rem;
  background: #eee;
  color: #222;
  border: 1px solid #bbb;
}

#platforms button.active {
  background: #333;
  color: white;
}

.toggle {
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  background-color: #ccc;
  border-radius: 24px;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #333;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.version-wrapper {
  background: white;
  margin-top: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.version-header {
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
  background: #f1f1f1;
  border: none;
  cursor: pointer;
  outline: none;
  color: #222;
}

.version-header:hover {
  background: #e1e1e1;
}

.version-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 1rem;
}

.version-content.open {
  padding: 1rem;
  max-height: 1000px; /* arbitrarily high */
}

.kind-block {
  margin-bottom: 1.5rem;
}

.firmware-block {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.platform-links {
  margin-left: 1.5rem;
  margin-top: 0.25rem;
}

