.profile-builder {
  max-width: 980px;
  margin: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(24, 51, 50, .07);
}
.profile-manager-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.profile-manager-head h3 { margin:0; font-size:24px; }
.profile-manager-head p { margin:6px 0 0; color:var(--muted); }
.profile-manager-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:28px; }
.profile-manage-card { padding:18px; border:1px solid var(--line); border-radius:16px; background:#fafcfb; }
.profile-manage-card.current { border:2px solid var(--green); background:#f1f9f6; }
.profile-manage-card h4 { margin:8px 0; font-size:18px; }
.profile-manage-card p { min-height:44px; margin:0 0 12px; color:var(--muted); font-size:13px; line-height:1.55; }
.profile-manage-actions { display:flex; flex-wrap:wrap; gap:7px; }
.profile-manage-actions button { padding:7px 10px; font-size:12px; }
.current-context { display:inline-block; padding:4px 9px; border-radius:999px; background:#dff1ea; color:var(--green); font-size:12px; font-weight:800; }

.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.example-chips button {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.example-chips button:hover { background: #d5ebe4; }
.profile-builder form > label { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 800; }

.profile-builder textarea {
  width: 100%;
  min-height: 190px;
  padding: 18px;
  border: 1px solid #c7d6d2;
  border-radius: 15px;
  outline: none;
  background: #fbfcfb;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.7;
  resize: vertical;
}

.profile-builder textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.narrative-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.narrative-actions span { color: var(--muted); font-size: 14px; }
.privacy-tip { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.profile-preview {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid #c9ddd7;
  border-radius: 18px;
  background: linear-gradient(145deg, #fafffd, #f1f8f5);
}

.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.preview-head span:first-child { color: var(--green); font-size: 13px; font-weight: 800; }
.preview-head h3 { margin: 5px 0 0; font-size: 25px; }
.confirm-badge, .saved-badge { flex-shrink: 0; padding: 5px 10px; border-radius: 999px; font-size: 12px !important; font-weight: 800; }
.confirm-badge { background: #fff1d6; color: #936321 !important; }
.saved-badge { background: #dff1ea; color: var(--green) !important; }
.profile-preview dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.profile-preview dl > div { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.profile-preview dt { color: var(--muted); font-size: 13px; font-weight: 800; }
.profile-preview dd { margin: 5px 0 0; line-height: 1.65; }
.preview-block { margin-top: 18px; }
.known-list { margin-top: 9px; }
.known-list p { display: grid; grid-template-columns: 120px 1fr; gap: 12px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.known-list p span { color: var(--muted); font-size: 13px; font-weight: 800; }
.focus-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.focus-list span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; }

@media (max-width: 620px) {
  .profile-builder { padding: 22px; }
  .profile-builder textarea { min-height: 220px; }
  .profile-preview dl { grid-template-columns: 1fr; }
  .known-list p { grid-template-columns: 1fr; gap: 2px; }
  .narrative-actions button { width: 100%; }
  .profile-manager-head { align-items:stretch; flex-direction:column; }
  .profile-manager-grid { grid-template-columns:1fr; }
}

/* 数据授权勾选项（默认不允许） */
.consent-row { margin: 18px 0 4px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; background: #fbfdfc; }
.consent-row label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.consent-row input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--green); }
.consent-row .privacy-tip { margin-top: 8px; }
