:root {
  --brand: #ff6b6b;
  --text: #1a1a2e;
  --muted: #666;
  --bg: #f5f6fa;
  --card: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
}

.hero {
  text-align: center;
  margin-bottom: 16px;
}

.logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.title {
  margin: 0;
  font-size: 24px;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hidden {
  display: none !important;
}

.hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.center {
  text-align: center;
}

.warn-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #d4380d;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.meta-row span {
  color: var(--muted);
}

.btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 0;
  border-radius: 24px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.install-tip {
  margin-top: 14px;
  font-size: 12px;
}

.sha-row .sha {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  word-break: break-all;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 8px auto 16px;
  border: 3px solid #eee;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
