.beta-page {
  margin: 0;
  min-height: 100dvh;
  background: #eef1f5;
  color: #1f2937;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.beta-sheet {
  width: min(100%, 22rem);
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.beta-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.beta-head img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

.beta-head h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.beta-intro,
.beta-rules {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
  font-weight: 400;
}

.beta-rules {
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d7dde6;
}

#beta-form {
  display: grid;
  gap: 0.65rem;
}

#beta-form label,
.apk {
  display: grid;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

#beta-form label[hidden],
#android-panel[hidden] {
  display: none !important;
}

#beta-form input,
#beta-form select,
.apk-row input,
#submit-btn,
#apk-copy,
#apk-open {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #d7dde6;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 0 0.75rem;
  box-sizing: border-box;
  width: 100%;
}

#beta-form input:focus,
#beta-form select:focus,
.apk-row input:focus {
  outline: none;
  border-color: #3b82f6;
}

.apk {
  padding: 0.65rem;
  border-radius: 10px;
  background: #1f2937;
  color: #e5e7eb;
}

.apk span { color: #94a3b8; }

.apk-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}

.apk-row input {
  background: #334155;
  border-color: transparent;
  color: #f8fafc;
  font-size: 0.7rem;
  min-width: 0;
}

#apk-copy,
#apk-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

#apk-copy {
  width: auto;
  min-width: 4.2rem;
  background: transparent;
  border-color: #64748b;
  color: #f8fafc;
  font-size: 0.875rem;
}

#apk-open {
  background: #3b82f6;
  border-color: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

#apk-meta {
  margin: 0;
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 400;
}

#form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.875rem;
  font-weight: 500;
}

#form-status.is-error { color: #b45309; }
#form-status.is-ok { color: #2563eb; }

#submit-btn {
  margin-top: 0.15rem;
  background: #3b82f6;
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
