:root {
  color-scheme: light;
  --bg: #fff7fb;
  --card: #fffdf7;
  --card-2: #fff1f6;
  --text: #5b3766;
  --muted: #936da0;
  --line: #f4bfd2;
  --accent: #ff77b7;
  --accent-2: #8c7bff;
  --good: #5ecf8b;
  --bad: #ff8c7a;
  --yellow: #ffd964;
  --mint: #d9fff2;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, #ffe5f2 0%, transparent 35%),
    radial-gradient(circle at top right, #fff3b6 0%, transparent 28%),
    linear-gradient(180deg, #fff8fc 0%, #fff1f8 52%, #fff7e8 100%);
  color: var(--text);
}

.page-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.hero, .setup-card, .profile-card, .liked-panel, .status-bar {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 16px 0 rgba(255, 170, 204, 0.34), 0 24px 40px rgba(211, 124, 175, 0.18);
}

.hero, .setup-card, .liked-panel, .profile-card { padding: 18px; }
.hero { margin-bottom: 16px; }
.eyebrow { color: #ff6eac; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 12px;
}


.setup-actions, .action-bar, .filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  color: white;
  font-weight: 800;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.08);
  background: var(--card-2);
}

.setup-actions button, .action-bar button { flex: 1; min-width: 120px; }
.setup-actions .gender-btn { min-width: 0; flex: 1; }
.gender-btn.male { background: linear-gradient(135deg, #7db8ff, #5d7dff); }
.gender-btn.female { background: linear-gradient(135deg, #ff97c6, #ff77a8); }
.gender-btn:hover { transform: translateY(-2px); filter: saturate(1.1); }
.gender-btn:active { transform: translateY(1px); }
.ghost { background: #b08bd8; }
.danger { background: var(--bad); }
.accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.success { background: var(--good); }

.status-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 18px;
  margin: 16px 0;
  background: linear-gradient(135deg, #fff 0%, #fff5fb 100%);
}

.status-bar span, .photo-meta, .eco-id, .setup-note, .liked-head p { color: var(--muted); font-size: 13px; }
.status-bar strong { display: block; margin-top: 4px; font-size: 18px; }

.photo-main {
  border-radius: 24px;
  min-height: 280px;
  background: linear-gradient(135deg, #ffe6f4, #fff6c8 50%, #dbfff5 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
}

.photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.photo-placeholder {
  display: grid;
  gap: 6px;
  text-align: center;
  color: #7d4a8b;
  padding: 18px;
}

.gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-item {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #ffeef7 100%);
  border: 1px solid var(--line);
  color: #b05b82;
  font-size: 12px;
  display: grid;
  gap: 6px;
}

.gallery-item[data-active="true"] {
  outline: 3px solid #ff88bd;
}

.gallery-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.profile-header { margin: 16px 0 12px; }
.details { display: grid; gap: 10px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #f1bfd4;
}

.requirements-block {
  margin-top: 18px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff9d8 0%, #fff2bb 100%);
}

.requirements-block ul { margin: 0; padding-left: 18px; color: #87603d; }
.action-float {
  position: sticky;
  bottom: 12px;
  z-index: 10;
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(216, 105, 163, .18);
}

.utility-row {
  background: rgba(255, 247, 210, 0.95);
  border: 2px dashed #f2b84b;
}

.utility-row button {
  color: #7d4b00;
  background: linear-gradient(135deg, #fff8d5 0%, #ffe8a3 100%);
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: inset 0 -4px 0 rgba(242, 184, 75, .28);
}

.liked-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.filter-pills button[data-active="true"] {
  background: linear-gradient(135deg, #ff9ec9 0%, #ffd37a 100%);
  color: #6c3d51;
}

.liked-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.list-tools {
  display: grid;
  gap: 8px;
}

.list-tools button {
  background: linear-gradient(135deg, #fff 0%, #ffeaf4 100%);
  color: #b05b82;
}

.round-lists {
  display: grid;
  gap: 12px;
}

.round-folder {
  border-radius: 22px;
  background: linear-gradient(135deg, #fff 0%, #fff8fd 100%);
  border: 1px solid #f6cadc;
  padding: 12px;
}

.round-folder summary {
  cursor: pointer;
  font-weight: 900;
  color: #c75791;
}

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

.round-person {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7d2 0%, #fff 100%);
  color: #8d4b66;
}

.round-person img,
.thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #ffe4ee;
}

.liked-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff 0%, #fff4fa 100%);
}

.liked-item p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.liked-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 121, 181, 0.18);
  color: #d64d89;
  font-size: 12px;
}

.empty-state {
  padding: 18px;
  border-radius: 20px;
  border: 2px dashed var(--line);
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.6);
}

.setup-card,
.profile-card,
.liked-panel {
  position: relative;
}

.setup-card::after,
.profile-card::after,
.liked-panel::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 18px 4px 0 #ffb4d2, 38px 0 0 #b7f8d9;
}
