* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #172033;
  margin: 0;
}

.home-page {
  background: #f7f8fa;
}

.home-panel {
  max-width: 720px;
  margin: 80px auto;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.home-panel h1 {
  font-size: 22px;
  margin: 0 0 20px;
}

.home-panel p {
  color: #555;
  line-height: 1.8;
}

.footer {
  margin-top: 40px;
  font-size: 13px;
  color: #999;
  text-align: center;
}

.footer a {
  color: #6b7280;
  text-decoration: none;
}

.share-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(255, 255, 255, 0) 34%),
    linear-gradient(160deg, #f6faf7 0%, #eef4f8 45%, #fff 100%);
}

.share-shell {
  width: min(920px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: center;
}

.share-hero {
  min-width: 0;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #0f8f5f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
}

.share-hero h1 {
  font-size: 40px;
  line-height: 1.18;
  margin: 0 0 16px;
}

.share-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: #536173;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  background: #0f8f5f;
  color: #fff;
}

.primary-action.disabled {
  background: #9ca3af;
  pointer-events: none;
}

.secondary-action {
  background: rgba(255, 255, 255, .72);
  border-color: #d4dbe4;
  color: #1f2937;
}

.status-text {
  margin-top: 16px;
  font-size: 14px;
  color: #718096;
}

.qrcode-panel {
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(209, 216, 226, .9);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(31, 41, 55, .08);
}

.qrcode-panel img {
  width: 180px;
  height: 180px;
  display: block;
  margin: 0 auto 16px;
}

.qrcode-panel h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.qrcode-panel p {
  color: #5b6778;
  line-height: 1.6;
  margin: 0;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .home-panel {
    margin: 32px 16px;
    padding: 28px 22px;
  }

  .share-shell {
    width: min(100vw - 28px, 520px);
    min-height: 100vh;
    padding: 40px 0;
    display: block;
  }

  .brand-mark {
    margin-bottom: 24px;
  }

  .share-hero h1 {
    font-size: 32px;
  }

  .share-hero p {
    font-size: 16px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .qrcode-panel {
    margin-top: 28px;
  }
}
