body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at top right, rgba(239, 247, 241, 0.92), transparent 30%),
    linear-gradient(180deg, #fbf9f4 0%, #f1ede5 100%);
  color: #18222b;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.profile-shell {
  max-width: 470px;
  margin: 0 auto;
  padding: 18px 16px calc(104px + env(safe-area-inset-bottom));
}

.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-kicker {
  margin: 0;
  color: #6b675f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.profile-header h1,
.profile-card h2,
.profile-card h3,
.profile-word-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.profile-header h1 {
  margin-top: 4px;
  font-size: 2.1rem;
  line-height: 1;
  font-style: italic;
}

.profile-header p {
  margin: 10px 0 0;
  color: #67655f;
  font-size: 0.94rem;
  line-height: 1.7;
}

.profile-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid #e3dbcf;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(18, 26, 21, 0.06);
  font-size: 1.15rem;
}

.profile-main {
  display: grid;
  gap: 14px;
}

.profile-card {
  padding: 18px;
  border: 1px solid #e4ddd1;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(18, 26, 21, 0.06);
}

.profile-card--soft {
  background: rgba(245, 243, 238, 0.96);
}

.profile-card--accent {
  border-color: #cfe3d5;
  background: linear-gradient(180deg, rgba(238, 247, 241, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-meta {
  margin: 0;
  color: #6b675f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.profile-continue-title,
.profile-card-title {
  margin-top: 6px;
  font-size: 2rem;
  line-height: 1.1;
}

.profile-primary-btn,
.profile-quick-link,
.toggle-mastered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 800;
}

.profile-primary-btn {
  background: #456554;
  color: #fff;
}

.profile-stat-grid,
.profile-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.profile-stat p,
.profile-word-meta,
.profile-empty-note,
.profile-section-hint,
.profile-radar-copy,
.profile-link-copy {
  margin: 0;
  color: #67655f;
}

.profile-stat strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.profile-continue-body {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.profile-quick-link {
  justify-content: space-between;
  padding: 14px 16px;
  border-color: #dfd7ca;
  background: rgba(255, 255, 255, 0.86);
  color: #1d2a24;
}

.profile-quick-link strong,
.profile-recent-item strong,
.profile-word-title {
  display: block;
  margin-bottom: 4px;
}

.profile-quick-link span:last-child {
  font-size: 1rem;
}

.profile-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-section-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #6b675f;
  font-size: 0.72rem;
  font-weight: 800;
}

.profile-list {
  display: grid;
  gap: 10px;
}

.profile-word-item,
.profile-recent-item,
.profile-empty {
  padding: 16px;
  border: 1px solid #dfd7ca;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(18, 26, 21, 0.04);
}

.profile-word-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-word-copy {
  min-width: 0;
}

.profile-word-title {
  font-size: 1.55rem;
  line-height: 1;
}

.profile-word-copy p {
  margin: 0;
  line-height: 1.7;
}

.toggle-mastered {
  flex-shrink: 0;
  padding: 0 16px;
  border-color: #d9d2c4;
  background: #fff;
  color: #18222b;
}

.toggle-mastered.is-mastered {
  background: #d7e5da;
  border-color: #d7e5da;
  color: #456554;
}

.profile-radar-wrap {
  padding: 16px;
  border-radius: 24px;
  background: #fff;
}

.profile-radar-chart {
  width: 100%;
  max-width: 270px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.profile-radar-tip {
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: #f5f3ee;
}

.profile-radar-tip p {
  margin: 0;
  line-height: 1.7;
}

.profile-empty {
  text-align: center;
}

.profile-recent-item {
  display: block;
}

.profile-recent-item span {
  display: block;
  margin-top: 6px;
  color: #67655f;
  line-height: 1.7;
}

.profile-share-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  min-height: 96px;
  border-radius: 16px;
  border: 1px solid #d8d0c2;
  background: #fff;
  padding: 12px;
  resize: vertical;
}

.profile-share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.profile-secondary-btn,
.profile-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid #d9d2c4;
  background: #fff;
  color: #18222b;
  font-size: 0.9rem;
  font-weight: 800;
}

.profile-danger-btn {
  border-color: #e7c5c5;
  background: #fff4f4;
  color: #9d2f2f;
}

.profile-share-toggle {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f4a42;
  font-size: 0.86rem;
}

.opacity-55 {
  opacity: 0.55;
}

@media (max-width: 440px) {
  .profile-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .profile-header h1,
  .profile-continue-title,
  .profile-card-title {
    font-size: 1.82rem;
  }

  .profile-stat-grid,
  .profile-quick-grid {
    grid-template-columns: 1fr;
  }

  .profile-word-item {
    flex-direction: column;
  }
}