@layer components {
  /* The display and the edit form carry [hidden]; .form and the block rules would otherwise show them. */
  .profile-field [hidden] { display: none; }
  .profile-fields { display: flex; flex-direction: column; gap: 12px; }
  .profile-field { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
  .profile-field--empty { border-style: dashed; }
  .profile-field-head { display: flex; align-items: center; gap: 8px; }
  .profile-field-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted-foreground); flex: 1; }
  .profile-field-time { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--jx-ok); }
  .profile-field-missing { margin: 6px 0; font-size: 14px; color: var(--muted-foreground); }
  .profile-field-value { margin: 6px 0 0; font-size: 14px; white-space: pre-line; }
  .profile-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
  .profile-chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 13px;
    background: var(--muted); border: 1px solid var(--border); border-radius: 999px; color: var(--foreground);
  }
  .profile-chip--add { cursor: pointer; background: transparent; border-style: dashed; }
  .profile-chip-remove { display: inline-flex; margin: 0; }
  .profile-chip-button { display: inline-flex; padding: 0; border: 0; background: none; color: var(--muted-foreground); cursor: pointer; }
  .profile-list { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
  .profile-does-not-decide { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-foreground); }
  .profile-field-form { margin-top: 10px; }
}
